Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2f5691

Browse files
committed
Create dark-snake.css
1 parent 2c405e0 commit f2f5691

File tree

1 file changed

+148
-0
lines changed

1 file changed

+148
-0
lines changed

css/dark-snake.css

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
/*
2+
JavaScript Snake
3+
By Patrick Gillespie
4+
http://patorjk.com/games/snake
5+
*/
6+
#high-score-dialog {
7+
background: black;
8+
color: #3E2E44;
9+
position: relative;
10+
bottom: 200px;
11+
}
12+
13+
select {
14+
border: black;
15+
color: #3E2E44;
16+
background: black;
17+
}
18+
19+
button {
20+
border: black;
21+
color: #3E2E44;
22+
background: black;
23+
}
24+
25+
body {
26+
margin:0px;
27+
padding:0px;
28+
}
29+
30+
#game-area {
31+
margin:0px;
32+
padding:0px;
33+
}
34+
35+
#game-area:focus { outline: none; }
36+
37+
a.snake-link, a.snake-link:link, a.snake-link:visited {
38+
color: black;
39+
}
40+
41+
a.snake-link:hover {
42+
color: #3E2E44;
43+
}
44+
45+
.snake-pause-screen {
46+
font-family: Verdana, arial, helvetica, sans-serif;
47+
font-size: 14px;
48+
position:absolute;
49+
width:300px;
50+
height:80px;
51+
text-align:center;
52+
top:50%;
53+
left:50%;
54+
margin-top:-40px;
55+
margin-left:-150px;
56+
display:none;
57+
background-color:#3E2E44;
58+
color:black;
59+
}
60+
61+
.snake-panel-component {
62+
position: absolute;
63+
font-family: Verdana, arial, helvetica, sans-serif;
64+
font-size: 14px;
65+
color: black;
66+
text-align: center;
67+
background-color: #3E2E44;
68+
padding: 8px;
69+
margin: 0px;
70+
}
71+
72+
.snake-snakebody-block {
73+
margin: 0px;
74+
padding: 0px;
75+
background-color: #3E2E44;
76+
position: absolute;
77+
border: 0px solid black;
78+
background-repeat: no-repeat;
79+
}
80+
81+
.snake-snakebody-alive {
82+
background-image: url('./images/dark-snakeblock.png');
83+
}
84+
.snake-snakebody-dead {
85+
background-image: url('./images/dead-dark-snakeblock.png');
86+
}
87+
88+
.snake-food-block {
89+
margin: 0px;
90+
padding: 0px;
91+
background-color: black;
92+
border: 2px solid #3E2E44;
93+
position: absolute;
94+
}
95+
96+
.snake-playing-field {
97+
margin: 0px;
98+
padding: 0px;
99+
position: absolute;
100+
background-color: #312E44;
101+
border: 3px solid black;
102+
}
103+
104+
.snake-game-container {
105+
margin: 0px;
106+
padding: 0px;
107+
border-width: 0px;
108+
border-style: none;
109+
zoom: 1;
110+
background-color: #3E2E44;
111+
position: relative;
112+
}
113+
114+
.snake-welcome-dialog {
115+
padding: 8px;
116+
margin: 0px;
117+
background-color: black;
118+
color: #3E2E44;
119+
font-family: Verdana, arial, helvetica, sans-serif;
120+
font-size: 14px;
121+
position: absolute;
122+
top: 50%;
123+
left: 50%;
124+
width: 300px;
125+
/*height: 150px;*/
126+
margin-top: -100px;
127+
margin-left: -158px;
128+
text-align: center;
129+
display: block;
130+
}
131+
132+
.snake-try-again-dialog {
133+
padding: 8px;
134+
margin: 0px;
135+
background-color: black;
136+
color: #312E44;
137+
font-family: Verdana, arial, helvetica, sans-serif;
138+
font-size: 14px;
139+
position: absolute;
140+
top: 50%;
141+
left: 50%;
142+
width: 300px;
143+
height: 100px;
144+
margin-top: -75px;
145+
margin-left: -158px;
146+
text-align: center;
147+
display: none;
148+
}

0 commit comments

Comments
 (0)