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 ); + } + } + } +}