-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
70 lines (60 loc) · 1.25 KB
/
main.css
File metadata and controls
70 lines (60 loc) · 1.25 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
/* Style the html */
html{
height: 100%
}
/* Style the body */
body {
margin: 0;
min-height: 100%;
overflow: hidden;
}
/* Style fo the Movement pad */
#movementPad{
margin-top: 400px;
margin-left: 850px;
margin-right: 20px;
display: grid;
grid-template-columns: 4em 4em 4em 4em 4em 4em 4em;
grid-template-rows: 4em 4em;
}
/* Style the moveUp button */
#moveUp{
grid-column: 2 / span 1;
grid-row: 1 / span 1;
}
/* Style the moveDown button */
#moveDown{
grid-column: 2 / span 1;
grid-row: 2 / span 1;
}
/* Style the moveLeft button */
#moveLeft{
grid-column: 1 / span 1;
grid-row: 2 / span 1;
}
/* Style the moveRight button */
#moveRight{
grid-column: 3 / span 1;
grid-row: 2 / span 1;
}
/* Style the canvas */
canvas {
margin-left: 10px;
position: absolute;
top: 10%;
}
/* Style the game info */
#gameInfo{
margin-left: 10px;
font-family: 'Share Tech', sans-serif;
}
/* Screens that are less than or equals to 600px wide */
@media only screen and (max-width: 600px) {
#movementPad {
margin-top: 700px;
margin-left: 100px;
display: grid;
grid-template-columns: 4em 4em 4em 4em 4em 4em 4em;
grid-template-rows: 4em 4em;
}
}