We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Any way to change the color of the active tab in FF57 (CSS?)

  • 4 réponses
  • 13 ont ce problème
  • 1 vue
  • Dernière réponse par no.name

more options

Hello,

Love Firefox 57, but would like to change the ACTIVE tab color (currently using the stock "Dark" theme). I know there is a blue bar above the active tab, but I really, REALLY, liked the way the active tab looked in Firefox 56 (solid blue). Any way to change this using CSS or a better way if you have one? I want to keep the "Dark" theme, just change the color of the active tab. It should be able to be done using CSS, but I don't know how.

Any help would be greatly appreciated!

BTW: I need detailed instructions, as I have never done any mods using CSS before. Thanks!

P.S. Right now, I am on the ESR awaiting an extension to be finished porting to a WebEx, but would love to get this info as I have been testing out Firefox 57.

Thanks for your time!

Hello, Love Firefox 57, but would like to change the ACTIVE tab color (currently using the stock "Dark" theme). I know there is a blue bar above the active tab, but I really, REALLY, liked the way the active tab looked in Firefox 56 (solid blue). Any way to change this using CSS or a better way if you have one? I want to keep the "Dark" theme, just change the color of the active tab. It should be able to be done using CSS, but I don't know how. Any help would be greatly appreciated! BTW: I need detailed instructions, as I have never done any mods using CSS before. Thanks! P.S. Right now, I am on the ESR awaiting an extension to be finished porting to a WebEx, but would love to get this info as I have been testing out Firefox 57. Thanks for your time!

Solution choisie

Create a userChrome.css file using these instructions: https://www.userchrome.org/how-create-userchrome-css.html

When you get to the "adding style recipes to userChrome.css" step, use this CSS:

.tab-background[selected="true"] {
background-color: red; /* this sets the color of the tab background */
}
.tab-line[selected="true"] {
background-color : red; /* this sets the color of the line above the tab */
}

You can change the colors listed above to any valid CSS color (you can use this tool: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Colors/Color_picker_tool , copy the "hexa" value, and replace the "red" above with that value).

Lire cette réponse dans son contexte 👍 2

Toutes les réponses (4)

more options

Solution choisie

Create a userChrome.css file using these instructions: https://www.userchrome.org/how-create-userchrome-css.html

When you get to the "adding style recipes to userChrome.css" step, use this CSS:

.tab-background[selected="true"] {
background-color: red; /* this sets the color of the tab background */
}
.tab-line[selected="true"] {
background-color : red; /* this sets the color of the line above the tab */
}

You can change the colors listed above to any valid CSS color (you can use this tool: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Colors/Color_picker_tool , copy the "hexa" value, and replace the "red" above with that value).

more options

Hi no.name, when you find something attractive, please share your CSS back.

(For best results pasting CSS here, put <pre> and </pre> after.)

more options

Thank You user1929! - Perfect. I really appreciate your time. Oh, and thanks for the link to the color generator - excellent!

Modifié le par no.name

more options

jscher2000 said

Hi no.name, when you find something attractive, please share your CSS back. (For best results pasting CSS here, put <pre> and </pre> after.)

Ok, but everyone has there own taste :) - I'm still trying different combos. I am using the link user1929 gave me in his post to "mix" colors.

Modifié le par no.name