Bug 1263171 - use -moz-fieldtext for identity box text for chrome pages on unofficial/nightly/aurora builds, r?dao draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Tue, 30 Aug 2016 17:50:07 +0100
changeset 407528 84ce9019e301efe5b61e30360b79ad287f4fa0b5
parent 407496 b18c8bcdc116eef8799880b7c50317bf54218474
child 529899 73bd538c38bf6ef59048d4baded58e0e6ba98e9c
push id27991
push usergijskruitbosch@gmail.com
push dateTue, 30 Aug 2016 16:50:27 +0000
reviewersdao
bugs1263171
milestone51.0a1
Bug 1263171 - use -moz-fieldtext for identity box text for chrome pages on unofficial/nightly/aurora builds, r?dao MozReview-Commit-ID: 9wpwLaf8RTy
browser/themes/shared/identity-block/identity-block.inc.css
--- 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;