-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskin.css
102 lines (83 loc) · 1.3 KB
/
skin.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
#app {
display: flex;
}
#snake-pit {
background-color: darkgray;
padding: 10px;
float: left;
margin-right: 25px;
display: flex;
flex-direction: column;
width: 700px;
height: 700px;
}
.snake-row {
display: flex;
flex-grow: 1;
}
.square {
flex-grow: 1;
background-color: lightgray;
float: left;
margin: 0 3px 3px 0;
}
#controls {
float: left;
width: 260px;
background-color: darkgray;
padding: 20px;
color: white;
}
#controls h1 {
text-align: center;
}
#controls button {
width: 100%;
display: block;
height: 40px;
background: white;
border: none;
color: black;
cursor: pointer;
}
#info-block {
display: flex;
width: 100%;
margin-bottom: 50px;
}
#info-block > div {
width: 50%;
}
#info-block > div > p {
text-align: center;
}
#bottom-info {
margin-top: 50px;
text-align: center;
}
.score {
text-align: center;
width: 100%;
display: block;
}
.tail {
background-color: white;
}
.head {
background-image: linear-gradient(#827e7e, white);
}
.head-up {
transform: rotate(0deg);
}
.head-right {
transform: rotate(90deg);
}
.head-down {
transform: rotate(180deg);
}
.head-left {
transform: rotate(270deg);
}
.apple {
background-color: red;
}