Skip to content

Commit

Permalink
Posts are in two columns
Browse files Browse the repository at this point in the history
  • Loading branch information
ScreamingHawk committed Dec 14, 2020
1 parent c780aa0 commit 0d4b3df
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ body {
.flex-full {
flex: 1 0 auto;
}
.flex-half {
display: flex;
}
.flex-half > * {
flex: 0 50%;
}
.flex-half > *:nth-child(2) {
margin-left: 12px;
}
p {
line-height: 1.5;
margin: 1.875rem 0;
Expand Down Expand Up @@ -507,6 +516,9 @@ footer .footer-custom-content {
margin-top: -2.1875rem;
filter: grayscale(90%);
}
.flex-half .post-image {
margin-top: 0;
}
.post-image:hover {
filter: grayscale(0%);
}
Expand Down
2 changes: 2 additions & 0 deletions posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
cover-img: assets/img/main-header.png
---

<div class="flex-half">
{% for post in site.posts %}
<article class="post-preview">
<a href="{{ post.url | relative_url }}">
Expand Down Expand Up @@ -55,3 +56,4 @@ <h3 class="post-subtitle">

</article>
{% endfor %}
</div>

0 comments on commit 0d4b3df

Please sign in to comment.