-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
89 lines (88 loc) · 1.36 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
* {
box-sizing: border-box;
}
body{
display:grid;
place-items: center;
}
.main {
display: inline-block;
/* take up width of children */
position: relative;
margin: 0;
padding: 0;
}
.ui {
position: absolute;
display: flex;
/* height: 30px; */
width: 100%;
align-items: center;
text-align: center;
padding: 2px;
}
.pl1 {
background: yellow;
width: 100%;
height: 30px;
position: relative;
border: 4px solid white;
/* padding: 1em; */
}
.timer {
background: black;
width: 100px;
height: 50px;
padding: 1em;
flex-shrink: 0;
display: flex;
justify-content: center;
/* hor */
align-items: center;
/* vert */
font-size: 32px;
color: beige;
}
.pl2 {
position: relative;
background: yellow;
width: 100%;
height: 30px;
border: 4px solid white;
/* padding: 1em; */
}
#enemyhealth {
background: rgb(97, 97, 228);
/* height: 30px; */
/* width: 100%; */
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
}
#playerhealth {
background: rgb(180, 46, 46);
/* height: 30px;
width: 100%; */
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
}
#winner {
position: absolute;
color: rgb(24, 22, 22);
display: flex;
justify-content: center;
/* hor */
align-items: center;
/* vert */
top: 0;
left: 0;
right: 0;
bottom: 0;
font-size: 50px;
text-transform: uppercase;
}