MikaFil commited on
Commit
f4f6703
·
verified ·
1 Parent(s): 0f8ec44

Update style/defaults/style.css

Browse files
Files changed (1) hide show
  1. style/defaults/style.css +127 -78
style/defaults/style.css CHANGED
@@ -1,3 +1,5 @@
 
 
1
  /* Widget container styling */
2
  .ply-widget-container {
3
  position: relative;
@@ -11,7 +13,7 @@
11
  z-index: 10 !important;
12
  }
13
 
14
- /* Fake fullscreen (iOS fallback) */
15
  .ply-widget-container.fake-fullscreen {
16
  position: fixed !important;
17
  top: 0 !important;
@@ -29,8 +31,14 @@
29
  overflow: hidden;
30
  }
31
 
32
- /* For native fullscreen */
33
- .ply-widget-container:fullscreen,
 
 
 
 
 
 
34
  .ply-widget-container:-webkit-full-screen,
35
  .ply-widget-container:-moz-full-screen,
36
  .ply-widget-container:-ms-fullscreen {
@@ -41,7 +49,7 @@
41
  background-color: black;
42
  }
43
 
44
- /* Viewer container styling */
45
  .viewer-container {
46
  display: none;
47
  position: absolute;
@@ -60,7 +68,7 @@
60
  z-index: 100 !important;
61
  }
62
 
63
- /* Fullscreen viewer tweaks */
64
  .fake-fullscreen .viewer-container,
65
  :fullscreen .viewer-container,
66
  :-webkit-full-screen .viewer-container,
@@ -72,7 +80,7 @@
72
  height: 100%;
73
  }
74
 
75
- /* Canvas styling */
76
  .ply-canvas {
77
  width: 100%;
78
  height: 100%;
@@ -84,7 +92,7 @@
84
  pointer-events: auto !important;
85
  }
86
 
87
- /* Progress dialog styling */
88
  .progress-dialog {
89
  position: absolute;
90
  top: 50%; left: 50%;
@@ -98,6 +106,7 @@
98
  color: white;
99
  }
