-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
102 lines (92 loc) · 2.01 KB
/
style.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
@import url('https://fonts.googleapis.com/css2?family=Alegreya&display=swap');
body {
margin: 0;
padding: 0;
font-family: "Alegreya", serif;
}
svg {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.node {
stroke-width: 1.5px;
}
.link {
stroke-opacity: 0.1;
}
.label {
text-anchor: middle;
}
.controls {
position: absolute;
text-transform: uppercase;
font-weight: bold;
color: #0009;
font-size: 10px;
letter-spacing: 0.3ex;
bottom: 1em;
left: 1em;
background: rgba(255, 255, 255, 0.8);
z-index: 10;
width: 50%;
padding: 1em;
border-radius: .8ex;
}
.controls label{
display: block;
vertical-align: middle;
margin: 1ex 0;
}
/*********** Baseline, reset styles ***********/
input[type="range"] {
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
width: 100%;
max-width: 400px;
}
/* Removes default focus */
input[type="range"]:focus {
outline: none;
}
/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
background-color: #5c5c5c;
height: 1px;
}
/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none; /* Override default look */
appearance: none;
margin-top: -7.5px; /* Centers thumb on the track */
background-color: #808080;
border-radius: 50%;
height: 1rem;
width: 1rem;
}
input[type="range"]:focus::-webkit-slider-thumb {
outline: 3px solid #808080;
outline-offset: 0.125rem;
}
/*********** Firefox styles ***********/
/* slider track */
input[type="range"]::-moz-range-track {
background-color: #5c5c5c;
height: 1px;
}
/* slider thumb */
input[type="range"]::-moz-range-thumb {
background-color: #808080;
border: none; /*Removes extra border that FF applies*/
height: 1rem;
width: 1rem;
}
input[type="range"]:focus::-moz-range-thumb{
outline: 3px solid #808080;
outline-offset: 0.125rem;
}