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
Making the parchment darker box background the default instead of only on CTRL+F5
No edit summary
 
(18 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;
 
   /* lift it above phone UI a bit */
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;


/* Bright page canvas */
  /* absurdly high, higher than any theme UI */
html, body { background:#ffffff !important; color:#2b2414 !important; }
  z-index: 2147483647 !important;


/* Main containers: transparent so the page reads bright */
  /* create a new stacking context so it cannot get trapped */
.vector-page, .mw-page-container, .mw-body, .mw-content-container {
   isolation: isolate !important;
  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 */
   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-page-title-main, #firstHeading {
  letter-spacing:.2px; word-spacing:.3px; line-height:1.25;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4 { font-weight:700; color:#2b2414; }
/* Links: default blue, mossy-green hover, real redlinks */
a, 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 */
/* Reserve space so page content does not sit under it */
.mw-body h1, .mw-body h2 {
body.sk-navpad-on {
   border-bottom:2px solid #d6c796; /* slightly darker rule for contrast */
   padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
  padding-bottom:.45rem; margin-bottom:.6rem; margin-top:1.2em;
}
}


/* Paragraphs, lists, content padding */
/* Force any footer like thing to never sit on top of the navpad */
.mw-body-content { padding: .85rem 1.1rem; }
footer,
.mw-body-content p { margin:.9em 0; }
#footer,
.mw-body-content ul, .mw-body-content ol { margin:.55em 0 .85em 1.6em; }
.mw-footer,
 
.citizen-footer,
/* Darker parchment cards (TOC, tables, info/nav boxes) */
[class*="footer"],
:root {
[id*="footer"],
   --card-bg: #efe3c1;     /* darker parchment */
.citizen-ui,
   --card-border: #c9b172;
.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;
}
}
#toc, .toc,
.wikitable,
.infobox, .navbox, .metadata,
.worldbox, .worldnav {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
#toc, .toc { padding:.5em .75em; }
#toc .toctitle { color:#5b4a22; }
#toc ul { margin-left:1.2em; }


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


/* Generic infobox/navbox layout on the right */
/* Hide the pad when you turn it off */
.infobox, .navbox, .metadata, .worldnav {
@media (max-width: 759px) {
  float:right; clear:right; width:340px; max-width:42%; margin:0 0 12px 18px; padding:6px;
   body.sk-navpad-off #sk-navpad,
}
  body.sk-navpad-off #sk-navpad.navcell-ui,
@media (max-width:900px){
  body.sk-navpad-off .navcell-ui#sk-navpad {
   .infobox, .navbox, .metadata, .worldnav { float:none; width:auto; max-width:100%; margin:8px auto; }
    display: none !important;
  }
}
}
/* 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;
  }
}