-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
90 lines (79 loc) · 1.76 KB
/
styles.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
body {
margin: 5px;
background: rgba(0, 0, 0, 0.9);
color-scheme: dark only;
}
section {
/* margin: 0 auto; */
/* text-align: center; */
display: flex;
flex-wrap: wrap;
align-content: center;
justify-content: flex-start;
}
div {
box-sizing: border-box;
/* 75px */
/* --boxSize: calc(((100vh - 10px)/13)); */
--boxSize: calc(((100vw - 10px)/8));
width: var(--boxSize);
height: var(--boxSize);
border: 1px solid gray;
}
.subsection {
display: flex;
flex-wrap: nowrap;
flex-direction: row;
}
.subsection div {
/* width: calc(75px /2);
height: 75px; */
--miniBox: calc(var(--boxSize)/2);
width: var(--miniBox);
height: var(--boxSize);
border: 0.5px solid gray;
}
.sidesection {
flex-direction: column;
}
.sidesection div {
height: calc(var(--boxSize)/3);
width: var(--boxSize);
}
/* prime colours */
.n1 { background: white; }
.n2 { background: blue; }
.n3 { background: red; }
.n5 { background: yellow; }
.n7 { background: black; }
.n11 { background: magenta; }
.n13 { background: cyan; }
.n17 { background: coral; }
.n19 { background: darkgreen; }
.n23 { background: indigo; }
.n23 { background: rgb(44, 0, 205); }
.n29 { background: maroon; }
.n31 { background: lightgreen; }
.n37 { background: teal; }
.n41 { background: orchid; }
.n43 { background: goldenrod; }
.n47 { background: royalblue; }
.n53 { background: brown; }
.n59 { background: purple; }
.n61 { background: khaki; }
.n67 { background: gray; }
.n71 { background: green; }
.n73 { background: violet; }
.n79 { background: paleturquoise; }
.n83 { background: slateblue; }
.n89 { background: darkslategray; }
.n97 { background: navy; }
@media only screen and (min-width: 500px) {
body {
margin: 30px;
}
div {
/* 75px */
--boxSize: calc((100vh - 60px)/10);
}
}