onionlocation.css (1100B)
1 /* Copyright (c) 2020, The Tor Project, Inc. */ 2 3 #onion-location-button { 4 list-style-image: url(chrome://global/skin/icons/onion-site.svg); 5 -moz-context-properties: fill; 6 fill: currentColor; 7 } 8 9 #tor-connect-urlbar-button:not([hidden]) ~ #onion-location-box { 10 /* Hide this button whilst the "Connect" button is shown. tor-browser#43406. 11 * This should only make a difference when the tor process dies mid-session. 12 * NOTE: We do not attempt to re-assign focus since the user should already 13 * have had their attention disrupted when the tor process dies mid-session. 14 * NOTE: If we hide this whilst the onion location popup is shown, the popup 15 * will instead become anchored to the site identity (padlock) button instead, 16 * but will return to the #onion-location-box once the "Connect" button is 17 * hidden again. In principle we could explicitly call 18 * PopupNotifications.anchorVisibilityChange() but mozilla code already has 19 * plenty of entry points to update the anchor position for us. 20 * Moreover, this scenario is expected to be a very rare. */ 21 display: none; 22 }