Newer
Older
margin-bottom: $spacing-4
a
@include stretched-link
text-decoration: none
.post-content
> * + *
margin-top: $spacing-2
@include media-breakpoint-down(desktop)
margin-top: $spacing-5
@include grid(2, desktop, var(--grid-gutter), half(var(--grid-gutter)))
@include in-page-without-sidebar
.grid
@include grid($block-posts-grid-columns)
.media picture img
width: 100%
@include media-breakpoint-up(sm)
article
.post-meta
display: inline
.post
.more
@include icon(arrow-right, after, true)
margin-top: $spacing-4
&-meta
.post-author
display: inline-flex
&::after
content: '—'
margin: 0 $spacing-1
.post-categories
display: flex
p[itemprop="articleBody"]
margin-top: 0
@include media-breakpoint-up(desktop)
.large
.post
flex-direction: row
gap: half(var(--grid-gutter))
margin-top: $spacing-4
margin-top: $spacing-3
.post-meta
> *
display: inline
&:not(:first-child)::before
content: '—'
margin-right: $spacing-1
> time
display: inline-block
margin-top: -2px
.post-author
p
display: inline
li
margin-right: $spacing-2
margin-right: $spacing-2
padding-bottom: 3px
&:not(:last-child)::after
content: ','
@include in-page-with-sidebar
.large
.post
@include media-breakpoint-down(xl)
flex-direction: column
gap: unset
margin-top: $spacing-2
@include media-breakpoint-up(xl)
.media,
.post-content
width: calc(#{columns(4)} + #{half(var(--grid-gutter))})
@include in-page-without-sidebar
.large
.post
p[itemprop="articleBody"]
margin-top: calc(#{$spacing-3} + #{$spacing-2})
&--list
article
border-bottom: 1px solid $color-border
.media
background: none
margin: 0
&, img
aspect-ratio: auto
@include media-breakpoint-down(desktop)
padding-bottom: half($spacing-5)
margin-top: half($spacing-5)
padding-top: $spacing-2
.post-categories
margin-bottom: 0
p[itemprop="articleBody"]
margin-top: $spacing-1
@include media-breakpoint-up(desktop)
article
display: flex
flex-direction: row
padding-bottom: $spacing-3
margin-top: $spacing-3
width: calc(#{columns(2)} + #{half(var(--grid-gutter))})
margin-left: half(var(--grid-gutter))
@include in-page-without-sidebar
border-bottom: 1px solid $color-border
padding-bottom: $spacing-5
position: relative
.media
.post-content
margin-top: $spacing-5
.post-meta
position: absolute
right: 0
top: 0
margin-top: 0.3em
margin-bottom: $spacing-2
margin-bottom: $spacing-2
margin-top: half($spacing-5)
border-top: 1px solid $color-border
article
border-bottom: 1px solid $color-border
position: relative
padding-bottom: half($spacing-5)
margin-top: half($spacing-5)
margin-top: $spacing-2
@include media-breakpoint-down(desktop)
.list
border-top: 1px solid $color-border
p[itemprop="articleBody"]
margin-top: 0
@include media-breakpoint-up(desktop)
.highlight
@include h2
.list
article
@include h4
@include in-page-with-sidebar
.highlight-post
.post
flex-direction: row
.media
width: calc(#{columns(3)} + #{half(var(--grid-gutter))})
margin-left: half(var(--grid-gutter))
.list
article
@include grid(8, desktop, 0, 0)
grid-column: 7 / 9
text-align: right
order: 2
.post-author p::before
content: ''
p[itemprop="articleBody"]
@include in-page-without-sidebar
@include grid(2)
border-top: 0
margin-top: 0
article:first-child
.post .media img
aspect-ratio: unset
@include media-breakpoint-up(desktop)
.post
&.right
margin-left: auto
+ .post:not(.portrait, .square, .landscape)
@include media-breakpoint-down(desktop)
.post
.post-meta
margin-top: $spacing-1
margin-bottom: $spacing-2
margin-top: $spacing-5
@include in-page-without-sidebar
margin-left: auto
margin-right: auto
.post
// Move this part to blocks/categories when categories block is ready
.block-posts
.categories--grid
li
background: $color-background-alt
padding: $spacing-3