- Add the `spaced` class to some article cards, to make them wider even on desktop - Fix the CSS to always have a small margin for cards on mobile
This commit is contained in:
parent
6acb962e72
commit
b572a1bd74
|
@ -138,4 +138,8 @@ html {
|
|||
body > footer * { margin: 1em auto; }
|
||||
|
||||
.flex.wrap { flex-direction: column; }
|
||||
|
||||
.cards {
|
||||
margin: 1rem 0 5rem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
@if posts.is_empty() {
|
||||
<p>@i18n!(ctx.1, "No posts to see here yet.")</p>
|
||||
}
|
||||
<div class="cards">
|
||||
<div class="cards spaced">
|
||||
@for article in posts {
|
||||
@:post_card(ctx, article)
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
])
|
||||
}
|
||||
|
||||
<div class="cards">
|
||||
<div class="cards spaced">
|
||||
@for article in articles {
|
||||
@:post_card(ctx, article)
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
])
|
||||
|
||||
@if !articles.is_empty() {
|
||||
<div class="cards">
|
||||
<div class="cards spaced">
|
||||
@for article in articles {
|
||||
@:post_card(ctx, article)
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
])
|
||||
}
|
||||
|
||||
<div class="cards">
|
||||
<div class="cards spaced">
|
||||
@for article in articles {
|
||||
@:post_card(ctx, article)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue