-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
125 lines (103 loc) · 1.96 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
body {
background: url("./assets/starSky.png");
background-attachment: fixed;
animation: starSky 1s linear infinite;
overflow: hidden;
z-index: 1;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
h2 {
margin: 0;
}
.rocket {
position: absolute;
width: 50px;
transition: 0.5s;
}
.ufo {
position: absolute;
width: 70px;
}
.boom {
height: 50%;
position: absolute;
display: none;
}
.boom.game__over {
display: unset;
}
.keyboard {
position: absolute;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
grid-template-areas: ". up ." "left down right";
gap: 10px 10px;
justify-items: center;
top: 80%;
left: 50%;
transform: translate(-50%, 0);
font-size: 25px;
}
.keyboard > div {
padding: 10px 15px;
background: rgba(255, 255, 255, 0.5);
border-radius: 10px;
box-shadow: 0 0 5px 2px black;
}
.keyboard > div > img {
height: 100%;
}
.keyboard > div.tap {
opacity: 0.7;
box-shadow: 0 0 5px 5px black inset;
}
.keyboard > div:hover {
box-shadow: 0 0 5px 5px black inset;
cursor: pointer;
}
.main_key {
display: flex;
width: 30px;
height: 30px;
}
.top_key {
grid-area: up;
}
.top_key > img {
transform: rotate(270deg);
}
.bottom_key {
grid-area: down;
}
.bottom_key > img {
transform: rotate(90deg);
}
.left_key {
grid-area: left;
}
.left_key > img {
transform: rotate(180deg);
}
.right_key {
grid-area: right;
}
.keys_text {
position: absolute;
bottom: 17%;
font-size: 10px !important;
color: white;
background: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 0 10px 0 !important;
}
@keyframes starSky {
0% {
background-position: 0 0;
}
100% {
background-position: 0 2049px;
}
}