Difference between revisions of "MediaWiki:Common.css"

From Holdfast: Nations At War
Jump to navigation Jump to search
Line 1: Line 1:
/* === Global background: banner (top-left), top strip, left column, parchment === */
+
/********************************************
:root{
+
* Holdfast Wiki – Modern Global Background
   --hf-banner-w: 1250px;   /* banner width */
+
* Banner (top-left) + Left Column Gradient + Parchment Base
   --hf-banner-h: 150px;   /* banner height */
+
********************************************/
   --hf-leftcol-w: 320px;   /* left column/sidebar width */
+
 
   --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 */
 
}
 
}
  
html, body { margin: 0 !important; }
+
/* ====== Base Page Background ====== */
 
 
 
html, body {
 
html, body {
 +
  margin: 0 !important;
 
   background:
 
   background:
     /* TOPMOST: banner patch */
+
     /* 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: full-width top strip so header color is solid */
+
     /* 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 runs down the page */
+
     /* 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,
     /* base parchment */
+
     /* 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),               /* top strip */
+
     100% var(--hf-banner-h),               /* top parchment strip */
     var(--hf-leftcol-w) 100%,             /* left column */
+
     var(--hf-leftcol-w) 100%,               /* dark column width */
     auto;
+
     auto;                                   /* parchment fill */
   background-attachment: scroll, scroll, scroll, scroll;
+
   background-attachment: fixed, fixed, fixed, fixed;
 +
  background-color: var(--hf-parchment);
 
}
 
}
  
/* keep chrome transparent so the page background shows */
+
/* ====== 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;
 +
}
  
/* content stays opaque parchment so the dark column doesn't bleed underneath */
+
/* ====== 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;
 
}
 
}
  
/* optional: readable sidebar links */
+
#mw-panel a:hover,
#mw-panel, #column-one, .mw-sidebar { color: #EEEDEB !important; }
+
#column-one a:hover,
#mw-panel a, #column-one a, .mw-sidebar a { color: #EEEDEB !important; text-decoration: none; }
+
.mw-sidebar a:hover {
#mw-panel a:hover, #column-one a:hover, .mw-sidebar a:hover { color: #5A65EA !important; text-decoration: underline; }
+
  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;
}