Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | /* === Holdfast: banner top-left + dark left column | + | /* === Holdfast: banner top-left + fixed-width dark left column === */ |
:root{ | :root{ | ||
| − | --hf-banner-h: 150px; | + | --hf-banner-h: 150px; /* banner height */ |
| − | --hf-leftcol-w: | + | --hf-leftcol-w: 320px; /* left column width ≈ sidebar width; tweak 300–360px */ |
--hf-parchment: #E1DCCE; | --hf-parchment: #E1DCCE; | ||
--hf-left-top: #2F2D2B; | --hf-left-top: #2F2D2B; | ||
| Line 8: | Line 8: | ||
} | } | ||
| − | /* | + | /* Page background: 1) banner (top-left), 2) dark column (full height), 3) parchment */ |
| − | |||
| − | |||
| − | |||
| − | */ | ||
html, body{ | html, body{ | ||
background: | background: | ||
| Line 19: | Line 15: | ||
var(--hf-parchment); | var(--hf-parchment); | ||
background-size: | background-size: | ||
| − | var(--hf-leftcol-w) var(--hf-banner-h), /* banner | + | var(--hf-leftcol-w) var(--hf-banner-h), /* banner only spans left column width */ |
| − | var(--hf-leftcol-w) 100%, /* | + | var(--hf-leftcol-w) 100%, /* dark column runs full page height */ |
auto; | auto; | ||
| − | background-attachment: | + | background-attachment: scroll, scroll, scroll; |
| − | |||
} | } | ||
| − | /* | + | /* Header needs space for the banner strip; keep header chrome transparent */ |
#mw-head, | #mw-head, | ||
.vector-header-container, | .vector-header-container, | ||
| − | #mw-page-base, #mw-head-base | + | #mw-page-base, #mw-head-base { |
| − | |||
background: transparent !important; | background: transparent !important; | ||
| + | min-height: var(--hf-banner-h); | ||
} | } | ||
| − | /* | + | /* IMPORTANT: content should be opaque parchment (so dark column doesn't bleed under it) */ |
| − | #mw- | + | #content, |
| + | .mw-body, | ||
| + | .vector-body .mw-body, | ||
| + | .mw-workspace-container, | ||
| + | .mw-content-container { | ||
| + | background: var(--hf-parchment) !important; | ||
| + | } | ||
| − | /* Sidebar | + | /* Sidebar stays transparent to show the dark column behind it */ |
#mw-panel, #column-one, .mw-sidebar{ | #mw-panel, #column-one, .mw-sidebar{ | ||
background: transparent !important; | background: transparent !important; | ||
Revision as of 09:39, 10 October 2025
/* === Holdfast: banner top-left + fixed-width dark left column === */
:root{
--hf-banner-h: 150px; /* banner height */
--hf-leftcol-w: 320px; /* left column width ≈ sidebar width; tweak 300–360px */
--hf-parchment: #E1DCCE;
--hf-left-top: #2F2D2B;
--hf-left-bot: #1E1E1D;
}
/* Page background: 1) banner (top-left), 2) dark column (full height), 3) parchment */
html, body{
background:
url("/Special:FilePath/BannerImage.png") left top no-repeat,
linear-gradient(to bottom, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top repeat-y,
var(--hf-parchment);
background-size:
var(--hf-leftcol-w) var(--hf-banner-h), /* banner only spans left column width */
var(--hf-leftcol-w) 100%, /* dark column runs full page height */
auto;
background-attachment: scroll, scroll, scroll;
}
/* Header needs space for the banner strip; keep header chrome transparent */
#mw-head,
.vector-header-container,
#mw-page-base, #mw-head-base {
background: transparent !important;
min-height: var(--hf-banner-h);
}
/* IMPORTANT: content should be opaque parchment (so dark column doesn't bleed under it) */
#content,
.mw-body,
.vector-body .mw-body,
.mw-workspace-container,
.mw-content-container {
background: var(--hf-parchment) !important;
}
/* Sidebar stays transparent to show the dark column behind it */
#mw-panel, #column-one, .mw-sidebar{
background: transparent !important;
color: #EEEDEB !important;
}
#mw-panel a, #column-one a, .mw-sidebar a{
color: #EEEDEB !important; text-decoration: none;
}
#mw-panel a:hover, #column-one a:hover, .mw-sidebar a:hover{
color: #5A65EA !important; text-decoration: underline;
}