-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
105 lines (97 loc) · 1.79 KB
/
index.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
* {
box-sizing: border-box;
font-family: "Press Start 2P", cursive;
}
body {
display: flex;
justify-content: center;
}
div.container {
display: inline-block;
position: relative;
}
div.top-indicator {
position: absolute;
display: flex;
width: 100%;
padding: 20px;
align-items: center;
}
div.player1 {
position: relative;
height: 34px;
width: 100%;
display: flex;
justify-content: flex-end;
border-top: 2px solid rgb(92 87 87);
border-left: 2px solid rgb(92 87 87);
border-bottom: 2px solid rgb(92 87 87);
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
div.player1 > div.health {
position: absolute;
background-color: green;
width: 100%;
top: 0;
right: 0;
bottom: 0;
}
div.player1 > div.max-health {
background: red;
height: 30px;
width: 100%;
}
div.timer {
font-size: 26px;
background-color: gray;
height: 55px;
width: 100px;
flex-shrink: 0;
display: flex;
justify-content: center;
align-items: center;
border: 2px solid rgb(92 87 87);
border-radius: 5px;
}
div.player2 {
position: relative;
height: 34px;
width: 100%;
display: flex;
justify-content: flex-start;
border-top: 2px solid rgb(92 87 87);
border-right: 2px solid rgb(92 87 87);
border-bottom: 2px solid rgb(92 87 87);
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
div.player2 > div.health {
position: absolute;
background-color: rgb(48, 124, 48);
width: 100%;
top: 0;
bottom: 0;
left: 0;
}
div.player2 > div.max-health {
background: red;
height: 30px;
width: 100%;
}
div.dialog {
font-size: 35px;
color: rgb(100 52 187);
display: none;
justify-content: center;
align-items: center;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
}
/* canvas {
width: 1366px;
height: 768px;
} */