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
This commit is contained in:
Bartosz Dziewoński 2024-10-11 22:35:48 +02:00
parent 2f4d87df77
commit 8037be606b

View file

@ -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;
}
}