Difference between revisions of "MediaWiki:Common.css"

From Holdfast: Nations At War
Jump to navigation Jump to search
Line 1: Line 1:
 
/********************************************
 
/********************************************
  * Holdfast Wiki – Modern Global Background
+
  * Holdfast Wiki Global Background System
  * Banner (top-left) + Left Column Gradient + Parchment Base
+
  * Banner (top-left) + Dark Gradient Column + Parchment Base
 
  ********************************************/
 
  ********************************************/
  
/* ====== Variables ====== */
+
/* ===== Variables ===== */
 
:root {
 
:root {
 
   --hf-banner-w: 1250px;    /* Banner width */
 
   --hf-banner-w: 1250px;    /* Banner width */
Line 10: Line 10:
 
   --hf-leftcol-w: 320px;    /* Dark sidebar column width */
 
   --hf-leftcol-w: 320px;    /* Dark sidebar column width */
 
   --hf-parchment: #E1DCCE;  /* Base page color */
 
   --hf-parchment: #E1DCCE;  /* Base page color */
   --hf-left-top: #2F2D2B;    /* Dark gradient top */
+
   --hf-left-top: #2F2D2B;    /* Gradient top color */
   --hf-left-bot: #1E1E1D;    /* Dark gradient bottom */
+
   --hf-left-bot: #1E1E1D;    /* Gradient bottom color */
 
}
 
}
  
/* ====== Base Page Background ====== */
+
/* ===== Page Background (no shifting, full overlay) ===== */
 
html, body {
 
html, body {
 
   margin: 0 !important;
 
   margin: 0 !important;
 
   background:
 
   background:
     /* 1) Banner image top-left */
+
     /* 1) Holdfast banner (top-left only) */
 
     url("/Special:FilePath/BannerImage.png") left top no-repeat,
 
     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,
+
     /* 2) Full-width dark gradient (ensures top bar and left sidebar share tone) */
    /* 3) Dark left column running full height */
+
     linear-gradient(to bottom, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top repeat-y,
     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 */
+
     /* 3) Global parchment underneath everything */
 
     var(--hf-parchment);
 
     var(--hf-parchment);
 
   background-size:
 
   background-size:
     var(--hf-banner-w) var(--hf-banner-h),  /* banner image size */
+
     var(--hf-banner-w) var(--hf-banner-h),  /* banner */
    100% var(--hf-banner-h),                /* top parchment strip */
+
     var(--hf-leftcol-w) 100%,             /* dark column gradient */
     var(--hf-leftcol-w) 100%,               /* dark column width */
+
     auto;                                 /* parchment */
     auto;                                   /* parchment fill */
+
   background-attachment: fixed, fixed, fixed;
   background-attachment: fixed, fixed, fixed, fixed;
 
 
   background-color: var(--hf-parchment);
 
   background-color: var(--hf-parchment);
 +
  background-repeat: no-repeat, no-repeat, repeat;
 
}
 
}
  
/* ====== Make UI chrome transparent ====== */
+
/* ===== Transparent interface elements ===== */
 
#mw-page-base,
 
#mw-page-base,
 
#mw-head-base,
 
#mw-head-base,
Line 46: Line 46:
 
}
 
}
  
/* ====== Main Content Area (Parchment) ====== */
+
/* ===== Opaque parchment for main content ===== */
 
#content,
 
#content,
 
.mw-body,
 
.mw-body,
Line 54: Line 54:
 
   background: var(--hf-parchment) !important;
 
   background: var(--hf-parchment) !important;
 
   position: relative;
 
   position: relative;
   z-index: 1; /* Ensures content overlays the background cleanly */
+
   z-index: 1;
 
}
 
}
  
/* ====== Sidebar Styling ====== */
+
/* ===== Sidebar text & link colors over dark gradient ===== */
 
#mw-panel,
 
#mw-panel,
 
#column-one,
 
#column-one,
Line 79: Line 79:
 
}
 
}
  
/* ====== Optional: Slight separator between column and content ====== */
+
/* ===== Optional: subtle divider line between column and content ===== */
 
body::before {
 
body::before {
 
   content: "";
 
   content: "";

Revision as of 09:48, 10 October 2025

/********************************************
 * Holdfast Wiki — Global Background System
 * Banner (top-left) + Dark Gradient Column + 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;    /* 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;
}