- Go to
about:config
, enable these flags:toolkit.legacyUserProfileCustomizations.stylesheets
layout.css.color-mix.enabled
- Go to
about:support
, look for profile folder. - Add the CSS below to chrome/userChrome.css inside the profile folder.
Last active
September 6, 2023 19:35
-
-
Save dangh/25315d954898f20a76a0d9b6f14c9b4d to your computer and use it in GitHub Desktop.
Prominent tab color for Firefox container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**/ | |
.tabbrowser-tab[usercontextid] .tab-context-line { | |
display: none; | |
} | |
.tabbrowser-tab[usercontextid] .tab-background { | |
background: var(--identity-tab-bgcolor) !important; | |
border: 1px solid var(--identity-tab-border-color); | |
box-shadow: 0 0 4px var(--identity-tab-shadow-color) !important; | |
} | |
.tabbrowser-tab[usercontextid] { | |
--identity-tab-bgcolor: color-mix(in srgb, var(--identity-tab-color) 20%, transparent); | |
--identity-tab-border-color: color-mix(in srgb, var(--identity-tab-color) 50%, transparent); | |
} | |
.tabbrowser-tab[usercontextid]:hover { | |
--identity-tab-bgcolor: color-mix(in srgb, var(--identity-tab-color) 30%, transparent); | |
} | |
.tabbrowser-tab[usercontextid][selected] { | |
--identity-tab-bgcolor: color-mix(in srgb, var(--identity-tab-color) 50%, var(--tab-selected-bgcolor, var(--toolbar-bgcolor))); | |
--identity-tab-border-color: color-mix(in srgb, var(--identity-tab-color) 90%, currentColor); | |
--identity-tab-shadow-color: var(--identity-tab-color, #000); | |
} | |
/**/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment