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 31672 be687e46d8fccd2cc6480556e6afee7218c9f3fe
parent 31671 92075e129ec53a38060f3d4431216e011031be8f
child 31673 bd2a803007eb0182ec27ffdf0d0d8eb56be17288
push id26
push usermozilla@jorgk.com
push dateSun, 15 Jul 2018 18:56:40 +0000
treeherdercomm-esr60@bd2a803007eb [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 */
   --url-and-searchbar-background-color: rgb(71, 71, 73);
   --url-and-searchbar-color: var(--chrome-color);
@@ -51,43 +49,31 @@
 :root:-moz-lwtheme-darktext {
   --url-and-searchbar-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;
 
   /* autocomplete colors */
   --autocomplete-popup-background: #fff;
   --autocomplete-popup-color: #0c0c0d;
   --autocomplete-popup-border-color: ThreeDShadow;
   --urlbar-popup-url-color: hsl(210, 77%, 47%);
 }
 
 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);
 }
 
@@ -109,21 +95,16 @@ findbar,
 textbox.editContactTextbox {
   background-color: var(--url-and-searchbar-background-color);
   color: var(--url-and-searchbar-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);
@@ -207,23 +188,16 @@ popupset > #PopupGlodaAutocomplete {
 #msgSubject[focused="true"],
 .textbox-addressingWidget:hover,
 .textbox-addressingWidget[focused="true"] {
   background-color: var(--url-and-searchbar-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"] {