Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | /* | + | /******************************************** |
| − | :root{ | + | * Holdfast Wiki – Modern Global Background |
| − | --hf-banner-w: 1250px; | + | * Banner (top-left) + Left Column Gradient + Parchment Base |
| − | --hf-banner-h: 150px; | + | ********************************************/ |
| − | --hf-leftcol-w: 320px; | + | |
| − | --hf-parchment: #E1DCCE; | + | /* ====== Variables ====== */ |
| − | --hf-left-top: #2F2D2B; | + | :root { |
| − | --hf-left-bot: #1E1E1D; | + | --hf-banner-w: 1250px; /* Banner width */ |
| + | --hf-banner-h: 150px; /* Banner height */ | ||
| + | --hf-leftcol-w: 320px; /* Dark sidebar column width */ | ||
| + | --hf-parchment: #E1DCCE; /* Base page color */ | ||
| + | --hf-left-top: #2F2D2B; /* Dark gradient top */ | ||
| + | --hf-left-bot: #1E1E1D; /* Dark gradient bottom */ | ||
} | } | ||
| − | + | /* ====== Base Page Background ====== */ | |
| − | |||
html, body { | html, body { | ||
| + | margin: 0 !important; | ||
background: | background: | ||
| − | /* | + | /* 1) Banner image top-left */ |
url("/Special:FilePath/BannerImage.png") left top no-repeat, | url("/Special:FilePath/BannerImage.png") left top no-repeat, | ||
| − | /* under banner | + | /* 2) Full-width parchment strip under the banner (prevents top gaps) */ |
linear-gradient(to bottom, var(--hf-parchment) 0, var(--hf-parchment) var(--hf-banner-h)) left top no-repeat, | linear-gradient(to bottom, var(--hf-parchment) 0, var(--hf-parchment) var(--hf-banner-h)) left top no-repeat, | ||
| − | /* left column | + | /* 3) Dark left column running full height */ |
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, | ||
| − | /* | + | /* 4) Global parchment for the rest of the page */ |
var(--hf-parchment); | var(--hf-parchment); | ||
background-size: | background-size: | ||
| − | var(--hf-banner-w) var(--hf-banner-h), /* banner */ | + | var(--hf-banner-w) var(--hf-banner-h), /* banner image size */ |
| − | 100% var(--hf-banner-h), | + | 100% var(--hf-banner-h), /* top parchment strip */ |
| − | var(--hf-leftcol-w) 100%, | + | var(--hf-leftcol-w) 100%, /* dark column width */ |
| − | auto; | + | auto; /* parchment fill */ |
| − | background-attachment: | + | background-attachment: fixed, fixed, fixed, fixed; |
| + | background-color: var(--hf-parchment); | ||
} | } | ||
| − | /* | + | /* ====== Make UI chrome transparent ====== */ |
| − | #mw-page-base, #mw-head-base, #mw-head, .vector-header-container, | + | #mw-page-base, |
| − | #mw-panel, #column-one, .mw-sidebar { background: transparent !important; } | + | #mw-head-base, |
| + | #mw-head, | ||
| + | .vector-header-container, | ||
| + | #mw-panel, | ||
| + | #column-one, | ||
| + | .mw-sidebar { | ||
| + | background: transparent !important; | ||
| + | } | ||
| − | /* | + | /* ====== Main Content Area (Parchment) ====== */ |
| − | #content, .mw-body, .vector-body .mw-body, | + | #content, |
| − | .mw-workspace-container, .mw-content-container { | + | .mw-body, |
| + | .vector-body .mw-body, | ||
| + | .mw-workspace-container, | ||
| + | .mw-content-container { | ||
background: var(--hf-parchment) !important; | background: var(--hf-parchment) !important; | ||
| + | position: relative; | ||
| + | z-index: 1; /* Ensures content overlays the background cleanly */ | ||
| + | } | ||
| + | |||
| + | /* ====== Sidebar Styling ====== */ | ||
| + | #mw-panel, | ||
| + | #column-one, | ||
| + | .mw-sidebar { | ||
| + | color: #EEEDEB !important; | ||
| + | background: transparent !important; | ||
| + | } | ||
| + | |||
| + | #mw-panel a, | ||
| + | #column-one a, | ||
| + | .mw-sidebar a { | ||
| + | color: #EEEDEB !important; | ||
| + | text-decoration: none; | ||
} | } | ||
| − | + | #mw-panel a:hover, | |
| − | #mw-panel, | + | #column-one a:hover, |
| − | + | .mw-sidebar a:hover { | |
| − | + | color: #5A65EA !important; | |
| + | text-decoration: underline; | ||
| + | } | ||
| + | |||
| + | /* ====== Optional: Slight separator between column and content ====== */ | ||
| + | body::before { | ||
| + | content: ""; | ||
| + | position: fixed; | ||
| + | left: var(--hf-leftcol-w); | ||
| + | top: 0; | ||
| + | width: 1px; | ||
| + | height: 100%; | ||
| + | background: rgba(217, 215, 209, 0.25); | ||
| + | pointer-events: none; | ||
| + | z-index: 0; | ||
| + | } | ||
Revision as of 09:47, 10 October 2025
/********************************************
* Holdfast Wiki – Modern Global Background
* Banner (top-left) + Left Column Gradient + Parchment Base
********************************************/
/* ====== Variables ====== */
:root {
--hf-banner-w: 1250px; /* Banner width */
--hf-banner-h: 150px; /* Banner height */
--hf-leftcol-w: 320px; /* Dark sidebar column width */
--hf-parchment: #E1DCCE; /* Base page color */
--hf-left-top: #2F2D2B; /* Dark gradient top */
--hf-left-bot: #1E1E1D; /* Dark gradient bottom */
}
/* ====== Base Page Background ====== */
html, body {
margin: 0 !important;
background:
/* 1) Banner image top-left */
url("/Special:FilePath/BannerImage.png") left top no-repeat,
/* 2) Full-width parchment strip under the banner (prevents top gaps) */
linear-gradient(to bottom, var(--hf-parchment) 0, var(--hf-parchment) var(--hf-banner-h)) left top no-repeat,
/* 3) Dark left column running full height */
linear-gradient(to bottom, var(--hf-left-top), var(--hf-left-bot)) left top repeat-y,
/* 4) Global parchment for the rest of the page */
var(--hf-parchment);
background-size:
var(--hf-banner-w) var(--hf-banner-h), /* banner image size */
100% var(--hf-banner-h), /* top parchment strip */
var(--hf-leftcol-w) 100%, /* dark column width */
auto; /* parchment fill */
background-attachment: fixed, fixed, fixed, fixed;
background-color: var(--hf-parchment);
}
/* ====== Make UI chrome transparent ====== */
#mw-page-base,
#mw-head-base,
#mw-head,
.vector-header-container,
#mw-panel,
#column-one,
.mw-sidebar {
background: transparent !important;
}
/* ====== Main Content Area (Parchment) ====== */
#content,
.mw-body,
.vector-body .mw-body,
.mw-workspace-container,
.mw-content-container {
background: var(--hf-parchment) !important;
position: relative;
z-index: 1; /* Ensures content overlays the background cleanly */
}
/* ====== Sidebar Styling ====== */
#mw-panel,
#column-one,
.mw-sidebar {
color: #EEEDEB !important;
background: transparent !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;
}
/* ====== Optional: Slight separator between column and content ====== */
body::before {
content: "";
position: fixed;
left: var(--hf-leftcol-w);
top: 0;
width: 1px;
height: 100%;
background: rgba(217, 215, 209, 0.25);
pointer-events: none;
z-index: 0;
}