-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyle.css
More file actions
61 lines (53 loc) · 808 Bytes
/
style.css
File metadata and controls
61 lines (53 loc) · 808 Bytes
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
* {
margin: 0;
padding: 0;
}
.space {
background-color: #112B42;
height: 800px;
width: 800px;
}
.ship {
width: 60px;
height: 60px;
position: relative;
top: 100px;
left: 20px;
/*margin-left: 20px;*/
}
.pew {
position: absolute;
/*transform: scale(0.7);*/
}
.baddie {
position: absolute;
width: 60px;
height: 60px;
}
.baddie-fades {
opacity: 1;
transition: opacity 1.5s ease-out;
}
.baddie-died {
opacity: 0; /*applies the baddie-fades transition */
position: absolute;
width: 60px;
height: 60px;
}
/* HUD */
.life-full {
display: inline-block;
width: 10px;
height: 10px;
transform: rotate(45deg);
background-color: green;
}
.game-over-overlay {
display: none;
font-size: 60px;
margin: auto;
width: 50%;
border: 3px solid #AAA;
background-color: #CCC;
padding: 10px;
}