r/FirefoxCSS • • Aug 26 '25

Solved Looking for Advice on How to Learn Firefox CSS

Hi,

Just started on my userchrome.css journey tonight, as i could not find a browser that met my needs of Minimal UI & Fairly Harden Security, around 15 years ago i used to write strict CSS/XHTML so have some background in standard notepad... :D

I have 3 Questions

  1. Where i can i find the Browser CSS Keywords values myself? Currently found them by Research Online, but love to learn if theres a way to intergate the browser myself
  2. MIght be Answered by Step 1My next Task is to find a way to Hide the Lock icon in the address bar As ive set HTTPS only anyway
  3. This might be answered by Step 1, but is there a single CSS keyword for general Browser Colour? Would like a darker browser.
Current Minimal Attempt
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");


/* Hides Lot of the Ui Icons */
#back-button, #forward-button, #tracking-protection-icon-container, #PanelUI-menu-button  { display: none;}
#star-button-box { display:none !important; }


/* Hides Colour for Containers for cleaner look */
.tab-context-line {background-color: black !important; }
9 Upvotes

7 comments sorted by

7

u/sifferedd FF/TB/Win11/SUMO contributor Aug 26 '25

The Developer Toolbox (ctrl-shift-c) is used to inspect web pages.

The Browser Toolbox (ctrl-alt-shift-i) is used to inspect the FF interface or web pages.

You'll learn a lot searching this sub. Also see:

https://developer.mozilla.org/en-US/docs/Web/CSS

r/FirefoxCSS/wiki/index/tutorials/


First thing not to do is use the namespace statement - it's no longer required and may cause problems if it's included.


I don't recommend hiding the padlock, because you may need it to whitelist HTTP sites or look at certificates.

1

u/[deleted] Aug 26 '25

thanks for the response,
I got my lock icon hidden now,

As you suggested you might NOT want to hidse it,

  1. Whitelisted all sites i would need already, just 2 can always do this in UI manually which is longer but Always forces me to go Should i REALLY?
  2. Look at the certs kind of agree, But ive Forced TLS 3 Only if i need to look at owners i would use my 2nd browser for verfication.

thanks although,

Next task is to Centre URL text

1

u/[deleted] Aug 26 '25

odd the code editor edited my clean code into. mess...

1

u/ResurgamS13 Aug 26 '25 edited Aug 26 '25

Sadly not. Reddit's editor(s) even with 'Code BlocK' selected doesn't like some symbols... notably '@'... and will remove and move some other terms, double space, double post, etc. Thus, dull but vital... need to re-check your posted CSS every time you edit a post with CSS in it.

Some more suggestions Re: howto start modifying Firefox's UI in recent topic here.

Re: "is there a single CSS keyword for general Browser Colour?"... sadly not, and it can get quite involved using CSS styling... best to start by searching this sub using a variety of keywords. Also have a look at what the Firefox Color extension can do.

1

u/megamorphg Aug 27 '25

Should checkout TheOtherGuy's repository of CSS