Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | /* - | + | /* === Global background: banner (top-left), top strip, left column, parchment === */ |
:root{ | :root{ | ||
| − | --hf-banner-w: 1250px; | + | --hf-banner-w: 1250px; /* banner width */ |
| − | --hf-banner-h: 150px; | + | --hf-banner-h: 150px; /* banner height */ |
| − | --hf-leftcol-w: 320px; | + | --hf-leftcol-w: 320px; /* left column/sidebar width */ |
--hf-parchment: #E1DCCE; | --hf-parchment: #E1DCCE; | ||
--hf-left-top: #2F2D2B; | --hf-left-top: #2F2D2B; | ||
| Line 9: | Line 9: | ||
} | } | ||
| − | |||
html, body { margin: 0 !important; } | html, body { margin: 0 !important; } | ||
| − | |||
html, body { | html, body { | ||
background: | background: | ||
| − | /* | + | /* TOPMOST: banner patch */ |
| − | |||
| − | |||
| − | |||
url("/Special:FilePath/BannerImage.png") left top no-repeat, | url("/Special:FilePath/BannerImage.png") left top no-repeat, | ||
| − | + | /* under banner: full-width top strip so header color is solid */ | |
| − | /* | + | linear-gradient(to bottom, var(--hf-parchment) 0, var(--hf-parchment) var(--hf-banner-h)) left top no-repeat, |
| + | /* left column runs down the page */ | ||
linear-gradient(to bottom, var(--hf-left-top), var(--hf-left-bot)) left top repeat-y, | linear-gradient(to bottom, var(--hf-left-top), var(--hf-left-bot)) left top repeat-y, | ||
| − | + | /* base parchment */ | |
| − | /* | ||
var(--hf-parchment); | var(--hf-parchment); | ||
background-size: | background-size: | ||
| − | + | var(--hf-banner-w) var(--hf-banner-h), /* banner */ | |
| − | + | 100% var(--hf-banner-h), /* top strip */ | |
| − | var(--hf-leftcol-w) 100%, | + | var(--hf-leftcol-w) 100%, /* left column */ |
auto; | auto; | ||
| − | background-attachment: | + | background-attachment: scroll, scroll, scroll, scroll; |
} | } | ||
| − | /* | + | /* keep chrome transparent so the page background shows */ |
| − | #mw-page-base, | + | #mw-page-base, #mw-head-base, #mw-head, .vector-header-container, |
| − | #mw-head-base, | + | #mw-panel, #column-one, .mw-sidebar { background: transparent !important; } |
| − | #mw-head, | ||
| − | .vector-header-container { background: transparent !important; } | ||
| − | /* | + | /* content stays opaque parchment so the dark column doesn't bleed underneath */ |
#content, .mw-body, .vector-body .mw-body, | #content, .mw-body, .vector-body .mw-body, | ||
.mw-workspace-container, .mw-content-container { | .mw-workspace-container, .mw-content-container { | ||
| Line 46: | Line 39: | ||
} | } | ||
| − | /* sidebar | + | /* optional: readable sidebar links */ |
| − | #mw-panel, #column-one, .mw-sidebar { | + | #mw-panel, #column-one, .mw-sidebar { color: #EEEDEB !important; } |
#mw-panel a, #column-one a, .mw-sidebar a { color: #EEEDEB !important; text-decoration: none; } | #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; } | #mw-panel a:hover, #column-one a:hover, .mw-sidebar a:hover { color: #5A65EA !important; text-decoration: underline; } | ||
Revision as of 09:47, 10 October 2025
/* === Global background: banner (top-left), top strip, left column, parchment === */
:root{
--hf-banner-w: 1250px; /* banner width */
--hf-banner-h: 150px; /* banner height */
--hf-leftcol-w: 320px; /* left column/sidebar width */
--hf-parchment: #E1DCCE;
--hf-left-top: #2F2D2B;
--hf-left-bot: #1E1E1D;
}
html, body { margin: 0 !important; }
html, body {
background:
/* TOPMOST: banner patch */
url("/Special:FilePath/BannerImage.png") left top no-repeat,
/* under banner: full-width top strip so header color is solid */
linear-gradient(to bottom, var(--hf-parchment) 0, var(--hf-parchment) var(--hf-banner-h)) left top no-repeat,
/* left column runs down the page */
linear-gradient(to bottom, var(--hf-left-top), var(--hf-left-bot)) left top repeat-y,
/* base parchment */
var(--hf-parchment);
background-size:
var(--hf-banner-w) var(--hf-banner-h), /* banner */
100% var(--hf-banner-h), /* top strip */
var(--hf-leftcol-w) 100%, /* left column */
auto;
background-attachment: scroll, scroll, scroll, scroll;
}
/* keep chrome transparent so the page background shows */
#mw-page-base, #mw-head-base, #mw-head, .vector-header-container,
#mw-panel, #column-one, .mw-sidebar { background: transparent !important; }
/* content stays opaque parchment so the dark column doesn't bleed underneath */
#content, .mw-body, .vector-body .mw-body,
.mw-workspace-container, .mw-content-container {
background: var(--hf-parchment) !important;
}
/* optional: readable sidebar links */
#mw-panel, #column-one, .mw-sidebar { 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; }