aboutsummaryrefslogtreecommitdiff
path: root/styles/selection.css
blob: 3c0e78be196a900e5b6efa56930abbe0eff4be50 (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
.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 {
	height: 2px;

	left: var(--corner-size);
	right: var(--corner-size);
}

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

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

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

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

.selection.active .background { opacity: .12; }
.selection .background {
	border-radius: 6px;
	background-color: var(--selection-color);
	opacity: 0;
	transition: opacity 200ms;
}

.selection.hidden {
	transform: scale(0.5);
	opacity: 0;
}