-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
126 lines (105 loc) · 1.57 KB
/
style.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
body {
overflow: hidden;
background-color: rgb(0, 0, 0);
}
.container {
display: grid;
grid-template-areas:
"pisteet lb ohjaimet"
"peli peli peli"
". mobile .";
justify-items: stretch;
}
.lb {
place-self: center;
grid-area: lb;
color: rgb(0, 255, 0);
border: 1px solid rgb(0, 255, 0);
}
.mobileControls {
visibility: hidden;
grid-area: mobile;
place-self: center;
display: grid;
justify-items: center;
grid-template-areas:
"q w e"
"a s d";
margin-bottom: 1em;
}
button {
font-family: 'Times New Roman', Times, serif;
font-size: 2em;
background-color: black;
color: rgb(0, 255, 0);
border: 5px;
border-color: rgb(0, 255, 0);
}
#a {
height: 50px;
width: 50px;
grid-area: a;
margin: 10px;
padding-bottom: 10px;
}
#s {
height: 50px;
width: 50px;
grid-area: s;
margin: 10px;
padding-bottom: 10px;
}
#d {
height: 50px;
width: 50px;
grid-area: d;
margin: 10px;
padding-bottom: 10px;
}
#w {
height: 50px;
width: 50px;
grid-area: w;
margin: 10px;
}
#q {
height: 50px;
width: 50px;
grid-area: q;
margin: 10px;
}
#e {
height: 50px;
width: 50px;
grid-area: e;
margin: 10px;
}
#btn {
grid-area: ohjaimet;
place-self: center;
}
#points {
place-self: center;
grid-area: pisteet;
font-size: 4em;
color: rgb(0, 255, 0);
}
#game-frame {
place-self: center;
grid-area: peli;
}
@media all and (max-width: 999px) {
#info {
font-size: 1em;
}
#ohjeet {
font-size: 1em;
}
#btn {
font-size: 1em;
;
}
.mobileControls {
visibility: visible;
}
}