diff options
Diffstat (limited to 'styles/selection.css')
-rw-r--r-- | styles/selection.css | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/styles/selection.css b/styles/selection.css index 6e16cee..a139367 100644 --- a/styles/selection.css +++ b/styles/selection.css @@ -2,8 +2,8 @@ --selection-color: var(--gruble); --corner-size: 12px; filter: drop-shadow(0px 0px 16px var(--selection-color)); - transition-duration: 100ms; - transition-property: transform, opacity; + transform: scale(calc(0.5 * var(--visibility) + 0.5)); + opacity: var(--visibility); } .selection .bar.top, @@ -57,7 +57,3 @@ opacity: .15; } -.selection.hidden { - transform: scale(0.5); - opacity: 0; -} |