kitzo 2.3.17 → 2.3.18
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const o =
|
|
2
|
-
.kitzo-tooltip-root {
|
|
1
|
+
const o = `.kitzo-tooltip-root {
|
|
3
2
|
--bg-clr: hsl(0, 0%, 15%);
|
|
4
3
|
--text-clr: hsl(0, 0%, 95%);
|
|
5
4
|
|
|
@@ -65,6 +64,7 @@ const o = `/* Default styling */
|
|
|
65
64
|
translate: 0 0;
|
|
66
65
|
}
|
|
67
66
|
.kitzo-tooltip-wrapper.top.end {
|
|
67
|
+
left: auto;
|
|
68
68
|
right: 0;
|
|
69
69
|
translate: 0 0;
|
|
70
70
|
}
|
|
@@ -180,44 +180,6 @@ const o = `/* Default styling */
|
|
|
180
180
|
.kitzo-tooltip-wrapper {
|
|
181
181
|
pointer-events: all;
|
|
182
182
|
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/* Arrow */
|
|
186
|
-
.kitzo-tooltip-content.tooltip-arrow {
|
|
187
|
-
--effective-size: calc(var(--arrow-size, 6) * 1px);
|
|
188
|
-
--effective-color: var(--arrow-color, var(--bg-clr));
|
|
189
|
-
|
|
190
|
-
position: relative;
|
|
191
|
-
}
|
|
192
|
-
.kitzo-tooltip-content.tooltip-arrow::before {
|
|
193
|
-
content: '';
|
|
194
|
-
position: absolute;
|
|
195
|
-
z-index: -1;
|
|
196
|
-
border: var(--effective-size) solid transparent;
|
|
197
|
-
}
|
|
198
|
-
.kitzo-tooltip-content.tooltip-arrow.top::before {
|
|
199
|
-
left: 50%;
|
|
200
|
-
translate: -50% 0;
|
|
201
|
-
top: calc(100% - 1px);
|
|
202
|
-
border-top: var(--effective-size) solid var(--effective-color);
|
|
203
|
-
}
|
|
204
|
-
.kitzo-tooltip-content.tooltip-arrow.right::before {
|
|
205
|
-
top: 50%;
|
|
206
|
-
translate: 0 -50%;
|
|
207
|
-
right: calc(100% - 1px);
|
|
208
|
-
border-right: var(--effective-size) solid var(--effective-color);
|
|
209
|
-
}
|
|
210
|
-
.kitzo-tooltip-content.tooltip-arrow.bottom::before {
|
|
211
|
-
left: 50%;
|
|
212
|
-
translate: -50% 0;
|
|
213
|
-
bottom: calc(100% - 1px);
|
|
214
|
-
border-bottom: var(--effective-size) solid var(--effective-color);
|
|
215
|
-
}
|
|
216
|
-
.kitzo-tooltip-content.tooltip-arrow.left::before {
|
|
217
|
-
top: 50%;
|
|
218
|
-
translate: 0 -50%;
|
|
219
|
-
left: calc(100% - 1px);
|
|
220
|
-
border-left: var(--effective-size) solid var(--effective-color);
|
|
221
183
|
}`;
|
|
222
184
|
function i() {
|
|
223
185
|
if (!document.getElementById("kitzo-tooltip-styles")) {
|