Jump to content

MediaWiki:Common.css

From MindAttic Docs
Revision as of 19:40, 29 November 2026 by Docs Sync (talk | contribs) (MindAttic.Docs.Wiki deploy)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/* MindAttic Cyberspace theme for MediaWiki (Vector 2022): the mindattic.com palette, the Outfit font from
   MindAttic.Components@4234f880055d3365651fcda2ca15ef6307c0d68a. Common.js mounts the Cyberspace backdrop; this file only paints the skin. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/mindattic/MindAttic.Components@4234f880055d3365651fcda2ca15ef6307c0d68a/web/components/OutfitFont/fonts/outfit-latin.woff2') format('woff2'); }

:root, html, html.skin-theme-clientpref-day, html.skin-theme-clientpref-night, html.skin-theme-clientpref-os {
  color-scheme: dark;
  --ma-bg: #0d1117; --ma-bg2: #13161b; --ma-bg3: #1a1e25; --ma-border: #2a2f3a;
  --ma-text: #e8eaf0; --ma-text2: #9aa0b0; --ma-text3: #5c6275;
  --ma-red: #e5484d; --ma-red-hi: #ff6b70; --ma-neon: #ff0033;
  --background-color-base: var(--ma-bg);
  --background-color-base-fixed: var(--ma-bg);
  --background-color-neutral: var(--ma-bg3);
  --background-color-neutral-subtle: var(--ma-bg2);
  --background-color-interactive: var(--ma-bg3);
  --background-color-interactive-subtle: var(--ma-bg2);
  /* Quiet buttons (the header's hamburger, menus, dropdowns): Vector's light hover/active greys hid their icons. */
  --background-color-interactive--hover: rgba(229, 72, 77, 0.14);
  --background-color-interactive--active: rgba(229, 72, 77, 0.24);
  --background-color-interactive-subtle--hover: rgba(229, 72, 77, 0.14);
  --background-color-interactive-subtle--active: rgba(229, 72, 77, 0.24);
  --background-color-button-quiet--hover: rgba(229, 72, 77, 0.14);
  --background-color-button-quiet--active: rgba(229, 72, 77, 0.24);
  --background-color-disabled-subtle: var(--ma-bg2);
  --background-color-progressive-subtle: #2a1214;
  --background-color-backdrop-light: rgba(13, 17, 23, 0.65);
  --color-base: var(--ma-text);
  --color-emphasized: #ffffff;
  --color-subtle: var(--ma-text2);
  --color-placeholder: var(--ma-text3);
  --color-disabled: var(--ma-text3);
  --color-progressive: var(--ma-red-hi);
  --color-progressive--hover: #ff9094;
  --color-progressive--active: var(--ma-red);
  --color-visited: var(--ma-red);
  --color-destructive: #8f95a3;
  --color-link-red: #8f95a3;
  --color-link-red--visited: #7d8391;
  --border-color-base: var(--ma-border);
  --border-color-subtle: var(--ma-border);
  --border-color-muted: var(--ma-border);
  --border-color-progressive: var(--ma-red);
}

html, body { background: var(--ma-bg); color: var(--ma-text); }
/* Outfit for everything (owner, PRS-T1037), the wiki's own heading serif and form controls included. */
html, body, body *, input, button, select, textarea, .mw-body h1, .mw-body h2, .mw-body .mw-heading1, .mw-body .mw-heading2 {
  font-family: 'Outfit', system-ui, sans-serif; }
pre, code, kbd, samp, tt, .mw-code { font-family: monospace, monospace; }
.mw-page-container { background: transparent; }
.mw-page-container-inner, .vector-header-container .mw-header { position: relative; z-index: 1; }
.mw-body, .vector-header-container .mw-header {
  background: rgba(13, 17, 23, 0.9); }
