Jump to content

MediaWiki:Common.css

From MindAttic Docs
Revision as of 09:59, 1 December 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; }
/* The main page opens with its own hero, so MediaWiki's "Main Page" title goes. */
.page-Main_Page .mw-body h1#firstHeading, .page-Main_Page .vector-page-titlebar { display: none; }
/* Header and menu buttons hover in the palette, not Vector's grey. */
.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; }
.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); }

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

/* ---- MindAttic Docs wiki: the hub front page and the sync's page furniture (deploy.py appends this to the Cyberspace
   theme in MediaWiki:Common.css). Class names follow MindAttic.Docs's hub.css, so its index.md looks like the hub. ---- */
.ma-hub-hero {
	padding: 2rem 1.5rem 1.5rem;
	margin: 0 0 1.5rem;
	border-radius: .8rem;
	background: linear-gradient(120deg, rgba(255, 0, 51, .55) 0%, rgba(194, 23, 86, .45) 45%, rgba(58, 19, 102, .55) 78%, rgba(13, 17, 23, .6) 100%);
	border: 1px solid rgba(255, 255, 255, .15);
}
.ma-hub-hero h1 { border: none !important; margin: .2rem 0 .6rem; }
.ma-hub-hero p { max-width: 62ch; line-height: 1.7; }
.ma-hub-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; opacity: .8; }
.ma-hub-stats { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0 0 !important; padding: 0; list-style: none !important; }
.ma-hub-stats li { flex: 1 1 130px; list-style: none; margin: 0 !important; padding: .75rem 1rem; border-radius: .6rem;
	background: rgba(13, 17, 23, .4); border: 1px solid rgba(255, 255, 255, .18); }
.ma-hub-stats .n { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.ma-hub-stats .l { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.ma-hub-category { margin: 2rem 0 1.25rem; }
.ma-hub-count { font-size: .72rem; font-weight: normal; border: 1px solid rgba(255, 255, 255, .25); border-radius: 1rem;
	padding: .05rem .6rem; margin-left: .4rem; vertical-align: middle; }
.ma-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin: 1rem 0; }
.ma-hub-grid > p { display: contents; }
.ma-hub-grid a { display: block; padding: .85rem 1rem; border-radius: .6rem; text-decoration: none !important;
	background: rgba(13, 17, 23, .55); border: 1px solid rgba(255, 255, 255, .15); transition: border-color .15s, transform .15s; }
.ma-hub-grid a:hover { border-color: #00e5a8; transform: translateY(-2px); }
.ma-hub-card-name { display: block; font-weight: 600; font-size: 1rem; }
.ma-hub-card-milestone { display: block; font-size: .85rem; margin-top: .3rem; opacity: .9; }
.ma-hub-card-meta { display: block; font-size: .72rem; margin-top: .45rem; opacity: .7; }
.md2wiki-source, .md2wiki-crumb { font-size: .85em; opacity: .75; margin: 1.5em 0 0; }
.md2wiki-crumb { margin: 0 0 1em; }
pre.md-code { white-space: pre-wrap; word-break: break-word; }