From f3f47742bf860c3f30a5503a0d7b0b4c64c1744e Mon Sep 17 00:00:00 2001 From: Cameron Redmore Date: Mon, 16 Dec 2024 16:53:40 +0000 Subject: [PATCH] Adds easing, and fix for odd colours on background with hover enabled. --- sidebar-hover-reveal.css | 2 +- toolbox-hover-reveal.css | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/sidebar-hover-reveal.css b/sidebar-hover-reveal.css index 983d32f..bc01974 100644 --- a/sidebar-hover-reveal.css +++ b/sidebar-hover-reveal.css @@ -5,7 +5,7 @@ --sidebar-not-hovered-width: 50px; /* Other values not tested */ --sidebar-hovered-width: 226px !important; /* Other values not tested */ - --sidebar-transition-duration: 0.15s; + --sidebar-transition-duration: 0.15s ease; } #sidebar-main { diff --git a/toolbox-hover-reveal.css b/toolbox-hover-reveal.css index 1422d04..b0c7f2e 100644 --- a/toolbox-hover-reveal.css +++ b/toolbox-hover-reveal.css @@ -3,11 +3,11 @@ margin-top: -38px; z-index: 6 !important; - + position: relative; top: 0px; - transition: all 0.25s, background-color var(--inactive-window-transition) !important; + transition: all 0.25s ease, background-color var(--inactive-window-transition) !important; & * { opacity: 0; @@ -24,4 +24,12 @@ & * { opacity: 1; } +} + +body { + background: var(--toolbox-bgcolor); + + &:-moz-window-inactive { + background: var(--toolbox-bgcolor-inactive); + } } \ No newline at end of file