Skip to content

Commit b4245e8

Browse files
committed
Post cards list design improvement.
1 parent 9cdce7b commit b4245e8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

content/index.njk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ canonical: /
1313
.posts {
1414
display: grid;
1515
grid-gap: 1rem;
16-
grid-template-columns: 50% 50%;
16+
grid-template-columns: 1fr 1fr;
17+
}
18+
@media(max-width: 1024px) {
19+
.posts {
20+
grid-template-columns: 100%;
21+
}
1722
}
1823
{% endcss %}
1924

content/tag-pages.njk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ const eleventyComputed = {
2121
.posts {
2222
display: grid;
2323
grid-gap: 1rem;
24-
grid-template-columns: 50% 50%;
24+
grid-template-columns: 1fr 1fr;
25+
}
26+
@media(max-width: 1024px) {
27+
.posts {
28+
grid-template-columns: 100%;
29+
}
2530
}
2631
{% endcss %}
2732

0 commit comments

Comments
 (0)