From da13b518e9eb209f87eaa0eb81f76194c897b4d2 Mon Sep 17 00:00:00 2001 From: Hannes Date: Fri, 27 Dec 2019 14:53:17 +0100 Subject: [PATCH] ApiSandbox, Preferences, Login darkmode --- skinStyles/mediawiki.special.apisandbox.less | 13 +++++++ ...awiki.special.preferences.styles.ooui.less | 36 +++++++++++++++++++ ...iawiki.special.userlogin.login.styles.less | 24 +++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 skinStyles/mediawiki.special.apisandbox.less create mode 100644 skinStyles/mediawiki.special.preferences.styles.ooui.less create mode 100644 skinStyles/mediawiki.special.userlogin.login.styles.less diff --git a/skinStyles/mediawiki.special.apisandbox.less b/skinStyles/mediawiki.special.apisandbox.less new file mode 100644 index 00000000..860fd954 --- /dev/null +++ b/skinStyles/mediawiki.special.apisandbox.less @@ -0,0 +1,13 @@ +/* + * Citizen - API Sandbox + * https://starcitizen.tools +*/ + +@import '../resources/variables.less'; + +@media ( prefers-color-scheme: dark ) { + .mw-apisandbox-toolbar { + background: @dark-bg-0; + border-bottom: 1px solid @dark-bg-50; + } +} diff --git a/skinStyles/mediawiki.special.preferences.styles.ooui.less b/skinStyles/mediawiki.special.preferences.styles.ooui.less new file mode 100644 index 00000000..3d7636d5 --- /dev/null +++ b/skinStyles/mediawiki.special.preferences.styles.ooui.less @@ -0,0 +1,36 @@ +/* + * Citizen - Special Preferences + * https://starcitizen.tools +*/ + +@import '../resources/variables.less'; + +@media ( prefers-color-scheme: dark ) { + .mw-email-not-authenticated .oo-ui-labelWidget, + .mw-email-none .oo-ui-labelWidget { + background-color: @dark-bg-10; + color: @dark-text-100; + border: 1px solid @yellow-50; + padding: 0.5em; + } + + .mw-prefs-buttons { + background-color: @dark-bg-0; + border-color: @dark-bg-30; + } + + .mw-prefs-tabs-wrapper.oo-ui-panelLayout-framed, + .mw-prefs-tabs > .oo-ui-menuLayout-content > .oo-ui-indexLayout-stackLayout > .oo-ui-tabPanelLayout { + border-color: @dark-bg-30; + } + + .client-nojs { + .mw-prefs-tabs { + .mw-prefs-section-fieldset { + > .oo-ui-fieldsetLayout-group { + border-top: 1px solid @dark-bg-30; + } + } + } + } +} diff --git a/skinStyles/mediawiki.special.userlogin.login.styles.less b/skinStyles/mediawiki.special.userlogin.login.styles.less new file mode 100644 index 00000000..b5a2e3fe --- /dev/null +++ b/skinStyles/mediawiki.special.userlogin.login.styles.less @@ -0,0 +1,24 @@ +/* + * Citizen - Login + * https://starcitizen.tools +*/ + +@import '../resources/variables.less'; + +@media ( prefers-color-scheme: dark ) { + #mw-createaccount-join { + background-color: @dark-bg-10; + } + + #mw-createaccount-join:hover { + background-color: @dark-bg-0; + border-color: @accent-10; + box-shadow: none; + } + + #mw-createaccount-join:active { + background-color: @accent-10; + color: @accent-90; + border-color: @accent-90; + } +}