Skip to content

Instantly share code, notes, and snippets.

@waimus
Created August 31, 2021 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waimus/2f4db1ce6d93b352cec185236427bfb9 to your computer and use it in GitHub Desktop.
Save waimus/2f4db1ce6d93b352cec185236427bfb9 to your computer and use it in GitHub Desktop.
Firefox 91 GNOME Adwaita Theme: Container Color Circle on Tab Fix
/* 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