100
 
 
101
  progress {
102
  width: 250px;
103
  height: 15px;
@@ -119,7 +128,80 @@ progress::-moz-progress-bar {
119
  border-radius: 10px;
120
  }
121
 
122
- /* Widget Buttons */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  .widget-button {
124
  position: absolute;
125
  width: 32px;
@@ -143,6 +225,8 @@ progress::-moz-progress-bar {
143
  .widget-button:hover {
144
  background-color: rgba(242,240,239,0.7);
145
  }
 
 
146
  .fullscreen-toggle {
147
  top: 12px;
148
  right: 12px;
@@ -165,6 +249,7 @@ progress::-moz-progress-bar {
165
  font-size: 18px;
166
  }
167
 
 
168
  .fake-fullscreen .widget-button,
169
  :fullscreen .widget-button,
170
  :-webkit-full-screen .widget-button,
@@ -173,46 +258,7 @@ progress::-moz-progress-bar {
173
  z-index: 10000;
174
  }
175
 
176
- /* -------- HELP MENU PANEL -------- */
177
- .menu-content {
178
- display: none;
179
- position: absolute;
180
- top: 50%; left: 50%;
181
- transform: translate(-50%, -50%);
182
- background: rgba(242,240,239,0.93);
183
- color: #545454;
184
- border: 1px solid #ddd;
185
- border-radius: 10px;
186
- padding: 18px 24px;
187
- font-size: 15px;
188
- line-height: 1.4;
189
- box-shadow: none;
190
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
191
- z-index: 1010;
192
- pointer-events: auto !important;
193
- box-sizing: border-box;
194
- overflow: visible;
195
- max-width: none;
196
- max-height: none;
197
- }
198
-
199
- .help-close {
200
- position: absolute;
201
- top: 8px;
202
- right: 8px;
203
- background-color: #B0B0B0;
204
- color: #333;
205
- border: none;
206
- border-radius: 4px;
207
- width: 24px;
208
- height: 24px;
209
- line-height: 24px;
210
- text-align: center;
211
- cursor: pointer;
212
- font-size: 16px;
213
- }
214
-
215
- /* -------- TOOLTIP PANEL -------- */
216
  .tooltip-panel {
217
  position: absolute;
218
  top: 50%;
@@ -234,6 +280,8 @@ progress::-moz-progress-bar {
234
  overflow: auto !important;
235
  box-sizing: border-box;
236
  }
 
 
237
  .tooltip-content {
238
  position: relative;
239
  width: 100%;
@@ -242,6 +290,8 @@ progress::-moz-progress-bar {
242
  overflow: auto;
243
  max-height: 65vh;
244
  }
 
 
245
  .tooltip-close {
246
  position: absolute;
247
  top: 10px;
@@ -267,6 +317,8 @@ progress::-moz-progress-bar {
267
  .tooltip-close:hover {
268
  background: #ececec;
269
  }
 
 
270
  .tooltip-text {
271
  margin-bottom: 10px;
272
  font-size: 14px;
@@ -281,7 +333,7 @@ progress::-moz-progress-bar {
281
  display: block;
282
  }
283
 
284
- /* --------- MOBILE AND RESPONSIVE --------- */
285
  .ply-widget-container.mobile .widget-button {
286
  width: 24px;
287
  height: 24px;
@@ -312,17 +364,32 @@ progress::-moz-progress-bar {
312
  padding: 8px 5px 12px 8px;
313
  }
314
 
315
- /* -------- ENSURE MENU PANEL STAYS WITHIN VIEWER ON MOBILE -------- */
316
- @media (max-width: 800px) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  .menu-content {
318
- max-width: 80vw !important;
319
- max-height: 80vh !important;
320
- overflow-y: auto !important;
321
- overflow-x: auto !important;
322
- box-sizing: border-box;
323
- width: auto !important;
324
- height: auto !important;
325
- padding: 24px 14px 18px 14px;
326
  font-size: 14px;
327
  }
328
  .menu-content .help-close {
@@ -343,25 +410,7 @@ progress::-moz-progress-bar {
343
  }
344
  }
345
 
346
- /* PlayCanvas compatibility */
347
- #application-canvas {
348
- width: 100%;
349
- height: 100%;
350
- display: block;
351
- }
352
- html, body {
353
- margin: 0;
354
- padding: 0;
355
- height: 100%;
356
- }
357
-
358
- /* Error message styling */
359
- .progress-dialog p {
360
- margin: 0;
361
- padding: 5px;
362
- }
363
-
364
- /* Ensure pointer events for overlays */
365
  .ply-widget-container,
366
  .viewer-container,
367
  .ply-canvas,
 
1
+ /* style.css */
2
+
3
  /* Widget container styling */
4
  .ply-widget-container {
5
  position: relative;
 
13
  z-index: 10 !important;
14
  }
15
 
16
+ /* When in fake fullscreen mode (iOS fallback) */
17
  .ply-widget-container.fake-fullscreen {
18
  position: fixed !important;
19
  top: 0 !important;
 
31
  overflow: hidden;
32
  }
33
 
34
+ /* For native fullscreen - ensure no aspect ratio padding */
35
+ .ply-widget-container:fullscreen {
36
+ width: 100vw !important;
37
+ height: 100vh !important;
38
+ padding-bottom: 0 !important;
39
+ border-radius: 0 !important;
40
+ background-color: black;
41
+ }
42
  .ply-widget-container:-webkit-full-screen,
43
  .ply-widget-container:-moz-full-screen,
44
  .ply-widget-container:-ms-fullscreen {
 
49
  background-color: black;
50
  }
51
 
52
+ /* Viewer Container styling */
53
  .viewer-container {
54
  display: none;
55
  position: absolute;
 
68
  z-index: 100 !important;
69
  }
70
 
71
+ /* When parent container is fullscreen, adjust viewer container */
72
  .fake-fullscreen .viewer-container,
73
  :fullscreen .viewer-container,
74
  :-webkit-full-screen .viewer-container,
 
80
  height: 100%;
81
  }
82
 
83
+ /* Canvas fills the viewer container */
84
  .ply-canvas {
85
  width: 100%;
86
  height: 100%;
 
92
  pointer-events: auto !important;
93
  }
94
 
95
+ /* Progress dialog styling (centered) */
96
  .progress-dialog {
97
  position: absolute;
98
  top: 50%; left: 50%;
 
106
  color: white;
107
  }
108
 
109
+ /* Progress bar styling */
110
  progress {
111
  width: 250px;
112
  height: 15px;
 
128
  border-radius: 10px;
129
  }
130
 
131
+ /* -------------------- INSTRUCTIONS PANEL STYLING -------------------- */
132
+ .menu-content {
133
+ display: none;
134
+ position: absolute;
135
+ top: 50%; left: 50%;
136
+ transform: translate(-50%, -50%);
137
+ background: rgba(242,240,239,0.93);
138
+ color: #545454;
139
+ border: 1px solid #ddd;
140
+ border-radius: 10px;
141
+ padding: 18px 24px;
142
+ font-size: 15px;
143
+ line-height: 1.4;
144
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
145
+ z-index: 1010;
146
+ pointer-events: auto !important;
147
+ box-sizing: border-box;
148
+ overflow: auto;
149
+ max-width: 600px;
150
+ max-height: 70vh;
151
+ min-width: 200px;
152
+ }
153
+
154
+ .menu-content .help-close {
155
+ position: absolute;
156
+ top: 8px;
157
+ right: 8px;
158
+ background-color: #B0B0B0;
159
+ color: #333;
160
+ border: none;
161
+ border-radius: 4px;
162
+ width: 24px;
163
+ height: 24px;
164
+ line-height: 24px;
165
+ text-align: center;
166
+ cursor: pointer;
167
+ font-size: 16px;
168
+ z-index: 1100;
169
+ }
170
+
171
+ /* Responsive rules for menu-content */
172
+ @media (max-width: 800px) {
173
+ .menu-content {
174
+ max-width: 80vw !important;
175
+ max-height: 80vh !important;
176
+ font-size: 14px;
177
+ padding: 18px 10px 14px 10px;
178
+ }
179
+ }
180
+ @media (max-width: 600px) {
181
+ .menu-content {
182
+ max-width: 90vw !important;
183
+ max-height: 65vh !important;
184
+ font-size: 13.5px;
185
+ padding: 16px 5px 12px 8px;
186
+ }
187
+ .menu-content .help-close {
188
+ width: 28px;
189
+ height: 28px;
190
+ top: 4px;
191
+ right: 4px;
192
+ font-size: 16px;
193
+ }
194
+ }
195
+
196
+ /* Menu-content never goes outside viewer */
197
+ .viewer-container {
198
+ position: absolute;
199
+ overflow: visible !important;
200
+ }
201
+
202
+ /* -------------------- END INSTRUCTIONS PANEL -------------------- */
203
+
204
+ /* Button styling with improved visibility and spacing tweaks */
205
  .widget-button {
206
  position: absolute;
207
  width: 32px;
 
225
  .widget-button:hover {
226
  background-color: rgba(242,240,239,0.7);
227
  }
228
+
229
+ /* Specific button positions */
230
  .fullscreen-toggle {
231
  top: 12px;
232
  right: 12px;
 
249
  font-size: 18px;
250
  }
251
 
252
+ /* Ensure buttons remain visible in fullscreen */
253
  .fake-fullscreen .widget-button,
254
  :fullscreen .widget-button,
255
  :-webkit-full-screen .widget-button,
 
258
  z-index: 10000;
259
  }
260
 
261
+ /* Tooltip panel styling */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  .tooltip-panel {
263
  position: absolute;
264
  top: 50%;
 
280
  overflow: auto !important;
281
  box-sizing: border-box;
282
  }
283
+
284
+ /* Content wrapper for tooltip, leave room at top for close button */
285
  .tooltip-content {
286
  position: relative;
287
  width: 100%;
 
290
  overflow: auto;
291
  max-height: 65vh;
292
  }
293
+
294
+ /* Tooltip close button — styled like the main buttons, always in corner */
295
  .tooltip-close {
296
  position: absolute;
297
  top: 10px;
 
317
  .tooltip-close:hover {
318
  background: #ececec;
319
  }
320
+
321
+ /* Tooltip text and image */
322
  .tooltip-text {
323
  margin-bottom: 10px;
324
  font-size: 14px;
 
333
  display: block;
334
  }
335
 
336
+ /* Mobile adjustments */
337
  .ply-widget-container.mobile .widget-button {
338
  width: 24px;
339
  height: 24px;
 
364
  padding: 8px 5px 12px 8px;
365
  }
366
 
367
+ /* PlayCanvas compatibility */
368
+ #application-canvas {
369
+ width: 100%;
370
+ height: 100%;
371
+ display: block;
372
+ }
373
+ html, body {
374
+ margin: 0;
375
+ padding: 0;
376
+ height: 100%;
377
+ }
378
+
379
+ /* Error message styling */
380
+ .progress-dialog p {
381
+ margin: 0;
382
+ padding: 5px;
383
+ }
384
+
385
+ /* Instructions panel fit on phones */
386
+ @media (max-width: 600px) {
387
  .menu-content {
388
+ width: auto;
389
+ max-width: 90vw !important;
390
+ max-height: 65vh !important;
391
+ overflow: auto !important;
392
+ padding: 40px 18px 14px;
 
 
 
393
  font-size: 14px;
394
  }
395
  .menu-content .help-close {
 
410
  }
411
  }
412
 
413
+ /* Misc pointer events enforcement for all key UI overlays */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
414
  .ply-widget-container,
415
  .viewer-container,
416
  .ply-canvas,