@playcanvas/supersplat-viewer 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +7 -3
- package/public/index.css +287 -278
- package/public/index.html +118 -40
- package/public/index.js +117 -23
- package/public/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/supersplat-viewer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
5
|
"homepage": "https://github.com/playcanvas/supersplat-viewer#readme",
|
|
6
6
|
"description": "Viewer for https://superspl.at",
|
|
@@ -43,22 +43,26 @@
|
|
|
43
43
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
44
44
|
"@typescript-eslint/eslint-plugin": "^8.44.0",
|
|
45
45
|
"@typescript-eslint/parser": "^8.44.0",
|
|
46
|
+
"autoprefixer": "^10.4.21",
|
|
46
47
|
"concurrently": "^9.2.1",
|
|
47
48
|
"eslint": "^9.35.0",
|
|
48
49
|
"globals": "^16.4.0",
|
|
49
50
|
"playcanvas": "^2.11.8",
|
|
51
|
+
"postcss": "^8.5.6",
|
|
50
52
|
"publint": "^0.3.12",
|
|
51
53
|
"rollup": "^4.50.2",
|
|
52
54
|
"rollup-plugin-copy": "^3.5.0",
|
|
55
|
+
"rollup-plugin-scss": "^4.0.1",
|
|
53
56
|
"rollup-plugin-string": "^3.0.0",
|
|
57
|
+
"sass": "^1.93.2",
|
|
54
58
|
"serve": "^14.2.5",
|
|
55
59
|
"typescript": "^5.9.2"
|
|
56
60
|
},
|
|
57
61
|
"scripts": {
|
|
58
62
|
"build": "rollup -c",
|
|
59
63
|
"develop": "concurrently --kill-others \"npm run watch\" \"npm run serve\"",
|
|
60
|
-
"lint": "eslint src
|
|
61
|
-
"lint:fix": "eslint src
|
|
64
|
+
"lint": "eslint src rollup.config.mjs eslint.config.mjs",
|
|
65
|
+
"lint:fix": "eslint src rollup.config.mjs eslint.config.mjs --fix",
|
|
62
66
|
"publint": "publint",
|
|
63
67
|
"serve": "serve public -C",
|
|
64
68
|
"test": "echo \"Error: no test specified\" && exit 1",
|
package/public/index.css
CHANGED
|
@@ -1,336 +1,345 @@
|
|
|
1
1
|
* {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
4
|
+
touch-action: none;
|
|
5
5
|
}
|
|
6
|
+
|
|
6
7
|
body {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
font-family: "Arial", sans-serif;
|
|
10
|
+
-moz-user-select: none;
|
|
11
|
+
user-select: none;
|
|
12
|
+
-webkit-user-select: none;
|
|
13
|
+
-webkit-touch-callout: none;
|
|
12
14
|
}
|
|
15
|
+
|
|
16
|
+
button {
|
|
17
|
+
-webkit-appearance: none;
|
|
18
|
+
-moz-appearance: none;
|
|
19
|
+
appearance: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
13
22
|
.hidden {
|
|
14
|
-
|
|
23
|
+
display: none !important;
|
|
15
24
|
}
|
|
25
|
+
|
|
26
|
+
.spacer {
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
#ui {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
31
|
+
position: fixed;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
pointer-events: none;
|
|
23
37
|
}
|
|
38
|
+
|
|
24
39
|
#ui * {
|
|
25
|
-
|
|
40
|
+
pointer-events: auto;
|
|
26
41
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
transform: translate(-50%, 0);
|
|
40
|
-
min-height: 280px;
|
|
41
|
-
min-width: 320px;
|
|
42
|
-
padding: 8px;
|
|
43
|
-
border-radius: 24px;
|
|
44
|
-
color: black;
|
|
45
|
-
background-color: #eeed;
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
}
|
|
49
|
-
#infoPanel > #infoPanelContent > #header {
|
|
50
|
-
font-size: 24px;
|
|
51
|
-
font-weight: bold;
|
|
52
|
-
padding-bottom: 16px;
|
|
53
|
-
color: #444;
|
|
54
|
-
display: none;
|
|
55
|
-
}
|
|
56
|
-
#infoPanel > #infoPanelContent > #tabs {
|
|
57
|
-
display: flex;
|
|
58
|
-
gap: 16px;
|
|
59
|
-
background-color: #666;
|
|
60
|
-
padding: 8px;
|
|
61
|
-
border-radius: 22px;
|
|
62
|
-
}
|
|
63
|
-
#infoPanel > #infoPanelContent > #tabs > .tab {
|
|
64
|
-
padding: 8px;
|
|
65
|
-
border-radius: 16px;
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
flex-grow: 1;
|
|
68
|
-
text-align: center;
|
|
69
|
-
font-weight: bold;
|
|
70
|
-
font-size: 14px;
|
|
71
|
-
color: #222;
|
|
72
|
-
transition: background-color 250ms ease;
|
|
73
|
-
}
|
|
74
|
-
#infoPanel > #infoPanelContent > #tabs > .tab:hover {
|
|
75
|
-
background-color: #eee;
|
|
76
|
-
}
|
|
77
|
-
#infoPanel > #infoPanelContent > #tabs > .tab.active {
|
|
78
|
-
background-color: #eee;
|
|
79
|
-
}
|
|
80
|
-
#infoPanel > #infoPanelContent > #infoPanels {
|
|
81
|
-
padding: 16px;
|
|
82
|
-
}
|
|
83
|
-
#infoPanel > #infoPanelContent .control-item {
|
|
84
|
-
display: flex;
|
|
85
|
-
justify-content: space-between;
|
|
86
|
-
gap: 32px;
|
|
87
|
-
line-height: 1.5;
|
|
88
|
-
}
|
|
89
|
-
#infoPanel > #infoPanelContent > #infoPanels h1 {
|
|
90
|
-
font-size: 14px;
|
|
91
|
-
font-weight: bold;
|
|
92
|
-
padding: 0 0 6px 0;
|
|
93
|
-
}
|
|
94
|
-
#infoPanel > #infoPanelContent .control-item > .control-action {
|
|
95
|
-
text-align: left;
|
|
96
|
-
color: #333;
|
|
97
|
-
}
|
|
98
|
-
#infoPanel > #infoPanelContent .control-item > .control-key {
|
|
99
|
-
text-align: right;
|
|
100
|
-
color: #666;
|
|
101
|
-
}
|
|
102
|
-
#infoPanel > #infoPanelContent .control-spacer {
|
|
103
|
-
border-bottom: 1px dashed #666;
|
|
104
|
-
margin: 10px 0;
|
|
42
|
+
|
|
43
|
+
/* poster */
|
|
44
|
+
#poster {
|
|
45
|
+
display: none;
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
background-size: cover;
|
|
52
|
+
background-position: center;
|
|
53
|
+
background-repeat: no-repeat;
|
|
105
54
|
}
|
|
106
55
|
|
|
107
56
|
/* loadingWrap */
|
|
108
|
-
|
|
109
57
|
#loadingWrap {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
padding: 16px;
|
|
58
|
+
position: fixed;
|
|
59
|
+
bottom: 120px;
|
|
60
|
+
left: 50%;
|
|
61
|
+
transform: translate(-50%, 0);
|
|
62
|
+
width: 380px;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
padding: 16px;
|
|
120
66
|
}
|
|
121
67
|
#loadingWrap > #loadingText {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
68
|
+
font-size: 18px;
|
|
69
|
+
color: #fff;
|
|
70
|
+
text-align: center;
|
|
71
|
+
text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
|
|
126
72
|
}
|
|
127
73
|
#loadingWrap > #loadingBar {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 10px;
|
|
76
|
+
margin-top: 8px;
|
|
77
|
+
border-radius: 4px;
|
|
78
|
+
overflow: hidden;
|
|
133
79
|
}
|
|
134
80
|
|
|
135
81
|
/* controlsWrap */
|
|
136
|
-
|
|
137
82
|
#controlsWrap {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
flex-direction: column;
|
|
83
|
+
position: absolute;
|
|
84
|
+
left: max(16px, env(safe-area-inset-left));
|
|
85
|
+
right: max(16px, env(safe-area-inset-right));
|
|
86
|
+
bottom: max(16px, env(safe-area-inset-bottom));
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
145
89
|
}
|
|
146
|
-
|
|
147
90
|
#controlsWrap.faded-in {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
91
|
+
visibility: visible;
|
|
92
|
+
opacity: 1;
|
|
93
|
+
transition: opacity 0.5s ease-out;
|
|
151
94
|
}
|
|
152
95
|
#controlsWrap.faded-out {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
96
|
+
visibility: hidden;
|
|
97
|
+
opacity: 0;
|
|
98
|
+
transition: visibility 0s 0.5s, opacity 0.5s ease-out;
|
|
156
99
|
}
|
|
157
|
-
|
|
158
100
|
#controlsWrap > #timelineContainer {
|
|
159
|
-
|
|
160
|
-
|
|
101
|
+
height: 30px;
|
|
102
|
+
cursor: pointer;
|
|
161
103
|
}
|
|
162
104
|
#controlsWrap > #timelineContainer > #line {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
105
|
+
width: 100%;
|
|
106
|
+
height: 50%;
|
|
107
|
+
border-bottom: 4px solid #d9d9d9;
|
|
166
108
|
}
|
|
167
109
|
#controlsWrap > #timelineContainer > #handle {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 16.5px;
|
|
112
|
+
width: 12px;
|
|
113
|
+
height: 12px;
|
|
114
|
+
transform: translate(-50%, -50%);
|
|
115
|
+
border: 2px solid #d9d9d9;
|
|
116
|
+
border-radius: 50%;
|
|
117
|
+
background-color: #FFAF50;
|
|
176
118
|
}
|
|
177
119
|
#controlsWrap > #timelineContainer > #time {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
#controlsWrap > #
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
120
|
+
position: absolute;
|
|
121
|
+
top: 0;
|
|
122
|
+
padding: 2px 4px;
|
|
123
|
+
transform: translate(-50%, -100%);
|
|
124
|
+
font-size: 12px;
|
|
125
|
+
border-radius: 4px;
|
|
126
|
+
color: #fff;
|
|
127
|
+
background-color: rgba(40, 40, 40, 0.5);
|
|
128
|
+
}
|
|
129
|
+
#controlsWrap > #buttonsContainer {
|
|
130
|
+
display: flex;
|
|
131
|
+
gap: 8px;
|
|
132
|
+
/* controlButton */
|
|
133
|
+
}
|
|
134
|
+
#controlsWrap > #buttonsContainer .controlButton {
|
|
135
|
+
width: 40px;
|
|
136
|
+
height: 40px;
|
|
137
|
+
padding: 0;
|
|
138
|
+
margin: 0;
|
|
139
|
+
border: 0;
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
color: #E0DCDD;
|
|
142
|
+
background-color: transparent;
|
|
143
|
+
}
|
|
144
|
+
#controlsWrap > #buttonsContainer .controlButton:hover {
|
|
145
|
+
color: #fff;
|
|
146
|
+
}
|
|
147
|
+
#controlsWrap > #buttonsContainer .controlButton {
|
|
148
|
+
/* icon styling */
|
|
149
|
+
}
|
|
150
|
+
#controlsWrap > #buttonsContainer .controlButton > svg {
|
|
151
|
+
display: block;
|
|
152
|
+
margin: auto;
|
|
153
|
+
}
|
|
154
|
+
#controlsWrap > #buttonsContainer .controlButton > svg > g.stroke {
|
|
155
|
+
fill: none;
|
|
156
|
+
stroke: black;
|
|
157
|
+
stroke-width: 2;
|
|
158
|
+
stroke-linejoin: round;
|
|
159
|
+
opacity: 0.4;
|
|
160
|
+
}
|
|
161
|
+
#controlsWrap > #buttonsContainer .controlButton > svg > g.fill {
|
|
162
|
+
fill: currentColor;
|
|
163
|
+
stroke: none;
|
|
164
|
+
}
|
|
165
|
+
#controlsWrap > #buttonsContainer .controlButton {
|
|
166
|
+
/* camera toggle styling */
|
|
167
|
+
}
|
|
168
|
+
#controlsWrap > #buttonsContainer .controlButton.toggle {
|
|
169
|
+
background: linear-gradient(90deg, #F60 0px, #F60 40px, transparent 40px, transparent 80px, #F60 80px, #F60 120px);
|
|
170
|
+
background-position-x: 40px;
|
|
171
|
+
background-size: 200% 100%;
|
|
172
|
+
background-origin: content-box;
|
|
173
|
+
transition: background-position-x 0.1s ease-in-out;
|
|
174
|
+
background-color: rgba(40, 40, 40, 0.3);
|
|
175
|
+
}
|
|
176
|
+
#controlsWrap > #buttonsContainer .controlButton.toggle.left {
|
|
177
|
+
margin-right: -4px;
|
|
178
|
+
border-radius: 4px 0px 0px 4px;
|
|
179
|
+
}
|
|
180
|
+
#controlsWrap > #buttonsContainer .controlButton.toggle.left.active {
|
|
181
|
+
background-position-x: 0px;
|
|
182
|
+
}
|
|
183
|
+
#controlsWrap > #buttonsContainer .controlButton.toggle.right {
|
|
184
|
+
margin-left: -4px;
|
|
185
|
+
margin-right: 20px;
|
|
186
|
+
border-radius: 0px 4px 4px 0px;
|
|
187
|
+
}
|
|
188
|
+
#controlsWrap > #buttonsContainer .controlButton.toggle.right.active {
|
|
189
|
+
background-position-x: 80px;
|
|
196
190
|
}
|
|
197
191
|
|
|
198
192
|
/* settingsPanel */
|
|
199
|
-
|
|
200
193
|
#settingsPanel {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
font-size: 14px;
|
|
194
|
+
position: fixed;
|
|
195
|
+
right: max(16px, env(safe-area-inset-right));
|
|
196
|
+
bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
|
|
197
|
+
padding: 10px;
|
|
198
|
+
border-radius: 8px;
|
|
199
|
+
display: flex;
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
align-items: flex-end;
|
|
202
|
+
gap: 4px;
|
|
203
|
+
font-size: 14px;
|
|
204
|
+
color: #E0DCDD;
|
|
205
|
+
background-color: #333;
|
|
215
206
|
}
|
|
216
207
|
#settingsPanel > .settingsRow {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
208
|
+
display: flex;
|
|
209
|
+
gap: 4px;
|
|
210
|
+
width: 100%;
|
|
221
211
|
}
|
|
222
|
-
#settingsPanel > .settingsRow >
|
|
223
|
-
|
|
224
|
-
|
|
212
|
+
#settingsPanel > .settingsRow > button {
|
|
213
|
+
flex-grow: 1;
|
|
214
|
+
padding: 10px 20px;
|
|
215
|
+
border: 0;
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
color: #E0DCDD;
|
|
218
|
+
background-color: #141414;
|
|
225
219
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
.toggleWrap {
|
|
230
|
-
position: relative;
|
|
231
|
-
background-color: #dddd;
|
|
232
|
-
border: 1px solid #888;
|
|
233
|
-
border-radius: 8px;
|
|
234
|
-
height: 40px;
|
|
235
|
-
width: 120px;
|
|
236
|
-
}
|
|
237
|
-
.toggleWrap > .toggleHighlight {
|
|
238
|
-
position: absolute;
|
|
239
|
-
left: 0;
|
|
240
|
-
width: 50%;
|
|
241
|
-
height: 100%;
|
|
242
|
-
background-color: #eee;
|
|
243
|
-
border-radius: 8px;
|
|
244
|
-
transition: left 0.1s ease-out;
|
|
245
|
-
}
|
|
246
|
-
.toggleWrap > .toggleHighlight.right {
|
|
247
|
-
left: 60px;
|
|
248
|
-
}
|
|
249
|
-
.toggleWrap > button {
|
|
250
|
-
position: absolute;
|
|
251
|
-
width: 60px;
|
|
252
|
-
height: 100%;
|
|
253
|
-
border: 0;
|
|
254
|
-
border-radius: 8px;
|
|
255
|
-
|
|
256
|
-
cursor: pointer;
|
|
257
|
-
font-size: 14px;
|
|
258
|
-
letter-spacing: -0.25px;
|
|
259
|
-
|
|
260
|
-
color: #222;
|
|
261
|
-
background-color: transparent;
|
|
262
|
-
|
|
263
|
-
appearance: none;
|
|
220
|
+
#settingsPanel > .settingsRow > button:hover {
|
|
221
|
+
color: #fff;
|
|
264
222
|
}
|
|
265
|
-
.
|
|
266
|
-
|
|
223
|
+
#settingsPanel > .settingsRow > div {
|
|
224
|
+
padding: 8px;
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
color: #AAA;
|
|
267
227
|
}
|
|
268
|
-
.
|
|
269
|
-
|
|
228
|
+
#settingsPanel > .settingsRow > div.checkMark {
|
|
229
|
+
width: 16px;
|
|
270
230
|
}
|
|
271
|
-
.
|
|
272
|
-
|
|
231
|
+
#settingsPanel > .settingsRow > div.checkMark:not(.active) {
|
|
232
|
+
color: #333;
|
|
233
|
+
}
|
|
234
|
+
#settingsPanel > .settingsRow > div:hover {
|
|
235
|
+
color: #E0DCDD;
|
|
236
|
+
}
|
|
237
|
+
#settingsPanel > .divider {
|
|
238
|
+
width: 100%;
|
|
239
|
+
height: 1px;
|
|
240
|
+
margin: 8px 0;
|
|
241
|
+
background-color: #666;
|
|
273
242
|
}
|
|
274
243
|
|
|
275
|
-
/*
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
244
|
+
/* infoPanel */
|
|
245
|
+
#infoPanel {
|
|
246
|
+
position: fixed;
|
|
247
|
+
top: 0;
|
|
248
|
+
left: 0;
|
|
249
|
+
width: 100%;
|
|
250
|
+
height: 100%;
|
|
251
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
252
|
+
backdrop-filter: blur(2px);
|
|
253
|
+
}
|
|
254
|
+
#infoPanel > #infoPanelContent {
|
|
255
|
+
position: absolute;
|
|
256
|
+
top: 40px;
|
|
257
|
+
left: 50%;
|
|
258
|
+
transform: translate(-50%, 0);
|
|
259
|
+
min-height: 280px;
|
|
260
|
+
min-width: 320px;
|
|
261
|
+
padding: 8px;
|
|
262
|
+
border-radius: 24px;
|
|
263
|
+
display: flex;
|
|
264
|
+
flex-direction: column;
|
|
265
|
+
color: #E0DCDD;
|
|
266
|
+
background-color: rgba(51, 51, 51, 0.8);
|
|
290
267
|
}
|
|
291
|
-
|
|
292
|
-
|
|
268
|
+
#infoPanel > #infoPanelContent > #tabs {
|
|
269
|
+
display: flex;
|
|
270
|
+
gap: 16px;
|
|
271
|
+
padding: 8px;
|
|
272
|
+
border-radius: 22px;
|
|
273
|
+
background-color: #282828;
|
|
293
274
|
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
275
|
+
#infoPanel > #infoPanelContent > #tabs > .tab {
|
|
276
|
+
padding: 8px;
|
|
277
|
+
border-radius: 16px;
|
|
278
|
+
cursor: pointer;
|
|
279
|
+
flex-grow: 1;
|
|
280
|
+
text-align: center;
|
|
281
|
+
font-weight: bold;
|
|
282
|
+
font-size: 14px;
|
|
283
|
+
color: #E0DCDD;
|
|
284
|
+
transition: background-color 250ms ease;
|
|
297
285
|
}
|
|
298
|
-
#
|
|
299
|
-
|
|
300
|
-
position: absolute;
|
|
301
|
-
top: 0;
|
|
302
|
-
left: 0;
|
|
303
|
-
width: 100%;
|
|
304
|
-
height: 100%;
|
|
305
|
-
background-size: cover;
|
|
306
|
-
background-position: center;
|
|
307
|
-
background-repeat: no-repeat;
|
|
286
|
+
#infoPanel > #infoPanelContent > #tabs > .tab:hover {
|
|
287
|
+
background-color: #444;
|
|
308
288
|
}
|
|
309
|
-
|
|
310
|
-
|
|
289
|
+
#infoPanel > #infoPanelContent > #tabs > .tab.active {
|
|
290
|
+
background-color: #444;
|
|
311
291
|
}
|
|
312
|
-
|
|
313
|
-
|
|
292
|
+
#infoPanel > #infoPanelContent > #infoPanels {
|
|
293
|
+
padding: 16px;
|
|
314
294
|
}
|
|
315
|
-
#
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
295
|
+
#infoPanel > #infoPanelContent > #infoPanels h1 {
|
|
296
|
+
font-size: 14px;
|
|
297
|
+
font-weight: bold;
|
|
298
|
+
padding: 0 0 6px 0;
|
|
299
|
+
color: #fff;
|
|
300
|
+
}
|
|
301
|
+
#infoPanel > #infoPanelContent > #infoPanels .control-item {
|
|
302
|
+
display: flex;
|
|
303
|
+
justify-content: space-between;
|
|
304
|
+
gap: 32px;
|
|
305
|
+
line-height: 1.5;
|
|
306
|
+
}
|
|
307
|
+
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-action {
|
|
308
|
+
text-align: left;
|
|
309
|
+
}
|
|
310
|
+
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-key {
|
|
311
|
+
text-align: right;
|
|
312
|
+
}
|
|
313
|
+
#infoPanel > #infoPanelContent > #infoPanels .control-spacer {
|
|
314
|
+
border-bottom: 1px dashed #666;
|
|
315
|
+
margin: 10px 0;
|
|
325
316
|
}
|
|
326
317
|
|
|
318
|
+
#joystickBase {
|
|
319
|
+
position: absolute;
|
|
320
|
+
width: 96px;
|
|
321
|
+
height: 96px;
|
|
322
|
+
transform: translate(-50%, -50%);
|
|
323
|
+
border-radius: 50%;
|
|
324
|
+
touch-action: none;
|
|
325
|
+
background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 50%, black 100%);
|
|
326
|
+
background-color: rgba(0, 0, 0, 0.1333333333);
|
|
327
|
+
}
|
|
327
328
|
#joystickBase > #joystick {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
329
|
+
position: absolute;
|
|
330
|
+
width: 48px;
|
|
331
|
+
height: 48px;
|
|
332
|
+
transform: translate(-50%, -50%);
|
|
333
|
+
border-radius: 50%;
|
|
334
|
+
touch-action: none;
|
|
335
|
+
background-color: rgba(255, 255, 255, 0.5333333333);
|
|
336
|
+
}
|
|
334
337
|
|
|
335
|
-
|
|
338
|
+
#tooltip {
|
|
339
|
+
position: absolute;
|
|
340
|
+
border-radius: 4px;
|
|
341
|
+
padding: 4px 4px;
|
|
342
|
+
font-size: 12px;
|
|
343
|
+
color: #E0DCDD;
|
|
344
|
+
background-color: #282828;
|
|
336
345
|
}
|