From 2c39eafe6b879da12c0172acc7f6f67f26ba42b3 Mon Sep 17 00:00:00 2001 From: Hannes Date: Fri, 27 Dec 2019 15:19:47 +0100 Subject: [PATCH] Move datatables into lecacy.shared --- resources/components/darkmode.less | 24 --------------- skin.json | 4 ++- skinStyles/mediawiki.legacy.shared.less | 39 +++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 25 deletions(-) create mode 100644 skinStyles/mediawiki.legacy.shared.less diff --git a/resources/components/darkmode.less b/resources/components/darkmode.less index 74cd5ba3..150dd13d 100644 --- a/resources/components/darkmode.less +++ b/resources/components/darkmode.less @@ -181,30 +181,6 @@ #p-namespaces ul li a:after { filter: invert( 1 ); } - - /** - Data tables - */ - .mw-datatable { - border: 1px solid @dark-bg-50; - } - - .mw-datatable td, - .mw-datatable th { - border: 1px solid @dark-bg-50; - } - - .mw-datatable th { - background-color: @accent-10; - } - - .mw-datatable td { - background-color: @dark-bg-0; - } - - .mw-datatable tr:hover td { - background-color: @accent-10; - } } @media only screen and ( max-width: 1290px ) and ( prefers-color-scheme: dark ) { diff --git a/skin.json b/skin.json index a61e4714..ac547226 100644 --- a/skin.json +++ b/skin.json @@ -348,6 +348,7 @@ "+mediawiki.page.gallery.styles": "skinStyles/mediawiki.page.gallery.styles.less", "+mediawiki.action.history.styles": "skinStyles/mediawiki.action.history.styles.less", "+mediawiki.action.view.filepage": "skinStyles/mediawiki.action.view.filepage.less", + "+mediawiki.special": "skinStyles/mediawiki.special.less", "+mediawiki.special.changeslist": "skinStyles/mediawiki.special.changeslist.less", "+mediawiki.special.changeslist.enhanced": "skinStyles/mediawiki.special.changeslist.enhanced.less", "+mediawiki.special.search.styles": "skinStyles/mediawiki.special.search.styles.less", @@ -357,7 +358,8 @@ "+mediawiki.diff.styles": "skinStyles/mediawiki.diff.styles.less", "+mediawiki.ui.input": "skinStyles/mediawiki.ui.components.input.less", "+mediawiki.ui.checkbox": "skinStyles/mediawiki.ui.components.checkbox.less", - "+oojs-ui-core": "skinStyles/oojs-ui-core.less", + "+mediawiki.legacy.shared": "skinStyles/mediawiki.legacy.shared.less", + "+oojs-ui-core.styles": "skinStyles/oojs-ui-core.less", "+oojs-ui-toolbars": "skinStyles/oojs-ui-toolbars.less", "+oojs-ui-widgets": "skinStyles/oojs-ui-widgets.less", "+oojs-ui-windows": "skinStyles/oojs-ui-windows.less", diff --git a/skinStyles/mediawiki.legacy.shared.less b/skinStyles/mediawiki.legacy.shared.less new file mode 100644 index 00000000..f0b44f4b --- /dev/null +++ b/skinStyles/mediawiki.legacy.shared.less @@ -0,0 +1,39 @@ +/* + * Citizen - Legacy shared styles + * https://starcitizen.tools +*/ + +@import '../resources/variables.less'; + +@media ( prefers-color-scheme: dark ) { + .catlinks li { + border-left: 1px solid @dark-bg-50; + } + + .autocomment, + .autocomment a, + .autocomment a:visited { + color: @dark-text-70; + } + + .mw-datatable { + border: 1px solid @dark-bg-50; + } + + .mw-datatable td, + .mw-datatable th { + border: 1px solid @dark-bg-50; + } + + .mw-datatable th { + background-color: @accent-10; + } + + .mw-datatable td { + background-color: @dark-bg-0; + } + + .mw-datatable tr:hover td { + background-color: @accent-10; + } +}