-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
85 lines (75 loc) · 1.26 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: sans-serif;
width: 100vw;
height: 100vh;
padding: 10px;
display: grid;
grid-template-columns: auto 2fr 1fr;
grid-template-rows: auto 1fr;
grid-template-areas:
"nav nav nav"
"controls canvas instructions";
}
@media (max-aspect-ratio: 3/2) {
body {
grid-template-columns: auto 1fr;
grid-template-rows: auto 1fr 20em;
grid-template-areas:
"nav nav"
"controls canvas"
"instructions instructions";
}
}
nav {
grid-area: nav;
margin-bottom: 6px;
display: flex;
gap: 6px;
}
nav a {
padding: 1px 10px;
background-color: green;
text-decoration: none;
font-size: 24px;
color: white;
}
#controls {
grid-area: controls;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: safe center;
align-items: center;
text-align: center;
gap: 1.3em;
overflow: scroll;
}
button,
input {
font-size: 1em;
padding: 2px 5px;
}
#canvas {
grid-area: canvas;
width: 100%;
height: 100%;
}
#instructions {
grid-area: instructions;
padding: 10px;
overflow: scroll;
}
#instructions p,
#instructions h2 {
margin-bottom: 1em;
}
#controls,
#canvas,
#instructions {
border: solid black 1px;
}