mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 19:41:03 +00:00
- 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
5 changed files with 8 additions and 4 deletions
|
@ -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 a new issue