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
Set sitewide style, 1st revision
No edit summary
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* =========================================================
/* Keeperverse sitewide style baseline */
  SK NAVPAD: ALWAYS ON TOP, NEVER UNDER CITIZEN FOOTER
  Put ONLY in MediaWiki:Common.css
  ========================================================= */


/* Typography */
/* Always force the navpad to be fixed and above everything */
body,
body.sk-navpad-on #sk-navpad,
.mw-body,
body.sk-navpad-on #sk-navpad.navcell-ui,
#content {
body.sk-navpad-on .navcell-ui#sk-navpad {
   font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
   position: fixed !important;
   font-size: 15px;
   left: 50% !important;
   line-height: 1.6;
   transform: translateX(-50%) !important;
   color: #2b2414;
 
   background-color: #f8f5e9;
   /* 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;


/* Headings: give a bookish sans-serif weight */
   margin: 0 !important;
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
   color: #3a301a;
}
}


/* Links: subtle gold accent */
/* Reserve space so page content does not sit under it */
a, a:visited {
body.sk-navpad-on {
   color: #8b6d00;
   padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
}
a:hover {
  color: #c09e2b;
  text-decoration: underline;
}
}


/* Tables, boxes, misc background areas */
/* Force any footer like thing to never sit on top of the navpad */
pre, code, .infobox, .toc, .navbox {
footer,
   background-color: #f3efdc;
#footer,
   border-color: #c6b480;
.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;
}
}


/* Adjust layout margins slightly for readability */
/* If Citizen has a fixed bottom bar, keep it under everything */
.mw-body-content {
[class*="sticky"],
   max-width: 960px;
[id*="sticky"],
  margin: 0 auto;
[class*="bottom"],
[id*="bottom"] {
   z-index: 0 !important;
}
}


/* Optional: make worldboxes and other templates blend smoothly */
/* Hide the pad when you turn it off */
.worldbox {
@media (max-width: 759px) {
   font-family: inherit;
  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;
  }
}
}

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