Bug 1366200- Move identity block styles out of browser.css r=johannh
authorui.manish <1991manish.kumar@gmail.com>
Thu, 07 Feb 2019 11:16:59 +0000
changeset 457615 95a7957012db8d8edb93f630f61a5d204cbb2d9c
parent 457614 5a1d7bbc58cf3bc7daa18237ca67f02d905e5344
child 457616 c9f9e4c965cf4516bcdfd2efe50a32896c379ac2
push id35516
push userrmaries@mozilla.com
push dateFri, 08 Feb 2019 04:23:26 +0000
treeherdermozilla-central@d599d1a73a3a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1366200
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1366200- Move identity block styles out of browser.css r=johannh Differential Revision: https://phabricator.services.mozilla.com/D18658
browser/base/content/browser.css
browser/themes/shared/identity-block/identity-block.inc.css
--- a/browser/base/content/browser.css
+++ b/browser/base/content/browser.css
@@ -775,33 +775,24 @@ html|input.urlbar-input {
 #PopupAutoCompleteRichResult.showSearchSuggestionsNotification > richlistbox {
   transition: none;
 }
 
 #urlbar[pageproxystate=invalid] > #page-action-buttons > .urlbar-page-action,
 #identity-box.chromeUI ~ #page-action-buttons > .urlbar-page-action:not(#star-button-box),
 .urlbar-history-dropmarker[usertyping],
 .urlbar-go-button:not([usertyping]),
-.urlbar-go-button:not([parentfocused="true"]),
-#urlbar[pageproxystate="invalid"] > #identity-box > #blocked-permissions-container,
-#urlbar[pageproxystate="invalid"] > #identity-box > #notification-popup-box,
-#urlbar[pageproxystate="invalid"] > #identity-box > #identity-icon-labels {
+.urlbar-go-button:not([parentfocused="true"]) {
   display: none;
 }
 
 #identity-box {
   -moz-user-focus: normal;
 }
 
-#urlbar[pageproxystate="invalid"] > #identity-box {
-  pointer-events: none;
-  -moz-user-focus: ignore;
-}
-
-
 /* We leave 49ch plus whatever space the download button will need when it
  * appears. Normally this should be 16px for the icon, plus 2 * 2px padding
  * plus the toolbarbutton-inner-padding. We're adding 4px to ensure things
  * like rounding on hidpi don't accidentally result in the button going
  * into overflow.
  */
 #urlbar-container {
   min-width: calc(49ch + 24px + 2 * var(--toolbarbutton-inner-padding));
--- a/browser/themes/shared/identity-block/identity-block.inc.css
+++ b/browser/themes/shared/identity-block/identity-block.inc.css
@@ -11,16 +11,27 @@
   /* Set default fill for icons in the identity block.
      Individual icons can override this. */
   fill: currentColor;
   fill-opacity: .6;
   /* This is for tracking-protection-icon's slide-in animation. */
   overflow: hidden;
 }
 
+#urlbar[pageproxystate="invalid"] > #identity-box > #blocked-permissions-container,
+#urlbar[pageproxystate="invalid"] > #identity-box > #notification-popup-box,
+#urlbar[pageproxystate="invalid"] > #identity-box > #identity-icon-labels {
+  display: none;
+}
+
+#urlbar[pageproxystate="invalid"] > #identity-box {
+  pointer-events: none;
+  -moz-user-focus: ignore;
+}
+
 #identity-box:hover:not(.no-hover):not([open=true]) {
   background-color: hsla(0,0%,70%,.2);
   fill-opacity: .8;
 }
 
 #identity-box:hover:active:not(.no-hover),
 #identity-box[open=true] {
   background-color: hsla(0,0%,70%,.3);