MikaFil commited on
Commit
4c1d93d
·
verified ·
1 Parent(s): a5a6494

Update style/defaults/style.css

Browse files
Files changed (1) hide show
  1. style/defaults/style.css +33 -112
style/defaults/style.css CHANGED
@@ -261,17 +261,38 @@ progress::-moz-progress-bar {
261
  box-sizing: border-box;
262
  }
263
 
264
- /* -------- COLOR BUTTONS --------- */
265
- .color-btn {
266
  position: absolute;
 
267
  right: 12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  width: 32px;
269
  height: 32px;
270
  border-radius: 8px;
271
  border: 1px solid #ccc;
272
  background: #fff;
273
- margin: 0;
274
- padding: 0;
275
  outline: none;
276
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
277
  cursor: pointer;
@@ -300,68 +321,15 @@ progress::-moz-progress-bar {
300
  }
301
  /* More color-btn[title="..."] as needed */
302
 
303
- /* --- MOBILE adjustments for color buttons --- */
304
  @media (max-width: 600px) {
305
  .color-btn {
306
  width: 24px;
307
  height: 24px;
308
  border-radius: 6px;
309
- right: 8px;
310
  }
311
  }
312
 
313
- /* Position color buttons under the last top-right control button: */
314
- .color-btn.color-btn-0 { top: 52px; } /* Under fullscreen (top:12px+32px+8px) */
315
- .color-btn.color-btn-1 { top: 92px; } /* Next one down (52px+32px+8px) */
316
- @media (max-width: 600px) {
317
- .color-btn.color-btn-0 { top: 40px; }
318
- .color-btn.color-btn-1 { top: 66px; }
319
- }
320
- /* --------- END COLOR BUTTONS ----------- */
321
-
322
- /* --- MOBILE adjustments --- */
323
- @media (max-width: 600px) {
324
- .menu-content {
325
- width: 85vw;
326
- max-height: 90%;
327
- overflow: scroll !important;
328
- scrollbar-gutter: stable both-edges;
329
- padding: 40px 18px 14px;
330
- font-size: 14px;
331
- }
332
- .menu-content .help-close {
333
- top: 8px;
334
- right: 8px;
335
- width: 26px;
336
- height: 26px;
337
- font-size: 15px;
338
- }
339
- .tooltip-panel {
340
- top: auto;
341
- bottom: 8px;
342
- left: 3vw;
343
- right: 3vw;
344
- transform: none;
345
- width: auto;
346
- max-width: 94vw;
347
- min-width: 0;
348
- max-height: 55%;
349
- padding: 20px 10px 12px 10px;
350
- font-size: 13.5px;
351
- overflow: scroll !important;
352
- scrollbar-gutter: stable both-edges;
353
- }
354
- .tooltip-close {
355
- top: 8px;
356
- right: 8px;
357
- width: 26px;
358
- height: 26px;
359
- font-size: 15px;
360
- }
361
- .tooltip-image {
362
- max-height: 22vh;
363
- }
364
- }
365
  .help-close {
366
  position: absolute;
367
  top: 8px;
@@ -382,7 +350,6 @@ progress::-moz-progress-bar {
382
  padding: 0;
383
  }
384
  .widget-button {
385
- position: absolute;
386
  width: 32px;
387
  height: 32px;
388
  background-color: #F2F0EF;
@@ -398,69 +365,23 @@ progress::-moz-progress-bar {
398
  z-index: 1000;
399
  opacity: 1 !important;
400
  visibility: visible !important;
401
- margin-right: 8px;
402
  }
403
  .widget-button:hover { background-color: rgba(242,240,239,0.7); }
404
- .fullscreen-toggle { top: 12px; right: 12px; }
405
- .help-toggle { top: 12px; right: 52px; font-size: 18px; }
406
- .reset-camera-btn { top: 12px; right: 92px; font-size: 18px; line-height: normal; padding: 0; }
407
- .tooltips-toggle { top: 12px; right: 132px; font-size: 18px; }
408
  .fake-fullscreen .widget-button,
409
  :fullscreen .widget-button,
410
  :-webkit-full-screen .widget-button,
411
  :-moz-full-screen .widget-button,
412
  :-ms-fullscreen .widget-button { z-index: 10000; }
413
- /* --- MOBILE adjustments --- */
414
  @media (max-width: 600px) {
415
- .menu-content {
416
- width: 85vw;
417
- max-height: 90%;
418
- overflow: scroll !important;
419
- scrollbar-gutter: stable both-edges;
420
- padding: 40px 18px 14px;
421
- font-size: 14px;
422
- }
423
- .menu-content .help-close {
424
- top: 6px;
425
- right: 6px;
426
- }
427
- .tooltip-panel {
428
- top: auto;
429
- bottom: 8px;
430
- left: 3vw;
431
- right: 3vw;
432
- transform: none;
433
- width: auto;
434
- max-width: 94vw;
435
- min-width: 0;
436
- max-height: 85%;
437
- padding: 20px 10px 12px 10px;
438
- font-size: 13.5px;
439
- overflow: scroll !important;
440
- scrollbar-gutter: stable both-edges;
441
- }
442
- .tooltip-close {
443
- top: 8px;
444
- right: 8px;
445
- width: 26px;
446
- height: 26px;
447
- font-size: 15px;
448
- }
449
- .tooltip-image {
450
- max-height: 22vh;
451
  }
452
  }
453
- .ply-widget-container.mobile .widget-button {
454
- width: 24px;
455
- height: 24px;
456
- font-size: 12px;
457
- }
458
- .ply-widget-container.mobile .help-toggle { font-size: 14px; }
459
- .ply-widget-container.mobile .fullscreen-toggle { top: 8px; right: 8px; }
460
- .ply-widget-container.mobile .help-toggle { top: 8px; right: 40px; }
461
- .ply-widget-container.mobile .reset-camera-btn { top: 8px; right: 72px; }
462
- .ply-widget-container.mobile .tooltips-toggle { top: 8px; right: 104px; }
463
-
464
  #application-canvas { width: 100%; height: 100%; display: block; }
465
  html, body { margin: 0; padding: 0; height: 100%; }
466
  .progress-dialog p { margin: 0; padding: 5px; }
 
261
  box-sizing: border-box;
262
  }
263
 
264
+ /* ----------- FLEX COLUMN FOR ALL CONTROLS AND COLOR BUTTONS ----------- */
265
+ .viewer-controls {
266
  position: absolute;
267
+ top: 12px;
268
  right: 12px;
269
+ display: flex;
270
+ flex-direction: column;
271
+ align-items: flex-end;
272
+ gap: 12px;
273
+ z-index: 1001;
274
+ }
275
+ @media (max-width: 600px) {
276
+ .viewer-controls {
277
+ top: 8px;
278
+ right: 8px;
279
+ gap: 8px;
280
+ }
281
+ }
282
+ /* All buttons inside stack the same! */
283
+ .viewer-controls .widget-button,
284
+ .viewer-controls .color-btn {
285
+ position: static !important; /* flex children, not absolute! */
286
+ margin: 0 !important;
287
+ }
288
+
289
+ /* --------- COLOR BUTTON STYLE: SQUARE, ROUNDED, MATCHING OTHERS --------- */
290
+ .color-btn {
291
  width: 32px;
292
  height: 32px;
293
  border-radius: 8px;
294
  border: 1px solid #ccc;
295
  background: #fff;
 
 
296
  outline: none;
297
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
298
  cursor: pointer;
 
321
  }
322
  /* More color-btn[title="..."] as needed */
323
 
 
324
  @media (max-width: 600px) {
325
  .color-btn {
326
  width: 24px;
327
  height: 24px;
328
  border-radius: 6px;
 
329
  }
330
  }
331
 
332
+ /* (Keep the rest of your original style.css below, unchanged...) */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  .help-close {
334
  position: absolute;
335
  top: 8px;
 
350
  padding: 0;
351
  }
352
  .widget-button {
 
353
  width: 32px;
354
  height: 32px;
355
  background-color: #F2F0EF;
 
365
  z-index: 1000;
366
  opacity: 1 !important;
367
  visibility: visible !important;
368
+ margin-right: 0;
369
  }
370
  .widget-button:hover { background-color: rgba(242,240,239,0.7); }
 
 
 
 
371
  .fake-fullscreen .widget-button,
372
  :fullscreen .widget-button,
373
  :-webkit-full-screen .widget-button,
374
  :-moz-full-screen .widget-button,
375
  :-ms-fullscreen .widget-button { z-index: 10000; }
376
+ /* --- MOBILE adjustments for widget buttons --- */
377
  @media (max-width: 600px) {
378
+ .widget-button {
379
+ width: 24px;
380
+ height: 24px;
381
+ font-size: 12px;
382
+ border-radius: 6px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
  }
384
  }
 
 
 
 
 
 
 
 
 
 
 
385
  #application-canvas { width: 100%; height: 100%; display: block; }
386
  html, body { margin: 0; padding: 0; height: 100%; }
387
  .progress-dialog p { margin: 0; padding: 5px; }