Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import { NAV, GITHUB } from '../site.config';
* the nav so an open menu is the next Tab stop. The nav marks the current section with aria-current
* (a link is current when the page path starts with its href).
*
* Below 1080px the nav folds behind the Menu button and opens inside the band as full-width rows.
* Below 1200px the nav folds behind the Menu button and opens inside the band as full-width rows.
* The one-row header (wordmark, nav, GitHub and theme toggle) needs about 1160px with Public Sans,
* so 1200px leaves about 40px of room. Measure again if a nav label grows, and move the matching
* --header-h breakpoint in tokens.css with this one.
* Without JavaScript (no `.js` on <html>) the button stays hidden and the nav wraps under the
* wordmark instead.
*
Expand Down Expand Up @@ -178,7 +181,7 @@ const isCurrent = (href: string) => path === href || path.startsWith(href);

/* Narrow screens: wordmark, theme toggle and Menu on one row; the nav opens below them. Without
JavaScript the nav wraps as a row under the wordmark. */
@media (max-width: 1079px) {
@media (max-width: 1199px) {
.bar {
gap: 0;
padding-block: 12px;
Expand Down
3 changes: 2 additions & 1 deletion src/styles/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
/* Height of the sticky masthead row; sticky columns and anchor jumps sit below it. */
--header-h: 64px;
}
@media (max-width: 1079px) {
/* The header's Menu-button breakpoint (Header.astro), where the band is 68px tall. */
@media (max-width: 1199px) {
:root {
--header-h: 68px;
}
Expand Down
Loading