-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
66 lines (55 loc) · 1.17 KB
/
style.css
File metadata and controls
66 lines (55 loc) · 1.17 KB
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
:root {
--grid-resolution: 0;
--cell-max-size: 60px;
}
html, body {
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
line-height: 1.3rem;
}
body {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
table, tr, td, th {
margin: 0;
padding: 0;
border: 0;
border-collapse: collapse;
}
td {
width: min(calc(98vw / var(--grid-resolution)), var(--cell-max-size));
height: min(calc(98vw / var(--grid-resolution)), var(--cell-max-size));
box-sizing: border-box;
touch-action: none;
}
td.dark {
background: black;
/*border-radius: 100%;*/
}
td.light {
background: white;
}
input[type="checkbox"]#toggle-grid:checked + main table td {
border: 2px solid #ccc;
}
.button {
display: inline-block;
margin: 0.5rem;
padding: 0.5rem 1rem;
background-color: #ccc;
border: 2px solid #bbb;
border-radius: 2px;
font-size: 1rem;
}
.button:hover {
background-color: #ddd;
}
.mt-small {
margin-top: 0.5rem
}
.mt-big {
margin-top: 2rem
}