Bug 1406814 - Avoid theme color overriding readonly style. r?dao draft
authorDale Harvey <dale@arandomurl.com>
Mon, 20 Nov 2017 17:37:40 +0000
changeset 700660 03a37fbb05755a5e7ad7557b9e9aa1d8c59e4676
parent 700659 0af8d899db740b9b80f81d51c373ed105ea809d3
child 740956 b589b4c494c5fdd5f6c2450b7bed520bc1f7c0fb
push id89924
push userbmo:dharvey@mozilla.com
push dateMon, 20 Nov 2017 17:38:17 +0000
reviewersdao
bugs1406814
milestone59.0a1
Bug 1406814 - Avoid theme color overriding readonly style. r?dao MozReview-Commit-ID: 2CjzDaeuv6D
browser/themes/shared/urlbar-searchbar.inc.css
--- a/browser/themes/shared/urlbar-searchbar.inc.css
+++ b/browser/themes/shared/urlbar-searchbar.inc.css
@@ -34,24 +34,24 @@
 }
 
 #urlbar:hover,
 .searchbar-textbox:hover {
   border-color: hsla(240,5%,5%,.35);
   box-shadow: 0 1px 6px rgba(0,0,0,.1);
 }
 
-#urlbar:-moz-lwtheme,
+#urlbar:not([readonly]):-moz-lwtheme,
 #navigator-toolbox .searchbar-textbox:-moz-lwtheme {
   background-color: var(--url-and-searchbar-background-color, hsla(0,0%,100%,.8));
   color: var(--url-and-searchbar-color, black);
 }
 
-#urlbar:-moz-lwtheme:hover,
-#urlbar:-moz-lwtheme[focused="true"],
+#urlbar:not([readonly]):-moz-lwtheme:hover,
+#urlbar:not([readonly]):-moz-lwtheme[focused="true"],
 #navigator-toolbox .searchbar-textbox:-moz-lwtheme:hover,
 #navigator-toolbox .searchbar-textbox:-moz-lwtheme[focused="true"] {
   background-color: var(--url-and-searchbar-background-color, white);
 }
 
 :root[uidensity=compact] #urlbar,
 :root[uidensity=compact] .searchbar-textbox {
   min-height: 26px;