Bug 1498908 - Increase the specificity of the unread messages treechildren selectors. r=mkmelin a=jorgk
authorRichard Marti <richard.marti@gmail.com>
Mon, 15 Oct 2018 00:41:09 +0200
changeset 33057 e9f0f4d5d705
parent 33056 a63ea27d4417
child 33058 1b7d33c8b832
push id386
push userclokep@gmail.com
push dateTue, 23 Oct 2018 00:48:12 +0000
reviewersmkmelin, jorgk
bugs1498908
Bug 1498908 - Increase the specificity of the unread messages treechildren selectors. r=mkmelin a=jorgk
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;
 }
 
 /* ..... folder pane adjustments ..... */
 
 #folderPane-toolbar {
   min-height: 24px;
--- 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;
-}
-
 /* ::::: group rows ::::: */
 
 treechildren::-moz-tree-row(dummy)  {
   background-image: url("chrome://messenger/skin/icons/group-background.gif");
   background-repeat: repeat-x;
   background-color: rgb(246, 246, 246);
   border: 1px solid rgb(197, 199, 202);
   margin: 0 1px;
--- 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");