mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
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:
parent
2f4d87df77
commit
8037be606b
|
@ -709,10 +709,22 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
}
|
}
|
||||||
|
|
||||||
&-image {
|
&-image {
|
||||||
/* @embed */
|
|
||||||
background: url( autotopicsubpopup-image.svg ) center center no-repeat;
|
background: url( autotopicsubpopup-image.svg ) center center no-repeat;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 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
|
// Desktop
|
||||||
|
@ -900,14 +912,3 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
pointer-events: none;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue