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
Headings now use smooth Verdana (no serif, no excessive bold). Body remains crisp Verdana 13pt. Light background, darker parchment info boxes remain unchanged. No more dark-mode flips or heavy title rendering.
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ===== Sun Keeperverse — Bright canvas + darker parchment cards ===== */
/* =========================================================
  SK NAVPAD: ALWAYS ON TOP, NEVER UNDER CITIZEN FOOTER
  Put ONLY in MediaWiki:Common.css
  ========================================================= */


/* Force LIGHT palette */
/* Always force the navpad to be fixed and above everything */
:root {
body.sk-navpad-on #sk-navpad,
  color-scheme: light !important;
body.sk-navpad-on #sk-navpad.navcell-ui,
  --color-base: #2b2414 !important;
body.sk-navpad-on .navcell-ui#sk-navpad {
  --color-link: #36c !important;
   position: fixed !important;
  --color-link-new: #d33 !important;
   left: 50% !important;
}
   transform: translateX(-50%) !important;
 
/* Bright page canvas */
html, body {
  background: #ffffff !important;
  color: #2b2414 !important;
}
 
/* Main containers: transparent so the page reads bright */
.vector-page,
.mw-page-container,
.mw-body,
.mw-content-container {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
 
.mw-body-content,
.vector-body {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 1.25rem 1.5rem;
}
 
/* Typography: Verdana 13pt */
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;
}


/* --- Headings: Verdana, not over-bold, smooth rendering --- */
  /* lift it above phone UI a bit */
.mw-page-title-main,
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
#firstHeading,
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h1 .mw-headline,
.mw-body h2 .mw-headline,
.mw-body h3 .mw-headline,
.mw-body h4 .mw-headline {
  font-family: Verdana, Geneva, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.1px;
  line-height: 1.25;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2b2414;
}


/* Links: default blue, mossy-green hover, real redlinks */
  /* absurdly high, higher than any theme UI */
a,
   z-index: 2147483647 !important;
a:visited {
  color: var(--color-link, #36c) !important;
}
a:hover {
  color: #547c4b !important;
  text-decoration: underline;
}
a.new,
a.new:visited {
   color: var(--color-link-new, #d33) !important;
}
a.new:hover {
  color: #b00000 !important;
  text-decoration: underline;
}


/* Section heading rules */
  /* create a new stacking context so it cannot get trapped */
.mw-body h1,
   isolation: isolate !important;
.mw-body h2 {
  border-bottom: 2px solid #d6c796;
  padding-bottom: 0.45rem;
  margin-bottom: 0.6rem;
   margin-top: 1.2em;
}


/* Paragraphs, lists, content padding */
   margin: 0 !important;
.mw-body-content {
  padding: 0.85rem 1.1rem;
}
.mw-body-content p {
  margin: 0.9em 0;
}
.mw-body-content ul,
.mw-body-content ol {
   margin: 0.55em 0 0.85em 1.6em;
}
}


/* Darker parchment cards (TOC, tables, info/nav boxes) */
/* Reserve space so page content does not sit under it */
:root {
body.sk-navpad-on {
   --card-bg: #efe3c1;
   padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
  --card-border: #c9b172;
}
}


#toc,
/* Force any footer like thing to never sit on top of the navpad */
.toc,
footer,
.wikitable,
#footer,
.infobox,
.mw-footer,
.navbox,
.citizen-footer,
.metadata,
[class*="footer"],
.worldbox,
[id*="footer"],
.worldnav {
.citizen-ui,
  background: var(--card-bg);
.citizen-ui__footer,
  border: 1px solid var(--card-border);
.citizen-ui-footer,
   border-radius: 0;
.citizen-toolbar,
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
.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 {
[class*="sticky"],
   padding: 0.5em 0.75em;
[id*="sticky"],
[class*="bottom"],
[id*="bottom"] {
   z-index: 0 !important;
}
}


#toc .toctitle {
/* Hide the pad when you turn it off */
  color: #5b4a22;
@media (max-width: 759px) {
}
   body.sk-navpad-off #sk-navpad,
 
   body.sk-navpad-off #sk-navpad.navcell-ui,
#toc ul {
   body.sk-navpad-off .navcell-ui#sk-navpad {
  margin-left: 1.2em;
     display: none !important;
}
 
.wikitable th,
.wikitable td {
  padding: 0.5em 0.75em;
}
 
.wikitable > tr > th,
.wikitable > * > tr > th {
  background: #e6d7a8;
  border: 1px solid var(--card-border);
  color: #2b2414;
}
 
.wikitable > tr > td,
.wikitable > * > tr > td {
  border: 1px solid #ddc996;
}
 
/* Generic infobox/navbox layout on the right */
.infobox,
.navbox,
.metadata,
.worldnav {
  float: right;
  clear: right;
  width: 340px;
  max-width: 42%;
  margin: 0 0 12px 18px;
  padding: 6px;
}
 
@media (max-width: 900px) {
   .infobox,
   .navbox,
   .metadata,
  .worldnav {
     float: none;
    width: auto;
    max-width: 100%;
    margin: 8px auto;
   }
   }
}
/* Titlebar spacing */
.vector-page-titlebar {
  padding: 6px 0;
}
/* Sidebar and footer stay neutral on bright canvas */
.vector-feature-zebra-design-enabled .vector-sidebar-container {
  background: transparent;
}
.mw-footer {
  background: transparent;
  border-top: 1px solid #d6c796;
  color: #6e5d33;
}
}

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