Jump to content

MediaWiki:Common.css: Difference between revisions

From DEAD Wiki
Created page with "*************************** * Mytholite MediaWiki Theme * Drop in: MediaWiki:Common.css ***************************: ==== Brand tokens ====: :root { --brand: #ff6a00; Accent (Mytholite orange?): --brand-2: #6a38f0; Secondary accent (purple): --text: #1f1f24; --muted: #5b5b6a; --bg: #ffffff; --bg-soft: #f7f7fb; --border: #e5e7eb; --link: #3a68ff; --link-hover: #2b50c7; --code-bg: #0b1020; --code-text: #e8eefc;..."
 
No edit summary
Line 1: Line 1:
/****************************
/****************************
  * Mytholite MediaWiki Theme
  * DEAD Wiki – Readability Pass (Vector 2022)
* Drop in: MediaWiki:Common.css
  ****************************/
  ****************************/


/* ==== Brand tokens ==== */
/* Brand tokens (tweak these) */
:root {
:root {
   --brand: #ff6a00;           /* Accent (Mytholite orange?) */
   --brand: #ff6a00;   /* DEAD orange */
   --brand-2: #6a38f0;         /* Secondary accent (purple*/
   --brand-2: #6a38f0; /* Accent purple */
   --text: #1f1f24;
   --text: #1b1e23;
   --muted: #5b5b6a;
   --muted: #5a6070;
   --bg: #ffffff;
   --bg: #ffffff;
   --bg-soft: #f7f7fb;
   --bg-soft: #f6f7fb;
   --border: #e5e7eb;
   --border: #e3e6ee;
   --link: #3a68ff;
   --link: #0b57d0;
   --link-hover: #2b50c7;
   --link-hover: #063b8f;
   --code-bg: #0b1020;
   --code-bg: #0d1117;
   --code-text: #e8eefc;
   --code-text: #e6edf3;
}
}


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


  /* Logos/icons that are dark by default */
/* ---- Make content wider & larger (Vector 2022) ---- */
   img[alt*="logo"], .mw-wiki-logo {
.skin-vector-2022 .mw-page-container {
    filter: brightness(1.1) saturate(1.05);
   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 layout & type ==== */
/* Base type & spacing */
html, body {
.mw-parser-output {
   background: var(--bg);
   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);
   color: var(--text);
}
.mw-body, #content, .mw-parser-output {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
  font-size: 16px;
   letter-spacing: 0.1px;
   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 */
/* Headings – darker, tighter, chunkier */
.mw-parser-output h1,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h3,
.mw-parser-output h4 {
.mw-parser-output h4 {
   font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
   font-weight: 800;
   line-height: 1.25;
   line-height: 1.25;
  margin: 1.6em 0 0.6em;
  font-weight: 750;
   color: var(--text);
   color: var(--text);
  margin: 1.4em 0 0.6em;
}
}
.mw-parser-output h1 { font-size: 2rem; border: 0; }
.mw-parser-output h1 { font-size: 2.1rem; border: 0; }
.mw-parser-output h2 { font-size: 1.6rem; border-bottom: 2px solid var(--border); padding-bottom: .25rem; }
.mw-parser-output h2 { font-size: 1.7rem; border-bottom: 2px solid var(--border); padding-bottom: .25rem; }
.mw-parser-output h3 { font-size: 1.25rem; }
.mw-parser-output h3 { font-size: 1.3rem; color: var(--text); }
.mw-parser-output h4 { font-size: 1.05rem; color: var(--muted); }
.mw-parser-output h4 { font-size: 1.05rem; color: var(--muted); }


/* Links */
/* Links – high contrast */
.mw-parser-output a {
.mw-parser-output a {
   color: var(--link);
   color: var(--link);
   text-decoration: none;
   text-decoration: none;
  transition: color .15s ease, box-shadow .15s ease;
}
}
.mw-parser-output a:hover,
.mw-parser-output a:hover,
Line 78: Line 78:
   color: var(--link-hover);
   color: var(--link-hover);
   text-decoration: underline;
   text-decoration: underline;
}
.mw-parser-output a:visited { opacity: 0.95; }
/* Inline elements */
.mw-parser-output p { margin: 0.7em 0; }
.mw-parser-output ul, .mw-parser-output ol { margin: 0.5em 0 1em 1.4em; }
/* Horizontal rule */
.mw-parser-output hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}
}


/* ==== Header & navigation (Vector) ==== */
/* Table of contents */
#mw-head, #mw-panel {
  background: var(--bg);
}
#mw-head .vector-menu-tabs,
#left-navigation, #right-navigation {
  border: 0 !important;
}
#p-personal {
  font-size: 0.95rem;
}
.vector-menu-tabs li.selected a,
.vector-menu-tabs a:hover {
  border: 0 !important;
  box-shadow: 0 2px 0 0 var(--brand) inset;
}
 
