MediaWiki:Common.css

From Holdfast: Nations At War
Revision as of 09:45, 10 October 2025 by Xarkanoth (talk | contribs)
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 Global Background === */
:root {
  --hf-banner-w: 1250px;   /* banner width */
  --hf-banner-h: 300px;    /* banner height */
  --hf-leftcol-w: 320px;   /* sidebar width */
  --hf-parchment: #E1DCCE;
  --hf-left-top: #2F2D2B;
  --hf-left-bot: #1E1E1D;
}

/* Paint all three layers as true page backgrounds */
html, body {
  background:
    /* 1) Banner image top-left (no repeat) */
    url("/Special:FilePath/BannerImage.png") left top no-repeat,
    /* 2) Dark left column gradient running full height */
    linear-gradient(to bottom, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top repeat-y,
    /* 3) Parchment for everything else */
    var(--hf-parchment);
  background-size:
    var(--hf-banner-w) var(--hf-banner-h),  /* banner strip */
    var(--hf-leftcol-w) 100%,               /* dark column */
    auto;
  background-attachment: fixed, fixed, fixed;
  background-color: var(--hf-parchment);
}

/* Make site chrome transparent so it overlays the page background */
#mw-head,
.vector-header-container,
#mw-page-base, #mw-head-base,
#mw-panel, #column-one, .mw-sidebar {
  background: transparent !important;
}

/* Content panels stay opaque parchment */
#content, .mw-body, .vector-body .mw-body,
.mw-workspace-container, .mw-content-container {
  background: var(--hf-parchment) !important;
}

/* Sidebar text/link colors for readability */
#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;
}