Jump to content

MediaWiki:Common.css: Difference between revisions

From The Untenables
No edit summary
No edit summary
Line 1: Line 1:
/* ============================
/* ============================
  🌙 DARK MODE THEME — Untenables Wiki Style
  Untenables Wiki — Dual Light / Night mode CSS for Vector 2022
  Colors:
  Palette:
  - Dark Grey: #101418
    Dark: #101418
  - Cream (text): #f8f8f2
    Text (cream): #f8f8f2
  - Pink (accent): #ff79c6
    Accent: #ff79c6
  - Blue Grey (secondary): #6272a4
    Secondary / Blue-grey: #6272a4
  - Red (alert): #ff5555
    Alert / Red: #ff5555
  ============================ */
============================ */


/* --- Vector 2022 outer background overrides --- */
/* Defaults in night mode (dark) */
body.skin-vector-2022,
html.skin-theme-clientpref-night body.skin-vector-2022,
body.skin-vector-2022 #mw-page-base,
html.skin-theme-clientpref-os-dark body.skin-vector-2022 {
body.skin-vector-2022 #mw-header-container,
  background-color: #101418 !important;
body.skin-vector-2022 #mw-content-container,
  color: #f8f8f2 !important;
body.skin-vector-2022 .mw-body {
    background-color: #101418 !important;
    color: #f8f8f2 !important;
}
}


/* ---- Base Page ---- */
/* Containers in night mode */
body {
html.skin-theme-clientpref-night body.skin-vector-2022 #mw-page-base,
    background-color: #101418 !important;
html.skin-theme-clientpref-night body.skin-vector-2022 #mw-header-container,
    color: #f8f8f2 !important;
html.skin-theme-clientpref-night body.skin-vector-2022 #mw-content-container,
html.skin-theme-clientpref-night body.skin-vector-2022 .mw-body {
  background-color: #101418 !important;
  color: #f8f8f2 !important;
}
}


/* Page content */
/* Night mode — links, headings, accents */
.mw-body, .mw-body-content, #content, .mw-parser-output {
html.skin-theme-clientpref-night a,
    background-color: transparent !important;
html.skin-theme-clientpref-night .mw-body a {
    color: #f8f8f2 !important;
  color: #ff79c6 !important;
}
}
 
html.skin-theme-clientpref-night a:visited {
/* Headings */
  color: #6272a4 !important;
h1, h2, h3, h4, h5, h6 {
    color: #ff79c6 !important;
    border-color: #6272a4 !important;
}
}
 
html.skin-theme-clientpref-night a:hover,
/* Links */
html.skin-theme-clientpref-night a:focus {
a,
  color: #ff5555 !important;
a:link,
.mw-body a {
    color: #ff79c6 !important;
    text-decoration: none;
}
}
 
html.skin-theme-clientpref-night h1, h2, h3, h4, h5, h6 {
a:visited {
  color: #ff79c6 !important;
    color: #6272a4 !important;
  border-color: #6272a4 !important;
}
}


a:hover,
/* Buttons, input, etc. in night mode */
a:focus {
html.skin-theme-clientpref-night button,
    color: #ff5555 !important;
html.skin-theme-clientpref-night .mw-ui-button,
    text-decoration: underline;
html.skin-theme-clientpref-night input[type=submit],
html.skin-theme-clientpref-night input[type=button],
html.skin-theme-clientpref-night .oo-ui-buttonElement-button {
  background-color: #6272a4 !important;
  color: #f8f8f2 !important;
}
}
 
html.skin-theme-clientpref-night button:hover,
/* ---- Navigation & Sidebar ---- */
html.skin-theme-clientpref-night .mw-ui-button:hover,
#mw-panel, .vector-menu-content, .sidebar, .mw-sidebar, .minerva-header {
html.skin-theme-clientpref-night .oo-ui-buttonElement-button:hover {
    background-color: #101418 !important;
  background-color: #ff79c6 !important;
    color: #f8f8f2 !important;
  color: #101418 !important;
}
}


#mw-panel a,
/* Tables, pre/code, etc. in night mode */
.vector-menu-content a {
html.skin-theme-clientpref-night table,
    color: #f8f8f2 !important;
html.skin-theme-clientpref-night th,
html.skin-theme-clientpref-night td {
  background-color: #101418 !important;
  border-color: #6272a4 !important;
  color: #f8f8f2 !important;
}
}
 
