Skip to content

Instantly share code, notes, and snippets.

@philipashlock
Created February 8, 2019 20:03
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save philipashlock/dbe845a351353d81bfac693f722e3b9e to your computer and use it in GitHub Desktop.
Save philipashlock/dbe845a351353d81bfac693f722e3b9e to your computer and use it in GitHub Desktop.
Firefox userChrome.css for use with Tree Style Tab on Mac OS
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Adapted from https://www.reddit.com/r/FirefoxCSS/comments/ao3ydl/configuring_firefox_for_tree_style_tab_usage/ */
/* hide native tabs and sidebar header */
#TabsToolbar-customization-target {
visibility: collapse;
}
#navigator-toolbox[inFullscreen="true"] #titlebar {
visibility: collapse;
}
#sidebar-header {
visibility: collapse;
}
/* realign elements */
#nav-bar {
margin-top: calc(-1 * var(--tab-min-height));
box-shadow: none !important;
}
#nav-bar[inFullscreen="true"] {
margin-top: unset;
margin-right: unset;
}
.titlebar-buttonbox-container {
min-height: var(--tab-min-height);
}
/* recolor elements and enable window dragging */
#navigator-toolbox {
background-color: var(--toolbar-bgcolor);
background-image: var(--toolbar-bgimage);
background-clip: padding-box;
color: var(--toolbar-color);
-moz-window-dragging: drag;
}
#TabsToolbar > .toolbar-items,
#TabsToolbar > .titlebar-spacer{ visibility: hidden }
#nav-bar{ margin-top: -32px; padding: 0px 15px 0px 75px !important; }
@JoveYu
Copy link

JoveYu commented Oct 12, 2019

good job, work well with left tree button

@holzingk
Copy link

To find the profile folder enter about:support into your address bar.

@safr-world
Copy link

Thanks for this, it's great :)
Do you know how to center vertical align the window controls? They're a bit too far to the top left.

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