@sequent-org/ifc-viewer 1.2.4-ci.25.0 → 1.2.4-ci.27.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.
@@ -16,8 +16,8 @@
16
16
 
17
17
  /* === CSS VARIABLES (THEME COLORS) === */
18
18
  .ifc-viewer-container {
19
- --color-primary: #3b82f6;
20
- --color-primary-hover: #2563eb;
19
+ --color-primary: #80D8FF;
20
+ --color-primary-hover: #80D8FF;
21
21
  --color-secondary: #64748b;
22
22
  --color-secondary-hover: #475569;
23
23
  --color-neutral: #374151;
@@ -412,3 +412,63 @@
412
412
  .text-orange-600 { color: #ea580c; }
413
413
  .text-gray-600 { color: #4b5563; }
414
414
  .text-gray-500 { color: #6b7280; }
415
+
416
+ /* === TOOLBAR BUTTONS SHADOWS === */
417
+ #ifcToolbar .join {
418
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25) !important;
419
+ transition: box-shadow 0.2s ease !important;
420
+
421
+ }
422
+
423
+ /* #ifcToolbar .btn:hover {
424
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
425
+ }
426
+
427
+ #ifcToolbar .btn:active {
428
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
429
+ } */
430
+
431
+ /* === HOME BUTTON === */
432
+ .nav-cube-home-btn {
433
+ /* Позиционирование */
434
+ position: absolute;
435
+ z-index: 40;
436
+
437
+ /* Стили как у .btn .btn-sm */
438
+ display: inline-flex;
439
+ align-items: center;
440
+ justify-content: center;
441
+ border-radius: var(--border-radius);
442
+ height: 2rem;
443
+ min-height: 2rem;
444
+ width: 2rem;
445
+ padding: 0;
446
+ font-size: 0.75rem;
447
+ font-weight: 600;
448
+ text-decoration: none;
449
+ border: 1px solid transparent;
450
+ cursor: pointer;
451
+ user-select: none;
452
+ transition-property: color, background-color, border-color, box-shadow;
453
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
454
+ transition-duration: 200ms;
455
+ background-color: var(--color-base-200);
456
+ color: var(--color-neutral);
457
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
458
+ }
459
+
460
+ .nav-cube-home-btn:hover {
461
+ background-color: var(--color-base-300);
462
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
463
+ }
464
+
465
+ .nav-cube-home-btn:active {
466
+ background-color: var(--color-base-300);
467
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
468
+ }
469
+
470
+ .nav-cube-home-btn svg {
471
+ fill: #000000;
472
+ width: 18px;
473
+ height: 18px;
474
+ }
@@ -90,21 +90,12 @@ export class NavCube {
90
90
  this.homeBtn = document.createElement('button');
91
91
  this.homeBtn.type = 'button';
92
92
  this.homeBtn.title = 'Home';
93
+ this.homeBtn.className = 'nav-cube-home-btn';
93
94
  this.homeBtn.innerHTML = `
94
- <svg fill="#000000" width="20px" height="20px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
95
+ <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
95
96
  <path d="M946.5 505L534.6 93.4a31.93 31.93 0 0 0-45.2 0L77.5 505c-12 12-18.8 28.3-18.8 45.3 0 35.3 28.7 64 64 64h43.4V908c0 17.7 14.3 32 32 32H448V716h112v224h265.9c17.7 0 32-14.3 32-32V614.3h43.4c17 0 33.3-6.7 45.3-18.8 24.9-25 24.9-65.5-.1-90.5z"/>
96
97
  </svg>
97
98
  `;
98
- this.homeBtn.style.position = 'absolute';
99
- this.homeBtn.style.zIndex = '40';
100
- this.homeBtn.style.width = '30px';
101
- this.homeBtn.style.height = '30px';
102
- this.homeBtn.style.borderRadius = '6px';
103
- this.homeBtn.style.border = '0px solid rgba(255,255,255,0.1)';
104
- this.homeBtn.style.background = 'rgba(0, 0, 0, 0.05)';
105
- this.homeBtn.style.color = '#fff';
106
- this.homeBtn.style.cursor = 'pointer';
107
- this.homeBtn.style.userSelect = 'none';
108
99
  // Позиция задаётся в renderOverlay относительно текущего размера
109
100
  this.homeBtn.addEventListener('click', () => { try { this.onHome && this.onHome(); } catch(_) {} });
110
101
  try { this.container.appendChild(this.homeBtn); } catch(_) {}