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

Layout horizontal for posts

parent 196a8d8f
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,9 @@ $program-share-font-size: $h5-size !default
$program-share-font-size-md: $h5-size-md !default
$program-zindex-toc: $zindex-toc !default
// Layout posts list
$posts-list-horizontal: false !default
// MISC
// Animations
......
......@@ -199,3 +199,26 @@
@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
......@@ -15,9 +15,14 @@
font-size: px2rem(14)
.posts
@include grid(1)
@include grid(2, md)
@include grid(3, xl)
@include grid(1)
@include grid(2, md)
@include grid(3, xl)
.posts__section
@include layout-posts
.hero
margin-bottom: $spacing4
.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