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
Page title readability padding
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ===== Sun Keeperverse — Vector 2022 parchment theme (clean) ===== */
/* =========================================================
  SK NAVPAD: ALWAYS ON TOP, NEVER UNDER CITIZEN FOOTER
  Put ONLY in MediaWiki:Common.css
  ========================================================= */


/* --- Force LIGHT palette even if user/browser prefers dark --- */
/* Always force the navpad to be fixed and above everything */
html.skin-theme-clientpref-dark,
body.sk-navpad-on #sk-navpad,
html.skin-theme-clientpref-os,
body.sk-navpad-on #sk-navpad.navcell-ui,
html.skin-theme-clientpref-auto {
body.sk-navpad-on .navcell-ui#sk-navpad {
   color-scheme: light !important;
   position: fixed !important;
   --background-color-base: #f4f1e6 !important;       /* page */
   left: 50% !important;
   --background-color-neutral: #fffdfa !important;   /* content */
   transform: translateX(-50%) !important;
   --background-color-secondary: #f8f5e9 !important;  /* cards/boxes */
 
   --color-base: #2b2414 !important;
   /* lift it above phone UI a bit */
  --color-base--subtle: #5b4a22 !important;
   bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  --border-color-base: #d8caa0 !important;
}


/* Apply directly as well */
  /* absurdly high, higher than any theme UI */
html, body { background: #f4f1e6 !important; color: #2b2414 !important; }
  z-index: 2147483647 !important;


/* --- Main containers --- */
   /* create a new stacking context so it cannot get trapped */
.vector-page, .mw-page-container, .mw-body, .mw-content-container {
   isolation: isolate !important;
  background: #fffdfa;
  border: 1px solid #d8caa0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
   border-radius: 0;              /* square corners site-wide */
}
.mw-body-content, .vector-body {
  max-width: 1100px;
  margin: 1.5rem auto;
   padding: 1.25rem 1.5rem;       /* base padding; more below */
}


/* --- Typography: Verdana 13pt --- */
   margin: 0 !important;
body,
.mw-body-content,
.vector-body,
.mw-content-ltr,
.mw-parser-output {
   font-family: Verdana, Geneva, sans-serif !important;
  font-size: 13pt !important;
  line-height: 1.55;
  color: #2b2414;
}
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4 {
  font-family: Verdana, Geneva, sans-serif !important;
  font-weight: 700;
  color: #2b2414;
}
}


/* --- Links: default blue, mossy-green hover, keep redlinks --- */
/* Reserve space so page content does not sit under it */
a, a:visited { color: var(--color-link, #36c) !important; }
body.sk-navpad-on {
a:hover { color: #547c4b !important; text-decoration: underline; }
   padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
a.new, a.new:visited { color: var(--color-link-new, #d33) !important; }
a.new:hover { color: #b00000 !important; text-decoration: underline; }
 
/* --- Headings and title bar spacing --- */
.mw-body h2 {
  border-bottom: 2px solid #e4d9b0;
   padding-bottom: .45rem;
  margin-top: 1.2em;
  margin-bottom: .6rem;
}
.mw-body h1 {
  border-bottom: 2px solid #e4d9b0;
  padding-bottom: .45rem;
  margin-bottom: .6rem;
}
.vector-page-titlebar {            /* "Page | Discussion" row */
  padding: 6px 0;
}
}


/* --- Paragraphs, lists, content padding --- */
/* Force any footer like thing to never sit on top of the navpad */
.mw-body-content { padding: 0.75rem 1rem; }  /* more breathing room */
footer,
.mw-body-content p { margin: .85em 0; }
#footer,
.mw-body-content ul, .mw-body-content ol { margin: .5em 0 .8em 1.6em; }
.mw-footer,
 
.citizen-footer,
/* --- TOC --- */
[class*="footer"],
#toc, .toc {
[id*="footer"],
   background: #f7f1de;
.citizen-ui,
  border: 1px solid #d8caa0;
.citizen-ui__footer,
   border-radius: 0;
.citizen-ui-footer,
  padding: .5em .75em;
.citizen-toolbar,
.citizen-drawer,
[class*="toolbar"],
[id*="toolbar"],
[class*="drawer"],
[id*="drawer"] {
   position: relative !important;
   z-index: 0 !important;
}
}
#toc .toctitle { color: #5b4a22; }
#toc ul { margin-left: 1.2em; }


/* --- Tables --- */
/* If Citizen has a fixed bottom bar, keep it under everything */
.wikitable {
[class*="sticky"],
  background: #fffdf7;
[id*="sticky"],
  border: 1px solid #d8caa0;
[class*="bottom"],
  border-radius: 0;
[id*="bottom"] {
}
   z-index: 0 !important;
.wikitable th, .wikitable td { padding: .5em .75em; }
.wikitable > tr > th, .wikitable > * > tr > th {
  background: #efe7cc;
  border: 1px solid #d8caa0;
  color: #2b2414;
}
.wikitable > tr > td, .wikitable > * > tr > td {
   border: 1px solid #e6d9b1;
}
}


/* --- Generic infobox/navbox (and your templates align to this) --- */
/* Hide the pad when you turn it off */
.infobox, .navbox, .metadata, .worldnav {
@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: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
   padding: 6px;
}
@media (max-width: 900px) {
  .infobox, .navbox, .metadata, .worldnav {
     float: none;
    width: auto;
    max-width: 100%;
    margin: 8px auto;
   }
   }
}
/* --- Sidebar + footer polish --- */
.vector-feature-zebra-design-enabled .vector-sidebar-container { background: transparent; }
.mw-footer {
  background: transparent;
  border-top: 1px solid #e4d9b0;
  color: #6e5d33;
}
/* Page title readability */
.mw-page-title-main,
#firstHeading {
  letter-spacing: 0.2px;
  word-spacing: 0.3px;
  line-height: 1.25;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
}

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;
  }
}