Bug 1475815 - Port bug 1475509 to TB: Stop setting custom text selection styles on dark/light themes. r=jorgk a=jorgk
authorRichard Marti <richard.marti@gmail.com>
Sun, 15 Jul 2018 09:13:39 +0200
changeset 31493 6da4c0d5315d6a7c7e7004fb2552c1d5b2f2a0f4
parent 31492 7f83b374af0f77bb71b48336799de71b552d94f4
child 31494 c1b992cd91711c0de18af1970881ae428cf9224b
push id2278
push usermozilla@jorgk.com
push dateTue, 17 Jul 2018 10:58:10 +0000
treeherdercomm-beta@d25af4a8dd81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk, jorgk
bugs1475815, 1475509
Bug 1475815 - Port bug 1475509 to TB: Stop setting custom text selection styles on dark/light themes. r=jorgk a=jorgk
mail/themes/shared/mail/compacttheme.css
--- a/mail/themes/shared/mail/compacttheme.css
+++ b/mail/themes/shared/mail/compacttheme.css
@@ -21,18 +21,16 @@
 
 :root:-moz-lwtheme-brighttext {
   /* Chrome */
   --chrome-background-color: hsl(240, 5%, 5%);
   --chrome-color: rgb(249, 249, 250);
   --chrome-secondary-background-color: hsl(240, 1%, 20%);
   --toolbox-border-bottom-color: hsla(240, 5%, 5%, .1);
   --chrome-nav-bar-controls-border-color: hsla(240, 5%, 5%, .3);
-  --chrome-selection-color: #fff;
-  --chrome-selection-background-color: #5675b9;
 
   /* Toolbar buttons */
   --lwt-toolbarbutton-hover-background: rgba(179, 179, 179, 0.4);
   --lwt-toolbarbutton-active-background: rgba(179, 179, 179, 0.6);
 
   /* Search bars */
   --lwt-toolbar-field-background-color: rgb(71, 71, 73);
   --lwt-toolbar-field-color: var(--chrome-color);
@@ -50,37 +48,25 @@
 :root:-moz-lwtheme-darktext {
   --lwt-toolbar-field-background-color: #fff;
 
   --chrome-background-color: #e3e4e6;
   --chrome-color: #18191a;
   --chrome-secondary-background-color: #f5f6f7;
   --toolbox-border-bottom-color: #ccc;
   --chrome-nav-bar-controls-border-color: #ccc;
-  --chrome-selection-color: #f5f7fa;
-  --chrome-selection-background-color: #4c9ed9;
 
   /* composer header fields bottom border */
   --composer-header-border-color: #aaa;
 }
 
 toolbar[brighttext] .toolbarbutton-1 {
   fill: rgb(249, 249, 250);
 }
 
-#searchInput ::-moz-selection,
-#IMSearchInput ::-moz-selection,
-#peopleSearchInput ::-moz-selection,
-.remote-gloda-search ::-moz-selection,
-#qfb-qs-textbox ::-moz-selection,
-findbar ::-moz-selection {
-  background-color: var(--chrome-selection-background-color);
-  color: var(--chrome-selection-color);
-}
-
 /* Change the base colors for the mail chrome */
 
 #headers-box,
 #navigation-toolbox {
   background-color: var(--chrome-background-color);
   color: var(--chrome-color);
 }
 
@@ -102,21 +88,16 @@ findbar,
 .editContactTextbox {
   background-color: var(--lwt-toolbar-field-background-color);
   color: var(--lwt-toolbar-field-color);
 }
 .editContactTextbox:not([readonly="true"]):not([focused="true"]) {
   border-color: var(--lwt-toolbar-field-border-color);
 }
 
-.editContactTextbox ::-moz-selection {
-  background-color: var(--chrome-selection-background-color);
-  color: var(--chrome-selection-color);
-}
-
 /* Quick-Filter-Bar */
 #quick-filter-bar:-moz-lwtheme {
   background-color: var(--chrome-background-color);
   color: var(--chrome-color);
 }
 #quick-filter-bar:-moz-lwtheme-brighttext {
   --toolbarbutton-hover-background: var(--lwt-toolbarbutton-hover-background);
   --toolbarbutton-hover-bordercolor: var(--lwt-toolbarbutton-hover-background);
@@ -185,23 +166,16 @@ findbar,
 #msgSubject[focused="true"],
 .textbox-addressingWidget:hover,
 .textbox-addressingWidget[focused="true"] {
   background-color: var(--lwt-toolbar-field-background-color);
   color: var(--lwt-toolbar-field-color);
   border-color: var(--lwt-toolbar-field-border-color) !important;
 }
 
-#msgIdentity ::-moz-selection,
-#msgSubject ::-moz-selection,
-.textbox-addressingWidget ::-moz-selection {
-  background-color: var(--chrome-selection-background-color);
-  color: var(--chrome-selection-color);
-}
-
 .textbox-addressingWidget > .autocomplete-result-popupset {
   -moz-appearance: none;
   margin-top: -1px;
   background: var(--autocomplete-popup-background);
   color: var(--autocomplete-popup-color);
 }
 
 .textbox-addressingWidget panel[type="autocomplete-richlistbox"] {