Jump to content

MediaWiki:Common.css

From DEAD Wiki
Revision as of 11:15, 5 September 2025 by Luke (talk | contribs)

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.
/****************************
 * DEAD Wiki – Readability Pass (Vector 2022)
 ****************************/

/* Brand tokens (tweak these) */
:root {
  --brand: #ff6a00;   /* DEAD orange */
  --brand-2: #6a38f0; /* Accent purple */
  --text: #1b1e23;
  --muted: #5a6070;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --border: #e3e6ee;
  --link: #0b57d0;
  --link-hover: #063b8f;
  --code-bg: #0d1117;
  --code-text: #e6edf3;
}

/* Auto dark mode for folks on dark OS theme */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8eaf0;
    --muted: #b3b7c2;
    --bg: #0f131a;
    --bg-soft: #141a23;
    --border: #262c38;
    --link: #8ab4ff;
    --link-hover: #b8ccff;
    --code-bg: #0b0f16;
    --code-text: #e8f0ff;
  }
}

/* ---- Make content wider & larger (Vector 2022) ---- */
.skin-vector-2022 .mw-page-container {
  max-width: 1320px; /* wider page frame */
}
.skin-vector-2022 .mw-content-container,
.skin-vector-2022 .vector-body,
.mw-body {
  max-width: 960px;  /* wider article column */
}

/* Base type & spacing */
.mw-parser-output {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: 0.1px;
}
.mw-parser-output p { margin: 0.75em 0; }
.mw-parser-output ul, .mw-parser-output ol { margin: 0.4em 0 1em 1.4em; }

/* Headings – darker, tighter, chunkier */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 1.4em 0 0.6em;
}
.mw-parser-output h1 { font-size: 2.1rem; border: 0; }
.mw-parser-output h2 { font-size: 1.7rem; border-bottom: 2px solid var(--border); padding-bottom: .25rem; }
.mw-parser-output h3 { font-size: 1.3rem; color: var(--text); }
.mw-parser-output h4 { font-size: 1.05rem; color: var(--muted); }

/* Links – high contrast */
.mw-parser-output a {
  color: var(--link);
  text-decoration: none;
}
.mw-parser-output a:hover,
.mw-parser-output a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Table of contents */
#toc, .toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}
.tocnumber { color: var(--brand-2); font-weight: 800; }

/* Wikitables – clean & zebra’d */
.wikitable, .mw-parser-output table.wikitable {
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}
.wikitable th {
  background: var(--bg-soft);
  color: var(--text);
  padding: .6rem .8rem;
  text-align: left;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}
.wikitable td {
  padding: .55rem .8rem;
  border-top: 1px solid var(--border);
}
.wikitable tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bg-soft) 40%, var(--bg) 60%);
}

/* Responsive table scroller */
.mw-parser-output table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Infobox pattern (use class="infobox") */
.infobox, table.infobox {
  float: right;
  width: 320px;
  margin: 0 0 1rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-size: .95rem;
}
.infobox th {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--bg) 82%), var(--bg-soft));
  padding: .6rem .8rem;
}
.infobox td { padding: .55rem .8rem; border-top: 1px solid var(--border); }
.infobox caption {
  caption-side: top;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  padding: .7rem .9rem;
}

/* Code blocks & inline code */
pre, code, .mw-code, .mw-highlight pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
pre, .mw-code, .mw-highlight pre {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 12px;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: auto;
}
code {
  background: color-mix(in srgb, var(--code-bg) 75%, var(--bg) 25%);
  color: var(--code-text);
  padding: .1rem .35rem;
  border-radius: 6px;
}

/* Images / thumbs */
.thumb, .thumbinner { border: 0; background: transparent; }
.thumb img, .thumbimage, .gallerybox .thumb img { border-radius: 12px; display: block; }
.thumbcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

/* Sidebar & right rail – make muted */
#mw-panel .portal h3 { color: var(--muted); font-weight: 700; }
#mw-panel .portal .body ul { padding-left: .75rem; }
#mw-panel, #right-navigation, #p-personal { font-size: 15px; }

/* Search box visibility */
#p-search input[type="search"] {
  font-size: 16px;
  padding: .5rem .6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

/* Buttons (OOUI) */
.mw-ui-button, a.mw-ui-button {
  border-radius: 10px !important;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff !important;
  font-weight: 800;
  padding: .45rem .85rem;
}
.mw-ui-button:hover { filter: brightness(1.06); }

/* Footer */
#footer { border-top: 1px solid var(--border); margin-top: 2rem; color: var(--muted); }
#footer a { color: var(--muted); }
#footer a:hover { color: var(--link-hover); }

/* Lead paragraph a little bigger for readability */
.mw-parser-output > p:first-of-type { font-size: 1.06em; }