-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.css
More file actions
84 lines (72 loc) · 1.13 KB
/
game.css
File metadata and controls
84 lines (72 loc) · 1.13 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
html {
padding: 0;
margin: 0;
font-family: monospace;
width: 100vw;
height: 100vh;
background: white;
display: flex;
justify-content: center;
align-items: flex-start;
}
body, #game-layer {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#game-canvas {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
@media only screen and (min-device-width: 768px) {
.controls-c {
display: none !important;
}
}
.controls-c {
opacity: 0.5;
position: fixed;
bottom: 1em;
width: 100%;
display: flex;
justify-content: center;
}
.controls {
width: 100%;
max-width: 15cm;
display: grid;
grid-gap: 10px;
grid-template-columns: min-content 1fr min-content;
justify-items: center;
}
.btn {
background: lightgray !important;
color: white;
width: 2cm;
height: 2cm;
}
#fR {
grid-area: 1/3;
}
#fL {
grid-area: 1/1;
}
#bR {
grid-area: 2/3;
}
#iS {
grid-area: 2/2;
width: 100%;
height: 2cm;
}
#bL {
grid-area: 2/1;
}
#game-score {
color: white;
font-size: 25px;
}