Bug 1505143 - Under Windows 7 Classic/HC, remove the unneeded treecol borders and background. r=jorgk
authorRichard Marti <richard.marti@gmail.com>
Tue, 06 Nov 2018 20:19:28 +0100
changeset 33670 337f52b538f8a9f0a4302e1c74e0c139287c72f2
parent 33669 29dbc84a0a79d8a51ec8d7fa8a47926ca0a0de21
child 33671 1259dd18be66a01b87ee902548e64e3a7ae562b6
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersjorgk
bugs1505143
Bug 1505143 - Under Windows 7 Classic/HC, remove the unneeded treecol borders and background. r=jorgk
mail/themes/shared/mail/messenger.css
mail/themes/windows/mail/messenger.css
--- a/mail/themes/shared/mail/messenger.css
+++ b/mail/themes/shared/mail/messenger.css
@@ -126,16 +126,17 @@ toolbar[printpreview="true"] {
 :root[lwt-tree] treechildren::-moz-tree-line(selected) {
   border-color: var(--sidebar-highlight-text-color, var(--sidebar-text-color));
 }
 
 :root[lwt-tree] treecol:not([hideheader="true"]),
 :root[lwt-tree] treecolpicker:not([hideheader="true"]) {
   -moz-appearance: none;
   color: inherit;
+  background-color: transparent;
   padding-top: 2px;
   padding-bottom: 2px;
   border-bottom: 1px solid var(--sidebar-border-color, hsla(0,0%,60%,.4));
 }
 
 :root[lwt-tree] treecol {
   border-inline-end: 1px solid var(--sidebar-border-color, hsla(0,0%,60%,.4));
 }
--- a/mail/themes/windows/mail/messenger.css
+++ b/mail/themes/windows/mail/messenger.css
@@ -476,16 +476,29 @@ treechildren::-moz-tree-indentation {
 
     treechildren::-moz-tree-row {
       border-radius: 3px;
       -moz-outline-radius: 3px;
     }
   }
 }
 
+@media (-moz-windows-classic) {
+  treecol[hideheader="true"],
+  treecolpicker[hideheader="true"] {
+    border-width: 0;
+  }
+
+  :root[lwt-tree] treecol:not([hideheader="true"]),
+  :root[lwt-tree] treecolpicker:not([hideheader="true"]) {
+    border-top-width: 0;
+    border-inline-start-width: 0;
+  }
+}
+
 :root[lwt-tree] treechildren::-moz-tree-row(current, focus) {
   border-color: var(--sidebar-highlight-background-color, hsla(0,0%,80%,.6));
   outline: none;
 }
 
 :root[lwt-tree-brighttext] treechildren::-moz-tree-row(current, focus) {
   border-color: var(--sidebar-highlight-background-color, rgba(249,249,250,.3));
 }