-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathstyles.css
79 lines (70 loc) · 1.2 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #1A1423;
width: 100vw;
height: 100vh;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
#game {
width: 100vmin;
height: 70vmin;
outline: 10px solid black;
overflow: hidden;
}
.clouds {
height: 70%;
width: 100%;
background: linear-gradient(#5465FF, #FEA82F 80%);
position: relative;
}
.road {
height: 30%;
width: 100%;
background: #898989;
position: relative;
}
.score {
font-family: 'Courier New', Courier, monospace;
font-size: 3vmin;
color: #1A1423;
font-weight: bold;
position: absolute;
top: 1vmin;
right: 1vmin;
}
.cloud {
width: 30vmin;
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
position: absolute;
}
.dino {
height: 120%;
position: absolute;
z-index: 100;
/* outline: 10px solid red; */
}
.road-line {
width: 20%;
height: 10%;
background: #fffaf1;
position: absolute;
z-index: 1;
}
.food {
width: 15%;
z-index: 2;
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
position: absolute;
/* outline: 10px solid red; */
}