MediaWiki:Common.css

From Holdfast: Nations At War
Revision as of 18:49, 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 System
 * Banner (top-left) + Dark Gradient Column + Parchment Base
 ********************************************/

/* ===== Variables ===== */
:root {
  --hf-banner-w: 1250px;     /* Banner width */
  --hf-banner-h: 300px;      /* Banner height */
  --hf-leftcol-w: 5000px;    /* Dark sidebar column width (background span) */
  --hf-parchment: #E1DCCE;   /* Base page color */
  --hf-left-top: #2F2D2B;    /* Gradient top color */
  --hf-left-bot: #1E1E1D;    /* Gradient bottom color */
}

/* ===== Page Background (no shifting, full overlay) ===== */
html, body {
  margin: 0 !important;
  background:
    /* 1) Holdfast banner (top-left only) */
    url("/Special:FilePath/BannerImage.png") left top no-repeat,

    /* 2) Full-width dark gradient (ensures top bar and left sidebar share tone) */
    linear-gradient(to bottom, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top repeat-y,

    /* 3) Global parchment underneath everything */
    var(--hf-parchment);
  background-size:
    var(--hf-banner-w) var(--hf-banner-h),  /* banner */
    var(--hf-leftcol-w) 100%,               /* dark column gradient */
    auto;                                  /* parchment */
  background-attachment: fixed, fixed, fixed;
  background-color: var(--hf-parchment);
  background-repeat: no-repeat, no-repeat, repeat;
}

/* ===== Transparent interface elements ===== */
#mw-page-base,
#mw-head-base,
#mw-head,
.vector-header-container,
#mw-panel,
#column-one,
.mw-sidebar {
  background: transparent !important;
}

/* ===== Opaque parchment for main content ===== */
#content,
.mw-body,
.vector-body .mw-body,
.mw-workspace-container,
.mw-content-container {
  background: var(--hf-parchment) !important;
  position: relative;
  z-index: 1;
}

/* ===== Sidebar text & link colors over dark gradient ===== */
#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: subtle divider line 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;
}

/********************************************
 * Layout Adjustments
 ********************************************/

/* Sidebar width (visual + content) */
#mw-panel,
.vector-menu,
.mw-sidebar,
#column-one {
  width: 200px !important;
}

/* Shift main content accordingly */
#content,
.mw-body,
.vector-body,
.mw-content-container {
  margin-left: 200px !important;
}

/********************************************
 * Branding: Holdfast Compass Logo
 ********************************************/
#p-logo a,
.mw-wiki-logo {
  background-image: url("/Special:FilePath/Holdfast_Logo_White_Gold_Compass.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 150px !important;
  height: 150px !important;
  display: block;
}

/* Hide default text title if it appears */
#p-logo-text,
.mw-wiki-logo-text {
  display: none !important;
}

/********************************************
 * Typography — Helvetica Neue
 ********************************************/

/* Global base font */
html, body,
.mw-body,
.vector-body,
.mw-content-text,
#content,
.vector-header-container,
.vector-menu,
.vector-menu-content,
.vector-menu-heading,
#p-logo-text,
#firstHeading,
.mw-parser-output,
.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output td,
.mw-parser-output th {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #16181D;
}

/* Headings (stronger contrast) */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
}

/* Sidebar text smaller */
#mw-panel,
.mw-sidebar,
#column-one {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 10px !important;
  line-height: 1.4;
  color: #EEEDEB !important;
}

#mw-panel a,
.mw-sidebar a,
#column-one a {
  font-size: 10px !important;
}

/* Code blocks */
code, pre, .mw-code {
  font-family: "Courier New", Courier, monospace !important;
}

/* === Left Content Bar → dark rounded card (looks like your mock) === */

/* Card container */
#mw-panel,
.mw-sidebar,
#column-one {
  /* keep your width; change if you want */
  width: 200px !important;
  box-sizing: border-box;

  /* the card look */
  background: linear-gradient(to bottom, #2F2D2B 0%, #1E1E1D 100%) !important;
  border: 1px solid rgba(217,215,209,0.20);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  padding: 14px 12px;
  margin: 12px 12px 20px;      /* small gap from edges/content */
  color: #EEEDEB !important;
}

/* Clean the internal structure so the card background shows */
#mw-panel .vector-menu,
#mw-panel .vector-menu-content,
#mw-panel .vector-menu-content-list,
#column-one .portlet,
#column-one .pBody {
  background: transparent !important;
  border: 0 !important;
}

/* Section headers (the grey bars in your mock) */
#mw-panel .portal .portal-title,
#mw-panel .vector-menu-heading,
#column-one h3,
.mw-sidebar h2 {
  background: #63635B !important;
  color: #EEEDEB !important;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 14px 4px 6px;
  font: 700 10px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: .2px;
  text-transform: none;
  border: none !important;
}

/* List reset + spacing */
#mw-panel .vector-menu-content-list,
#column-one .pBody ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
#mw-panel .vector-menu-content-list > li,
#column-one .pBody ul li {
  padding: 3px 6px;
  line-height: 1.35;
}

/* Links: compact 10px, readable, with subtle hover highlight */
#mw-panel a,
#column-one a,
.mw-sidebar a {
  display: block;
  color: #EEEDEB !important;
  text-decoration: none;
  font: 400 10px/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif;
  border-radius: 4px;
  padding: 2px 4px;
}
#mw-panel a:hover,
#column-one a:hover,
.mw-sidebar a:hover {
  color: #EEEDEB !important;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* Subtle separators between groups (optional) */
#mw-panel .portal,
#column-one .portlet {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(217,215,209,0.12);
}
#mw-panel .portal:first-child,
#column-one .portlet:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

/* Discord button styling matches the mock */
#mw-panel a.external[href*="discord"] {
  background: #5A65EA;
  color: #FFFFFF !important;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  font: 700 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  border: 1px solid rgba(0,0,0,0.15);
  margin: 6px 0 10px;
}
#mw-panel a.external[href*="discord"]:hover {
  background: #545DD9;
}

/* Keep the main content offset in step with the sidebar width */
#content,
.mw-body,
.vector-body,
.mw-content-container {
  margin-left: 200px !important;   /* match #mw-panel width */
}