From 831ae99772bfac78018e0ee6237ddf0d68c5cf17 Mon Sep 17 00:00:00 2001 From: Hannes Date: Fri, 27 Dec 2019 14:54:59 +0100 Subject: [PATCH] WIP date input darkmode --- ...iawiki.widgets.DateInputWidget.styles.less | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 skinStyles/mediawiki.widgets.DateInputWidget.styles.less diff --git a/skinStyles/mediawiki.widgets.DateInputWidget.styles.less b/skinStyles/mediawiki.widgets.DateInputWidget.styles.less new file mode 100644 index 00000000..f5238b95 --- /dev/null +++ b/skinStyles/mediawiki.widgets.DateInputWidget.styles.less @@ -0,0 +1,24 @@ +/* + * Citizen - Widget Datetime + * https://starcitizen.tools +*/ + +@import '../resources/variables.less'; + +@media ( prefers-color-scheme: dark ) { + .mw-widget-dateInputWidget { + &-handle { + background-color: @dark-bg-0; + color: @dark-text-100; + border-color: @dark-bg-50; + } + + &.oo-ui-widget-enabled { + .mw-widget-dateInputWidget-handle { + &:hover { + border-color: @dark-bg-60; + } + } + } + } +}