aboutsummaryrefslogtreecommitdiff
path: root/styles/selection.css
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-06-27 10:04:46 +0200
committerlonkaars <loek@pipeframe.xyz>2021-06-27 10:04:46 +0200
commitffefeed888fe6f221a79575f8624257571eacf8d (patch)
treea40721186f380e51d071ec9385e04a6ef78c9558 /styles/selection.css
parent94824d7b8a12eb0d9d55935649c477ba65abe780 (diff)
loop selection working + fix #1
Diffstat (limited to 'styles/selection.css')
-rw-r--r--styles/selection.css8
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;
-}