Bug 1498908 - Increase the specificity of the unread messages treechildren selectors. r=mkmelin
authorRichard Marti <richard.marti@gmail.com>
Mon, 15 Oct 2018 00:41:09 +0200
changeset 33377 3e5b48477fb4aa88390f6e0a104b626973409410
parent 33376 c1baf00bebcaa1e25991780ea218d9ee38e4e69b
child 33378 9af6ce9373ac8132d2dd75b8ec81de429dcae53f
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersmkmelin
bugs1498908
Bug 1498908 - Increase the specificity of the unread messages treechildren selectors. r=mkmelin
mail/themes/linux/mail/folderPane.css
mail/themes/linux/mail/mailWindow1.css
mail/themes/osx/mail/folderPane.css
mail/themes/osx/mail/mailWindow1.css
mail/themes/windows/mail/folderPane.css
mail/themes/windows/mail/mailWindow1.css
--- a/mail/themes/linux/mail/folderPane.css
+++ b/mail/themes/linux/mail/folderPane.css
@@ -197,43 +197,32 @@ treechildren::-moz-tree-image(folderName
   -moz-image-region: rect(32px 16px 48px 0px);
 }
 
 /* ::::: All Servers ::::: */
 
 treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail),
 treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true),
 treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true) {
-  color: -moz-hyperlinktext;
+  color: -moz-hyperlinktext !important;
 }
 
-treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected),
-treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected),
-treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected) {
-  color: -moz-CellHighlightText;
-}
-
-treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected, focus),
-treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected, focus),
-treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected, focus) {
-  color: HighlightText;
-}
-
+treechildren::-moz-tree-cell-text(hasUnreadMessages-true),
+treechildren::-moz-tree-cell-text(folderNameCol, isServer-true),
 treechildren::-moz-tree-cell-text(closed, subfoldersHaveUnreadMessages-true) {
   font-weight: bold;
 }
 
-treechildren::-moz-tree-cell-text(folderNameCol, isServer-true),
-treechildren::-moz-tree-cell-text(hasUnreadMessages-true) {
-  font-weight: bold;
+treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
+  color: GrayText !important;
+  font-style: italic;
 }
 
-treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
-  color: GrayText;
-  font-style: italic;
+treechildren::-moz-tree-cell-text(imapdeleted) {
+  text-decoration: line-through;
 }
 
 .tree-folder-checkbox {
   list-style-image: none;
 }
 
 /* ::::: Folder Summary Popup ::::: */
 
--- a/mail/themes/linux/mail/mailWindow1.css
+++ b/mail/themes/linux/mail/mailWindow1.css
@@ -53,20 +53,16 @@ treechildren::-moz-tree-row(dummy)  {
 treechildren::-moz-tree-row(dummy, selected, focus)  {
   background-color: Highlight;
 }
 
 treechildren::-moz-tree-cell-text(dummy) {
   font-weight: bold;
 }
 
-treechildren::-moz-tree-cell-text(imapdeleted) {
-  text-decoration: line-through;
-}
-
 #correspondentCol {
   padding-inline-start: 17px;
 }
 
 :root[lwt-tree] #folderTree,
 :root[lwt-tree] #folderPane-toolbar {
   background-color: var(--sidebar-background-color);
   color: var(--sidebar-text-color);
--- a/mail/themes/osx/mail/folderPane.css
+++ b/mail/themes/osx/mail/folderPane.css
@@ -329,33 +329,33 @@ treechildren::-moz-tree-image(folderName
   }
 }
 
 /* ::::: All Servers ::::: */
 
 treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail),
 treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true),
 treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true) {
-  font-weight: bold;
-  color: blue;
+  color: blue !important;
 }
 
-treechildren::-moz-tree-cell-text(subfoldersHaveUnreadMessages-true) {
-  font-weight: bold;
-}
-
-treechildren::-moz-tree-cell-text(hasUnreadMessages-true) {
-  font-weight: bold;
+treechildren::-moz-tree-cell-text(hasUnreadMessages-true),
+treechildren::-moz-tree-cell-text(closed, subfoldersHaveUnreadMessages-true) {
+  font-weight: bold !important;
 }
 
 treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
-  color: gray;
+  color: gray !important;
   font-style: italic;
 }
 
