@visns-studio/visns-components 5.11.3 → 5.11.4

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.
@@ -13,6 +13,16 @@
13
13
  line-height: 1.45;
14
14
  margin-right: 1rem;
15
15
 
16
+ .logoButton {
17
+ background: none;
18
+ border: none;
19
+ padding: 0;
20
+ margin: 0;
21
+ cursor: pointer;
22
+ width: 100%;
23
+ display: block;
24
+ }
25
+
16
26
  img {
17
27
  width: 100%;
18
28
  height: auto;
@@ -89,7 +99,8 @@
89
99
  }
90
100
 
91
101
  a,
92
- span {
102
+ span,
103
+ button {
93
104
  font-size: 0.9rem;
94
105
  display: flex;
95
106
  flex-wrap: nowrap;
@@ -103,11 +114,16 @@
103
114
  outline: none;
104
115
  border-radius: var(--br);
105
116
  transition: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
117
+ background: none;
118
+ border: none;
119
+ cursor: pointer;
120
+ font-family: inherit;
106
121
  }
107
122
 
108
123
  &.nav-item {
109
124
  a,
110
- span {
125
+ span,
126
+ button {
111
127
  color: var(--tertiary-color);
112
128
  }
113
129
 
@@ -120,7 +136,9 @@
120
136
  &:hover a,
121
137
  &.active a,
122
138
  &:hover span,
123
- &.active span {
139
+ &.active span,
140
+ &:hover button,
141
+ &.active button {
124
142
  background: rgba(var(--secondary-rgb), 1);
125
143
  color: var(--tertiary-color);
126
144
  }
@@ -175,7 +193,8 @@
175
193
  border-radius: 0;
176
194
  }
177
195
 
178
- > a {
196
+ > a,
197
+ > button {
179
198
  width: 100%;
180
199
  padding: 8px 20px;
181
200
  box-sizing: border-box;
@@ -187,9 +206,14 @@
187
206
  background: rgba(var(--primary-rgb), 1);
188
207
  color: var(--tertiary-color) !important;
189
208
  position: relative;
209
+ border: none;
210
+ cursor: pointer;
211
+ font-family: inherit;
212
+ text-align: left;
190
213
  }
191
214
 
192
- &:hover a {
215
+ &:hover a,
216
+ &:hover button {
193
217
  background: rgba(var(--primary-rgb), 1);
194
218
  color: var(--tertiary-color);
195
219
  }
@@ -305,7 +329,7 @@
305
329
  width: max-content;
306
330
  justify-self: end;
307
331
  position: relative;
308
- z-index: 100; // Ensure proper stacking above modal content
332
+ z-index: 1000; // Higher z-index to stay above sticky header
309
333
 
310
334
  > ul {
311
335
  list-style: none;
@@ -318,7 +342,7 @@
318
342
  justify-content: flex-end;
319
343
  gap: 2px;
320
344
  position: relative;
321
- z-index: 101;
345
+ z-index: 1001;
322
346
 
323
347
  li {
324
348
  margin: 0 2px;
@@ -329,7 +353,7 @@
329
353
  min-width: 32px; // Reduced from 40px for better spacing
330
354
  min-height: 32px; // Reduced from 40px for better spacing
331
355
  justify-content: center;
332
- z-index: 102;
356
+ z-index: 1002;
333
357
  }
334
358
 
335
359
  a {
@@ -338,7 +362,7 @@
338
362
  padding: 0.35rem;
339
363
  text-decoration: none;
340
364
  background: none;
341
- border: 2px solid var(--primary-color);
365
+ border: 1px solid var(--primary-color);
342
366
  border-radius: 100%;
343
367
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); // Reduced duration
344
368
  display: flex;
@@ -347,9 +371,16 @@
347
371
  width: 32px; // Reduced from 36px
348
372
  height: 32px; // Reduced from 36px
349
373
  position: relative;
350
- z-index: 103;
351
- transform: translateZ(0); // Force hardware acceleration
374
+ z-index: 1003;
375
+ transform: translateZ(0) translateX(0) translateY(0); // Force compositor layer
352
376
  will-change: transform, background-color; // Optimize for animations
377
+ /* Remove contain: layout to prevent rendering optimization conflicts */
378
+ outline: none;
379
+ appearance: none;
380
+ backface-visibility: hidden; // Prevent rendering glitches
381
+ -webkit-backface-visibility: hidden;
382
+ /* Force onto own layer to prevent culling */
383
+ isolation: isolate;
353
384
 
354
385
  &:hover,
355
386
  &.active {
@@ -379,9 +410,13 @@
379
410
  outline: none;
380
411
  appearance: none;
381
412
  position: relative;
382
- z-index: 103;
383
- transform: translateZ(0); // Force hardware acceleration
413
+ z-index: 1003;
414
+ transform: translateZ(0) translateX(0) translateY(0); // Force compositor layer
384
415
  will-change: transform, background-color; // Optimize for animations
416
+ /* Remove contain: layout to prevent rendering optimization conflicts */
417
+ backface-visibility: hidden; // Prevent rendering glitches
418
+ -webkit-backface-visibility: hidden;
419
+ isolation: isolate;
385
420
 
386
421
  &:hover,
387
422
  &.active {
@@ -400,7 +435,7 @@
400
435
  width: max-content;
401
436
  justify-self: end;
402
437
  position: relative;
403
- z-index: 100; // Ensure proper stacking above modal content
438
+ z-index: 1000; // Higher z-index to stay above sticky header
404
439
 
405
440
  > ul {
406
441
  list-style: none;
@@ -413,7 +448,7 @@
413
448
  justify-content: flex-end;
414
449
  gap: 2px;
415
450
  position: relative;
416
- z-index: 101;
451
+ z-index: 1001;
417
452
 
418
453
  li {
419
454
  margin: 0 2px;
@@ -424,7 +459,7 @@
424
459
  min-width: 32px; // Reduced from 40px for better spacing
425
460
  min-height: 32px; // Reduced from 40px for better spacing
426
461
  justify-content: center;
427
- z-index: 102;
462
+ z-index: 1002;
428
463
  }
429
464
 
430
465
  a {
@@ -433,7 +468,7 @@
433
468
  padding: 0.35rem;
434
469
  text-decoration: none;
435
470
  background: none;
436
- border: 2px solid var(--primary-color);
471
+ border: 1px solid var(--primary-color);
437
472
  border-radius: 100%;
438
473
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); // Reduced duration
439
474
  display: flex;
@@ -442,9 +477,16 @@
442
477
  width: 32px; // Reduced from 36px
443
478
  height: 32px; // Reduced from 36px
444
479
  position: relative;
445
- z-index: 103;
446
- transform: translateZ(0); // Force hardware acceleration
480
+ z-index: 1003;
481
+ transform: translateZ(0) translateX(0) translateY(0); // Force compositor layer
447
482
  will-change: transform, background-color; // Optimize for animations
483
+ /* Remove contain: layout to prevent rendering optimization conflicts */
484
+ outline: none;
485
+ appearance: none;
486
+ backface-visibility: hidden; // Prevent rendering glitches
487
+ -webkit-backface-visibility: hidden;
488
+ /* Force onto own layer to prevent culling */
489
+ isolation: isolate;
448
490
 
449
491
  &:hover,
450
492
  &.active {
@@ -474,9 +516,13 @@
474
516
  outline: none;
475
517
  appearance: none;
476
518
  position: relative;
477
- z-index: 103;
478
- transform: translateZ(0); // Force hardware acceleration
519
+ z-index: 1003;
520
+ transform: translateZ(0) translateX(0) translateY(0); // Force compositor layer
479
521
  will-change: transform, background-color; // Optimize for animations
522
+ /* Remove contain: layout to prevent rendering optimization conflicts */
523
+ backface-visibility: hidden; // Prevent rendering glitches
524
+ -webkit-backface-visibility: hidden;
525
+ isolation: isolate;
480
526
 
481
527
  &:hover,
482
528
  &.active {
@@ -687,15 +733,17 @@
687
733
  flex-wrap: nowrap;
688
734
  justify-content: space-between;
689
735
  align-items: center;
690
- overflow-x: auto; /* Allow horizontal scrolling if needed */
736
+ overflow: visible; /* Allow icons to remain visible */
691
737
  -webkit-overflow-scrolling: touch;
692
738
  scrollbar-width: none; /* Firefox */
693
739
  -ms-overflow-style: none; /* IE and Edge */
694
740
  position: sticky;
695
741
  top: 0;
696
742
  z-index: 995;
697
- contain: layout; /* Prevent layout shifts */
743
+ /* Remove contain: layout as it can cause rendering issues with child elements */
698
744
  transform: translateZ(0); /* Force hardware acceleration */
745
+ backface-visibility: hidden; /* Prevent rendering glitches */
746
+ -webkit-backface-visibility: hidden;
699
747
 
700
748
  /* Hide scrollbar for Chrome/Safari/Opera */
701
749
  &::-webkit-scrollbar {
@@ -1040,6 +1088,30 @@
1040
1088
  }
1041
1089
  }
1042
1090
 
1091
+ // Debug styles for troubleshooting icon disappearing
1092
+ .debug-icons {
1093
+ a, button {
1094
+ border: 2px solid red !important;
1095
+ background: rgba(255, 0, 0, 0.1) !important;
1096
+
1097
+ &::before {
1098
+ content: 'A' !important;
1099
+ position: absolute !important;
1100
+ top: -15px !important;
1101
+ left: 0 !important;
1102
+ font-size: 10px !important;
1103
+ background: red !important;
1104
+ color: white !important;
1105
+ padding: 2px !important;
1106
+ }
1107
+ }
1108
+
1109
+ button::before {
1110
+ content: 'B' !important;
1111
+ background: blue !important;
1112
+ }
1113
+ }
1114
+
1043
1115
  @media (max-width: 960px) {
1044
1116
  .hwrap {
1045
1117
  grid-template-columns: auto 1fr auto;