@mlola-ui/tokens 1.1.11 → 1.1.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 +36 -21
- package/package.json +1 -1
package/generated/recipes.css
CHANGED
|
@@ -3087,10 +3087,18 @@ button.ml-breadcrumb-link {
|
|
|
3087
3087
|
color: var(--ml-text-muted);
|
|
3088
3088
|
}
|
|
3089
3089
|
|
|
3090
|
+
/* A layer above the page, placed beside its trigger by script (React's
|
|
3091
|
+
useFloating, the runtime's floatingLayer), so no card, panel or modal
|
|
3092
|
+
around the trigger can cut it off. It sits above a modal it opens from.
|
|
3093
|
+
In the top layer (the Popover API) the browser's own popover styles are
|
|
3094
|
+
set back: no centering margin, no stretching inset, the theme's ink. */
|
|
3090
3095
|
.ml-dropdown-menu {
|
|
3091
|
-
position:
|
|
3092
|
-
z-index: var(--ml-layer-
|
|
3093
|
-
|
|
3096
|
+
position: fixed;
|
|
3097
|
+
z-index: var(--ml-layer-popover);
|
|
3098
|
+
inset: auto;
|
|
3099
|
+
top: 0;
|
|
3100
|
+
left: 0;
|
|
3101
|
+
margin: 0;
|
|
3094
3102
|
min-width: 14rem;
|
|
3095
3103
|
padding: var(--ml-space-1);
|
|
3096
3104
|
border: var(--ml-border-width) solid var(--ml-border-subtle);
|
|
@@ -3107,20 +3115,10 @@ button.ml-breadcrumb-link {
|
|
|
3107
3115
|
}
|
|
3108
3116
|
|
|
3109
3117
|
.ml-dropdown-menu[data-align="end"] {
|
|
3110
|
-
right: 0;
|
|
3111
|
-
left: auto;
|
|
3112
3118
|
transform-origin: top right;
|
|
3113
3119
|
}
|
|
3114
3120
|
|
|
3115
|
-
/* Kept on screen by fitMenu: slid sideways, and above the trigger when
|
|
3116
|
-
there is no room below. */
|
|
3117
|
-
.ml-dropdown-menu {
|
|
3118
|
-
translate: var(--ml-dropdown-shift, 0) 0;
|
|
3119
|
-
}
|
|
3120
|
-
|
|
3121
3121
|
.ml-dropdown-menu[data-side="top"] {
|
|
3122
|
-
top: auto;
|
|
3123
|
-
bottom: calc(100% + var(--ml-space-1-5));
|
|
3124
3122
|
transform-origin: bottom left;
|
|
3125
3123
|
}
|
|
3126
3124
|
|
|
@@ -3464,6 +3462,13 @@ button.ml-breadcrumb-link {
|
|
|
3464
3462
|
transition: border-color var(--ml-duration-fast),box-shadow var(--ml-duration-fast);
|
|
3465
3463
|
}
|
|
3466
3464
|
|
|
3465
|
+
/* A single-line field is exactly its size's control height, like the button
|
|
3466
|
+
beside it: the height comes from density, and the text sits centered in
|
|
3467
|
+
it, instead of padding around the text setting a height of its own. */
|
|
3468
|
+
.ml-input {
|
|
3469
|
+
padding-block: 0;
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3467
3472
|
.ml-input:hover,
|
|
3468
3473
|
.ml-textarea:hover {
|
|
3469
3474
|
border-color: color-mix(in oklab,var(--ml-border) 100%,var(--ml-text) 12%);
|
|
@@ -3544,13 +3549,13 @@ button.ml-breadcrumb-link {
|
|
|
3544
3549
|
|
|
3545
3550
|
.ml-input[data-size="sm"] {
|
|
3546
3551
|
min-height: var(--ml-control-sm);
|
|
3547
|
-
padding: var(--ml-space-
|
|
3552
|
+
padding-inline: var(--ml-space-2-5);
|
|
3548
3553
|
font-size: var(--ml-type-sm);
|
|
3549
3554
|
}
|
|
3550
3555
|
|
|
3551
3556
|
.ml-input[data-size="lg"] {
|
|
3552
3557
|
min-height: var(--ml-control-lg);
|
|
3553
|
-
padding: var(--ml-space-
|
|
3558
|
+
padding-inline: var(--ml-space-3-5);
|
|
3554
3559
|
font-size: var(--ml-type-md);
|
|
3555
3560
|
}
|
|
3556
3561
|
|
|
@@ -3772,7 +3777,8 @@ button.ml-breadcrumb-link {
|
|
|
3772
3777
|
.ml-number-input-field {
|
|
3773
3778
|
flex: 1;
|
|
3774
3779
|
min-width: 0;
|
|
3775
|
-
|
|
3780
|
+
/* The control's height comes from density, like a text field's. */
|
|
3781
|
+
padding: 0 var(--ml-space-3);
|
|
3776
3782
|
border: 0;
|
|
3777
3783
|
background: transparent;
|
|
3778
3784
|
color: var(--ml-text);
|
|
@@ -3793,10 +3799,11 @@ button.ml-breadcrumb-link {
|
|
|
3793
3799
|
}
|
|
3794
3800
|
|
|
3795
3801
|
/* Square at any height: where touch sizing makes the field taller, the steps
|
|
3796
|
-
grow with it instead of stretching into tall slivers.
|
|
3802
|
+
grow with it instead of stretching into tall slivers. They sit inside the
|
|
3803
|
+
control's border, so their side is the height within it. */
|
|
3797
3804
|
.ml-number-input-step {
|
|
3798
3805
|
display: inline-grid;
|
|
3799
|
-
min-width: var(--ml-control-md);
|
|
3806
|
+
min-width: calc(var(--ml-control-md) - 2 * var(--ml-border-width));
|
|
3800
3807
|
aspect-ratio: 1;
|
|
3801
3808
|
place-items: center;
|
|
3802
3809
|
padding: 0;
|
|
@@ -4634,9 +4641,11 @@ button.ml-breadcrumb-link {
|
|
|
4634
4641
|
gap: var(--ml-space-0-5);
|
|
4635
4642
|
}
|
|
4636
4643
|
|
|
4644
|
+
/* Each option is a small control inside the track, so the whole control is
|
|
4645
|
+
as tall as a medium one and sits level with the fields beside it. */
|
|
4637
4646
|
.ml-segmented-control-item {
|
|
4638
4647
|
min-height: var(--ml-control-sm);
|
|
4639
|
-
padding:
|
|
4648
|
+
padding: 0 var(--ml-space-3);
|
|
4640
4649
|
border: 0;
|
|
4641
4650
|
border-radius: var(--ml-radius-md);
|
|
4642
4651
|
background: transparent;
|
|
@@ -4685,7 +4694,8 @@ button.ml-breadcrumb-link {
|
|
|
4685
4694
|
align-items: center;
|
|
4686
4695
|
justify-content: space-between;
|
|
4687
4696
|
gap: var(--ml-space-2);
|
|
4688
|
-
|
|
4697
|
+
/* As tall as its size's control height, level with an input or a button. */
|
|
4698
|
+
padding: 0 var(--ml-space-3);
|
|
4689
4699
|
color: var(--ml-text);
|
|
4690
4700
|
background: var(--ml-surface);
|
|
4691
4701
|
border: var(--ml-border-width) solid var(--ml-border);
|
|
@@ -4713,7 +4723,7 @@ button.ml-breadcrumb-link {
|
|
|
4713
4723
|
|
|
4714
4724
|
.ml-select[data-size="sm"] {
|
|
4715
4725
|
min-height: var(--ml-control-sm);
|
|
4716
|
-
padding:
|
|
4726
|
+
padding: 0 var(--ml-space-2-5);
|
|
4717
4727
|
font-size: var(--ml-type-sm);
|
|
4718
4728
|
}
|
|
4719
4729
|
|
|
@@ -4783,11 +4793,16 @@ button.ml-breadcrumb-link {
|
|
|
4783
4793
|
color: var(--ml-text);
|
|
4784
4794
|
}
|
|
4785
4795
|
|
|
4796
|
+
/* In the top layer (the Popover API) the browser's own popover styles are
|
|
4797
|
+
set back: no centering margin, no stretching inset, the theme's ink. */
|
|
4786
4798
|
.ml-select-popover {
|
|
4787
4799
|
position: fixed;
|
|
4788
4800
|
z-index: var(--ml-layer-top);
|
|
4801
|
+
inset: auto;
|
|
4789
4802
|
top: 0;
|
|
4790
4803
|
left: 0;
|
|
4804
|
+
margin: 0;
|
|
4805
|
+
color: var(--ml-text);
|
|
4791
4806
|
max-width: calc(100vw - var(--ml-space-4));
|
|
4792
4807
|
padding: var(--ml-space-1);
|
|
4793
4808
|
border: var(--ml-border-width) solid var(--ml-border-subtle);
|