aboutsummaryrefslogtreecommitdiff
path: root/styles/selection.css
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-06-16 15:35:43 +0200
committerlonkaars <loek@pipeframe.xyz>2021-06-16 15:35:43 +0200
commitb034f288d39e6fc58472db8711e5ba7b18ebc66b (patch)
tree61d19baec492c90fb14e107515e6d10977bd1284 /styles/selection.css
parent4686b5281e1f236437c8fae10139d6d205afc426 (diff)
better selection background + grabbing css
Diffstat (limited to 'styles/selection.css')
-rw-r--r--styles/selection.css33
1 files changed, 26 insertions, 7 deletions
diff --git a/styles/selection.css b/styles/selection.css
index 3c0e78b..6e16cee 100644
--- a/styles/selection.css
+++ b/styles/selection.css
@@ -7,11 +7,21 @@
}
.selection .bar.top,
+.selection .bar.bottom,
+.selection .background.center {
+ left: var(--corner-size);
+ right: var(--corner-size);
+}
+
+.selection .bar.top,
.selection .bar.bottom {
height: 2px;
+}
- left: var(--corner-size);
- right: var(--corner-size);
+.selection .background.left,
+.selection .background.right {
+ top: calc(var(--corner-size) - 2px);
+ bottom: calc(var(--corner-size) - 2px);
}
.selection .bar.left,
@@ -22,6 +32,7 @@
bottom: var(--corner-size);
}
+.selection div.fill,
.selection .bar {
background-color: var(--selection-color);
}
@@ -30,12 +41,20 @@
fill: var(--selection-color);
}
-.selection.active .background { opacity: .12; }
-.selection .background {
- border-radius: 6px;
- background-color: var(--selection-color);
+.selection .fill {
opacity: 0;
- transition: opacity 200ms;
+ transition-property: opacity;
+ transition-duration: 200ms;
+}
+
+.selection .background.left,
+.selection .background.right {
+ width: var(--corner-size);
+}
+
+.selection:hover .fill,
+.selection.active .fill {
+ opacity: .15;
}
.selection.hidden {