-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
69 lines (61 loc) · 1.53 KB
/
style.scss
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
.css-selector {
font-family: 'Orbitron';
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
font-family: 'VT323', monospace;
color: yellow;
margin: 0;
background-image: url(https://images.unsplash.com/photo-1570741066052-817c6de995c8?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=386&q=80);
display: flex;
flex-direction: column;
}
#game-board {
background-color: gray;
border-radius: 1em;
border: hsl(50, 43%, 50%) solid 0.4rem;
width: 70vmin;
height: 70vmin;
display: grid;
grid-template-rows: repeat(21, 1fr);
grid-template-columns: repeat(21, 1fr);
}
h1 {
color: hsl(50, 43%, 50%);
font-size: 4.5rem;
padding-bottom: 1rem;
padding-top: 1rem;
}
.snake {
background-color: hsl(200, 53%, 24%);
border: .25vmin solid black;
border-radius: 0.5rem;
}
.food {
background-color: hsl(50, 43%, 50%);
border: .25vmin solid black;
border-radius: 0.5rem;
}
#divScore {
text-align: center;
border: 2px solid hsl(50, 43%, 50%);
padding: 0.5rem;
padding-left: 2rem;
padding-right: 2rem;
margin: 1rem;
width: auto;
height: auto;
font-family: Orbitron;
font-size: 1.5rem;
color: hsl(50, 43%, 50%);
background-color: black;
}