Bug 1591531 - For summary views, set the color/background-color on :root instead body to apply correctly. r+a=jorgk
authorRichard Marti <richard.marti@gmail.com>
Sat, 26 Oct 2019 12:24:14 +0200
changeset 37232 4bfe6452c61b57defebb73c8ae84c666e7b04cd8
parent 37231 f4c0595c8806e7a12e5cc5b767cade0a09d5d1ee
child 37233 14e62a375613c91523495c4367485b516eb50393
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
bugs1591531
Bug 1591531 - For summary views, set the color/background-color on :root instead body to apply correctly. r+a=jorgk
mail/base/content/sharedsummary.css
--- a/mail/base/content/sharedsummary.css
+++ b/mail/base/content/sharedsummary.css
@@ -6,16 +6,18 @@
   by theme specific files */
 
 :root {
   --body-background-color: -moz-Field;
   --body-text-color: -moz-FieldText;
   --header-background-color: Highlight;
   --head-text-color: HighlightText;
   --info-text-color: GrayText;
+  background-color: var(--body-background-color);
+  color: var(--body-text-color);
 }
 
 @media (prefers-color-scheme: dark) {
   :root {
     --body-background-color: #2a2a2e;
     --body-text-color: rgb(249, 249, 250);
     --header-background-color: #002b57;
     --head-text-color: var(--body-text-color);
@@ -30,18 +32,16 @@
   --toolbarbutton-active-boxshadow: 0 0 0 1px rgba(255, 255, 255, .4) inset;
   }
 }
 
 body {
   font-family: sans-serif;
   margin: 0;
   padding: 0;
-  background-color: var(--body-background-color);
-  color: var(--body-text-color);
 }
 
 #heading_wrapper {
   position: fixed;
   display: block;
   top: 0;
   width: -moz-available;
   color: var(--head-text-color);