-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
96 lines (85 loc) · 1.56 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
94
95
96
body {
display: flex;
}
.game-container {
width: 500px;
height: 730px;
position: absolute;
left: 80px;
}
.border-left {
width: 140px;
height: 820px;
position: absolute;
background-color: white;
z-index: +4;
}
.border-right {
width: 140px;
height: 820px;
position: absolute;
background-color: white;
z-index: +4;
left: 580px;
}
.border-top {
width: 660px;
height: 80px;
position: absolute;
background-color: white;
z-index: +4;
top: -50px;
}
.sky {
background-color: skyblue;
width: 500px;
height: 580px;
position: absolute;
}
.ground {
background-image: url('assets/grass_ground.png');
background-size: cover;
width: 500px;
height: 150px;
position: absolute;
top: 580px;
z-index: +3;
}
.duck {
background-image: url('assets/duck.png');
background-size: cover;
position: absolute;
width: 60px;
height: 45px;
}
.obstacle {
background-image: url('assets/tree_stump.png');
background-size: contain;
width: 60px;
height: 300px;
position: absolute;
z-index: +2;
}
.topObstacle {
background-image: url('assets/tree_stump.png');
background-size: contain;
transform: rotate(180deg);
width: 60px;
height: 300px;
position: absolute;
z-index: +2;
}
.cloud {
background-image: url('assets/cloud.png');
background-size: cover;
width: 140px;
height: 110px;
position: absolute;
z-index: +1;
}
h1 {
color: red;
z-index: +5;
position: absolute;
font-size: 124px;
}