Skip to content

Instantly share code, notes, and snippets.

@thoughtsunificator
Last active August 6, 2024 22:41
Show Gist options
  • Save thoughtsunificator/4f6e23df5df450884e540e1670932f0d to your computer and use it in GitHub Desktop.
Save thoughtsunificator/4f6e23df5df450884e540e1670932f0d to your computer and use it in GitHub Desktop.
Firefox userChrome to autohide Sideberry panel
/* Based on https://gist.github.com/BrianGilbert/1ad7e3931406f485a86a35aefb0aa1b1 */
#main-window:has(#mainPopupSet:hover) #sidebar-box,
#main-window:has(#appcontent:hover) #sidebar-box {
width: 0!important;
min-width: 0!important;
}
@thoughtsunificator
Copy link
Author

Usage

Please refer to https://www.userchrome.org for enabling and installing userChrome.css for your version of Firefox.

@thoughtsunificator
Copy link
Author

Absolute positioning

#sidebar-box {
  position: absolute;
  left: 0;
  top: 40px; 
  height: 100%;
  z-index: 1;
}

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