help with Navigation/URL bar selectors

User Help for Mozilla Firefox
Post Reply
User avatar
BruceAWittmeier
Posts: 3076
Joined: June 9th, 2008, 10:53 am
Location: Near 37.501685 -80.147967

help with Navigation/URL bar selectors

Post by BruceAWittmeier »

I have over time messed up my navigation/URL bar region with adding/deducting code to make adjustments. I have these selectors in my userChrome.css file.

#nav-bar
#urlbar-container
#urlbar-iput-container
urlbar > #urlbar-background
#urlbar-input
#urlbar
And a few labels like this:
--urlbar-toolbar-height

Is there a diagram of what is the outermost field and work the way inward with selector names?
I often take a long windy road to my destination. Upon arrival, I wonder how I missed the shortcut.
semigeek
Posts: 322
Joined: April 16th, 2014, 8:54 pm
Location: Colorado

Re: help with Navigation/URL bar selectors

Post by semigeek »

Sounds like time to start over. Seriously, the urlbar code itself changes and gets more complicated as new features are added, so no static "diagram" would suffice. Just use Browser Toolbox to find each element you (still) want to restyle; it shows the area on screen, and the structure of the code. You can also find some useful information here:
https://www.userchrome.org/megabar-styl ... s-bar.html
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Re: help with Navigation/URL bar selectors

Post by dickvl »

Try to familiarize you with the Browser Toolbox.
https://firefox-source-docs.mozilla.org ... er_toolbox
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: help with Navigation/URL bar selectors

Post by morat »

Maybe use the searchfox.org site as well as the Browser Toolbox.

In order:

#nav-bar
#urlbar-container
#urlbar
#urlbar-background
#urlbar-input-container
#urlbar-input

Reference
http://searchfox.org/mozilla-release/se ... egexp=true
User avatar
BruceAWittmeier
Posts: 3076
Joined: June 9th, 2008, 10:53 am
Location: Near 37.501685 -80.147967

Re: help with Navigation/URL bar selectors

Post by BruceAWittmeier »

Thank you both for the links. They will be useful.
I often take a long windy road to my destination. Upon arrival, I wonder how I missed the shortcut.
Post Reply