Skip to content

Instantly share code, notes, and snippets.

@mgrddsj
Created August 18, 2022 23:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgrddsj/e6b1c86ed15d82a504898347713905f1 to your computer and use it in GitHub Desktop.
Save mgrddsj/e6b1c86ed15d82a504898347713905f1 to your computer and use it in GitHub Desktop.
Firefox hide tabs bar and address bar
/* Hide tabs and title bar */
#TabsToolbar {
visibility: collapse;
}
#titlebar {
margin-bottom: -25px !important;
}
#titlebar-buttonbox {
height: 32px !important;
}
#nav-bar {
margin-right: 42px;
}
#main-window[sizemode="maximized"] #nav-bar {
margin-right: 42px;
}
/* "Auto-hide" address bar unless focused (e.g. Ctrl-L) or tab bar is hovered. */
:root {
--address-bar-height: 40px;
--browser-offset: calc(-1 * (var(--address-bar-height) + 1px));
}
#navigator-toolbox-background {
position: absolute !important;;
}
#navigator-toolbox-background ~ #browser {
margin-top: var(--browser-offset) !important;
}
#navigator-toolbox-background:hover, #navigator-toolbox-background:focus-within {
z-index: 9001 !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment