@celestia-island/hikari 0.55.31 → 0.55.32
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/package.json
CHANGED
|
@@ -60,7 +60,13 @@
|
|
|
60
60
|
padding: var(--hk-icon-group-inset);
|
|
61
61
|
border: none;
|
|
62
62
|
background: transparent;
|
|
63
|
-
gap
|
|
63
|
+
/* A visible gap between items (so the sliding thumb never visually
|
|
64
|
+
* merges neighbours) must ALSO feed the thumb's translate arithmetic —
|
|
65
|
+
* one custom property drives both, keeping the position pure index
|
|
66
|
+
* math with no JS measurement. Do not replace with a literal `gap: 0`;
|
|
67
|
+
* the thumb formula below consumes the same variable. */
|
|
68
|
+
--hk-icon-group-slider-gap: 0.375rem;
|
|
69
|
+
gap: var(--hk-icon-group-slider-gap);
|
|
64
70
|
flex-wrap: nowrap;
|
|
65
71
|
}
|
|
66
72
|
|
|
@@ -93,7 +99,10 @@
|
|
|
93
99
|
border-radius: var(--radius-sm, 4px);
|
|
94
100
|
background: rgb(var(--color-primary, 90 140 255) / 14%);
|
|
95
101
|
transform: translateX(
|
|
96
|
-
calc(
|
|
102
|
+
calc(
|
|
103
|
+
var(--hk-icon-group-active-index, 0) *
|
|
104
|
+
(var(--hk-icon-group-item-size) + var(--hk-icon-group-slider-gap))
|
|
105
|
+
)
|
|
97
106
|
);
|
|
98
107
|
transition: transform var(--duration, 0.18s) ease;
|
|
99
108
|
pointer-events: none;
|