Center the actual shared homepage navigation #652

Merged
unimatrix merged 1 commit from fix/center-shared-header-20261202 into main 2026-12-02 13:28:24 +01:00
2 changed files with 2 additions and 6 deletions

View file

@ -8,6 +8,8 @@ dune-shared-header[hidden]{display:none!important}
: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}

View file

@ -176,9 +176,3 @@ body.dr-design header.dune-site-header nav>.dr-account-menu{margin-left:auto}
body.dr-design header.dune-site-header nav>.dr-account-menu>summary>img{display:block!important}
body.dr-design header.dune-site-header .wordmark{display:block!important;line-height:0!important}
body.dr-design header.dune-site-header nav[aria-label='Main navigation']>.dr-account-menu>summary>img{display:block!important}
/* Keep the desktop menu and account controls together in the centre of the masthead. */
@media(min-width:1241px){
.dr-header-bar{justify-content:center}
body.dr-design header.dune-site-header nav[aria-label='Main navigation']{flex:0 1 auto!important;margin-inline:0!important}
body.dr-design header.dune-site-header nav>.dr-account-menu{margin-left:12px}
}