Skip to content

Commit

Permalink
Fix #504 (#532)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
elegaanz authored Apr 19, 2019
1 parent 6acb962 commit b572a1b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions static/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,8 @@ html {
body > footer * { margin: 1em auto; }

.flex.wrap { flex-direction: column; }

.cards {
margin: 1rem 0 5rem;
}
}
2 changes: 1 addition & 1 deletion templates/blogs/details.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h2>
@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)
}
Expand Down
2 changes: 1 addition & 1 deletion templates/instance/federated.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1 "p-name">@i18n!(ctx.1, "All the articles of the Fediverse")</h1>
])
}

<div class="cards">
<div class="cards spaced">
@for article in articles {
@:post_card(ctx, article)
}
Expand Down
2 changes: 1 addition & 1 deletion templates/instance/feed.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>@i18n!(ctx.1, "Your feed")</h1>
])

@if !articles.is_empty() {
<div class="cards">
<div class="cards spaced">
@for article in articles {
@:post_card(ctx, article)
}
Expand Down
2 changes: 1 addition & 1 deletion templates/instance/local.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1 class="p-name">@i18n!(ctx.1, "Articles from {}"; instance.name)</h1>
])
}

<div class="cards">
<div class="cards spaced">
@for article in articles {
@:post_card(ctx, article)
}
Expand Down

0 comments on commit b572a1b

Please sign in to comment.