Skip to content
Snippets Groups Projects
Commit 16c7346a authored by alexisben's avatar alexisben
Browse files

timeline vertical

parent 0dc2dd5a
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ $spacing5: px2rem(256) !default
// Grid
$grid-gutter: px2rem(64) !default
$grid-max-width: px2rem(1980) !default
$grid-gutter-sm: px2rem(40) !default
$grid-gutter-sm: px2rem(44) !default
// Z-index
$zindex-nav-accessibility: 1010 !default
......
.block-timeline--vertical
.events
padding-left: calc(#{$grid-gutter} / 2)
position: relative
&::before
background: $color-text
bottom: 0
content: ""
left: 4px
position: absolute
top: 10px
width: 1px
.event
position: relative
&:not(:last-child)
margin-bottom: $grid-gutter
padding-bottom: $spacing2
&::before
background: $color-text
border-radius: 50%
content: ""
height: 9px
left: 0
margin-top: 10px
left: calc(-#{$grid-gutter} / 2)
margin-top: 0.5em
position: absolute
width: 9px
margin-left: -4px
&::after
background: $color-text
bottom: -0.5em
content: ""
left: calc(-#{$grid-gutter} / 2)
position: absolute
top: 0.5em
width: 1px
p:last-child
margin-bottom: 0
&:last-child::after
display: none
&-title
@extend .h4
margin-bottom: $spacing0
@include media-breakpoint-down(md)
.event
padding-left: calc(#{$grid-gutter-sm} / 2)
&::after, &::before
left: 0
@include media-breakpoint-up(md)
@include in-page-without-sidebar
.events
padding-left: 0
.event
display: flex
&::before, &::after
left: col(3)
margin-left: calc(#{$grid-gutter} / 2)
&::before
transform: translateX(-4px)
p:first-child
width: col(3)
text-align: right
p:last-child
padding-left: $grid-gutter
width: col(7)
.block-timeline--horizontal
......
......@@ -13,7 +13,7 @@
{{ range .events -}}
<div class="event">
{{ if .title -}}
<p><strong>{{ partial "PrepareHTML" .title }}</strong></p>
<p class="event-title">{{ partial "PrepareHTML" .title }}</p>
{{- end }}
{{ if .text -}}
<p>{{ partial "PrepareText" .text }}</p>
......
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