Skip to content

Instantly share code, notes, and snippets.

@rasmusmerzin
Last active March 18, 2026 08:57
Show Gist options
  • Select an option

  • Save rasmusmerzin/7170d719c88c7e1ee21f4397a347823e to your computer and use it in GitHub Desktop.

Select an option

Save rasmusmerzin/7170d719c88c7e1ee21f4397a347823e to your computer and use it in GitHub Desktop.
#titlebar,
#toolbar-menubar {
display: none !important;
}
#TabsToolbar {
--height: 42px;
height: var(--height) !important;
transition: margin-bottom 200ms !important;
&:not(:has(#tabbrowser-arrowscrollbox tab ~ tab)) /* single tab */ {
margin-bottom: calc(var(--height) * -1) !important;
position: fixed !important;
opacity: 0 !important;
}
}
#main-window {
&:not(:has(#tabbrowser-arrowscrollbox tab ~ tab)) /* single tab */ {
&:not(:has(#sidebar-box:not([hidden]))) /* sidebar hidden */ {
&:not(:has(#PersonalToolbar:not([collapsed]))) /* bookmarks hidden */ {
#navigator-toolbox:not(:focus-within) {
position: fixed !important;
opacity: 0 !important;
pointer-events: none !important;
#urlbar {
opacity: 0 !important;
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment