-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
91 lines (84 loc) · 1.68 KB
/
index.css
File metadata and controls
91 lines (84 loc) · 1.68 KB
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
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300&display=swap');
*{
padding: 0;
margin: 0;
}
.body{
background: url("bg.jpg");
min-height: 100vh;
background-size: 100vw 100vh;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
}
#scoreBox{
position: absolute;
top: 5%;
right: 0;
font-size: 200%;
font-weight: bold;
font-family: 'Roboto Slab', serif;
}
#hiscoreBox{
position: absolute;
top: 10%;
right: 0;
font-size: 200%;
font-weight: bold;
font-family: 'Roboto Slab', serif;
}
#board{
background: linear-gradient(blue, white);
width: 70vmin;
height: 72vmin;
border: solid 5px yellow;
display: grid;
grid-template-rows:repeat(18, 1fr);
grid-template-columns: repeat(18, 1fr);
}
.head {
background: linear-gradient(red, yellow);
border: 2px solid purple;
transform: scale(1.02);
border-radius: 9px;
}
.snake {
background-color: purple;
border: .25vmin solid white;
border-radius: 12px;
}
.food{
background: linear-gradient(red, purple);
border: .25vmin solid black;
border-radius: 8px;
}
.button-block{
position: absolute;
bottom: 10%;
right: 10%;
align-items: center;
justify-content: center;
padding: 1%;
}
.button-block .row-1{
text-align: center;
padding: 2%;
}
.col{
background-color: beige;
height: 10vmin;
width: 10vmin;
border-radius: 25%;
}
@media only screen and (max-width:850px){
.button-block{
bottom: 2%;
right: 15%;
}
.col{
height: 20vmin;
width: 20vmin;
border-radius: 25%;
}
}