-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.css
More file actions
87 lines (74 loc) · 1.23 KB
/
index.css
File metadata and controls
87 lines (74 loc) · 1.23 KB
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
@font-face {
font-family: 'hylianFont';
src: url('./game/assets/fonts/TPHylian-WiiRegular.otf'); /* IE9 Compat Modes */
src: url('./game/assets/fonts/TPHylian-WiiRegular.otf') format('opentype');
}
html,
body {
padding: 0;
margin: 0;
}
body {
font-family: -apple-system, 'Helvetica Neue', Helvetica, sans-serif;
}
header {
position: absolute;
width: 500px;
height: 250px;
top: 50%;
left: 50%;
margin-top: -125px;
margin-left: -250px;
text-align: center;
}
header h1 {
font-size: 60px;
font-weight: 100;
margin: 0;
padding: 0;
}
html {
position: absolute;
height: 100vh;
width: 100vw;
}
#hud {
position: fixed;
width: 100%;
height: 40px;
background-color: gray;
bottom: 0px;
}
#health {
position: absolute;
display: flex;
width: 135px;
height: 16px;
left: 149px;
top: 9px;
z-index: 10;
}
#health-bar-wrapper {
width: 50px;
position: relative;
height: 7px;
border: 2px solid gray;
top: 3px;
left: 5px;
}
#health-bar {
position: absolute;
width: 45px;
height: 7px;
background-color: lightgreen;
}
#controls {
display: flex;
flex-direction: row;
position: relative;
top: 0;
height: 100%;
}
#controls > button {
padding-right: 10px;
}