From 478c47643164d927a4cc27948876abc67001174d Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Fri, 12 Jun 2020 01:59:04 -0400 Subject: [PATCH] Move Echo dark styles to echo skinstyles --- resources/skins.citizen.styles/common/darkmode.less | 2 -- skinStyles/extensions/Echo/ext.echo.styles.badge.less | 11 +++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/resources/skins.citizen.styles/common/darkmode.less b/resources/skins.citizen.styles/common/darkmode.less index e4071535..02823259 100644 --- a/resources/skins.citizen.styles/common/darkmode.less +++ b/resources/skins.citizen.styles/common/darkmode.less @@ -73,8 +73,6 @@ } .mw-editsection > a:before, - #pt-notifications-alert .mw-echo-notifications-badge:before, - #pt-notifications-notice .mw-echo-notifications-badge:before, #p-namespaces ul li a:after { filter: invert( 1 ); } diff --git a/skinStyles/extensions/Echo/ext.echo.styles.badge.less b/skinStyles/extensions/Echo/ext.echo.styles.badge.less index 7532e8d8..9fe363c2 100644 --- a/skinStyles/extensions/Echo/ext.echo.styles.badge.less +++ b/skinStyles/extensions/Echo/ext.echo.styles.badge.less @@ -55,3 +55,14 @@ } } } + +@media ( prefers-color-scheme: dark ) { + #pt-notifications { + &-alert, + &-notice { + .mw-echo-notifications-badge:before { + filter: invert( 1 ); + } + } + } +}