From 295a8a28fcbd52f5c8eceff9f6a6ec3bc4b32f52 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 8 Dec 2024 23:33:46 +0100 Subject: fix firefox userchrome with sidebar.revamp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .../firefox/hibiki.default/chrome/user.sidebar.css | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .mozilla/firefox/hibiki.default/chrome/user.sidebar.css (limited to '.mozilla/firefox/hibiki.default/chrome/user.sidebar.css') diff --git a/.mozilla/firefox/hibiki.default/chrome/user.sidebar.css b/.mozilla/firefox/hibiki.default/chrome/user.sidebar.css new file mode 100644 index 0000000..e286126 --- /dev/null +++ b/.mozilla/firefox/hibiki.default/chrome/user.sidebar.css @@ -0,0 +1,58 @@ +/* = SIDEBAR STUFF ========================================================== */ + +/* sidebar that collapses when not hovered */ +:root { + --thin-tab-width: 31px; + --wide-tab-width: 280px; +} + +@media (-moz-bool-pref: "sidebar.revamp") { + #sidebar-box { + padding: 0 !important; + } + + #sidebar { + border-radius: 0 !important; + } +} + +#sidebar-box { + width: unset !important; + z-index: 1; + opacity: 1.0 !important; + border-right: 1px solid var(--chrome-content-separator-color); + background-color: var(--toolbar-bgcolor) !important; +} + +#sidebar-box:not([hidden]) { + min-width: var(--thin-tab-width) !important; + max-width: var(--thin-tab-width) !important; + overflow-x: hidden !important; + /*animate transition*/ + /*transition: all 40ms !important;*/ +} + +#sidebar-box:not([hidden]):hover, +#sidebar-box:not([hidden]):active, +#sidebar-box:not([hidden]):focus-within, +#sidebar-box:not([hidden]):-moz-drag-over { + min-width: var(--wide-tab-width) !important; + max-width: var(--wide-tab-width) !important; +} + +/* make sure the contents of the sidebar are not squished */ +#sidebar { + min-width: var(--wide-tab-width) !important; + max-width: var(--wide-tab-width) !important; + margin-left: 0 !important; +} + +/* hide sidebar header */ +#sidebar-header { + visibility: collapse; +} + +/* hide sidebar shadow */ +#sidebar-splitter { + display: none !important; +} -- cgit 1.4.1