-
Notifications
You must be signed in to change notification settings - Fork 9
/
entry.css
93 lines (82 loc) · 1.16 KB
/
entry.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
html,
body,
#root {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
background: #222;
touch-action: none;
}
lume-scene {
position: absolute;
}
lume-element3d {
pointer-events: none;
}
.overlay {
pointer-events: none;
position: absolute;
width: 100%;
height: 100%;
}
.health-bar {
position: absolute;
width: 20%;
height: 40px;
background: rgba(255, 255, 255, 0.2);
top: 10px;
left: 10px;
border-radius: 10px;
}
.health-value {
position: absolute;
width: 100%;
height: 100%;
background: green;
}
.dead {
position: absolute;
width: 100%;
height: 100%;
background: red;
}
.dead h1 {
color: white;
font-family: sans-serif;
font-size: 8rem;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.dead h1 sub {
font-size: 0.2em;
}
.crosshair,
.crosshair::before,
.crosshair::after {
pointer-events: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.crosshair {
width: 100%;
height: 100%;
}
.crosshair::before,
.crosshair::after {
content: '';
background: white;
}
.crosshair::before {
height: 2px;
width: 20px;
}
.crosshair::after {
width: 2px;
height: 20px;
}