| 1 |
@import 'mediawiki.skin.variables.less'; |
| 2 |
|
| 3 |
.dark-mode-image-styles() { |
| 4 |
/* Desktop legacy HTML */ |
| 5 |
.mw-parser-output, |
| 6 |
/* Parsoid HTML (mobile) */ |
| 7 |
section .mw-heading ~ div, |
| 8 |
/* Parsoid HTML (desktop) and mobile legacy HTML */ |
| 9 |
section, |
| 10 |
/* e.g. https://en.wikipedia.org/wiki/Pullback_(category_theory)#Universal_property */ |
| 11 |
dd, |
| 12 |
/* For targeting p span.mw-default-size */ |
| 13 |
p { |
| 14 |
> span.mw-default-size, |
| 15 |
> figure[ typeof='mw:File' ], |
| 16 |
> figure[ typeof='mw:File/Thumb' ], |
| 17 |
> figure[ typeof='mw:File/Frameless' ] { |
| 18 |
img { |
| 19 |
background-color: #c8ccd1; |
| 20 |
} |
| 21 |
} |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
html.skin-theme-clientpref-night { |
| 26 |
.dark-mode-image-styles(); |
| 27 |
} |
| 28 |
|
| 29 |
@media ( prefers-color-scheme: dark ) { |
| 30 |
html.skin-theme-clientpref-os { |
| 31 |
.dark-mode-image-styles(); |
| 32 |
} |
| 33 |
} |