@mlola-ui/tokens 1.0.12 → 1.0.13
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/generated/recipes.css +24 -7
- package/package.json +1 -1
package/generated/recipes.css
CHANGED
|
@@ -6532,8 +6532,12 @@ button.ml-stepper-target:focus-visible {
|
|
|
6532
6532
|
font-size: var(--ml-type-xs);
|
|
6533
6533
|
font-weight: 500;
|
|
6534
6534
|
line-height: 1.4;
|
|
6535
|
-
|
|
6535
|
+
/* One line when it fits; a long tip wraps within the window instead of running past it. */
|
|
6536
|
+
width: max-content;
|
|
6537
|
+
max-width: min(20rem, calc(100vw - 2 * var(--ml-space-2)));
|
|
6538
|
+
white-space: normal;
|
|
6536
6539
|
pointer-events: none;
|
|
6540
|
+
/* Placement uses `translate`, so the pop-in's transform adds to it instead of replacing it mid-animation. */
|
|
6537
6541
|
animation: ml-pop-in var(--ml-duration-fast) var(--ml-ease-spring);
|
|
6538
6542
|
}
|
|
6539
6543
|
|
|
@@ -6541,25 +6545,25 @@ button.ml-stepper-target:focus-visible {
|
|
|
6541
6545
|
.ml-tooltip:not([data-side]) {
|
|
6542
6546
|
bottom: calc(100% + var(--ml-space-2));
|
|
6543
6547
|
left: 50%;
|
|
6544
|
-
|
|
6548
|
+
translate: calc(-50% + var(--ml-tooltip-shift, 0px)) 0;
|
|
6545
6549
|
}
|
|
6546
6550
|
|
|
6547
6551
|
.ml-tooltip[data-side="bottom"] {
|
|
6548
6552
|
top: calc(100% + var(--ml-space-2));
|
|
6549
6553
|
left: 50%;
|
|
6550
|
-
|
|
6554
|
+
translate: calc(-50% + var(--ml-tooltip-shift, 0px)) 0;
|
|
6551
6555
|
}
|
|
6552
6556
|
|
|
6553
6557
|
.ml-tooltip[data-side="left"] {
|
|
6554
6558
|
right: calc(100% + var(--ml-space-2));
|
|
6555
6559
|
top: 50%;
|
|
6556
|
-
|
|
6560
|
+
translate: 0 calc(-50% + var(--ml-tooltip-shift, 0px));
|
|
6557
6561
|
}
|
|
6558
6562
|
|
|
6559
6563
|
.ml-tooltip[data-side="right"] {
|
|
6560
6564
|
left: calc(100% + var(--ml-space-2));
|
|
6561
6565
|
top: 50%;
|
|
6562
|
-
|
|
6566
|
+
translate: 0 calc(-50% + var(--ml-tooltip-shift, 0px));
|
|
6563
6567
|
}
|
|
6564
6568
|
|
|
6565
6569
|
.ml-tooltip-arrow {
|
|
@@ -6574,13 +6578,26 @@ button.ml-stepper-target:focus-visible {
|
|
|
6574
6578
|
.ml-tooltip:not([data-side]) .ml-tooltip-arrow {
|
|
6575
6579
|
bottom: -.2rem;
|
|
6576
6580
|
left: 50%;
|
|
6577
|
-
margin-left: calc(var(--ml-space-1) * -1);
|
|
6581
|
+
margin-left: calc(var(--ml-space-1) * -1 - var(--ml-tooltip-shift, 0px));
|
|
6578
6582
|
}
|
|
6579
6583
|
|
|
6580
6584
|
.ml-tooltip[data-side="bottom"] .ml-tooltip-arrow {
|
|
6581
6585
|
top: -.2rem;
|
|
6582
6586
|
left: 50%;
|
|
6583
|
-
margin-left: calc(var(--ml-space-1) * -1);
|
|
6587
|
+
margin-left: calc(var(--ml-space-1) * -1 - var(--ml-tooltip-shift, 0px));
|
|
6588
|
+
}
|
|
6589
|
+
|
|
6590
|
+
/* The arrow slides back by the tooltip's shift, so it keeps pointing at the trigger. */
|
|
6591
|
+
.ml-tooltip[data-side="left"] .ml-tooltip-arrow {
|
|
6592
|
+
right: -.2rem;
|
|
6593
|
+
top: 50%;
|
|
6594
|
+
margin-top: calc(var(--ml-space-1) * -1 - var(--ml-tooltip-shift, 0px));
|
|
6595
|
+
}
|
|
6596
|
+
|
|
6597
|
+
.ml-tooltip[data-side="right"] .ml-tooltip-arrow {
|
|
6598
|
+
left: -.2rem;
|
|
6599
|
+
top: 50%;
|
|
6600
|
+
margin-top: calc(var(--ml-space-1) * -1 - var(--ml-tooltip-shift, 0px));
|
|
6584
6601
|
}
|
|
6585
6602
|
|
|
6586
6603
|
/* components/tour */
|