Skip to content

Commit

Permalink
[FEATURE] Création du bloc Statistiques et refacto (PIX-1200).
Browse files Browse the repository at this point in the history
Merge pull request #193 from 1024pix/pix-1200-new-multiple-use-block
  • Loading branch information
alexandrecoin authored Oct 16, 2020
2 parents 528979e + eb4d9bf commit 8c3468b
Show file tree
Hide file tree
Showing 5 changed files with 682 additions and 0 deletions.
184 changes: 184 additions & 0 deletions assets/scss/components/slices/features.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
.features {
&__title h2 {
color: $grey-90;
font-size: 2.125rem;
font-weight: normal;
height: 49px;
letter-spacing: 0.15px;
line-height: 49px;
text-align: center;
margin-top: 64px;
}

&__wrapper {
padding: 64px 0;
}
}

.features-wrapper {
&__row {
display: flex;
align-items: center;
flex-direction: column;
margin-bottom: 24px;

&:last-child {
margin-bottom: 0;
}
}
}

.features-wrapper-row {
&__item {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 24px;

&:last-child {
margin-right: 0;
margin-bottom: 0;
}

img {
margin-right: 25px;
height: 62px;
width: 55px;
}
}
}

.features-wrapper-row-item {

&__title h3 {
width: 217px;
color: $grey-45;
font-size: 1rem;
letter-spacing: 0;
line-height: 30px;
font-weight: 600;
margin-top: 16px;
}

&__description {
width: 217px;
color: $grey-45;
font-size: 0.875rem;
letter-spacing: 0.15px;
line-height: 24px;
}
}

@include device-is('tablet') {
.features {
&__title h2 {
margin-top: 80px;
}
&__wrapper {
padding: 80px 0;
}
}

.features-wrapper-row {
&__item {
margin-bottom: 40px;

img {
margin-right: 32px;
height: 73px;
width: 65px;
}
}
}

.features-wrapper-row-item {

&__title h3 {
width: 518px;
font-size: 1.25rem;
}

&__description {
width: 518px;
}
}
}

@include device-is('desktop') {
.features {
&__title h2 {
margin-top: 80px;
}

&__wrapper {
padding: 80px 0 84px;
}
}

.features-wrapper {
&__row {
flex-direction: row;
justify-content: center;
align-items: baseline;
}
}

.features-wrapper-row {
&__item {
display: block;
margin-right: 98px;
text-align: center;

img {
margin-right: 0;
}
}
}

.features-wrapper-row-item {

&__title h3 {
width: 200px;
font-size: 1.25rem;
}

&__description {
margin-top: 8px;
width: 200px;
}
}
}

@include device-is('large-screen') {
.features {
&__title h2 {
margin-top: 120px;
}
&__wrapper {
padding: 60px 0;
}
}

.features-wrapper-row {
&__item {
margin-right: 76px;
text-align: center;

img {
height: 73px;
width: 65px;
}
}
}

.features-wrapper-row-item {

&__title h3 {
width: 294px;
}

&__description {
width: 294px;
}
}
}
Loading

0 comments on commit 8c3468b

Please sign in to comment.