Skip to content

Commit 4570bb8

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

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

content/index.njk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ canonical: /
1515
grid-gap: 1rem;
1616
grid-template-columns: 50% 50%;
1717
}
18+
@media(max-width: 1024px) {
19+
.posts {
20+
grid-template-columns: 100%;
21+
}
22+
}
1823
{% endcss %}
1924

2025
{% if pagination.pageNumber == 0 %}

content/tag-pages.njk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ const eleventyComputed = {
2323
grid-gap: 1rem;
2424
grid-template-columns: 50% 50%;
2525
}
26+
@media(max-width: 1024px) {
27+
.posts {
28+
grid-template-columns: 100%;
29+
}
30+
}
2631
{% endcss %}
2732
2833
<h1>Tagged “{{ tag }}”</h1>

0 commit comments

Comments
 (0)