/* One look: Vector's Automatic/Light/Dark colour choice is off in LocalSettings and hidden here too (PRS-T1051). */
#skin-client-prefs-skin-theme, .skin-client-prefs-skin-theme { display: none !important; }
/* The side columns and the footer let the Cyberspace backdrop through (PRS-T1050); only the article stays solid. */
.vector-column-start, .vector-column-start *, .vector-column-end, .vector-column-end *,
.mw-footer-container, .mw-footer-container * { background-color: transparent !important; background-image: none !important; }
.mw-body { padding: 0 1rem 1rem; border: 1px solid var(--ma-border); border-radius: 4px; }
.mw-body h1, .mw-body .mw-heading1, #firstHeading { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; color: #fff; }
.mw-body h2, .mw-body .mw-heading2 { font-family: 'Outfit', system-ui, sans-serif; color: var(--ma-red-hi); border-bottom-color: var(--ma-border); }
.mw-body h3, .mw-body .mw-heading3 { color: var(--ma-text); }
/* The universe's logo (LocalSettings $wgLogos) already spells the name, so the text wordmark goes. */
.mw-logo-wordmark { display: none; }
.mw-logo-icon { width: auto; height: 46px; filter: drop-shadow(0 0 6px rgba(255, 0, 51, 0.35)); }
a { color: var(--color-progressive); }
a:visited { color: var(--color-visited); }
a.new, a.new:visited { color: var(--color-link-red); }
.mw-parser-output a.external { color: var(--ma-red-hi); }
.toc, .mw-parser-output .toc, .vector-toc, .catlinks, .mw-message-box, table.wikitable, .wikitable > tr > th, .wikitable > * > tr > th {
  background: var(--ma-bg2); border-color: var(--ma-border); color: var(--ma-text); }
.wikitable > * > tr > td { border-color: var(--ma-border); }
pre, code { background: var(--ma-bg3); color: var(--ma-text); border-color: var(--ma-border); }
::selection { background: rgba(229, 72, 77, 0.45); }

/* prose2wiki infobox */
.prose-infobox { float: right; clear: right; width: 22em; margin: 0 0 1em 1em; border: 1px solid var(--ma-border);
  border-top: 2px solid var(--ma-neon); background: var(--ma-bg2); font-size: 88%; box-shadow: 0 0 18px rgba(255, 0, 51, 0.12); }
.prose-infobox-title { font-size: 125%; font-weight: 600; text-align: center; padding: .5em .4em .2em; color: #fff; }
.prose-infobox-image { text-align: center; padding: .2em .4em .4em; }
/* Spoilers (PRS-T1068): hidden until the reader marks the book read (or clicks this one). Without JavaScript they show. */
html.client-js .prose-spoiler:not(.prose-spoiler-read):not(.prose-spoiler-shown) {
  filter: blur(6px); cursor: pointer; user-select: none; transition: filter .2s ease;
  background: rgba(229, 72, 77, 0.06); border-radius: 3px; }
html.client-js .prose-spoiler:not(.prose-spoiler-read):not(.prose-spoiler-shown) a { pointer-events: none; }
html.client-js div.prose-spoiler:not(.prose-spoiler-read):not(.prose-spoiler-shown) { position: relative; }
.prose-spoiler-shown { outline: 1px dashed rgba(229, 72, 77, .35); outline-offset: 2px; border-radius: 2px; }
.prose-reading-panel { position: fixed; z-index: 40; top: 64px; right: 18px; width: 340px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 96px); overflow: auto; padding: .8em 1em 1em; background: rgba(13, 17, 23, .97); color: var(--ma-text);
  border: 1px solid var(--ma-border); border-top: 2px solid var(--ma-neon); border-radius: 4px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.prose-reading-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.1em; }
.prose-reading-close { background: none; border: 0; color: var(--ma-text2); font-size: 1.4em; cursor: pointer; }
.prose-reading-note { color: var(--ma-text2); font-size: .9em; margin: .3em 0 .6em; }
.prose-reading-list label { display: block; padding: .25em 0; cursor: pointer; }
.prose-reading-list small { color: var(--ma-text3); margin-left: .3em; }
.prose-reading-actions { display: flex; gap: .5em; margin-top: .7em; }
.prose-reading-actions button, .prose-read-toggle { padding: .35em .9em; border: 1px solid var(--ma-border); border-radius: 3px;
  background: var(--ma-bg2); color: var(--ma-text); cursor: pointer; font: inherit; }
.prose-read-toggle:hover, .prose-reading-actions button:hover { border-color: var(--ma-red); }
.prose-book-slug { display: none; }
/* Timeline (PRS-T1069): vertical, oldest on top */
.prose-tl-bar { position: sticky; top: 0; z-index: 5; padding: .5em 0; background: rgba(13, 17, 23, .95); }
.prose-tl-pick summary { display: inline-block; cursor: pointer; padding: .35em .9em; border: 1px solid var(--ma-border);
  border-radius: 3px; background: var(--ma-bg2); list-style: none; }
