-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.css
145 lines (116 loc) · 2.45 KB
/
main.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
body {
margin: 0;
padding: 0;
color: white;
}
body * {
box-sizing: border-box;
}
#game-container {
display: flex;
flex-direction: row;
background-color: black;
height: 100vh;
width: 100vw;
margin: 0;
padding: 0;
}
#scanner {
flex: 1;
}
#hud {
width: 300px;
display: flex;
flex-direction: column;
gap: 0.1rem;
}
#radar {
height: 300px;
border: 1px solid white;
}
#info-panel {
flex: 1;
border: 1px solid white;
}
.info-panel-line, .info-panel-line-dots, .info-panel-line-text, .info-panel-line-lives {
margin-top: 5px;
margin-left: 15px;
margin-right: 15px;
}
.info-panel-line-dots {
display: flex;
justify-content: space-between;
}
.info-panel-line-text {
display: flex;
justify-content: space-between;
width: 50%;
}
.info-panel-line-lives {
display: flex;
align-items: center;
}
.info-panel-line-center-text {
display: flex;
justify-content: center;
margin-top: 15px;
margin-bottom: 10px;
}
.lives-image {
width: 42px;
height: 37px;
background: url(images/PlayerShip.png);
display: inline-block;
}
.powerup-image {
margin-left: 5px;
}
.double-points-powerup-image {
display: flex;
margin-left: 10px;
}
.vertically-aligned {
display: flex;
align-items: center;
}
.blue-dot, .green-dot, .yellow-dot, .red-dot, .grey-dot {
height: 15px;
width: 15px;
display: inline-block;
margin-left: 5px;
/* This is what makes it a circle */
border-radius: 50%;
}
.blue-dot {
background: radial-gradient(at 35% 35%, white 0%, blue 20%, darkblue 100%);
}
.green-dot {
background: radial-gradient(at 35% 35%, white 0%, lime 20%, darkgreen 100%);
}
.yellow-dot {
background: radial-gradient(at 35% 35%, white 0%, yellow 20%, darkorange 100%);
}
.red-dot {
background: radial-gradient(at 35% 35%, white 0%, red 20%, darkred 100%);
}
.grey-dot {
background: radial-gradient(at 35% 35%, white 0%, darkgrey 20%, darkslategrey 100%);
}
#fuel-bar {
height: 10px;
width: 85px;
box-sizing: border-box;
border: 1px solid white;
position: relative;
display: inline-block;
background: linear-gradient(to right, lime 50%, yellow 50% 75%, red 75%);
}
#spare-parts-bar {
height: 10px;
width: 85px;
box-sizing: border-box;
border: 1px solid white;
position: relative;
display: inline-block;
background: linear-gradient(to right, blue 0% 100%);
}