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 + dark left column + parchment === */
+
/* === Holdfast Wiki Global Background === */
:root{
+
:root {
   --hf-banner-h: 250px;   /* banner height */
+
  --hf-banner-w: 1250px;  /* banner width */
   --hf-leftcol-w: 1000px; /* left column width (match sidebar ~300–360px) */
+
   --hf-banner-h: 150px;   /* banner height */
 +
   --hf-leftcol-w: 320px;   /* sidebar width */
 
   --hf-parchment: #E1DCCE;
 
   --hf-parchment: #E1DCCE;
 
   --hf-left-top: #2F2D2B;
 
   --hf-left-top: #2F2D2B;
Line 8: Line 9:
 
}
 
}
  
/* Page background has THREE layers; nothing else gets sized/shifted */
+
/* Paint all three layers as true page backgrounds */
 
html, body {
 
html, body {
 
   background:
 
   background:
     url("/Special:FilePath/BannerImage.png") left top no-repeat,                   /* 1) banner strip */
+
    /* 1) Banner image top-left (no repeat) */
     linear-gradient(to bottom, var(--hf-left-top), var(--hf-left-bot)) left top repeat-y, /* 2) dark column */
+
     url("/Special:FilePath/BannerImage.png") left top no-repeat,
     var(--hf-parchment);                                                           /* 3) parchment base */
+
    /* 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:
 
   background-size:
     var(--hf-leftcol-w) var(--hf-banner-h),  /* banner only in left column area */
+
     var(--hf-banner-w) var(--hf-banner-h),  /* banner strip */
     var(--hf-leftcol-w) 100%,               /* column runs full height */
+
     var(--hf-leftcol-w) 100%,               /* dark column */
 
     auto;
 
     auto;
   background-attachment: fixed, fixed, fixed; /* true page background */
+
   background-attachment: fixed, fixed, fixed;
 +
  background-color: var(--hf-parchment);
 
}
 
}
  
/* Header + sidebar should NOT paint their own backgrounds */
+
/* Make site chrome transparent so it overlays the page background */
 
#mw-head,
 
#mw-head,
 
.vector-header-container,
 
.vector-header-container,
Line 29: Line 34:
 
}
 
}
  
/* Main content stays opaque parchment so the dark column doesn't bleed under it */
+
/* Content panels stay opaque parchment */
 
#content, .mw-body, .vector-body .mw-body,
 
#content, .mw-body, .vector-body .mw-body,
 
.mw-workspace-container, .mw-content-container {
 
.mw-workspace-container, .mw-content-container {
Line 35: Line 40:
 
}
 
}
  
/* (Optional) Sidebar link colors over the dark column */
+
/* Sidebar text/link colors for readability */
 
#mw-panel, #column-one, .mw-sidebar { color: #EEEDEB !important; }
 
#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, #column-one a, .mw-sidebar a {
#mw-panel a:hover, #column-one a:hover, .mw-sidebar a:hover { color: #5A65EA !important; text-decoration: underline; }
+
  color: #EEEDEB !important; text-decoration: none;
 +
}
 +
#mw-panel a:hover, #column-one a:hover, .mw-sidebar a:hover {
 +
  color: #5A65EA !important; text-decoration: underline;
 +
}

Revision as of 09:43, 10 October 2025

/* === Holdfast Wiki Global Background === */
:root {
  --hf-banner-w: 1250px;   /* banner width */
  --hf-banner-h: 150px;    /* 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;
}