Autohide Sidebar mit userChrome.css

Zero_Official

Lieutenant
Registriert
Sep. 2012
Beiträge
689
Hallo,

wer kann hier helfen, ich nutzte userchrome.css mit firefox 68.* Esr problemlos.
Mit Firefox Version ab 69 hat Mizilla die unterstützung dafür eingestellt.

Die einstellungen erlaubten mir die Sidebar automatisch mit Favoriten durch mausover zu erscheinen und
Verschwinden.

Dies funktioniert nun eingeschränkt, das heisst das die Favoriten zwar verschwinden aber nicht der Platz der Seitenleiste....
der bleibt konstant wird nur Unifarben.
Ich habe den Code von Github, aber keine Anhnung wie man den Modifizieren kann:

/*
* Description: Auto-hide sidebar.
*
* Contributor(s): img2tab
*/

/* To right-align the sidebar, replace all occurrences of "left" with "right", and "margin-right" with "margin-left" */

:root {
--sidebar-hover-width: 10px;
--sidebar-visible-width: 200px;
}

#sidebar-box {
position: relative !important;
overflow-x: hidden !important;
margin-right: calc(var(--sidebar-hover-width) * -1) !important;
left: var(--sidebar-hover-width) !important;
min-width: var(--sidebar-hover-width) !important;
max-width: var(--sidebar-hover-width) !important;
border-right: 1px solid var(--sidebar-border-color);
z-index: 1;
}

#sidebar-box:hover {
margin-right: calc(var(--sidebar-visible-width) * -1) !important;
left: var(--sidebar-visible-width) !important;
min-width: var(--sidebar-visible-width) !important;
max-width: var(--sidebar-visible-width) !important;
}

#sidebar {
opacity: 0 !important;
}

#sidebar-box:hover #sidebar {
opacity: 1 !important;
}

/* #sidebar-header is hidden by default, change "none" to "inherit" to restore it. */
#sidebar-header {
display: none !important;
}

/* #sidebar-splitter styles the divider between the sidebar and the rest of the browser. */
#sidebar-splitter {
display: none;
}

kann mir jemand helfen?
 
Ich nutze von windowspower.de folgenden Code erfolgreich mit dem aktuelle Fox:

https://www.windowspower.de/forum/t...kel-firefox-sidebar-per-maushover-oeffnen.20/

CSS:
@-moz-document url("chrome://browser/content/places/bookmarksSidebar.xhtml"),
               url("chrome://browser/content/browser.xhtml") {

#menu_bookmarksSidebar {
     display: -moz-box !important;
     }

#bookmarks-view-children {
     margin-top: -120px !important;
     margin-left: -15px !important;
    }

#sidebar-header {
    display: none !important;
    }

#sidebar-search-container {
    display: none !important;
    }

.sidebar-placesTreechildren::-moz-tree-separator {
    margin: 0px 500px !important;
    }

#sidebar-box {
    display: block !important;
    position: fixed!important;
    top: 116px;
    bottom: -35px;
    width: 0px !important;
    overflow-x: hidden !important;
    -moz-appearance: none !important;
    border: 1px solid transparent !important;
    border-left: 0 !important;
    opacity: 0 !important;
    transition: width .2s ease-out .2s, opacity .2s ease-out .2s !important;
    z-index: 2 !important;
    }

#sidebar-box:hover {
    width: 230px !important;
    opacity: 1 !important;
    transition: width .2s ease-out .2s, opacity .2s ease-out .2s !important;
    }

#sidebar-splitter {
    display: none !important;
    }

#sidebar {
    display: block !important;
    width: 100% !important;
    height: 95%;
    }
}
Ergänzung ()

Vergleiche mal. Denke an den Eintrag der about:config
 
  • Gefällt mir
Reaktionen: Zero_Official
Danke dir! habe ich gespeichert, komischerweise funktioniert heute die alte Config.
den Eintrag in about:config hatte ich ja gemacht.
 
Zurück
Oben