diff --git a/less/mixins.less b/less/mixins.less index 09da228..9588b9c 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -48,8 +48,8 @@ white-space: nowrap; } -.timeline { - .posts > [component="post"], .timeline-event { +.timeline-style { + > [component="post"], .timeline-event { position: relative; // for absolutely positioned pseudo-element, below border-left: 2px solid lighten(@brand-primary, 30%); margin-left: 2.5rem; @@ -74,7 +74,7 @@ } @media (max-width: @screen-sm-max) { - .posts > [component="post"] { + [component="post"] { border: 0; padding: @post-padding 0; @@ -84,7 +84,7 @@ } } - .posts [component="post"]:last-child:after { + [component="post"]:last-child:after { display: none; } @@ -114,7 +114,7 @@ border-left-style: dashed; } - .posts [component="post"]:last-child:after { + [component="post"]:last-child:after { content: ''; width: 1rem; position: absolute; @@ -123,7 +123,7 @@ border-bottom: 2px solid lighten(@brand-primary, 30%); } - .posts .timeline-event { + [component="topic/event"].timeline-event { text-align: left; justify-content: left; font-size: 1em; diff --git a/less/topic.less b/less/topic.less index 75fbece..27f9415 100644 --- a/less/topic.less +++ b/less/topic.less @@ -412,8 +412,6 @@ .topic { - .timeline; - &.deleted { .opacity(0.3); @@ -423,6 +421,10 @@ } .posts { + &.timeline { + .timeline-style; + } + list-style-type: none; padding: 0; diff --git a/templates/topic.tpl b/templates/topic.tpl index aa4e849..7b68e78 100644 --- a/templates/topic.tpl +++ b/templates/topic.tpl @@ -57,7 +57,7 @@ {{{ end }}} -