-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
114 lines (98 loc) · 1.7 KB
/
styles.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
106
107
108
109
110
111
112
113
* {
margin:0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
flex-direction: column;
}
#playerHealth, #enemyHealth {
background-color: darkred;
height: 30px;
width: 100%;
}
#main {
position: relative;
display: inline-block;
width: 1024px;
}
#ui {
position: absolute;
display: flex;
width: 100%;
align-items: center;
padding:20px;
}
#timer {
background-color: black;
width: 100px;
height: 50px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
color: rgb(200, 200, 200);
border: 4px solid rgb(200, 200, 200);
font-family: 'Press Start 2P', cursive;
}
#playerBar {
position: absolute;
background-color: #818CF8;
top:0;
bottom: 0;
right: 0;
width: 100%;
}
#enemyBar {
position: absolute;
background-color: #818CF8;
top:0;
bottom: 0;
right: 0;
left:0;
}
.placeHolderParent {
position: relative;
width: 100%;
}
.playerParent {
display: flex;
justify-content: flex-end;
border: 4px solid rgb(200, 200, 200);
border-right: none;
}
.enemyParent {
border: 4px solid rgb(200, 200, 200);
border-left: none;
}
#label {
position: absolute;
color: white;
display: none;
align-items: center;
justify-content: center;
top:0;
right:0;
bottom:0;
left:0;
font-family: 'Press Start 2P', cursive;
justify-content: center;
align-items: center;
flex-direction: column;
/*Makes it expand throughout the entire canvas and centers it without need for wrapper*/
}
#gameOver {
padding-bottom: 10px;
}
.controls {
display: flex;
justify-content: center;
align-items: center;
width: 1024px;
flex-direction: column;
}
.description, .tip {
font-size: 20px;
}