Skip to content
Snippets Groups Projects
Commit c3e1f90f authored by Olivia206's avatar Olivia206
Browse files

Fixed posts layout

parent 92f17093
No related branches found
No related tags found
No related merge requests found
......@@ -198,27 +198,4 @@
@if $icon
@include icon($icon, after)
font-size: px2rem(20)
margin-left: px2rem(10)
@mixin layout-posts
@if $posts-list-horizontal
.posts
@include grid(1)
grid-gap: 0
> div
border-bottom: 1px solid $main-border-color
margin-bottom: $spacing3
padding-bottom: $spacing3
.post
@include grid(4, md)
flex-direction: row
div:first-child
width: col(24)
time
font-size: $h5-size
position: absolute
right: 0
top: 0
.media
margin: 0
\ No newline at end of file
margin-left: px2rem(10)
\ No newline at end of file
......@@ -14,15 +14,35 @@
display: block
font-size: px2rem(14)
.posts
@include grid(1)
@include grid(2, md)
@include grid(3, xl)
.posts__section
@include layout-posts
.hero
margin-bottom: $spacing4
@if $posts-list-horizontal
.posts
@include grid(1)
grid-gap: 0
> div
border-bottom: 1px solid $main-border-color
margin-bottom: $spacing3
padding-bottom: $spacing3
.post
@include grid(4, md)
flex-direction: row
div:first-child
width: col(24)
time
font-size: $h5-size
position: absolute
right: 0
top: 0
.media
margin: 0
@else
.posts
@include grid(1)
@include grid(2, md)
@include grid(3, xl)
.post-categories
@include list-reset
......
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