feat(nav): mobile sheet + shared bar control chrome (v3 mobile navigation)

MobileMenu.tsx: conditional-mounted glass sheet (94% + blur(12px)), three labelled groups, staggered rows, Mode/Language/Theme-color segmented rows, Connect tiles, safe-area padding, overscroll contain.

Navigation.tsx: honest dialog - Escape on document, inert on #main-content/.footer/.back-to-top, focus restore guarded by offsetParent, matchMedia close above 1024px, icon morph, navPaths from data; route-change close effect deleted.

SocialLinks: single data-driven renderer (src/data/social.ts + strings.social.aria); Hero and Footer cut over; mailto without target/rel; dead .social-link span rule removed; hero/footer centering scoped.

Bar: .nav-control shared chrome for mode/language/theme-color, icon-only 20px half-circle palette trigger at every width, <=420px bar guard; .nav glass 85% -> 94%.

Docs: spec-v3-mobile-navigation.md v0.5.0 (Q14 recorded, gates re-run 16/16 SSR), spec-ui-layout.md and AGENTS.md corrected.
This commit is contained in:
dong.nguyen committed 2026-10-17 10:27:36 +07:00
1 parent f2c920d6ad
commit d0aa9958c8
16 files changed
+1386 -311

No files matched your search

+4 -21
View File
@@ -140,13 +140,15 @@
color-scheme: light;
}
/* Picker previews: fixed identity colors so a row previews its own palette,
not the one currently active. Never referenced outside .nav-palette-preview. */
/* Fixed identity colours: a picker row previews its own palette rather than the active one,
and the bar's palette icon keeps a constant "empty" half in both themes. Referenced only by
`.nav-palette-preview` (previews) and `.nav-palette-swatch` (the empty half). */
:root {
--preview-red-accent: #b04138;
--preview-red-bg: #f6f5f2;
--preview-blue-accent: #2563eb;
--preview-blue-bg: #f4f6f9;
--swatch-empty: #ffffff;
}
/* Pre-hydration / no-JS: honour an OS light preference */
@@ -347,22 +349,3 @@ pre code {
scroll-behavior: auto !important;
}
}
/* Language toggle button */
.lang-toggle {
background: transparent;
border: 1px solid var(--border);
color: var(--text-primary);
padding: 6px 10px;
border-radius: var(--radius-md);
cursor: pointer;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.5px;
transition: all 0.2s;
}
.lang-toggle:hover {
border-color: var(--accent);
color: var(--accent);
}