-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
155 lines (136 loc) · 3.14 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
@import url("https://fonts.googleapis.com/css2?family=Rubik&display=swap");
html,
body {
margin: 0;
padding: 0;
font-family: "Rubik", sans-serif;
}
body {
height: 100vh;
display: grid;
grid-template-columns: auto 350px;
}
#defaultCanvas0 {
padding-left: 0;
padding-right: 0;
/* margin-left: auto;
margin-right: auto; */
display: block;
}
.control-panel {
padding: 20px;
background: #1a1a1a; /* dark magenta */
}
.label {
color: white;
padding-bottom: 20px;
}
.color-picker {
display: block;
width: 100%;
height: 5ch;
border: none;
}
button {
width: 100%;
height: 5ch;
border: none;
font-family: inherit;
font-size: 1em;
text-decoration: none;
color: #1a1a1a; /* dark magenta */
background: #b3b3b3; /* light magenta */
}
button:hover {
background: #666666; /* magenta */
}
input[type="range"] {
width: 100%;
margin: 2px 0;
background-color: transparent;
-webkit-appearance: none;
}
input[type="range"]:focus {
outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
background: rgba(150, 150, 150, 0.5);
border: 1.5px solid rgba(100, 100, 100, 0.5);
border-radius: 16px;
width: 100%;
height: 20px;
cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
margin-top: -3.5px;
width: 16px;
height: 24px;
background: #ffffff;
border: 0.2px solid rgba(0, 0, 0, 0.3);
border-radius: 3px;
cursor: pointer;
-webkit-appearance: none;
}
input[type="range"]:focus::-webkit-slider-runnable-track {
background: #a0a0a0;
}
input[type="range"]::-moz-range-track {
background: rgba(150, 150, 150, 0.5);
border: 1.5px solid rgba(100, 100, 100, 0.5);
border-radius: 16px;
width: 100%;
height: 20px;
cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
width: 16px;
height: 24px;
background: #ffffff;
border: 0.2px solid rgba(0, 0, 0, 0.3);
border-radius: 3px;
cursor: pointer;
}
input[type="range"]::-ms-track {
background: transparent;
border-color: transparent;
border-width: 2px 0;
color: transparent;
width: 100%;
height: 20px;
cursor: pointer;
}
input[type="range"]::-ms-fill-lower {
background: #8c8c8c;
border: 1.5px solid rgba(100, 100, 100, 0.5);
border-radius: 32px;
}
input[type="range"]::-ms-fill-upper {
background: rgba(150, 150, 150, 0.5);
border: 1.5px solid rgba(100, 100, 100, 0.5);
border-radius: 32px;
}
input[type="range"]::-ms-thumb {
width: 16px;
height: 24px;
background: #ffffff;
border: 0.2px solid rgba(0, 0, 0, 0.3);
border-radius: 3px;
cursor: pointer;
margin-top: 0px;
/*Needed to keep the Edge thumb centred*/
}
input[type="range"]:focus::-ms-fill-lower {
background: rgba(150, 150, 150, 0.5);
}
input[type="range"]:focus::-ms-fill-upper {
background: #a0a0a0;
}
/*TODO: Use one of the selectors from https://stackoverflow.com/a/20541859/7077589 and figure out
how to remove the virtical space around the range input in IE*/
@supports (-ms-ime-align: auto) {
/* Pre-Chromium Edge only styles, selector taken from hhttps://stackoverflow.com/a/32202953/7077589 */
input[type="range"] {
margin: 0;
/*Edge starts the margin from the thumb, not the track as other browsers do*/
}
}