aboutsummaryrefslogtreecommitdiff
path: root/styles/selection.css
blob: a139367a394f09d9b5d5ab4abdc16b315613620d (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
.selection {
	--selection-color: var(--gruble);
	--corner-size: 12px;
	filter: drop-shadow(0px 0px 16px var(--selection-color));
	transform: scale(calc(0.5 * var(--visibility) + 0.5));
	opacity: var(--visibility);
}

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