-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
187 lines (162 loc) · 2.64 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
* {
margin: 0;
padding: 0;
}
#gameField {
margin: 10px auto;
border: 4px double black;
width: 500px;
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
border-radius: 5%;
height: 700px;
}
#divCaption {
width: 90%;
height: 3%;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
padding: 10px 0;
}
#divSpeed {
width: 90%;
height: 3%;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
padding: 10px 0;
}
.buttonSpeed {
width: 30%;
height: 90%;
border: 4px double orange;
border-radius: 50%;
text-align: center;
line-height: 100%;
color: orange;
cursor: pointer;
}
.buttonSpeed.selected {
border: 4px double red;
color: red;
}
#buttonStart, #buttonStop {
width: 30%;
height: 100%;
border-radius: 50%;
text-align: center;
line-height: 100%;
cursor: pointer;
}
#buttonStart {
border: 4px double green;
color: green;
}
#buttonStop {
border: 4px double red;
color: red;
}
#divResult {
width: 30%;
height: 90%;
border: 1px solid blue;
line-height: 100%;
text-align: center;
color: blue;
border-radius: 50%;
}
#divField {
width: 90%;
height: 60%;
border: 2px solid black;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
}
#divField.crush {
border: 2px solid red;
}
#fieldCells {
outline: 1px solid black;
width: 95%;
height: 95%;
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
}
.cell {
width: 5%;
height: 5%;
outline: 1px solid lightgray;
flex: 0 0 auto;
}
.cell.snake {
background-color: yellow;
outline: 1px solid yellow;
}
.crush .cell.snake {
background-color: red;
outline: 1px solid red;
}
.crush #fieldcells {
outline: 1px solid red;
}
.cell.food {
background-color: lime;
outline: 1px solid lime;
}
#keyboard {
display: none;
}
@media (max-width: 1100px) {
#gameField {
width: 100vw;
height: 100vh;
}
#keyboard {
display: flex;
width: 20vh;
height: 20vh;
margin: 2vh 0;
padding: 2vh;
border: 1px solid black;
border-radius: 4vh;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
}
#LRButtons {
width: 100%;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
}
#divField {
width: 60vh;
height: 60vh;
}
#buttonStart, #buttonStop, .buttonSpeed, #divResult {
height: 3vh;
line-height: 3vh;
}
#divCaption, #divSpeed {
width: 70vh;
height: 5vh;
}
.buttonControl {
width: 5vh;
height: 5vh;
line-height: 5vh;
border: 4px double black;
border-radius: 50%;
text-align: center;
}
}