Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

Changing background color of search box and quick links in new tab

  • 4 odpovede
  • 0 má tento problém
  • 72 zobrazení
  • Posledná odpoveď od aidantomcy

more options

How do I change the background color of the search box and quick links in a new tab? I'm using Firefox color.

How do I change the background color of the search box and quick links in a new tab? I'm using Firefox color.

Vybrané riešenie

Thank you so much!

Čítať túto odpoveď v kontexte 👍 0

Všetky odpovede (4)

more options

Themes can change this with ntp_card_background but it is not exposed by Firefox Color.

Another way is with userContent.css:

@-moz-document url(about:home), url(about:newtab) {
  body {
    --newtab-background-color-secondary: red !important; 
  }

}

Pomohla vám táto odpoveď?

more options

So how do I change it? I'm not planning on publishing a theme (I'm just doing this to change the appearance of Firefox for myself). I tried poking around in the CSS and changing the variable works fine. How do I make it permanent?

Upravil(a) aidantomcy dňa

Pomohla vám táto odpoveď?

more options

Follow the same procedure here but name the file userContent.css instead of userChrome.css.

Pomohla vám táto odpoveď?

more options

Vybrané riešenie

Thank you so much!

Pomohla vám táto odpoveď?

Položiť otázku

Ak chcete odpovedať na príspevky, musíte sa prihlásiť do svojho účtu. Ak ešte nemáte účet, položte novú otázku.