-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.css
53 lines (50 loc) · 968 Bytes
/
styles.css
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
.gauge {
position: relative;
height: 16rem;
width: 0.5rem;
background: rgb(203 213 225);
}
.gauge__progress {
position: absolute;
top: 0;
left: 0;
width: 100%;
background: rgb(99 102 241);
}
.gauge__tick {
position: absolute;
left: 100%;
width: 0.5rem;
height: 1px;
background: rgb(203 213 225);
}
.gauge__tick--minor {
width: 0.25rem;
}
.gauge__label {
position: absolute;
left: 50%;
transform: translate(0.5rem, -50%);
}
.gauge__marker {
position: absolute;
top: -0.5rem;
left: 0;
width: 0.5rem;
height: 1rem;
cursor: move;
user-select: none;
touch-action: none;
}
.gauge__marker::before {
content: '';
position: absolute;
top: 0;
left: 0;
transform: translateX(-100%);
border-style: solid;
height: 0;
width: 0;
border-color: transparent transparent transparent rgb(99 102 241);
border-width: 0.5rem 0 0.5rem 0.5rem;
}