Skip to content
Snippets Groups Projects
Commit 79805bbd authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix timeline

parent eb55e7b2
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
border-radius: 50% border-radius: 50%
content: "" content: ""
height: 9px height: 9px
left: half(var(--grid-gutter-negative)) left: -$spacing-3
margin-top: 0.5em margin-top: 0.5em
position: absolute position: absolute
width: 9px width: 9px
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
background: $color-text background: $color-text
bottom: -0.5em bottom: -0.5em
content: "" content: ""
left: half(var(--grid-gutter-negative)) left: -$spacing-3
position: absolute position: absolute
top: 0.5em top: 0.5em
width: 1px width: 1px
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
@include media-breakpoint-down(desktop) @include media-breakpoint-down(desktop)
.timeline-event .timeline-event
padding-left: half(var(--grid-gutter)) padding-left: $spacing-3
&::after, &::before &::after, &::before
left: 0 left: 0
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
display: flex display: flex
&::before, &::after &::before, &::after
left: columns(3) left: columns(3)
margin-left: half(var(--grid-gutter)) margin-left: calc(var(--grid-gutter) / 2)
&::before &::before
transform: translateX(-4px) transform: translateX(-4px)
.title .title
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
.timeline-arrows .timeline-arrows
display: flex display: flex
padding-left: half(var(--grid-gutter)) padding-left: calc(var(--grid-gutter) / 2)
> button > button
@include button-reset @include button-reset
background: none background: none
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
cursor: default cursor: default
opacity: 0.3 opacity: 0.3
.timeline-events .timeline-events
margin-left: half(var(--grid-gutter-negative)) margin-left: calc(var(--grid-gutter-negative) / 2)
margin-right: half(var(--grid-gutter-negative)) margin-right: calc(var(--grid-gutter-negative) / 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
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
width: 100% width: 100%
.timeline-event .timeline-event
flex: none flex: none
padding: 0 half(var(--grid-gutter)) padding: 0 calc(var(--grid-gutter) / 2)
scroll-snap-align: start scroll-snap-align: start
transition: 0.3s opacity transition: 0.3s opacity
width: 50% width: 50%
...@@ -123,13 +123,14 @@ ...@@ -123,13 +123,14 @@
margin-bottom: $spacing-3 margin-bottom: $spacing-3
opacity: 1 opacity: 1
overflow: visible overflow: visible
width: calc(100% + #{half(var(--grid-gutter))}) width: calc(100% + #{var(--grid-gutter) / 2})
&::before &::before
background: $block-timeline-horizontal-color background: $block-timeline-horizontal-color
border-radius: 50% border-radius: 50%
content: "" content: ""
display: block display: block
height: 9px height: 9px
margin-left: -4px
position: relative position: relative
top: -4px top: -4px
width: 9px width: 9px
......
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