Bug 1263171 - use -moz-fieldtext for identity box text for chrome pages on unofficial/nightly/aurora builds, r?dao
MozReview-Commit-ID: 9wpwLaf8RTy
--- a/browser/themes/shared/identity-block/identity-block.inc.css
+++ b/browser/themes/shared/identity-block/identity-block.inc.css
@@ -3,40 +3,45 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
%endif
#identity-box {
--identity-box-verified-color: hsl(92,100%,30%);
%ifdef MOZ_OFFICIAL_BRANDING
--identity-box-chrome-color: rgb(229,115,0);
+ --identity-box-chrome-text-color: rgb(229,115,0);
%else
%if MOZ_UPDATE_CHANNEL == aurora
--identity-box-chrome-color: rgb(51,30,84);
%else
--identity-box-chrome-color: rgb(0,33,71);
%endif
+ --identity-box-chrome-text-color: -moz-fieldtext;
%endif
font-size: .9em;
padding: 3px 5px;
overflow: hidden;
/* The padding-left and padding-right transitions handle the delayed hiding of
the forward button when hovered. */
transition: padding-left, padding-right;
}
#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity > #connection-icon,
#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity > #identity-icon-labels {
color: var(--identity-box-verified-color);
}
-#urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #connection-icon,
+#urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #connection-icon {
+ color: var(--identity-box-chrome-color);
+}
+
#urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #identity-icon-labels {
- color: var(--identity-box-chrome-color);
+ color: var(--identity-box-chrome-text-color);
}
#identity-icon-labels:-moz-locale-dir(ltr) {
padding-left: 2px;
}
#identity-icon-labels:-moz-locale-dir(rtl) {
padding-right: 2px;