This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
93 lines (81 loc) · 1.52 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
88
89
90
91
92
93
* {
-webkit-touch-callout: none;
/* iOS Safari */
-webkit-user-select: none;
/* Safari */
-khtml-user-select: none;
/* Konqueror HTML */
-moz-user-select: none;
/* Old versions of Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
body {
height: 100vh;
width: 100vw;
background-color: black;
color: white;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
#app {
display: flex;
justify-content: center;
align-items: center;
}
#title {
text-align: center;
text-decoration: underline;
}
#app> :not(:first-child) {
margin-left: 1vw;
}
#gameboard {
background-color: #cccccc;
width: 100vmin;
height: 90vmin;
display: grid;
grid-template-rows: repeat(25, 1fr);
grid-template-columns: repeat(25, 1fr);
}
.snake {
background-color: hsl(200, 100%, 50%);
border: .25vmin solid black;
}
.apple {
width: 1vmin;
height: 1vmin;
border-radius: 50%;
background-color: crimson;
border: .25vmin solid black;
margin: 1.2vmin;
}
.bug {
background-color: grey;
border: .25vmin solid black;
display: flex;
justify-content: center;
align-items: center;
}
.wrong {
text-decoration: line-through;
}
#victory {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
}
#victory>* {
font-size: 5vw;
line-height: 1vw;
}
#victory>img {
width: 50%;
height: 80%;
}