Align shared navigation to the left page gutter on wide screens

This commit is contained in:
unimatrixgit 2026-11-29 07:55:53 +01:00
commit c3d2b9e2d0
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# Shared menu alignment — 29 November 2026
Owner clarified the issue concerns the navigation menu, not the centered masthead artwork. The inherited homepage .wrap width:min(1240px,calc(100% - 64px)) centered the navigation container on wider displays. Keep the masthead unchanged and remove the content-column width cap from the shared navigation row.
The one shared stylesheet now gives .nav-inner a full-width row with 32px desktop, 20px intermediate and 14px mobile gutters. This applies through the existing generated shared header on Staff, portal and CP/native consumers; no Staff-only header or parallel layout was added.
Validation: website asset build passed; 12 shared-chrome tests passed. Browser verification used the exact generated public assets locally: at viewport1920, before menuLeft332.5/accountRight1572.5, after menuLeft32/accountRight1873; logo center952.5 unchanged. At mobile390, document width390, menu toggle visible and within viewport. Local preview does not include live staff-register API data. Canonical CI/publication and live CSS verification remain required.

View file

@ -4,6 +4,10 @@ dune-shared-header{display:block!important;width:100%!important;max-width:none!i
dune-shared-header[hidden]{display:none!important}
:host{display:block;color-scheme:dark;--ink:#071a16;--surface:#102a23;--surface-raised:#17372c;--gold:#c9a85a;--gold-light:#f2d593;--cream:#f5ead0;--muted:#a8b8ac;--line:#6b613d;--font:'DM Sans',Arial,sans-serif;--serif:'Cinzel',Georgia,serif;color:var(--cream);font:16px/1.65 var(--font);text-align:left}
:host .nav-bar{position:relative;z-index:20}
/* Navigation uses the page gutter, not the centered content-column cap. */
:host .nav-inner{width:calc(100% - 64px);max-width:none;margin-inline:32px}
@media(max-width:1120px){:host .nav-inner{width:calc(100% - 40px);margin-inline:20px}}
@media(max-width:640px){:host .nav-inner{width:calc(100% - 28px);margin-inline:14px}}
:host [hidden]{display:none!important}
:host .nav-actions .button{min-height:42px;font-size:14px;border-radius:4px;font-family:var(--font);font-weight:700}
:host .shared-account-group{position:relative}