-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsnake.css
67 lines (58 loc) · 1.02 KB
/
snake.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
.snake-board {
position: relative;
display: inline-block;
}
.snake-board .preview {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
opacity: 0.3;
background-color: gray;
}
.snake-board .score {
font-size: 200%;
color: blue;
position: absolute;
top: 10%;
left: 0;
text-align: center;
width: 100%;
display: none;
}
.snake-board button {
display: block;
position: absolute;
left: 50%;
top: 50%;
width: 30%;
height: 10%;
margin-left: -15%;
margin-top: -5%;
font-size: 100%;
background-color: lightgreen;
border: 1px solid darkgreen;
border-radius: 15%;
}
.snake-board button:hover {
background-color: aquamarine;
cursor: pointer;
}
.snake-board table {
border-collapse: collapse;
}
.snake-board td {
width: 20px;
height: 20px;
border: 0;
}
.snake-board .col {
background-color: yellow;
}
.snake-board .snake {
background-color: blue;
}
.snake-board .fruit {
background-color: red;
}