+treechildren::-moz-tree-cell-text(imapdeleted) {
+  text-decoration: line-through;
+}
+
 .tree-folder-checkbox {
   list-style-image: none;
 }
 
 /* ::::: Folder Summary Popup ::::: */
 
 .folderSummary-message-row {
   /* This max width ends up dictating the overall width of the popup
--- a/mail/themes/osx/mail/mailWindow1.css
+++ b/mail/themes/osx/mail/mailWindow1.css
@@ -78,20 +78,16 @@
   }
 
   #folderTree treechildren::-moz-tree-twisty(selected, focus),
   #folderTree treechildren::-moz-tree-cell-text(selected, focus) {
     color: #282828;
   }
 }
 
-treechildren::-moz-tree-cell-text(imapdeleted) {
-  text-decoration: line-through;
-}
-
 :root[lwt-tree] #folderTree,
 :root[lwt-tree] #folderPane-toolbar {
   background: var(--sidebar-background-color);
   color: var(--sidebar-text-color);
 }
 
 :root[lwt-tree] #folderPane-toolbar {
   border-bottom-color: var(--sidebar-border-color, hsla(0,0%,60%,.4));
--- a/mail/themes/windows/mail/folderPane.css
+++ b/mail/themes/windows/mail/folderPane.css
@@ -216,67 +216,36 @@ treechildren::-moz-tree-image(folderName
   -moz-image-region: rect(0 16px 16px 0);
 }
 
 /* ::::: All Servers ::::: */
 
 treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail),
 treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true),
 treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true) {
-  color: blue;
+  color: -moz-hyperlinktext !important;
 }
 
-treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected),
-treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected),
-treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected) {
-  color: -moz-CellHighlightText;
+treechildren::-moz-tree-cell-text(hasUnreadMessages-true),
+treechildren::-moz-tree-cell-text(folderNameCol, isServer-true),
+treechildren::-moz-tree-cell-text(closed, subfoldersHaveUnreadMessages-true) {
+  font-weight: bold;
 }
 
-treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected, focus),
-treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected, focus),
-treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected, focus) {
-  color: HighlightText;
+treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
+  color: GrayText !important;
+  font-style: italic;
 }
 
 #folderTree treechildren::-moz-tree-indentation {
   width: 8px;
 }
 
-@media all and (-moz-windows-default-theme) {
-  treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail),
-  treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true),
-  treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true) {
-    color: -moz-hyperlinktext;
-  }
-
-  treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected),
-  treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected),
-  treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected) {
-    color: -moz-hyperlinktext;
-  }
-
-  treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected, focus),
-  treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected, focus),
-  treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected, focus) {
-    color: -moz-hyperlinktext;
-  }
-}
-
-treechildren::-moz-tree-cell-text(closed, subfoldersHaveUnreadMessages-true) {
-  font-weight: bold;
-}
-
-treechildren::-moz-tree-cell-text(folderNameCol, isServer-true),
-treechildren::-moz-tree-cell-text(hasUnreadMessages-true) {
-  font-weight: bold;
-}
-
-treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
-  color: gray;
-  font-style: italic;
+treechildren::-moz-tree-cell-text(imapdeleted) {
+  text-decoration: line-through;
 }
 
 .tree-folder-checkbox {
   list-style-image: none;
 }
 
 /* ::::: Folder Summary Popup ::::: */
 
--- a/mail/themes/windows/mail/mailWindow1.css
+++ b/mail/themes/windows/mail/mailWindow1.css
@@ -46,20 +46,16 @@ treechildren::-moz-tree-row(dummy)  {
 treechildren::-moz-tree-row(dummy, selected, focus)  {
   background-color: Highlight;
 }
 
 treechildren::-moz-tree-cell-text(dummy) {
   font-weight: bold;
 }
 
-treechildren::-moz-tree-cell-text(imapdeleted) {
-  text-decoration: line-through;
-}
-
 #correspondentCol {
   padding-inline-start: 20px;
 }
 
 /* ..... tabs ..... */
 
 .tabmail-tab[type="message"][IsFeedMessage] {
   list-style-image: url("chrome://messenger-newsblog/skin/icons/rss-feed.png");