html.skin-theme-clientpref-night th {
#mw-panel a:hover,
  background-color: #101418 !important;
.vector-menu-content a:hover {
  color: #ff79c6 !important;
    color: #ff79c6 !important;
}
}
 
html.skin-theme-clientpref-night pre,
/* ---- Header / Toolbar ---- */
html.skin-theme-clientpref-night code,
#mw-head, #mw-head-base, .vector-header, .header {
html.skin-theme-clientpref-night .mw-code {
    background-color: #101418 !important;
  background-color: #101418 !important;
    border-bottom: 1px solid #6272a4 !important;
  color: #f8f8f2 !important;
  border: 1px solid #6272a4 !important;
}
}
 
html.skin-theme-clientpref-night #footer,
#p-personal li a,
html.skin-theme-clientpref-night .mw-footer,
.vector-user-menu a {
html.skin-theme-clientpref-night #mw-panel,
    color: #f8f8f2 !important;
html.skin-theme-clientpref-night .vector-sidebar-container {
  background-color: #101418 !important;
  color: #f8f8f2 !important;
}
}


#p-personal li a:hover {
/* --------------------------
    color: #ff79c6 !important;
  Now: Day mode (light) overrides
}
  Flip background/text, but keep accents / borders consistent
---------------------------- */


/* ---- Search box ---- */
html.skin-theme-clientpref-day body.skin-vector-2022,
#p-search input,
html.skin-theme-clientpref-os-light body.skin-vector-2022 {
.mw-ui-input,
  background-color: #f8f8f2 !important;
input[type="search"] {
  color: #101418 !important;
    background-color: #101418 !important;
    color: #f8f8f2 !important;
    border: 1px solid #6272a4 !important;
}
}


#p-search input:focus {
/* Containers in day mode */
    border-color: #ff79c6 !important;
html.skin-theme-clientpref-day body.skin-vector-2022 #mw-page-base,
html.skin-theme-clientpref-day body.skin-vector-2022 #mw-header-container,
html.skin-theme-clientpref-day body.skin-vector-2022 #mw-content-container,
html.skin-theme-clientpref-day body.skin-vector-2022 .mw-body {
  background-color: #f8f8f2 !important;
  color: #101418 !important;
}
}


/* ---- Tables ---- */
/* Links, headings in day mode */
table, th, td {
html.skin-theme-clientpref-day a,
    border-color: #6272a4 !important;
html.skin-theme-clientpref-day .mw-body a {
    background-color: #101418 !important;
  color: #ff79c6 !important;
    color: #f8f8f2 !important;
}
}
 
html.skin-theme-clientpref-day a:visited {
th {
  color: #6272a4 !important;
    background-color: #101418 !important;
    color: #ff79c6 !important;
}
}
 
html.skin-theme-clientpref-day a:hover,
/* ---- Code blocks & preformatted text ---- */
html.skin-theme-clientpref-day a:focus {
pre, code, .mw-code {
  color: #ff5555 !important;
    background-color: #101418 !important;
    color: #f8f8f2 !important;
    border: 1px solid #6272a4 !important;
}
}
 
html.skin-theme-clientpref-day h1, h2, h3, h4, h5, h6 {
/* ---- Notifications, warnings, errors ---- */
  color: #ff79c6 !important;
.mw-warning, .warning, .errorbox {
  border-color: #6272a4 !important;
    background-color: #101418 !important;
    border: 1px solid #ff5555 !important;
    color: #ff5555 !important;
}
}


/* ---- Buttons ---- */
/* Buttons, inputs in day mode */
button, .mw-ui-button, input[type="submit"], input[type="button"], .oo-ui-buttonElement-button {
html.skin-theme-clientpref-day button,
    background-color: #6272a4 !important;
html.skin-theme-clientpref-day .mw-ui-button,
    color: #f8f8f2 !important;
html.skin-theme-clientpref-day input[type=submit],
    border: none !important;
html.skin-theme-clientpref-day input[type=button],
    border-radius: 4px;
html.skin-theme-clientpref-day .oo-ui-buttonElement-button {
  background-color: #6272a4 !important;
  color: #101418 !important;
}
}
 
