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
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ===== Sun Keeperverse – clean, mobile-first ===== */
/* =========================================================
  SK NAVPAD: ALWAYS ON TOP, NEVER UNDER CITIZEN FOOTER
  Put ONLY in MediaWiki:Common.css
  ========================================================= */


/* Stop browsers from auto-resizing text */
/* Always force the navpad to be fixed and above everything */
html {
body.sk-navpad-on #sk-navpad,
  -webkit-text-size-adjust: 100%;
body.sk-navpad-on #sk-navpad.navcell-ui,
  text-size-adjust: 100%;
body.sk-navpad-on .navcell-ui#sk-navpad {
}
   position: fixed !important;
 
   left: 50% !important;
/* Colors */
   transform: translateX(-50%) !important;
:root {
  color-scheme: light !important;
  --color-base: #2b2414;
  --color-link: #36c;
  --color-link-new: #d33;
  --card-bg: #efe3c1;
  --card-border: #c9b172;
}
 
/* Base canvas */
html, body {
   margin: 0;
   padding: 0;
  background: #ffffff !important;
   color: var(--color-base) !important;
}


/* Main content box */
  /* lift it above phone UI a bit */
#content,
   bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
.mw-body,
.mw-body-content,
.vector-body {
   box-sizing: border-box;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}


/* Typography */
  /* absurdly high, higher than any theme UI */
body,
   z-index: 2147483647 !important;
.mw-body-content,
.vector-body,
.mw-content-ltr,
.mw-parser-output {
   font-family: Verdana, Geneva, sans-serif !important;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-base);
}


/* Headings */
  /* create a new stacking context so it cannot get trapped */
.mw-page-title-main,
   isolation: isolate !important;
#firstHeading,
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4 {
   font-family: Verdana, Geneva, sans-serif !important;
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.25;
  color: var(--color-base);
}


.mw-body h1,
   margin: 0 !important;
.mw-body h2 {
  border-bottom: 2px solid #d6c796;
  padding-bottom: 0.45rem;
   margin-bottom: 0.6rem;
  margin-top: 1.2em;
}
}


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


a:hover {
/* Force any footer like thing to never sit on top of the navpad */
   color: #547c4b !important;
footer,
   text-decoration: underline;
#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;
}
}


a.new,
/* If Citizen has a fixed bottom bar, keep it under everything */
a.new:visited {
[class*="sticky"],
   color: var(--color-link-new) !important;
[id*="sticky"],
[class*="bottom"],
[id*="bottom"] {
   z-index: 0 !important;
}
}


a.new:hover {
/* Hide the pad when you turn it off */
  color: #b00000 !important;
@media (max-width: 759px) {
}
   body.sk-navpad-off #sk-navpad,
 
   body.sk-navpad-off #sk-navpad.navcell-ui,
/* Paragraphs & lists */
   body.sk-navpad-off .navcell-ui#sk-navpad {
.mw-body-content p {
   margin: 0.9em 0;
}
 
.mw-body-content ul,
.mw-body-content ol {
  margin: 0.55em 0 0.85em 1.6em;
}
 
/* Parchment cards */
#toc,
.toc,
.wikitable,
.infobox,
.navbox,
.metadata,
.worldbox,
.worldnav {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
 
/* TOC */
#toc,
.toc {
   padding: 0.5em 0.75em;
}
 
#toc .toctitle {
  color: #5b4a22;
}
 
/* Tables */
.wikitable th,
.wikitable td {
  padding: 0.5em 0.75em;
}
 
.wikitable > tr > th,
.wikitable > * > tr > th {
  background: #e6d7a8;
  border: 1px solid var(--card-border);
  color: var(--color-base);
}
 
.wikitable > tr > td,
.wikitable > * > tr > td {
   border: 1px solid #ddc996;
}
 
/* Infobox / navbox on desktop: float right */
.infobox,
.navbox,
.metadata,
.worldnav {
  float: right;
  clear: right;
  width: 320px;
  max-width: 40%;
  margin: 0 0 12px 18px;
  padding: 6px;
  box-sizing: border-box;
}
 
/* Footer */
.mw-footer {
  background: transparent;
  border-top: 1px solid #d6c796;
  color: #6e5d33;
  padding: 0.75rem 1.5rem;
}
 
/* ===========================
  MOBILE OVERRIDES
  =========================== */
 
/* Under 900px: no left sidebar, content full width, cards stacked */
@media (max-width: 900px) {
  /* hide classic Vector sidebar */
  .mw-panel {
     display: none !important;
     display: none !important;
   }
   }
  #content,
  .mw-body,
  .mw-body-content,
  .vector-body {
    max-width: 100% !important;
    margin: 0.75rem auto !important;
    padding: 0.75rem 0.9rem !important;
  }
  /* stack cards */
  .infobox,
  .navbox,
  .metadata,
  .worldnav {
    float: none !important;
    clear: both !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0.5rem 0 1rem 0 !important;
  }
  /* TOC full-width */
  #toc,
  .toc {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 1rem 0 !important;
    box-sizing: border-box;
  }
  /* tables scroll horizontally instead of blowing layout */
  .mw-body-content .wikitable {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
/* Under 600px: slightly smaller text & tighter headings */
@media (max-width: 600px) {
  body,
  .mw-body-content,
  .vector-body,
  .mw-content-ltr,
  .mw-parser-output {
    font-size: 14px;
    line-height: 1.5;
  }
  #firstHeading,
  .mw-page-title-main {
    font-size: 1.4em !important;
  }
  .mw-body h1 {
    font-size: 1.3em !important;
  }
  .mw-body h2 {
    font-size: 1.15em !important;
  }
  .mw-body-content ul,
  .mw-body-content ol {
    margin-left: 1.2em;
  }
}
/* ===============================
  CITIZEN / CODEX BUTTON OVERRIDE
  =============================== */
/* All main buttons under Citizen skin (incl. Edit) */
html.skin-citizen button,
html.skin-citizen .cdx-button,
html.skin-citizen .cdx-button--weight-primary,
html.skin-citizen .cdx-button--action-progressive,
html.skin-citizen .citizen-header__button,
html.skin-citizen .citizen-button--progressive {
  background: #e6d7a8 !important;          /* parchment */
  border: 1px solid #c9b172 !important;      /* parchment border */
  color: #2b2414 !important;                /* dark text */
  fill: #2b2414 !important;
}
/* Hover state */
html.skin-citizen button:hover,
html.skin-citizen .cdx-button:hover,
html.skin-citizen .cdx-button--weight-primary:hover,
html.skin-citizen .cdx-button--action-progressive:hover,
html.skin-citizen .citizen-header__button:hover,
html.skin-citizen .citizen-button--progressive:hover {
  background: #f2e6c3 !important;          /* lighter parchment */
  border-color: #b89f64 !important;
  color: #2b2414 !important;
}
/* Kill any neon focus halo */
html.skin-citizen .cdx-button:focus,
html.skin-citizen .citizen-header__button:focus,
html.skin-citizen .citizen-button--progressive:focus {
  box-shadow: 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;
  }
}