Jump to content

MediaWiki:Common.css

From Sun Keeperverse Wiki
Revision as of 07:38, 30 October 2025 by SunKeeper (talk | contribs) (Page title readability padding)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ===== Sun Keeperverse — Vector 2022 parchment theme (clean) ===== */

/* --- Force LIGHT palette even if user/browser prefers dark --- */
html.skin-theme-clientpref-dark,
html.skin-theme-clientpref-os,
html.skin-theme-clientpref-auto {
  color-scheme: light !important;
  --background-color-base: #f4f1e6 !important;       /* page */
  --background-color-neutral: #fffdfa !important;    /* content */
  --background-color-secondary: #f8f5e9 !important;  /* cards/boxes */
  --color-base: #2b2414 !important;
  --color-base--subtle: #5b4a22 !important;
  --border-color-base: #d8caa0 !important;
}

/* Apply directly as well */
html, body { background: #f4f1e6 !important; color: #2b2414 !important; }

/* --- Main containers --- */
.vector-page, .mw-page-container, .mw-body, .mw-content-container {
  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 --- */
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 --- */
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; }

/* --- 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 --- */
.mw-body-content { padding: 0.75rem 1rem; }  /* more breathing room */
.mw-body-content p { margin: .85em 0; }
.mw-body-content ul, .mw-body-content ol { margin: .5em 0 .8em 1.6em; }

/* --- TOC --- */
#toc, .toc {
  background: #f7f1de;
  border: 1px solid #d8caa0;
  border-radius: 0;
  padding: .5em .75em;
}
#toc .toctitle { color: #5b4a22; }
#toc ul { margin-left: 1.2em; }

/* --- Tables --- */
.wikitable {
  background: #fffdf7;
  border: 1px solid #d8caa0;
  border-radius: 0;
}
.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) --- */
.infobox, .navbox, .metadata, .worldnav {
  float: right;
  clear: right;
  width: 340px;
  max-width: 42%;
  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;
}