-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
85 lines (85 loc) · 1.57 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
* {
margin: 0;
padding: 0;
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}
.gameAria {
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
background: url("https://imgur.com/19GPbJd.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
.player {
position: fixed;
width: 10vmin;
height: 8vmin;
top: 40%;
left: 1em;
background: url("https://imgur.com/vcK646j.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
z-index: 2;
transition: all 0.25s;
}
.topPipe {
height: 20%;
width: 10%;
background: linear-gradient(to top, #248b31, #00ff1f);
position: absolute;
top: 0;
right: 7%;
transition: all 0.2s;
}
.bottomPipe {
height: 20%;
width: 10%;
background: linear-gradient(to bottom, #248b31, #00ff1f);
position: absolute;
bottom: 0;
right: 7%;
transition: all 0.2s;
}
.topPipe::after {
content: "";
width: 110%;
height: 50px;
position: absolute;
bottom: 0;
left: -5%;
background: green;
border-radius: 5px;
}
.bottomPipe::after {
content: "";
width: 110%;
height: 50px;
position: absolute;
top: 0;
left: -5%;
border-radius: 5px;
background: green;
}
.gameMsg {
z-index: 3;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2.5rem;
}
.scoreBoard {
position: fixed;
top: 2%;
left: 1%;
font-size: 1.5rem;
z-index: 7;
}
.d-none {
display: none;
}