Skip to content

Commit a3323f0

Browse files
committed
fix(mobile-nav): inline social icons with logo on row 1, nav drops to row 2
The previous mobile header stacked as three centered rows (logo, nav, social) which felt busy. Switch to a two-row layout: row 1 puts the logo on the left and social icons on the right via flex-row + space-between; row 2 holds the nav via flex-basis:100% and order:3. Header thins out, nav becomes the only centered row. At ultra-narrow widths the row 1 contents can wrap if needed - flex-wrap stays on - so the layout degrades gracefully.
1 parent 01c8433 commit a3323f0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

theme/static/css/site.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -531,21 +531,23 @@ a:hover { color: var(--brown); text-decoration-color: var(--brown); }
531531
}
532532
@media (max-width: 700px) {
533533
.site-header-inner {
534-
flex-direction: column;
534+
flex-direction: row;
535+
flex-wrap: wrap;
535536
align-items: center;
537+
justify-content: space-between;
536538
gap: var(--space-3);
537539
padding: var(--space-3) var(--space-4);
538540
}
539-
.site-logo { align-self: center; }
540-
.site-nav { flex: none; width: 100%; }
541+
.site-logo { flex: 0 0 auto; }
542+
.site-social { flex: 0 0 auto; justify-content: flex-end; }
543+
.site-nav { flex: 1 1 100%; order: 3; }
541544
.site-nav ul {
542545
flex-wrap: wrap;
543546
justify-content: center;
544547
gap: var(--space-2) var(--space-4);
545548
}
546549
.site-nav li { white-space: nowrap; }
547550
.site-nav a { white-space: nowrap; font-size: 0.78rem; }
548-
.site-social { justify-content: center; }
549551
.site-main { padding: var(--space-5) var(--space-4); }
550552
.hero {
551553
flex-direction: column-reverse;

0 commit comments

Comments
 (0)