html.skin-theme-clientpref-day button:hover,
button:hover, .mw-ui-button:hover, .oo-ui-buttonElement-button:hover {
html.skin-theme-clientpref-day .mw-ui-button:hover,
    background-color: #ff79c6 !important;
html.skin-theme-clientpref-day .oo-ui-buttonElement-button:hover {
    color: #101418 !important;
  background-color: #ff79c6 !important;
  color: #f8f8f2 !important;
}
}


/* ---- Footer ---- */
/* Tables, pre/code, etc. in day mode */
#footer, .mw-footer {
html.skin-theme-clientpref-day table,
    background-color: #101418 !important;
html.skin-theme-clientpref-day th,
    color: #f8f8f2 !important;
html.skin-theme-clientpref-day td {
    border-top: 1px solid #6272a4 !important;
  background-color: #f8f8f2 !important;
  border-color: #6272a4 !important;
  color: #101418 !important;
}
}
 
html.skin-theme-clientpref-day th {
#footer a {
  background-color: #f8f8f2 !important;
    color: #ff79c6 !important;
  color: #ff79c6 !important;
}
}
 
html.skin-theme-clientpref-day pre,
/* ---- Misc readability ---- */
html.skin-theme-clientpref-day code,
hr {
html.skin-theme-clientpref-day .mw-code {
    border-color: #6272a4 !important;
  background-color: #f8f8f2 !important;
  color: #101418 !important;
  border: 1px solid #6272a4 !important;
}
}


blockquote {
/* Footer, sidebar day mode */
    border-left: 3px solid #6272a4 !important;
html.skin-theme-clientpref-day #footer,
    color: #f8f8f2 !important;
html.skin-theme-clientpref-day .mw-footer,
    background-color: #101418 !important;
html.skin-theme-clientpref-day #mw-panel,
html.skin-theme-clientpref-day .vector-sidebar-container {
  background-color: #f8f8f2 !important;
  color: #101418 !important;
}
}


/* ---- Selection highlight ---- */
/* Selection highlight works across both modes */
::selection {
::selection {
    background: #ff79c6;
  background: #ff79c6 !important;
    color: #101418;
  color: #101418 !important;
}
}

Revision as of 02:43, 14 October 2025

/* ============================
  Untenables Wiki — Dual Light / Night mode CSS for Vector 2022
  Palette:
    Dark: #101418
    Text (cream): #f8f8f2
    Accent: #ff79c6
    Secondary / Blue-grey: #6272a4
    Alert / Red: #ff5555
============================ */

/* Defaults in night mode (dark) */
html.skin-theme-clientpref-night body.skin-vector-2022,
html.skin-theme-clientpref-os-dark body.skin-vector-2022 {
  background-color: #101418 !important;
  color: #f8f8f2 !important;
}

/* Containers in night mode */
html.skin-theme-clientpref-night body.skin-vector-2022 #mw-page-base,
html.skin-theme-clientpref-night body.skin-vector-2022 #mw-header-container,
html.skin-theme-clientpref-night body.skin-vector-2022 #mw-content-container,
html.skin-theme-clientpref-night body.skin-vector-2022 .mw-body {
  background-color: #101418 !important;
  color: #f8f8f2 !important;
}

/* Night mode — links, headings, accents */
html.skin-theme-clientpref-night a,
html.skin-theme-clientpref-night .mw-body a {
  color: #ff79c6 !important;
}
html.skin-theme-clientpref-night a:visited {
  color: #6272a4 !important;
}
html.skin-theme-clientpref-night a:hover,
html.skin-theme-clientpref-night a:focus {
  color: #ff5555 !important;
}
html.skin-theme-clientpref-night h1, h2, h3, h4, h5, h6 {
  color: #ff79c6 !important;
  border-color: #6272a4 !important;
}

/* Buttons, input, etc. in night mode */
html.skin-theme-clientpref-night button,
html.skin-theme-clientpref-night .mw-ui-button,
html.skin-theme-clientpref-night input[type=submit],
html.skin-theme-clientpref-night input[type=button],
html.skin-theme-clientpref-night .oo-ui-buttonElement-button {
  background-color: #6272a4 !important;
  color: #f8f8f2 !important;
}
html.skin-theme-clientpref-night button:hover,
html.skin-theme-clientpref-night .mw-ui-button:hover,
html.skin-theme-clientpref-night .oo-ui-buttonElement-button:hover {
  background-color: #ff79c6 !important;
  color: #101418 !important;
}

