Difference between revisions of "MediaWiki:Common.css"

From Holdfast: Nations At War
Jump to navigation Jump to search
Line 1: Line 1:
/* === Holdfast Banner - Left 40% of Header === */
+
/* === Holdfast: banner top-left + dark left column under sidebar/header === */
:root { --hf-banner-h: 150px; /* Adjust height as needed */
+
:root{
 +
  --hf-banner-h: 150px;   /* height of the banner strip */
 +
  --hf-leftcol-w: 40vw;  /* width of the left column (≈ 2/5 of screen) */
 +
  --hf-parchment: #E1DCCE;
 +
  --hf-left-top: #2F2D2B;
 +
  --hf-left-bot: #1E1E1D;
 +
}
  
/* Works for both Vector & Vector-2022 */
+
/* Paint the PAGE background with 3 layers:
#mw-head,
+
  1) Banner image (only across the top-left strip)
.vector-header-container {
+
  2) Dark vertical gradient column (full height under sidebar)
 +
  3) Parchment for everything else
 +
*/
 +
html, body{
 
   background:
 
   background:
    /* layer 1: Holdfast banner image */
 
 
     url("/Special:FilePath/BannerImage.png") left top no-repeat,
 
     url("/Special:FilePath/BannerImage.png") left top no-repeat,
    /* layer 2: smooth fade into page background */
+
     linear-gradient(to bottom, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top repeat-y,
     linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(225,220,206,1) 100%);
+
    var(--hf-parchment);
 
   background-size:
 
   background-size:
     40vw var(--hf-banner-h),  /* banner width = 40% of viewport */
+
     var(--hf-leftcol-w) var(--hf-banner-h),  /* banner area */
     100% var(--hf-banner-h)/* gradient width covers header */
+
     var(--hf-leftcol-w) 100%,                /* left column */
  background-position: left top, left top;
+
    auto;
   background-repeat: no-repeat, no-repeat;
+
   background-attachment:
  min-height: var(--hf-banner-h);
+
    scroll, scroll, scroll;
  border-bottom: 0;
 
 
}
 
}
  
/* remove any default color strips */
+
/* Make header/containers transparent so they overlay the page background */
#mw-page-base, #mw-head-base { background: transparent !important; }
+
#mw-head,
 +
.vector-header-container,
 +
#mw-page-base, #mw-head-base,
 +
#content, .mw-body, .vector-body .mw-body{
 +
  background: transparent !important;
 +
}
  
/* ensure the body background matches your parchment tone */
+
/* Ensure the header has enough height to show the banner strip */
body {
+
#mw-head, .vector-header-container{ min-height: var(--hf-banner-h); }
   background-color: #E1DCCE;
+
 
 +
/* Sidebar overlays the left column — keep it transparent and readable */
 +
#mw-panel, #column-one, .mw-sidebar{
 +
   background: transparent !important;
 +
  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;
 
}
 
}

Revision as of 09:37, 10 October 2025

/* === Holdfast: banner top-left + dark left column under sidebar/header === */
:root{
  --hf-banner-h: 150px;   /* height of the banner strip */
  --hf-leftcol-w: 40vw;   /* width of the left column (≈ 2/5 of screen) */
  --hf-parchment: #E1DCCE;
  --hf-left-top: #2F2D2B;
  --hf-left-bot: #1E1E1D;
}

/* Paint the PAGE background with 3 layers:
   1) Banner image (only across the top-left strip)
   2) Dark vertical gradient column (full height under sidebar)
   3) Parchment for everything else
*/
html, body{
  background:
    url("/Special:FilePath/BannerImage.png") left top no-repeat,
    linear-gradient(to bottom, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top repeat-y,
    var(--hf-parchment);
  background-size:
    var(--hf-leftcol-w) var(--hf-banner-h),  /* banner area */
    var(--hf-leftcol-w) 100%,                /* left column */
    auto;
  background-attachment:
    scroll, scroll, scroll;
}

/* Make header/containers transparent so they overlay the page background */
#mw-head,
.vector-header-container,
#mw-page-base, #mw-head-base,
#content, .mw-body, .vector-body .mw-body{
  background: transparent !important;
}

/* Ensure the header has enough height to show the banner strip */
#mw-head, .vector-header-container{ min-height: var(--hf-banner-h); }

/* Sidebar overlays the left column — keep it transparent and readable */
#mw-panel, #column-one, .mw-sidebar{
  background: transparent !important;
  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;
}