MediaWiki:Common.css: Difference between revisions

CC badge light/dark theme toggle
CC badge dark mode swap
Line 1: Line 1:
/* CC license badge: show light by default, dark in night mode */
/* CC license badge: swap to dark variant in night mode */
.footer-badge-dark {
html.skin-theme-clientpref-night #footer-copyrightico img {
display: none;
content: url("/resources/assets/cc-by-nc-sa-dark.svg");
}
html.skin-theme-clientpref-night .footer-badge-light {
display: none;
}
html.skin-theme-clientpref-night .footer-badge-dark {
display: inline;
}
}
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .footer-badge-light {
html.skin-theme-clientpref-os #footer-copyrightico img {
display: none;
content: url("/resources/assets/cc-by-nc-sa-dark.svg");
}
html.skin-theme-clientpref-os .footer-badge-dark {
display: inline;
}
}
}
}