Skip to content
Snippets Groups Projects
Commit 7f4b423f authored by alexisben's avatar alexisben
Browse files

grid in rem

parent eb7ec489
No related branches found
No related tags found
No related merge requests found
...@@ -74,9 +74,9 @@ $spacing5: px2rem(256) !default ...@@ -74,9 +74,9 @@ $spacing5: px2rem(256) !default
// TODO: choisir entre margin top / bottom --> https://matthewjamestaylor.com/css-margin-top-vs-bottom // TODO: choisir entre margin top / bottom --> https://matthewjamestaylor.com/css-margin-top-vs-bottom
// Grid // Grid
$grid-gutter: 64px !default $grid-gutter: px2rem(64) !default
$grid-max-width: 1980px !default $grid-max-width: px2rem(1980) !default
$grid-gutter-sm: 40px !default $grid-gutter-sm: px2rem(40) !default
// Z-index // Z-index
$zindex-nav-accessibility: 1010 !default $zindex-nav-accessibility: 1010 !default
......
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
margin-left: auto margin-left: auto
margin-right: auto margin-right: auto
max-width: $grid-max-width max-width: $grid-max-width
padding-left: $grid-gutter-sm / 2 padding-left: calc(#{$grid-gutter-sm} / 2)
padding-right: $grid-gutter-sm / 2 padding-right: calc(#{$grid-gutter-sm} / 2)
width: 100% width: 100%
@include media-breakpoint-up(md) @include media-breakpoint-up(md)
padding-left: $grid-gutter padding-left: $grid-gutter
......
.block-timeline--vertical .block-timeline--vertical
.events .events
padding-left: $grid-gutter/2 padding-left: calc(#{$grid-gutter} / 2)
position: relative position: relative
&::before &::before
background: $main-color background: $main-color
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
color: $block-timeline-horizontal-color color: $block-timeline-horizontal-color
cursor: pointer cursor: pointer
font-size: 1rem font-size: 1rem
padding: $grid-gutter / 2 padding: calc(#{$grid-gutter} / 2)
&:first-child &:first-child
@include icon("arrow-left", before) @include icon("arrow-left", before)
&:last-child &:last-child
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
cursor: default cursor: default
opacity: 0.3 opacity: 0.3
.events .events
margin-left: $grid-gutter / -2 margin-left: calc(#{$grid-gutter} / -2)
margin-right: $grid-gutter / -2 margin-right: calc(#{$grid-gutter} / -2)
// TODO : fixer le px gap en desktop entre chaque event // TODO : fixer le px gap en desktop entre chaque event
ol ol
display: flex display: flex
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
width: 100% width: 100%
.event .event
flex: none flex: none
padding: 0 $grid-gutter / 2 padding: 0 calc(#{$grid-gutter} / 2)
scroll-snap-align: start scroll-snap-align: start
transition: 0.3s opacity transition: 0.3s opacity
width: 50% width: 50%
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// font-family: $font-family-sans-serif // font-family: $font-family-sans-serif
font-size: px2rem(14) font-size: px2rem(14)
justify-content: center justify-content: center
margin: calc($grid-gutter * 2.5) 0 0 margin: calc(#{$grid-gutter} * 2.5) 0 0
li li
@include list-reset @include list-reset
// @extend .page-item // @extend .page-item
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment