-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
84 lines (75 loc) · 1.28 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
html, body {
margin: 0;
width: 100%;
height: 100%;
position: relative;
font-size: 16px;
font-family: monospace;
overflow: hidden;
}
canvas {
background-image: url("./assets/space.jpg");
background-size: cover;
background-repeat: no-repeat;
}
.score {
position: absolute;
left: 0;
top: 0;
color: #fff;
border: 1px solid #fff;
padding: 10px;
}
.score__label {
display: inline-block;
min-width: 120px;
}
.score__label span {
float: right;
font-weight: 700;
color: coral;
}
.info-box {
display: flex;
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
top: 0;
justify-content: center;
align-items: center;
flex-direction: column;
color: #fff;
}
.info-box button {
width: 200px;
height: 42px;
border: 2px solid #fff;
color: #fff;
border-radius: 10px;
font-size: 14px;
padding: 12px;
background-color: transparent;
cursor: pointer;
}
.boss_hp {
position: absolute;
width: 400px;
height: 14px;
top: 20px;
left: 0;
right: 0;
margin: 0 auto;
background-color: rgba(44, 37, 70, 0.4);
border-radius: 20px;
}
.boss_hp--gone {
position: absolute;
width: 400px;
height: 14px;
background-color: rgba(252, 3, 48, 0.4);
border-radius: 20px;
}
.hidden {
display: none;
}