Bug 1517285 - Fix AB contact tree on Mac for dark theme by not using -moz-appearance: -moz-mac-source-list. r=arshad
authorRichard Marti <richard.marti@gmail.com>
Wed, 02 Jan 2019 15:27:43 +0100
changeset 34115 fc3f22843429e674e2271d5a6381def607e44afb
parent 34114 c39f35e517ffbffb547206b9b7f6c5eede04c46b
child 34116 1cb168d17d1b89b99e2549d633e3db084362e56c
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewersarshad
bugs1517285
Bug 1517285 - Fix AB contact tree on Mac for dark theme by not using -moz-appearance: -moz-mac-source-list. r=arshad
mail/themes/osx/mail/addrbook/addressbook.css
--- a/mail/themes/osx/mail/addrbook/addressbook.css
+++ b/mail/themes/osx/mail/addrbook/addressbook.css
@@ -99,66 +99,40 @@
   treechildren::-moz-tree-image(DirCol, IsRemote-true, IsSecure-true) {
     list-style-image: url("chrome://messenger/skin/addressbook/icons/addressbook@2x.png");
     -moz-image-region: rect(0px 128px 32px 96px);
   }
 }
 
 /* ::::: splitters ::::: */
 
-splitter {
+#dirTree-splitter {
+  border-width: 0;
+  border-inline-end: 1px solid #bdbdbd;
+  min-width: 0;
+  width: 5px;
   background-color: transparent;
-  width: 7px;
-  min-width: 7px;
-  min-height: 7px;
+  margin-inline-start: -5px;
+  position: relative;
+  z-index: 10;
 }
 
-#dirTree-splitter,
 #results-splitter {
-  height: 7px !important;
-  min-height: 7px;
+  border-width: 0;
+  border-top: 1px solid #bdbdbd;
+  min-height: 0;
+  height: 5px;
+  background-color: transparent;
+  margin-bottom: -5px;
+  position: relative;
+  z-index: 10;
 }
 
 /* ::::: results pane ::::: */
 
-#abResultsTree {
-  -moz-appearance: -moz-mac-source-list;
-  -moz-font-smoothing-background-color: -moz-mac-source-list;
-}
-
-#abResultsTree treechildren::-moz-tree-row {
-  background-color: transparent;
-}
-
-#abResultsTree treechildren::-moz-tree-row(selected) {
-  -moz-appearance: -moz-mac-source-list-selection;
-  -moz-font-smoothing-background-color: -moz-mac-source-list-selection;
-}
-
-@media not all and (-moz-mac-yosemite-theme) {
-  #abResultsTree treechildren::-moz-tree-row(selected, focus) {
-    -moz-appearance: -moz-mac-active-source-list-selection;
-    -moz-font-smoothing-background-color: -moz-mac-active-source-list-selection;
-  }
-
-  #abResultsTree treechildren::-moz-tree-cell-text(selected) {
-    color: white;
-  }
-}
-
-@media (-moz-mac-yosemite-theme) {
-  #abResultsTree treechildren::-moz-tree-cell-text(selected, focus) {
-    color: black;
-  }
-}
-
-#abResultsTree + separator {
-  border-top: 1px solid #bebebe;
-}
-
 #GeneratedName {
   padding-inline-start: 42px;
 }
 
 @media (min-resolution: 2dppx) {
   treechildren::-moz-tree-image(GeneratedName) {
     width: 16px;
     height: 16px;
@@ -174,28 +148,25 @@ splitter {
 
 /* ::::: card view pane ::::: */
 
 #blankResultsPaneMessageBox {
   border-inline-start: 1px solid #bebebe;
 }
 
 #CardViewOuterBox {
+  color: -moz-DialogText;
   margin: 0px;
   padding: 0px;
 }
 
 #CardViewBox {
   -moz-user-focus: ignore;
   overflow: auto;
   min-width: 150px;
-  margin: 0px;
-  padding: 0px;
-  border-top: 1px solid #8E8E8E;
-  border-left: 1px solid #BEBEBE;
 }
 
 #CardViewInnerBox {
   background-color: #FFFFFF;
 }
 
 #CardViewInnerBox > hbox {
   background-color: #FFFFFF;