web/website/scripts/homepage-header.css
unimatrixgit 791a6408ca
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m44s
Center the shared homepage navigation row
2026-12-02 13:24:28 +01:00

29 lines
2.6 KiB
CSS

/* Shared host is intentionally isolated from native forum/CP/shop styles. The original
homepage portal.css and sections.css supply the component's actual layout. */
dune-shared-header{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;position:relative!important;z-index:120!important;flex:none!important}
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}}
/* Centre the shared desktop menu and its account controls as one compact row. */
@media(min-width:1121px){:host .nav-inner{max-width:1180px;margin-inline:auto;justify-content:center;gap:40px}}
: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}
:host .shared-account-group>summary{list-style:none;cursor:pointer}
:host .shared-account-group>.dropdown{right:0;left:auto}
:host .shared-current{color:var(--gold-light);position:relative}
:host .shared-current:after{position:absolute;content:'';height:2px;background:var(--gold);bottom:0;left:16px;right:16px}
:host .nav-home:not([aria-current=page]):after{display:none}
:host .shared-menu-badge{display:inline-block;margin-left:6px;font-size:9px;color:var(--gold-light)}
@media(max-width:850px){:host .shared-account-group{display:none}}
@media(max-width:640px){:host .nav-actions .button{min-height:35px;font-size:11px}}
:host .masthead{height:230px}
:host .brand{display:flex;flex-direction:column;align-items:center;gap:4px}
:host .shared-alpha-badge{display:block;width:max-content;padding:3px 11px;border:1px solid #ba9952;border-radius:20px;background:linear-gradient(120deg,#102d25,#263c2a);color:#ead190;font:600 11px/1.4 system-ui,sans-serif;letter-spacing:.09em;text-align:center;white-space:nowrap;box-shadow:0 2px 8px #0003}
:host .shared-alpha-badge::before{content:'✦';margin-right:6px;color:#cda64f}
@media(max-width:640px){:host .masthead{height:182px}}