-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
97 lines (86 loc) · 1.79 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
*, *::before, *::after {
margin: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-color: #333;
height: 100svh;
}
canvas {
width: min(100svw, 100svh);
height: min(100svw, 100svh);
}
input[type="range"] {
cursor: pointer;
position: fixed;
bottom: 10px;
appearance: none;
width: 150px;
height: 18px;
background-color: transparent;
background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
height: 12px;
border-radius: 30px;
background-color: #000000;
border-color: #ffffff;
}
input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 18px;
height: 18px;
margin-top: -3px;
border-radius: 30px;
background-color: #F90;
}
input[type="range"]::-moz-range-track {
width: 100%;
height: 12px;
border-radius: 30px;
background-color: #000000;
}
input[type="range"]::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 30px;
background-color: #F90;
}
input[type="checkbox"] {
cursor: pointer;
position: fixed;
top: 10px;
right: 10px;
width: 20px;
height: 20px;
appearance: none;
}
input[type="checkbox"]::before {
content: "";
display: block;
position: absolute;
width: 100%;
height: 100%;
border: 2px solid #F90;
background-color: #0000;
border-radius: 3px;
}
input[type="checkbox"]:checked::before {
background-color: #F90;
}
input[type="checkbox"]:checked::after {
content: "";
display: block;
position: absolute;
left: 50%;
top: 50%;
width: 5px;
height: 10px;
transform: translate(-50%, -60%) rotate(45deg);
border-width: 2px;
border-color: #000;
border-style: none solid solid none;
}