Bug 1743027 - Simplify plaintext.css dark mode code. r=jwatt

Now that we have dark color-scheme everywhere we don't need to hard-code
this.

Differential Revision: https://phabricator.services.mozilla.com/D132187
This commit is contained in:
Emilio Cobos Álvarez 2021-11-30 15:06:51 +00:00
Родитель 8e13e5203a
Коммит a03153bd1b
2 изменённых файлов: 2 добавлений и 12 удалений

Просмотреть файл

@ -18,17 +18,8 @@ html:not([dir]) pre { /* Not a UA sheet, so doesn't use :-moz-has-dir-attr */
}
@-moz-document unobservable-document() {
@media (prefers-color-scheme: dark) {
:root {
/**
* in-content-page-{color, background} for dark theme.
*
* TODO(emilio): Make this just `color-scheme: dark` once color-scheme ships,
* (or `color-scheme: light dark` outside the media query).
*/
background: rgb(28,27,34);
color: rgb(251,251,254);
}
:root {
color-scheme: light dark;
}
}

Просмотреть файл

@ -119,7 +119,6 @@
:root {
/* Keep these in sync with:
*
* * plaintext.css
* * nsXPLookAndFeel::GenericDarkColor
* * The default value of browser.display.foreground_color.dark and
* browser.display.background_color.dark