-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
65 lines (58 loc) · 1.09 KB
/
index.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
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100svh;
overflow: hidden;
background-color: #222;
}
canvas {
width: min(100svw, 100svh);
height: min(100svw, 100svh);
background-color: #333;
}
div {
position: fixed;
top: 10px;
right: 10px;
display: grid;
gap: 10px;
grid-auto-rows: 20px;
grid-template-columns: 1fr;
}
input {
position: relative;
width: 20px;
height: 20px;
appearance: none;
}
input::before {
content: "";
display: block;
position: absolute;
width: 100%;
height: 100%;
border: 2px solid #FD0;
background-color: #0000;
border-radius: 3px;
}
input:checked::before {
background-color: #FD0;
}
input: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;
}