/* Tables, pre/code, etc. in night mode */
html.skin-theme-clientpref-night table,
html.skin-theme-clientpref-night th,
html.skin-theme-clientpref-night td {
  background-color: #101418 !important;
  border-color: #6272a4 !important;
  color: #f8f8f2 !important;
}
html.skin-theme-clientpref-night th {
  background-color: #101418 !important;
  color: #ff79c6 !important;
}
html.skin-theme-clientpref-night pre,
html.skin-theme-clientpref-night code,
html.skin-theme-clientpref-night .mw-code {
  background-color: #101418 !important;
  color: #f8f8f2 !important;
  border: 1px solid #6272a4 !important;
}
html.skin-theme-clientpref-night #footer,
html.skin-theme-clientpref-night .mw-footer,
html.skin-theme-clientpref-night #mw-panel,
html.skin-theme-clientpref-night .vector-sidebar-container {
  background-color: #101418 !important;
  color: #f8f8f2 !important;
}

/* --------------------------
   Now: Day mode (light) overrides
   Flip background/text, but keep accents / borders consistent
---------------------------- */

html.skin-theme-clientpref-day body.skin-vector-2022,
html.skin-theme-clientpref-os-light body.skin-vector-2022 {
  background-color: #f8f8f2 !important;
  color: #101418 !important;
}

/* Containers in day mode */
html.skin-theme-clientpref-day body.skin-vector-2022 #mw-page-base,
html.skin-theme-clientpref-day body.skin-vector-2022 #mw-header-container,
html.skin-theme-clientpref-day body.skin-vector-2022 #mw-content-container,
html.skin-theme-clientpref-day body.skin-vector-2022 .mw-body {
  background-color: #f8f8f2 !important;
  color: #101418 !important;
}

/* Links, headings in day mode */
html.skin-theme-clientpref-day a,
html.skin-theme-clientpref-day .mw-body a {
  color: #ff79c6 !important;
}
html.skin-theme-clientpref-day a:visited {
  color: #6272a4 !important;
}
html.skin-theme-clientpref-day a:hover,
html.skin-theme-clientpref-day a:focus {
  color: #ff5555 !important;
}
html.skin-theme-clientpref-day h1, h2, h3, h4, h5, h6 {
  color: #ff79c6 !important;
  border-color: #6272a4 !important;
}

/* Buttons, inputs in day mode */
html.skin-theme-clientpref-day button,
html.skin-theme-clientpref-day .mw-ui-button,
html.skin-theme-clientpref-day input[type=submit],
html.skin-theme-clientpref-day input[type=button],
html.skin-theme-clientpref-day .oo-ui-buttonElement-button {
  background-color: #6272a4 !important;
  color: #101418 !important;
}
html.skin-theme-clientpref-day button:hover,
html.skin-theme-clientpref-day .mw-ui-button:hover,
html.skin-theme-clientpref-day .oo-ui-buttonElement-button:hover {
  background-color: #ff79c6 !important;
  color: #f8f8f2 !important;
}

/* Tables, pre/code, etc. in day mode */
html.skin-theme-clientpref-day table,
html.skin-theme-clientpref-day th,
html.skin-theme-clientpref-day td {
  background-color: #f8f8f2 !important;
  border-color: #6272a4 !important;
  color: #101418 !important;
}
html.skin-theme-clientpref-day th {
  background-color: #f8f8f2 !important;
  color: #ff79c6 !important;
}
html.skin-theme-clientpref-day pre,
html.skin-theme-clientpref-day code,
html.skin-theme-clientpref-day .mw-code {
  background-color: #f8f8f2 !important;
  color: #101418 !important;
  border: 1px solid #6272a4 !important;
}

/* Footer, sidebar day mode */
html.skin-theme-clientpref-day #footer,
html.skin-theme-clientpref-day .mw-footer,
html.skin-theme-clientpref-day #mw-panel,
html.skin-theme-clientpref-day .vector-sidebar-container {
  background-color: #f8f8f2 !important;
  color: #101418 !important;
}

/* Selection highlight works across both modes */
::selection {
  background: #ff79c6 !important;
  color: #101418 !important;
}