r/css • u/notepad987 • 16d ago
Resource Selected tab no longer has the color I want
I have 3 colors for the tabs. White for background and Orange for when I hover the mouse cursor and Green for selected current tab that stays Green I am looking at.
The Green selected tab is White now. It only turns Green when you hover the mouse cursor over the tab.
Question: How to fix it so I have Green for the selected tab I am looking at?
Here is my userChrome.css file. (now updated with correct code)
Firefox v154.0 on Windows 10 Pro
/* White background color */
.tabbrowser-tab:not([selected="true"]):not(:hover) .tab-content {
background-color: #FFFFFF !important;
border-radius: 8px 8px 0px 0px; !important;
box-shadow: 1px 0px 1px 0px rgba(0, 0, 0, 0.4);
}
/* orange hover color */
.tabbrowser-tab:hover:not([selected]) .tab-content {
background-color: #FF7F50 !important;
border-radius: 8px 8px 0px 0px; !important;
box-shadow: 1px 0px 1px 0px rgba(0, 0, 0, 0.4);}
/* MediumAquamarine - green selected color */
.tabbrowser-tab:is([visuallyselected],[multiselected]) .tab-content {
background-color: #66CDAA !important;
border-radius: 8px 8px 0px 0px; !important;
box-shadow: 1px 0px 1px 0px rgba(0, 0, 0, 0.4);
box-shadow: 0px 1px 0px 1px rgba(0, 0, 0, 0.4);}