/* Sidebar polish */
#mw-panel .portal .body ul {
  padding-left: 0.75rem;
}
#mw-panel .portal h3 {
  color: var(--muted);
  letter-spacing: .3px;
}
 
/* ==== Table of Contents ==== */
#toc, .toc {
#toc, .toc {
   background: var(--bg-soft);
   background: var(--bg-soft);
Line 125: Line 86:
   border-radius: 12px;
   border-radius: 12px;
   padding: 0.8rem 1rem;
   padding: 0.8rem 1rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
}
.tocnumber { color: var(--brand-2); font-weight: 700; }
.tocnumber { color: var(--brand-2); font-weight: 800; }
.toctogglecheckbox:checked ~ ul { display: none; }


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


/* Responsive tables */
/* Responsive table scroller */
.mw-parser-output table {
.mw-parser-output table {
   display: block;
   display: block;
Line 163: Line 120:
}
}


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


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


/* ==== Thumbnails, galleries & images ==== */
/* Images / thumbs */
.thumb, .thumbinner {
.thumb, .thumbinner { border: 0; background: transparent; }
  border: 0;
.thumb img, .thumbimage, .gallerybox .thumb img { border-radius: 12px; display: block; }
  background: transparent;
.thumbcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; }
}
 
.thumbimage, .thumb img,
/* Sidebar & right rail – make muted */
.gallerybox .thumb img {
#mw-panel .portal h3 { color: var(--muted); font-weight: 700; }
  border-radius: 12px;
#mw-panel .portal .body ul { padding-left: .75rem; }
  display: block;
#mw-panel, #right-navigation, #p-personal { font-size: 15px; }
}
.thumbcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: .35rem;
}


/* ==== Notices & message boxes ==== */
/* Search box visibility */
.messagebox,
#p-search input[type="search"] {
.mw-message-box {
  font-size: 16px;
  padding: .5rem .6rem;
   border-radius: 10px;
   border-radius: 10px;
   border: 1px solid var(--border);
   border: 1px solid var(--border);
   background: var(--bg-soft);
   background: var(--bg);
   padding: .8rem 1rem;
   color: var(--text);
}
.mw-message-box-warning {
  border-color: #f7c244;
  background: color-mix(in srgb, #f7c244 10%, var(--bg) 90%);
}
.mw-message-box-error {
  border-color: #ff6b6b;
  background: color-mix(in srgb, #ff6b6b 10%, var(--bg) 90%);
}
.mw-message-box-success {
  border-color: #37c07a;
  background: color-mix(in srgb, #37c07a 10%, var(--bg) 90%);
}
}


/* ==== Buttons (OOUI + links styled as buttons) ==== */
/* Buttons (OOUI) */
a.mw-ui-button,
.mw-ui-button, a.mw-ui-button {
.mw-ui-button {
   border-radius: 10px !important;
   border-radius: 10px !important;
  background: var(--brand);
   border: 1px solid var(--brand);
   border: 1px solid var(--brand);
  background: var(--brand);
   color: #fff !important;
   color: #fff !important;
  font-weight: 800;
   padding: .45rem .85rem;
   padding: .45rem .85rem;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
a.mw-ui-button:hover,
.mw-ui-button:hover {
  filter: brightness(1.05);
}
.mw-ui-button.mw-ui-quiet,
a.button-secondary {
  background: transparent;
  border-color: var(--brand-2);
  color: var(--brand-2) !important;
}
.mw-ui-button.mw-ui-quiet:hover,
a.button-secondary:hover {
  background: color-mix(in srgb, var(--brand-2) 12%, var(--bg) 88%);
}
}
.mw-ui-button:hover { filter: brightness(1.06); }


/* ==== Search box & inputs ==== */
/* Footer */
input, select, textarea {
#footer { border-top: 1px solid var(--border); margin-top: 2rem; color: var(--muted); }
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg);
  color: var(--text);
  padding: .5rem .6rem !important;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-color: var(--brand) !important;
}
 
/* ==== Footer ==== */
#footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  color: var(--muted);
}
#footer a { color: var(--muted); }
#footer a { color: var(--muted); }
#footer a:hover { color: var(--link-hover); }
#footer a:hover { color: var(--link-hover); }


/* ==== Utilities ==== */
/* Lead paragraph a little bigger for readability */
.badge {
.mw-parser-output > p:first-of-type { font-size: 1.06em; }
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 15%, var(--bg) 85%);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--bg) 70%);
}
 
/* Optional: highlight first section lead */
.mw-parser-output > p:first-of-type {
  font-size: 1.05rem;
}

Revision as of 11:15, 5 September 2025

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