.prose-tl-pick summary::-webkit-details-marker { display: none; }
.prose-tl-pick summary::after { content: " \25BE"; color: var(--ma-text2); }
.prose-tl-pick[open] summary { border-color: var(--ma-red); }
.prose-tl-menu { position: absolute; margin-top: .3em; max-height: 60vh; overflow: auto; min-width: 300px; padding: .6em .8em;
  background: rgba(13, 17, 23, .98); border: 1px solid var(--ma-border); border-top: 2px solid var(--ma-neon); border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.prose-tl-menu label { display: block; padding: .2em 0; cursor: pointer; }
.prose-tl-menu small, .prose-tl small { color: var(--ma-text3); }
.prose-tl-menu-actions { display: flex; gap: .4em; margin-bottom: .4em; }
.prose-tl-menu-actions button { padding: .2em .7em; border: 1px solid var(--ma-border); border-radius: 3px; background: var(--ma-bg2);
  color: var(--ma-text); cursor: pointer; font: inherit; }
ol.prose-tl { list-style: none; margin: 1em 0 0 .6em; padding: 0 0 0 1.2em; border-left: 2px solid rgba(229, 72, 77, .45); }
.prose-tl-year { margin: 1.2em 0 .4em -1.9em; font-weight: 700; font-size: 1.15em; color: var(--ma-red-hi); }
.prose-tl-year::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .6em; border-radius: 50%;
  background: var(--ma-neon); box-shadow: 0 0 10px rgba(255, 0, 51, .7); vertical-align: middle; }
.prose-tl-item { position: relative; display: flex; gap: .9em; padding: .25em 0; }
.prose-tl-item::before { content: ""; position: absolute; left: -1.62em; top: .75em; width: .45em; height: .45em; border-radius: 50%;
  background: var(--ma-text2); }
.prose-tl-backstory::before { background: var(--ma-text3); }
.prose-tl-when { flex: 0 0 7.5em; color: var(--ma-text2); font-variant-numeric: tabular-nums; }
.prose-tl-backstory .prose-tl-what { color: var(--ma-text2); }
/* Story checks (PRS-T1067): pacing bars, the book page's "how it is built" line */
.prose-pacing td:nth-child(3) { width: 30%; min-width: 120px; }
.prose-bar { height: .7em; border-radius: 2px; background: linear-gradient(90deg, var(--ma-red), var(--ma-red-hi)); box-shadow: 0 0 8px rgba(255, 0, 51, .35); }
.prose-craft { color: var(--ma-text2); margin: .4em 0 .8em; }
.prose-plants td, .prose-pacing td { vertical-align: top; }
.prose-infobox-image img { max-width: 100%; height: auto; border-radius: 3px; }
.prose-infobox-repo, .prose-infobox-aliases { text-align: center; padding: 0 .4em .4em; color: var(--ma-text2); font-style: italic; }
.prose-infobox-aliases:empty { display: none; }
.prose-infobox-rows { width: 100%; border-collapse: collapse; }
.prose-infobox-rows th { text-align: left; vertical-align: top; padding: .3em .5em; width: 35%; color: var(--ma-text2); font-weight: 500;
  border-top: 1px solid var(--ma-border); }
.prose-infobox-rows td { vertical-align: top; padding: .3em .5em; border-top: 1px solid var(--ma-border); }
@media (max-width: 720px) { .prose-infobox { float: none; width: auto; margin: 0 0 1em 0; } }

