Created
August 31, 2021 04:44
-
-
Save waimus/2f4db1ce6d93b352cec185236427bfb9 to your computer and use it in GitHub Desktop.
Firefox 91 GNOME Adwaita Theme: Container Color Circle on Tab Fix
This file contains hidden or 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
/* firefox 91+ */ | |
/* userchrome.css or tabsbar.css */ | |
/* problem: using custom CSS theme such as Firefox Adwaita or WhiteSur put a circle in the tab if the tab opened in a container */ | |
/* solution: */ | |
/* create border that colored with container identifier */ | |
.tabbrowser-tab[class*="identity-color-"] { | |
border-bottom: 3px solid var(--identity-icon-color) !important; | |
} | |
/* Create new container tab indicator */ | |
.tabbrowser-tab[class*="identity-color-"] .tab-content::before { | |
content: ""; | |
display: block; | |
background-image: var(#userContext-icons:--identity-icon); | |
background: transparent; /* modified to transparent to remove the weird circle near icon */ | |
-moz-context-properties: fill; | |
fill: var(--identity-icon-color); | |
background-size: contain; | |
background-repeat: no-repeat; | |
background-position: center center; | |
min-width: 10px; | |
height: 10px; | |
margin-right: 5px; | |
margin-left: auto !important; | |
border-radius: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment