MediaWiki:Common.css: Difference between revisions

m Site-wide small-caps on content headings (.mw-body h1-h6)
m Dark-theme Codex/OOUI form widgets on Special pages (login/createaccount/preferences etc. were light)
Line 574: Line 574:
body.ns-6002 #mw-content-text .wikitable > tbody > tr:nth-child(even):not([style]) > td { background: #18181b; }
body.ns-6002 #mw-content-text .wikitable > tbody > tr:nth-child(even):not([style]) > td { background: #18181b; }
body.ns-6002 #mw-content-text .wikitable > tbody > tr:hover:not([style]) > td { background: #26210f; }
body.ns-6002 #mw-content-text .wikitable > tbody > tr:hover:not([style]) > td { background: #26210f; }
/* ============================================================
  Special-namespace Codex/OOUI form widgets -> dark theme
  (UserLogin, CreateAccount, PasswordReset, Preferences, Upload, Block, ...)
  These are painted by ResourceLoader modules the content rule can't reach.
  ============================================================ */
body.ns-special #mw-content-text .cdx-text-input__input,
body.ns-special #mw-content-text .cdx-text-input__input:enabled,
body.ns-special #mw-content-text .cdx-text-area__textarea,
body.ns-special #mw-content-text .cdx-select__handle,
body.ns-special #mw-content-text .oo-ui-inputWidget-input {
background-color: #1c1c20 !important;
color: var(--d-text) !important;
border-color: var(--d-border) !important;
}
body.ns-special #mw-content-text .cdx-text-input__input:enabled:read-only {
background-color: #141416 !important;
color: var(--d-muted) !important;
}
body.ns-special #mw-content-text .cdx-label__label,
body.ns-special #mw-content-text .cdx-label__label__text,
body.ns-special #mw-content-text .cdx-label__description,
body.ns-special #mw-content-text .cdx-checkbox__label,
body.ns-special #mw-content-text .cdx-field__help-text,
body.ns-special #mw-content-text .oo-ui-labelElement-label,
body.ns-special #mw-content-text .oo-ui-fieldLayout-header label {
color: var(--d-text) !important;
}
/* CAPTCHA box on CreateAccount */
body.ns-special #mw-content-text .fancycaptcha-captcha-container,
body.ns-special #mw-content-text .fancycaptcha-captcha-and-reload {
background-color: #1c1c20 !important;
border-color: var(--d-border) !important;
}