Skip to content

Instantly share code, notes, and snippets.

@reuben
Last active August 22, 2024 02:14
Show Gist options
  • Save reuben/4afa453611abd7f1477429b2c001fa1d to your computer and use it in GitHub Desktop.
Save reuben/4afa453611abd7f1477429b2c001fa1d to your computer and use it in GitHub Desktop.
Firefox userChrome.css for compact layout with Sideberry extension — add a "Flexible Space" on the left side of the toolbar to prevent navigation controls overlapping with macOS window controls
:root {
--uc-toolbar-height: 32px;
}
:root:not([uidensity="compact"]) {
--uc-toolbar-height: 34px;
}
#TabsToolbar > * {
visibility: collapse !important;
}
:root[sizemode="fullscreen"] #TabsToolbar > #window-controls {
visibility: visible !important;
z-index: 2;
}
#TabsToolbar > .titlebar-buttonbox-container {
visibility: visible !important;
height:var(--uc-toolbar-height) !important;
}
#nav-bar{
margin-top: calc(0px - var(--uc-toolbar-height));
}
:root[inFullscreen] #navigator-toolbox {
margin-top: 11px;
}
@reuben
Copy link
Author

reuben commented Aug 21, 2024

Screenshot 2024-08-21 at 22 15 44

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