Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Forcing light parchment view
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* =========================================================
/* ===== Sun Keeperverse — Vector 2022 parchment theme ===== */
  SK NAVPAD: ALWAYS ON TOP, NEVER UNDER CITIZEN FOOTER
  Put ONLY in MediaWiki:Common.css
  ========================================================= */


body {
/* Always force the navpad to be fixed and above everything */
   background: #f4f1e6;                       /* parchment backdrop */
body.sk-navpad-on #sk-navpad,
}
body.sk-navpad-on #sk-navpad.navcell-ui,
body.sk-navpad-on .navcell-ui#sk-navpad {
   position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
 
  /* lift it above phone UI a bit */
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;


.vector-page, .mw-page-container, .mw-body, .mw-content-container {
   /* absurdly high, higher than any theme UI */
  background: #fffdfa;
   z-index: 2147483647 !important;
  border: 1px solid #d8caa0;
   box-shadow: 0 1px 3px rgba(0,0,0,.06);
   border-radius: 8px;
}


.mw-body-content, .vector-body {
   /* create a new stacking context so it cannot get trapped */
  max-width: 1100px;
   isolation: isolate !important;
   margin: 1.5rem auto;
   padding: 1.25rem 1.5rem;
}


/* Typography */
   margin: 0 !important;
body, .mw-body-content {
   font-family: "Georgia", "Book Antiqua", serif;
  color: #2f2a1e;
  line-height: 1.6;
}
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4 {
  font-family: "Georgia", "Book Antiqua", serif;
  color: #2b2414;
}
}


/* Links */
/* Reserve space so page content does not sit under it */
a, a:visited { color: #8b6d00; }
body.sk-navpad-on {
a:hover { color: #c09e2b; text-decoration: underline; }
   padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
 
/* Headings */
.mw-body h2 {
   border-bottom: 2px solid #e4d9b0;
  padding-bottom: .15rem;
  margin-top: 1.2em;
}
}


/* Tables */
/* Force any footer like thing to never sit on top of the navpad */
.wikitable {
footer,
  background: #fffdf7;
#footer,
  border: 1px solid #d8caa0;
.mw-footer,
}
.citizen-footer,
.wikitable > tr > th, .wikitable > * > tr > th {
[class*="footer"],
  background: #efe7cc;
[id*="footer"],
  border: 1px solid #d8caa0;
.citizen-ui,
  color: #2b2414;
.citizen-ui__footer,
}
.citizen-ui-footer,
.wikitable > tr > td, .wikitable > * > tr > td {
.citizen-toolbar,
   border: 1px solid #e6d9b1;
.citizen-drawer,
[class*="toolbar"],
[id*="toolbar"],
[class*="drawer"],
[id*="drawer"] {
   position: relative !important;
  z-index: 0 !important;
}
}


/* TOC */
/* If Citizen has a fixed bottom bar, keep it under everything */
#toc, .toc {
[class*="sticky"],
  background: #f7f1de;
[id*="sticky"],
  border: 1px solid #d8caa0;
[class*="bottom"],
   border-radius: 8px;
[id*="bottom"] {
   z-index: 0 !important;
}
}
#toc .toctitle { color: #5b4a22; }


/* Infobox / navbox */
/* Hide the pad when you turn it off */
.infobox, .navbox, .metadata {
@media (max-width: 759px) {
  float: right;
   body.sk-navpad-off #sk-navpad,
  clear: right;
   body.sk-navpad-off #sk-navpad.navcell-ui,
  width: 340px;
   body.sk-navpad-off .navcell-ui#sk-navpad {
  max-width: 42%;
     display: none !important;
   margin: 0 0 12px 18px;
  background: #f8f5e9;
   border: 1px solid #c6b480;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
@media (max-width: 900px) {
   .infobox, .navbox, .metadata {
     float:none;
    width:auto;
    max-width:100%;
    margin:8px auto;
   }
   }
}
/* Sidebar */
.vector-feature-zebra-design-enabled .vector-sidebar-container {
  background: transparent;
}
/* Footer */
.mw-footer {
  background: transparent;
  border-top: 1px solid #e4d9b0;
  color: #6e5d33;
}
/* ---- Force light parchment mode for Vector 2022 ---- */
/* Disable dark-mode variables that the skin injects */
html.skin-theme-clientpref-dark,
html.skin-theme-clientpref-os,
html.skin-theme-clientpref-auto {
  color-scheme: light !important;
  --background-color-base: #f4f1e6 !important;
  --background-color-neutral: #fffdfa !important;
  --background-color-secondary: #f8f5e9 !important;
  --color-base: #2b2414 !important;
  --color-base--subtle: #5b4a22 !important;
  --border-color-base: #d8caa0 !important;
}
/* Apply directly in case variables are ignored */
html,
body,
.vector-body,
.mw-body,
.mw-content-container {
  background: #f4f1e6 !important;
  color: #2b2414 !important;
}
}

Latest revision as of 07:47, 21 December 2025

/* =========================================================
   SK NAVPAD: ALWAYS ON TOP, NEVER UNDER CITIZEN FOOTER
   Put ONLY in MediaWiki:Common.css
   ========================================================= */

/* Always force the navpad to be fixed and above everything */
body.sk-navpad-on #sk-navpad,
body.sk-navpad-on #sk-navpad.navcell-ui,
body.sk-navpad-on .navcell-ui#sk-navpad {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  /* lift it above phone UI a bit */
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;

  /* absurdly high, higher than any theme UI */
  z-index: 2147483647 !important;

  /* create a new stacking context so it cannot get trapped */
  isolation: isolate !important;

  margin: 0 !important;
}

/* Reserve space so page content does not sit under it */
body.sk-navpad-on {
  padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Force any footer like thing to never sit on top of the navpad */
footer,
#footer,
.mw-footer,
.citizen-footer,
[class*="footer"],
[id*="footer"],
.citizen-ui,
.citizen-ui__footer,
.citizen-ui-footer,
.citizen-toolbar,
.citizen-drawer,
[class*="toolbar"],
[id*="toolbar"],
[class*="drawer"],
[id*="drawer"] {
  position: relative !important;
  z-index: 0 !important;
}

/* If Citizen has a fixed bottom bar, keep it under everything */
[class*="sticky"],
[id*="sticky"],
[class*="bottom"],
[id*="bottom"] {
  z-index: 0 !important;
}

/* Hide the pad when you turn it off */
@media (max-width: 759px) {
  body.sk-navpad-off #sk-navpad,
  body.sk-navpad-off #sk-navpad.navcell-ui,
  body.sk-navpad-off .navcell-ui#sk-navpad {
    display: none !important;
  }
}