Skip to content
Snippets Groups Projects
Commit 3afb3eb3 authored by alexisben's avatar alexisben
Browse files

fix block posts layout large

parent 122a7069
No related branches found
No related tags found
No related merge requests found
...@@ -33,27 +33,28 @@ ...@@ -33,27 +33,28 @@
.media picture img .media picture img
width: 100% width: 100%
&--large &--large
@include media-breakpoint-up(sm)
article
.post-meta
display: inline
.post .post
.more .more
@include icon(arrow-right, after, true) @include icon(arrow-right, after, true)
.post-author .post-author
p::before p::before
display: none display: none
@include media-breakpoint-down(desktop) .post-meta
display: block
line-height: 0
.post-categories *
display: inline
@include media-breakpoint-down(desktop)
.post
+ .post + .post
margin-top: $spacing-4 margin-top: $spacing-4
&-meta &-meta
.post-author .post-author
display: inline-flex display: inline
p
display: inline
&::after &::after
content: '—' content: ' — '
margin: 0 $spacing-1
.post-categories
display: flex
p[itemprop="articleBody"] p[itemprop="articleBody"]
margin-top: 0 margin-top: 0
@include media-breakpoint-up(desktop) @include media-breakpoint-up(desktop)
...@@ -70,25 +71,18 @@ ...@@ -70,25 +71,18 @@
.post-meta .post-meta
> * > *
display: inline display: inline
&:not(:first-child)::before &:not(:last-child)::after
content: '—' content: ' — '
margin-right: $spacing-1
> time
display: inline-block
margin-top: -2px
.post-author .post-author
p p
display: inline display: inline
li
margin-right: $spacing-2
.post-categories .post-categories
li li
display: inline-flex a
margin-right: $spacing-2 display: inline
padding-bottom: 3px &:not(:last-child) a::after
&:not(:last-child)::after
content: ',' content: ','
@include in-page-with-sidebar @include in-page-with-sidebar
.large .large
.post .post
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{{ $heading_level := .heading_level | default 3 }} {{ $heading_level := .heading_level | default 3 }}
{{ $heading_tag := partial "GetHeadingTag" (dict {{ $heading_tag := partial "GetHeadingTag" (dict
"level" $heading_level "level" $heading_level
"attributes" "class='post-title'" "attributes" "class='post-title' itemprop='headline'"
)}} )}}
{{ $index := .index}} {{ $index := .index}}
......
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