From 8037be606bd287251375fac8da4b2ea4cc45ecae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 11 Oct 2024 22:35:48 +0200 Subject: [PATCH] Do not embed the "You have been subscribed" popup image The image is somewhat heavy and only rarely shown (once per user). Also move the dark mode styles to the same place. Change-Id: I1f0d37e3f4e1161190ce6ffa549bfa52ced9b0e6 --- modules/dt.init.less | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/modules/dt.init.less b/modules/dt.init.less index a27177ed4..0f911f652 100644 --- a/modules/dt.init.less +++ b/modules/dt.init.less @@ -709,10 +709,22 @@ h1, h2, h3, h4, h5, h6 { } &-image { - /* @embed */ background: url( autotopicsubpopup-image.svg ) center center no-repeat; width: 200px; height: 200px; + + // Add dark mode images (T369834) + @media screen { + html.skin-theme-clientpref-night & { + background-image: url( autotopicsubpopup-image-dark.svg ); + } + } + + @media screen and ( prefers-color-scheme: dark ) { + html.skin-theme-clientpref-os & { + background-image: url( autotopicsubpopup-image-dark.svg ); + } + } } // Desktop @@ -900,14 +912,3 @@ h1, h2, h3, h4, h5, h6 { opacity: 0.8; pointer-events: none; } - -// Add dark mode images (T369834) -html.skin-theme-clientpref-night .ext-discussiontools-autotopicsubpopup-image { - background: url( autotopicsubpopup-image-dark.svg ) center center no-repeat; -} - -@media screen and ( prefers-color-scheme: dark ) { - html.skin-theme-clientpref-os .ext-discussiontools-autotopicsubpopup-image { - background: url( autotopicsubpopup-image-dark.svg ) center center no-repeat; - } -}