Skip to content

Commit

Permalink
fix mobile entries order
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaHarambasic committed Feb 13, 2024
1 parent 8995589 commit c0e53ae
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/lib/components/Entries/Entries.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
<div class="entries">
<slot name="entries" />
</div>
<slot name="sidebar" />
<div class="sidebar">
<slot name="sidebar" />
</div>
<div class="rss rich-text">
<p>
<a href={rssPath}>RSS Feed</a>
Expand All @@ -32,13 +34,24 @@
}
.entries {
width: 100%;
@media screen and (max-width: 50rem) {
grid-template-columns: 1fr;
order: 1;
}
}
.sidebar {
@media screen and (max-width: 50rem) {
grid-template-columns: 1fr;
order: 0;
}
}
.rss {
grid-column: 1 / -1;
margin: var(--l) 0 0 0;
text-align: center;
@media screen and (max-width: 50rem) {
grid-column: 1 / 1;
order: 2;
}
}
}
Expand Down

0 comments on commit c0e53ae

Please sign in to comment.