/* ---- the books ------------------------------------------------------------------------------------------------ */
.prose-bookpage { display: flex; gap: 2em; align-items: flex-start; margin: 1em 0 1.5em; }
.prose-bookpage-cover img, .prose-shelf-item img { display: block; border-radius: 3px; box-shadow: 0 0 0 1px var(--ma-border), 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 0, 51, 0.12); }
.prose-bookpage-info { flex: 1; min-width: 0; }
.prose-book-subtitle { font-size: 1.15em; color: var(--ma-text2); font-style: italic; }
.prose-book-meta { color: var(--ma-text3); font-size: .9em; text-transform: uppercase; letter-spacing: .06em; margin: .2em 0 .4em; }
.prose-read a { display: inline-block; margin: .8em 0 .4em; padding: .55em 1.3em; border: 1px solid var(--ma-red); border-radius: 3px;
  background: rgba(229, 72, 77, 0.12); color: #fff !important; font-weight: 600; letter-spacing: .03em; text-decoration: none; }
.prose-read a:hover { background: rgba(229, 72, 77, 0.3); box-shadow: 0 0 16px rgba(255, 0, 51, 0.35); }
.prose-downloads { margin-top: .6em; color: var(--ma-text2); }
.prose-dl { display: inline-block; margin: .2em .5em .2em 0; padding: .15em .6em; border: 1px solid var(--ma-border); border-radius: 3px; background: var(--ma-bg2); }
.prose-dl small { margin-left: .45em; color: var(--ma-text3); }
.prose-toc ol { columns: 1; }
.prose-booknav { color: var(--ma-text2); }
.prose-cover-blank { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .6em; padding: 1em; box-sizing: border-box;
  text-align: center; border-radius: 3px; background: radial-gradient(ellipse at 50% 30%, #3a0d12 0%, #13161b 70%);
  box-shadow: 0 0 0 1px var(--ma-border), 0 8px 28px rgba(0, 0, 0, 0.55); }
.prose-cover-blank-u { color: var(--ma-neon); letter-spacing: .3em; font-size: .8em; font-weight: 600; }
.prose-cover-blank-t { font-size: 1.25em; font-weight: 600; line-height: 1.2; }
.prose-cover-blank-t a { color: #fff !important; }
@media (max-width: 720px) { .prose-bookpage { flex-direction: column; align-items: center; } }

/* a chapter */
.prose-chapnav { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; margin: .6em 0; padding: .5em 0;
  border-top: 1px solid var(--ma-border); border-bottom: 1px solid var(--ma-border); font-size: .92em; }
.prose-chapnav .prose-next { text-align: right; }
.prose-contents { color: var(--ma-text3); white-space: nowrap; }
.prose-book { max-width: 40em; margin: 1.5em auto 2em; font-size: 1.12em; line-height: 1.75; }
.prose-book p { margin: 0 0 1em; }
.prose-chapter-title { display: none; font-size: 1.6em; font-weight: 600; margin: .4em 0 1.2em; color: #fff; text-align: center; }
html.prose-zen .prose-chapter-title { display: block; }  /* zen hides the page title, so the chapter carries its own */
.ns-3000 #contentSub .subpages, .ns-3000 .mw-content-subtitle .subpages { display: none; }  /* the chapter nav links the book */
.prose-book a, .prose-book a:visited { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255, 107, 112, 0.6); }
.prose-book a:hover { color: var(--ma-red-hi); border-bottom-style: solid; }
.prose-zen-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; gap: 6px; }
.prose-zen-toggle button { font: 600 13px 'Outfit', system-ui, sans-serif; padding: 8px 14px; border-radius: 3px; cursor: pointer;
  color: var(--ma-text); background: rgba(19, 22, 27, 0.92); border: 1px solid var(--ma-border); }
.prose-zen-toggle button:hover { border-color: var(--ma-red); }
.cdx-button--weight-quiet:hover, .cdx-button--weight-quiet:active, .vector-dropdown-label:hover, .vector-dropdown-label:active,
label.cdx-button:hover, .vector-header .cdx-button:hover {
  background-color: rgba(229, 72, 77, 0.14) !important; border-color: transparent !important; }
.cdx-button--weight-quiet:hover .vector-icon, .vector-dropdown-label:hover .vector-icon, .vector-header .cdx-button:hover .vector-icon {
  background-color: var(--ma-red-hi) !important; }
.prose-zen-toggle .prose-zen-shade { display: none; }

/* zen mode: the chapter alone, centered, in a dark or a light page */
html.prose-zen { --zen-bg: #0d1117; --zen-fg: #e3e5ea; --zen-dim: #7d8391; --zen-line: #262b35; --zen-link: rgba(255, 107, 112, 0.55); }
html.prose-zen.prose-zen-light { --zen-bg: #f7f4ee; --zen-fg: #1f1d1a; --zen-dim: #8a847a; --zen-line: #e2dccf; --zen-link: rgba(176, 30, 40, 0.45); color-scheme: light; }
html.prose-zen, html.prose-zen body { background: var(--zen-bg) !important; }
html.prose-zen .vector-header-container, html.prose-zen .vector-column-start, html.prose-zen .vector-column-end,
html.prose-zen .mw-footer-container, html.prose-zen .vector-page-titlebar, html.prose-zen .vector-page-toolbar,
html.prose-zen .vector-sticky-header, html.prose-zen #siteSub, html.prose-zen #contentSub, html.prose-zen .catlinks,
html.prose-zen .mw-indicators, html.prose-zen .cyberspace-sl-fine, html.prose-zen .cyberspace-sl-coarse,
html.prose-zen .console-bg-host, html.prose-zen .cyberspace-tex, html.prose-zen .mw-jump-link { display: none !important; }
html.prose-zen .mw-page-container, html.prose-zen .mw-body, html.prose-zen .mw-page-container-inner { background: transparent !important;
  border: 0 !important; box-shadow: none !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
html.prose-zen .mw-body { color: var(--zen-fg); }
html.prose-zen .prose-book { max-width: 36em; padding: 0 22px; font-size: 1.22em; line-height: 1.85; color: var(--zen-fg); }
html.prose-zen .prose-chapter-title { color: var(--zen-fg); margin-top: 2.5em; }
html.prose-zen .prose-book a, html.prose-zen .prose-book a:visited { color: inherit; border-bottom-color: var(--zen-link); }
html.prose-zen .prose-chapnav { max-width: 36em; margin: 1.2em auto; padding: .6em 22px; border-color: var(--zen-line); }
html.prose-zen .prose-chapnav a { color: var(--zen-dim) !important; }
html.prose-zen .prose-contents { color: var(--zen-dim); }
html.prose-zen .prose-zen-toggle button { background: var(--zen-bg); color: var(--zen-dim); border-color: var(--zen-line); opacity: .55; }
html.prose-zen .prose-zen-toggle button:hover { opacity: 1; }
html.prose-zen .prose-zen-toggle .prose-zen-shade { display: inline-block; }
@media (max-width: 720px) { .prose-chapnav { flex-wrap: wrap; } .prose-contents { order: -1; width: 100%; text-align: center; } }

/* ---- the main page -------------------------------------------------------------------------------------------- */
.page-Main_Page .mw-body h1#firstHeading, .page-Main_Page .vector-page-titlebar { display: none; }
.prose-hero { text-align: center; padding: 1.5em 1em 1em; margin: 0 -1rem 1em; border-bottom: 1px solid var(--ma-border);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 0, 51, 0.16), transparent 65%); }
.prose-hero-logo img { max-width: 100%; height: auto; filter: drop-shadow(0 0 22px rgba(255, 0, 51, 0.45)); }
.prose-hero-tag { font-size: 1.45em; font-weight: 600; color: #fff; margin: .4em 0 .8em; letter-spacing: .01em; }
.prose-hero-text { max-width: 46em; margin: 0 auto; text-align: left; font-size: 1.06em; line-height: 1.7; color: var(--ma-text); }
.prose-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .8em 2.2em; margin: 1.4em 0 .6em; }
.prose-stat b { display: block; font-size: 1.7em; font-weight: 700; color: var(--ma-red-hi); line-height: 1.1; }
.prose-stat span { color: var(--ma-text2); font-size: .85em; text-transform: uppercase; letter-spacing: .08em; }
.prose-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.6em 1.2em; margin: 1em 0 1.5em; }
.prose-shelf-item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.prose-shelf-item img, .prose-shelf-item .prose-cover-blank { transition: transform .15s ease, box-shadow .15s ease; }
.prose-shelf-item:hover img, .prose-shelf-item:hover .prose-cover-blank { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ma-red), 0 10px 30px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 0, 51, .3); }
.prose-shelf-n { position: absolute; top: -8px; left: 50%; margin-left: -88px; width: 26px; height: 26px; line-height: 26px; border-radius: 50%;
  background: var(--ma-neon); color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 0 10px rgba(255, 0, 51, .6); }
