Skip to content

Commit 95da63e

Browse files
committed
fix(v2): stack mobile header vertically, prevent nav mid-item wrap
At <=700px the nav was sharing a horizontal row with the logo and social icons, but "Inference Economics" exceeded the available width and wrapped mid-item, pushing the social icons into the vertical center of the wrapped nav. Stack the header as three centered rows (logo / nav / social) and add white-space: nowrap to nav items so wrapping only happens between items.
1 parent 42f64f6 commit 95da63e

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

theme/static/css/site.css

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,22 @@ a:hover { color: var(--brown); text-decoration-color: var(--brown); }
525525
}
526526
}
527527
@media (max-width: 700px) {
528-
.site-header-inner { flex-wrap: wrap; gap: var(--space-3); padding: var(--space-3); }
529-
.site-nav ul { gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
528+
.site-header-inner {
529+
flex-direction: column;
530+
align-items: center;
531+
gap: var(--space-3);
532+
padding: var(--space-3) var(--space-4);
533+
}
534+
.site-logo { align-self: center; }
535+
.site-nav { flex: none; width: 100%; }
536+
.site-nav ul {
537+
flex-wrap: wrap;
538+
justify-content: center;
539+
gap: var(--space-2) var(--space-4);
540+
}
541+
.site-nav li { white-space: nowrap; }
542+
.site-nav a { white-space: nowrap; font-size: 0.78rem; }
543+
.site-social { justify-content: center; }
530544
.site-main { padding: var(--space-5) var(--space-4); }
531545
.hero {
532546
flex-direction: column-reverse;

0 commit comments

Comments
 (0)