Skip to content

Commit

Permalink
Improve narrow layout
Browse files Browse the repository at this point in the history
This is important since in #49 I just added a new link in the top
navbar, which would otherwise make it overflow on narrow mobile
screens.
  • Loading branch information
andreubotella committed Nov 23, 2023
1 parent b7fbdad commit 7e70bfe
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions static/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,23 @@ body {
}
}

@media (width < 365px) {
#site-header {
display: grid;
grid-template-columns: 1fr auto;
}
#site-header #theme-toggle {
float: right;
}
#site-header nav {
display: flex;
justify-content: space-evenly;
align-items: center;
gap: var(--site-header-horizontal-margin);
grid-column-end: span 2;
}
}

#theme-toggle {
appearance: none;
border: 1px solid var(--fg-60);
Expand Down Expand Up @@ -182,3 +199,8 @@ iframe.youtube {
max-width: 560px;
aspect-ratio: 16/9;
}
@media (width <= 500px) {
iframe.youtube {
width: 100%;
}
}

0 comments on commit 7e70bfe

Please sign in to comment.