Last active
October 20, 2025 12:01
-
-
Save diogotito/43d2ce235be0b0af6268412048bd0bfb to your computer and use it in GitHub Desktop.
Sideberry custom CSS + a userChrome.css to hide surrounding panel UI elements when the Sidebery panel is active
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"); */ | |
| /* btw this collection looks cool | |
| https: //mrotherguy.github.io/firefox-csshacks/ | |
| */ | |
| /** Import Lepton stylesheet (Chrome) *****************************************/ | |
| /* @import url("css/leptonChrome.css"); */ | |
| /** Add your custom styles below **********************************************/ | |
| /* Enable option to edit bookmark URLs under Add Bookmark (blue star) menu */ | |
| .editBMPanel_locationRow { | |
| display: initial !important; | |
| } | |
| /* Disable Email Image/Audio/Video and Set as Desktop Background context menu items */ | |
| #context-sendimage, | |
| #context-sendvideo, | |
| #context-sendaudio, | |
| #context-sep-setbackground, | |
| #context-setDesktopBackground, | |
| #context-inspect-a11y { | |
| display: none !important; | |
| } | |
| #main-menubar>menu>label.menu-text { | |
| color: rgb(91, 91, 102); | |
| } | |
| /* Hide the revamped sidebar header */ | |
| #sidebar-panel-header { | |
| display: none !important; | |
| } | |
| /* When Sidebery is active */ | |
| #main-window[titlepreface*="[S]"], | |
| #main-window[titlepreface*=""] { | |
| /************************/ | |
| /* Hide horizontal tabs */ | |
| /************************/ | |
| #TabsToolbar { | |
| > .toolbar-items { height: 0 !important; } | |
| > .titlebar-spacer, | |
| > .titlebar-buttonbox-container { display: none !important; } | |
| } | |
| /* Show window buttons */ | |
| #nav-bar > .titlebar-buttonbox-container, | |
| #nav-bar > .titlebar-buttonbox-container > .titlebar-buttonbox { | |
| display: flex !important; | |
| } | |
| /*****************************************************************/ | |
| /* Make Sidebery "take control" of the entirety of the side bar */ | |
| /*****************************************************************/ | |
| #sidebar { | |
| border: unset !important; | |
| border-radius: unset !important; | |
| box-shadow: unset !important; | |
| outline: unset !important; | |
| background-color: var(--toolbox-bgcolor); | |
| color: var(--sidebar-text-color); | |
| } | |
| #sidebar-header { | |
| /* visibility: collapse; */ | |
| display: none !important; | |
| } | |
| #sidebar-launcher-splitter { | |
| display: none; | |
| } | |
| #sidebar-main { | |
| display: none; | |
| } | |
| #sidebar-box { | |
| padding: 0 !important; | |
| border-radius: 0 !important; | |
| box-shadow: none !important; | |
| outline: none !important; | |
| background-color: var(--sidebar-background-color); | |
| color: var(--sidebar-text-color); | |
| } | |
| #TabsToolbar { | |
| height: 0 !important; | |
| } | |
| #tabbrowser-tabs { | |
| z-index: 0 !important; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment