MediaWiki:Common.css
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/********************************************
* 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;
}