MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* --- UNIVERSAL DARK MODE SELECTORS --- */ | |||
:root[class*="theme-dark"], | |||
/* --- | |||
html.skin-theme-clientpref-night, | html.skin-theme-clientpref-night, | ||
html.skin-invert, | html.skin-invert, | ||
html. | html.theme--dark, | ||
html | html[data-theme="dark"] { | ||
--dark-bg: #101418; | |||
--dark-surface: #181d23; | |||
--dark-header: #222831; | |||
--dark-border: #272d35; | |||
--dark-text: #ffffff; | |||
--dark-text-muted: #c8ccd1; | |||
--dark-link: #6daafb; | |||
} | } | ||
/* | /* 1. Force Title / Wordmark to White */ | ||
:root[class*="theme-dark"] .mw-logo-wordmark, | |||
:root[class*="theme-dark"] .mw-logo-wordmark *, | |||
html.skin-theme-clientpref-night .mw-logo-wordmark, | html.skin-theme-clientpref-night .mw-logo-wordmark, | ||
html.skin-theme-clientpref-night .mw-logo-wordmark *, | html.skin-theme-clientpref-night .mw-logo-wordmark *, | ||
html.skin-invert .mw-logo-wordmark, | html.skin-invert .mw-logo-wordmark, | ||
html.skin-invert .mw-logo-wordmark * { | html.skin-invert .mw-logo-wordmark *, | ||
html.theme--dark .mw-logo-wordmark, | |||
html.theme--dark .mw-logo-wordmark * { | |||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
/* | /* 2. Force PortableInfobox Styling */ | ||
:root[class*="theme-dark"] aside.portable-infobox, | |||
html.skin-theme-clientpref-night aside.portable-infobox, | |||
html.skin-theme-clientpref-night . | html.skin-invert aside.portable-infobox, | ||
html.skin-invert . | html.theme--dark aside.portable-infobox { | ||
html. | |||
background-color: #181d23 !important; | background-color: #181d23 !important; | ||
border-color: #272d35 !important; | border-color: #272d35 !important; | ||
color: #ffffff !important; | |||
} | } | ||
/* Infobox Headers, Titles, and Category Strips */ | |||
:root[class*="theme-dark"] aside.portable-infobox .pi-header, | |||
:root[class*="theme-dark"] aside.portable-infobox .pi-title, | |||
html.skin-theme-clientpref-night aside.portable-infobox .pi-header, | |||
html.skin-theme-clientpref-night aside.portable-infobox .pi-title, | |||
html.skin-invert aside.portable-infobox .pi-header, | |||
html.skin-invert aside.portable-infobox .pi-title { | |||
html.skin-theme-clientpref-night .portable-infobox .pi- | |||
html.skin-theme-clientpref-night .portable-infobox .pi- | |||
html.skin-invert .portable-infobox .pi- | |||
html.skin-invert .portable-infobox .pi- | |||
background-color: #222831 !important; | background-color: #222831 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
border- | border-color: #272d35 !important; | ||
} | } | ||
html.skin-theme-clientpref-night .portable-infobox .pi-data, | /* Infobox Labels, Values, and Nested Cells */ | ||
html.skin-theme-clientpref-night .portable-infobox .pi-data-label, | :root[class*="theme-dark"] aside.portable-infobox .pi-item, | ||
html.skin-theme-clientpref-night .portable-infobox .pi-data-value, | :root[class*="theme-dark"] aside.portable-infobox .pi-data, | ||
html.skin-invert .portable-infobox .pi-data, | :root[class*="theme-dark"] aside.portable-infobox .pi-data-label, | ||
html.skin-invert .portable-infobox .pi-data-label, | :root[class*="theme-dark"] aside.portable-infobox .pi-data-value, | ||
html.skin-invert .portable-infobox .pi-data-value { | html.skin-theme-clientpref-night aside.portable-infobox .pi-item, | ||
html.skin-theme-clientpref-night aside.portable-infobox .pi-data, | |||
html.skin-theme-clientpref-night aside.portable-infobox .pi-data-label, | |||
html.skin-theme-clientpref-night aside.portable-infobox .pi-data-value, | |||
html.skin-invert aside.portable-infobox .pi-item, | |||
html.skin-invert aside.portable-infobox .pi-data, | |||
html.skin-invert aside.portable-infobox .pi-data-label, | |||
html.skin-invert aside.portable-infobox .pi-data-value { | |||
background-color: transparent !important; | background-color: transparent !important; | ||
color: # | color: #c8ccd1 !important; | ||
border-color: #272d35 !important; | border-color: #272d35 !important; | ||
} | } | ||
html.skin-theme-clientpref-night .portable-infobox a, | /* Infobox Links */ | ||
html.skin-invert .portable-infobox a { | :root[class*="theme-dark"] aside.portable-infobox a, | ||
html.skin-theme-clientpref-night aside.portable-infobox a, | |||
html.skin-invert aside.portable-infobox a { | |||
color: #6daafb !important; | color: #6daafb !important; | ||
} | } | ||
Revision as of 19:01, 10 September 2026
/* --- UNIVERSAL DARK MODE SELECTORS --- */
:root[class*="theme-dark"],
html.skin-theme-clientpref-night,
html.skin-invert,
html.theme--dark,
html[data-theme="dark"] {
--dark-bg: #101418;
--dark-surface: #181d23;
--dark-header: #222831;
--dark-border: #272d35;
--dark-text: #ffffff;
--dark-text-muted: #c8ccd1;
--dark-link: #6daafb;
}
/* 1. Force Title / Wordmark to White */
:root[class*="theme-dark"] .mw-logo-wordmark,
:root[class*="theme-dark"] .mw-logo-wordmark *,
html.skin-theme-clientpref-night .mw-logo-wordmark,
html.skin-theme-clientpref-night .mw-logo-wordmark *,
html.skin-invert .mw-logo-wordmark,
html.skin-invert .mw-logo-wordmark *,
html.theme--dark .mw-logo-wordmark,
html.theme--dark .mw-logo-wordmark * {
color: #ffffff !important;
}
/* 2. Force PortableInfobox Styling */
:root[class*="theme-dark"] aside.portable-infobox,
html.skin-theme-clientpref-night aside.portable-infobox,
html.skin-invert aside.portable-infobox,
html.theme--dark aside.portable-infobox {
background-color: #181d23 !important;
border-color: #272d35 !important;
color: #ffffff !important;
}
/* Infobox Headers, Titles, and Category Strips */
:root[class*="theme-dark"] aside.portable-infobox .pi-header,
:root[class*="theme-dark"] aside.portable-infobox .pi-title,
html.skin-theme-clientpref-night aside.portable-infobox .pi-header,
html.skin-theme-clientpref-night aside.portable-infobox .pi-title,
html.skin-invert aside.portable-infobox .pi-header,
html.skin-invert aside.portable-infobox .pi-title {
background-color: #222831 !important;
color: #ffffff !important;
border-color: #272d35 !important;
}
/* Infobox Labels, Values, and Nested Cells */
:root[class*="theme-dark"] aside.portable-infobox .pi-item,
:root[class*="theme-dark"] aside.portable-infobox .pi-data,
:root[class*="theme-dark"] aside.portable-infobox .pi-data-label,
:root[class*="theme-dark"] aside.portable-infobox .pi-data-value,
html.skin-theme-clientpref-night aside.portable-infobox .pi-item,
html.skin-theme-clientpref-night aside.portable-infobox .pi-data,
html.skin-theme-clientpref-night aside.portable-infobox .pi-data-label,
html.skin-theme-clientpref-night aside.portable-infobox .pi-data-value,
html.skin-invert aside.portable-infobox .pi-item,
html.skin-invert aside.portable-infobox .pi-data,
html.skin-invert aside.portable-infobox .pi-data-label,
html.skin-invert aside.portable-infobox .pi-data-value {
background-color: transparent !important;
color: #c8ccd1 !important;
border-color: #272d35 !important;
}
/* Infobox Links */
:root[class*="theme-dark"] aside.portable-infobox a,
html.skin-theme-clientpref-night aside.portable-infobox a,
html.skin-invert aside.portable-infobox a {
color: #6daafb !important;
}