MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 320: | Line 320: | ||
/* ============================================================ | /* ============================================================ | ||
HEADER — LARGE LOGO, TIGHT HEIGHT, BODY-ALIGNED | HEADER — LARGE LOGO, TIGHT HEIGHT, BODY-ALIGNED (FIXED) | ||
============================================================ */ | ============================================================ */ | ||
/* Hide default Vector wordmark/tagline */ | |||
.mw-logo-wordmark, | .mw-logo-wordmark, | ||
.mw-logo-tagline { | .mw-logo-tagline { | ||
| Line 328: | Line 329: | ||
} | } | ||
/* Disable logo link (logo acts as branding only) */ | |||
.mw-logo a, | .mw-logo a, | ||
.mw-logo a * { | .mw-logo a * { | ||
| Line 334: | Line 336: | ||
} | } | ||
/* Match header width to page body (.bc-wrap = 1200px) */ | |||
:root { | |||
--bc-page-max: 1200px; | |||
--bc-page-gutter: var(--padding-inline-page-container, 16px); | |||
} | |||
/* Outer header stays full width */ | |||
.vector-header { | .vector-header { | ||
background: #fff; | background: #fff; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
/* Inner header aligns to content width */ | |||
.vector-header-container { | .vector-header-container { | ||
max-width: var(-- | max-width: var(--bc-page-max) !important; | ||
margin-left: auto !important; | margin-left: auto !important; | ||
margin-right: auto !important; | margin-right: auto !important; | ||
width: 100% !important; | width: 100% !important; | ||
padding-left: var(--bc-page-gutter) !important; | |||
padding-right: var(--bc-page-gutter) !important; | |||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
/* Header height control */ | |||
.mw-header { | .mw-header { | ||
height: 90px; | height: 90px; | ||
| Line 356: | Line 367: | ||
} | } | ||
/* Prevent Vector from forcing tall minimums */ | |||
.mw-header, | .mw-header, | ||
.vector-header, | .vector-header, | ||
| Line 362: | Line 374: | ||
} | } | ||
/* Left cluster (hamburger + logo) flush with container edge */ | |||
.vector-header-start { | |||
margin-left: 0 !important; | |||
padding-left: 0 !important; | |||
} | |||
/* Hamburger safety (Vector 2022 + variants) */ | |||
#mw-panel-button, | |||
.vector-main-menu-dropdown { | |||
margin-left: 0 !important; | |||
} | |||
/* Logo sizing & vertical centering */ | |||
.mw-logo { | .mw-logo { | ||
display: flex; | display: flex; | ||
| Line 368: | Line 393: | ||
} | } | ||
.mw-logo img { | .mw-logo img, | ||
#p-logo img { | |||
height: 135px !important; | height: 135px !important; | ||
width: auto; | width: auto; | ||
| Line 374: | Line 400: | ||
} | } | ||
/* ============================================================ | /* ============================================================ | ||