Bug 1742696 - Also add color-scheme to in-content/common. r=Gijs

This should have roughly the same effect as the meta tag, and all these
pages support dark mode. The meta tag still has its merits (it allows us
to conceptually paint a dark background sooner to avoid flashing white).

I'd still prefer to keep the meta tag but this might be a simpler fix.

Differential Revision: https://phabricator.services.mozilla.com/D132186
This commit is contained in:
Emilio Cobos Álvarez 2021-11-26 11:37:00 +00:00
parent 1b8b7cfaa5
commit 6a0cba6df9

View File

@ -111,6 +111,7 @@
--card-shadow-hover: var(--card-shadow), 0 0 0 5px var(--card-outline-color);
accent-color: var(--in-content-accent-color);
color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {