Skip to content

Instantly share code, notes, and snippets.

@pethesdaniel
Last active June 8, 2021 00:24
Show Gist options
  • Save pethesdaniel/ec2319e5038a6b4722d3e692713f9471 to your computer and use it in GitHub Desktop.
Save pethesdaniel/ec2319e5038a6b4722d3e692713f9471 to your computer and use it in GitHub Desktop.
Firefox 89.0beta Skeuomorph tabs
.tab-background {
border-radius: var(--tab-border-radius) var(--tab-border-radius) 0px 0px !important;
margin-bottom: 0px !important;
}
#tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-background[multiselected="true"]:-moz-lwtheme, #tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-background[selected="true"]:-moz-lwtheme {
background-image: linear-gradient(var(--toolbar-bgcolor, transparent), var(--toolbar-bgcolor, transparent)), linear-gradient(var(--toolbar-bgcolor), var(--toolbar-bgcolor)), var(--lwt-header-image, none) !important;
}
#TabsToolbar[brighttext] #tabbrowser-tabs:not([noshadowfortests]) .tabbrowser-tab:is([visuallyselected="true"], [multiselected]) > .tab-stack > .tab-background:-moz-lwtheme {
box-shadow: 0 0 1px var(--dark-menu-color) !important;
}
.tab-content {
margin-top: var(--proton-tab-block-margin);
}
#TabsToolbar .toolbarbutton-1 {
margin-top: var(--proton-tab-block-margin) !important;
}
@black7375
Copy link

@Dragoner7
I can't find --dark-menu-color. Do you mean --toolbar-color?

@pethesdaniel
Copy link
Author

@black7375 When using Remote Debugging to inspect the browser UI, Firefox prompted it as an option, when typing var(--something). I don't know where it's being defined thought. It's not in browser.css.

@black7375
Copy link

you can find css vars:

// at Remote Debugging Webconsole
getComputedStyle(document.documentElement).getPropertyValue('--css-var-name')

@black7375
Copy link

@Dragoner7
I used this code at my project, what about the license?
I'am currently write a list of credits.

@pethesdaniel
Copy link
Author

@black7375 Yeah, I know, I use your theme, It's really good. 😄

MPL 2.0, I guess? Since it contains some snippets from the Firefox source.

@black7375
Copy link

Ok, good.
Thank you for using my project.

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