-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
87 lines (71 loc) · 1.34 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
@font-face {
font-family: 'raffles';
src: url(./fonts/raffles_bryant/RafflesBryant.otf) format('opentype'),
url(./fonts/raffles_bryant/RafflesBryantRegular.ttf) format('truetype');
font-weight: normal;
font-style: normal;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'raffles', Arial, Helvetica, sans-serif;
}
body {
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #094a08;
}
.score {
display: flex;
flex-direction: row;
}
p {
font-size: 30px;
padding-left: 10px;
}
#game-board {
background: #ccc;
height: 85vmin;
width: 120vmin;
display: grid;
background-image: url(./img/snake_board.png);
grid-template-rows: repeat(25, 1fr);
grid-template-columns: repeat(25, 1fr);
}
.snake {
background-image: url(./img/snake_head.png);
background-size: cover;
height: 30px;
}
.snake-body {
background-image: url(./img/snake_body.png);
background-size: cover;
height: 32px;
}
.food {
background-image: url(./img/food.png);
background-size: cover;
height: 25px;
}
.init {
display: flex;
flex-direction: column;
}
#logo {
width: 200px;
height: 200px;
padding-bottom: 20px;
}
#play {
width: 100px;
height: 100px;
}
button:hover {
border-width: 8px;
border-color: black;
}