Skip to content

Instantly share code, notes, and snippets.

@Riari
Last active August 16, 2021 02:57
Show Gist options
  • Save Riari/e19d75fa67f4073d14e50c05e2e99a68 to your computer and use it in GitHub Desktop.
Save Riari/e19d75fa67f4073d14e50c05e2e99a68 to your computer and use it in GitHub Desktop.
Firefox userChrome.css
@media (-moz-proton) {
#tabbrowser-tabs {
--proton-tab-block-margin: 0;
--tab-border-radius: 0;
}
.tab-background {
box-shadow: none !important;
margin: 0 !important;
}
#tabbrowser-tabs .tab-background > .tab-context-line {
margin: 0 !important;
}
.tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line {
height: 1px !important;
}
.tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line + .tab-loading-burst.proton {
background-color: var(--identity-icon-color);
opacity: 0.1;
}
}
@frabarz
Copy link

frabarz commented Jun 5, 2021

I use the Containers extension, and added these rules to tint containered tabs with the accent color:

  .tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line {
    height: 1px !important;
  }
  
  .tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line + .tab-loading-burst {
    background-color: var(--identity-tab-color);
    opacity: 0.1;
  }

It looks like this:

image

Edit: Firefox 91 made some changes, remove the .proton in the last rule, and the proton in the variable on line 3 to make it work again.

@Riari
Copy link
Author

Riari commented Jun 5, 2021

Nice - gonna use that as well. Thanks for sharing!

@int-ua
Copy link

int-ua commented Jun 5, 2021

Screenshot_20210605_115003
Thank you! Do you know if it's possible to also get rid of this gap between tabs completely?

Edit: and the padding around the address bar?
Edit 2: maybe it's the close button
Screenshot_20210605_141130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment