-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
73 lines (63 loc) · 1.06 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
body {
margin: 0;
}
* {
box-sizing: border-box;
}
.c-game {
position: relative;
display: inline-block;
}
.c-game__health-bar {
position: absolute;
display: flex;
width: 100%;
align-items: center;
padding: 20px;
}
.c-game__health-bar-container {
position: relative;
height: 30px;
width: 100%;
display: flex;
justify-content: flex-start;
}
.c-game__health-bar-container:first-child {
justify-content: flex-end;
}
.c-game__health-bar--player {
background-color: yellow;
height: 30px;
width: 100%;
}
.c-game__health-bar--fill {
position: absolute;
top: 0;
width: 100%;
bottom: 0;
background: blue;
}
.c-game__health-bar--timer {
background-color: red;
height: 100px;
width: 100px;
flex-shrink: 0;
display: flex;
justify-content: center;
align-items: center;
}
.c-game__health-bar--enemy {
background-color: yellow;
height: 30px;
width: 100%;
}
.c-game-result {
position: absolute;
color: white;
font-size: 50px;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
display: none;
}