.prose-shelf-title { margin-top: .55em; font-weight: 600; line-height: 1.25; }
.prose-series-about { color: var(--ma-text2); margin: -.2em 0 .2em; }
.prose-actions { display: flex; flex-wrap: wrap; gap: .6em; margin: .8em 0; }
.prose-actions .prose-read { display: inline-block; margin: 0; }
.prose-store a.external { background-image: none !important; padding-right: .9em !important; }
.prose-repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7em; margin: 1em 0 1.5em; }
.prose-repo { padding: .7em .9em; border: 1px solid var(--ma-border); border-left: 2px solid var(--ma-red); border-radius: 3px; background: var(--ma-bg2); }
.prose-repo a { font-weight: 600; font-size: 1.05em; }
.prose-repo span { display: block; color: var(--ma-text3); font-size: .85em; margin-top: .15em; }
.prose-repo span b { color: var(--ma-text2); }
.prose-wander a { display: inline-block; margin: 0 .6em .5em 0; padding: .4em .9em; border: 1px solid var(--ma-border); border-radius: 3px; background: var(--ma-bg2); }

/* the backdrop's own layers sit under everything; Common.js adds them */
.cyberspace-sl-fine, .cyberspace-sl-coarse, .console-bg-host { pointer-events: none; }
@media print { .cyberspace-sl-fine, .cyberspace-sl-coarse, .console-bg-host { display: none !important; } }