aboutsummaryrefslogtreecommitdiff
path: root/styles/selection.css
blob: 6e16ceeb105b366848d0bb30c65ce7825fd2e7be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.selection {
	--selection-color: var(--gruble);
	--corner-size: 12px;
	filter: drop-shadow(0px 0px 16px var(--selection-color));
	transition-duration: 100ms;
	transition-property: transform, opacity;
}

.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;
}

.selection .background.left,
.selection .background.right {
	top: calc(var(--corner-size) - 2px);
	bottom: calc(var(--corner-size) - 2px);
}

.selection .bar.left,
.selection .bar.right {
	width: 2px;

	top: var(--corner-size);
	bottom: var(--corner-size);
}

.selection div.fill,
.selection .bar {
	background-color: var(--selection-color);
}

.selection .corner {
	fill: var(--selection-color);
}

.selection .fill {
	opacity: 0;
	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 {
	transform: scale(0.5);
	opacity: 0;
}