Created
July 27, 2023 14:55
-
-
Save archae0pteryx/b25473d55486359c70b8e8ddf85f41fa to your computer and use it in GitHub Desktop.
firefox-tabs-bottom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* | |
https://github.com/Arty2/userstyles | |
@version 0.2.5 | |
1. Find your profile folder `about:support > Profile Folder > Open Folder` or locate the exact profile in use by visiting `about:profiles`. | |
2. Create a folder named `chrome` then create a file named userChrome.css inside it and paste the following code. | |
3. If userChrome.css doesn’t seem to work, open `about:config` and set `toolkit.legacyUserProfileCustomizations.stylesheets=true`. | |
4. Restart Firefox. | |
Other references: | |
Firefox Support forum - Tabs below the URL bar: https://support.mozilla.org/en-US/kb/forum-response-tabs-below-url-bar | |
Custom CSS tweaks for Firefox Quantum: https://github.com/Aris-t2/CustomCSSforFx | |
*/ | |
/*---------------------------------------------------------- | |
Tabs to Bottom | |
source: https://github.com/Arty2/userstyles/blob/master/tabs_to_bottom.userchrome.css | |
UI model: | |
#navigator-toolbox-background | |
#navigator-toolbox | |
#titlebar | |
#toolbar-menubar | |
#TabsToolbar | |
#nav-bar | |
#PersonalToolbar | |
#browser | |
*/ | |
/* bring the browser window to the top */ | |
#browser { | |
-moz-box-ordinal-group: 0 !important; | |
order: 0 !important; | |
} | |
#navigator-toolbox-background { | |
-moz-box-ordinal-group: 1 !important; | |
order: 1 !important; | |
} | |
/* adjust paddings */ | |
*|*:root[sizemode="normal"] #browser { | |
padding-top: 0 !important; | |
} | |
/* hide tab toolbar when fullscreen */ | |
#nav-bar[inFullscreen], | |
#TabsToolbar[inFullscreen] { | |
display: none; | |
} | |
/* restore top border */ | |
*|*:root[sizemode="normal"] #browser { | |
border-top: .5px solid AccentColor !important; | |
} | |
*|*:root[sizemode="normal"]:-moz-window-inactive #browser { | |
border-top-color: rgb(57,57,57) !important; | |
} | |
/* make toolbar border persist on fullscreen */ | |
*|*:root[sizemode="maximized"] #navigator-toolbox { | |
border-top: .5px solid AccentColor !important; | |
border-bottom: .5px solid AccentColor !important; | |
} | |
/* hide titlebar buttons */ | |
#TabsToolbar > .titlebar-buttonbox-container { | |
display: none !important; | |
} | |
/*fix pop-ups opening below window*/ | |
#urlbar[open]{ | |
display: flex !important; | |
flex-direction: column-reverse; /* use 'column' if you want to type the URL in center*/ | |
bottom: -2px !important; | |
top: auto !important; | |
} | |
/*.urlbarView-body-inner { border-top: none !important; }*/ | |
/*.urlbarView { display: none !important; }*/ /* uncomment this to hidden address bar suggestions */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment