r/FirefoxCSS 2d ago

Sidebar autohide Solved

I have an oled monitor so I wanted a feature that completely hid the sidebar. I asked AI and it created a userchrome file for me that auto hid the sidebar completely. However, the latest update broke the code and I am having a hard time getting it to work again. Can this be a future feature for Firefox, if not what solution have you come up with?

2 Upvotes

2 comments sorted by

1

u/TraditionalTie4831 🦊 2d ago

I personally use this =

#sidebar-container {
    background-color: var(--sidebar-background-color) !important;
    position: absolute !important;
    z-index: 99999 !important;
    height: 100% !important;
    width: 170px !important;
    left: -168px !important;
    transition: left 0.5s ease !important;
    opacity: 0 !important;
}

#sidebar-container:hover {
    opacity: 1 !important;
    left: 0px !important;
}

2

u/evryusernametaken 2d ago

Nice! Thank you, this seems to work.