luxen-ui 0.19.0 → 0.20.0
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/README.md +1 -0
- package/cdn/custom-elements.json +99 -5
- package/cdn/elements/button-group/button-group.d.ts +12 -7
- package/cdn/elements/button-group/button-group.d.ts.map +1 -1
- package/cdn/elements/button-group/button-group.js.map +1 -1
- package/cdn/elements/input-stepper/input-stepper.d.ts +1 -1
- package/cdn/elements/input-stepper/input-stepper.js.map +1 -1
- package/cdn/elements/popover/popover.d.ts +15 -0
- package/cdn/elements/popover/popover.d.ts.map +1 -1
- package/cdn/elements/popover/popover.js +1 -1
- package/cdn/elements/popover/popover.js.map +1 -1
- package/cdn/elements/radio-group/radio-group.meta.d.ts +41 -0
- package/cdn/elements/radio-group/radio-group.meta.d.ts.map +1 -0
- package/cdn/elements/radio-group/radio-group.meta.js +0 -0
- package/cdn/elements/segmented-control/segmented-control.d.ts +8 -4
- package/cdn/elements/segmented-control/segmented-control.d.ts.map +1 -1
- package/cdn/elements/segmented-control/segmented-control.js.map +1 -1
- package/cdn/elements/select/select.js +1 -1
- package/cdn/elements/select/select.js.map +1 -1
- package/cdn/elements/tag/tag.d.ts +3 -1
- package/cdn/elements/tag/tag.d.ts.map +1 -1
- package/cdn/elements/tag/tag.js +1 -1
- package/cdn/elements/tag/tag.js.map +1 -1
- package/cdn/elements/tooltip/tooltip.d.ts +15 -0
- package/cdn/elements/tooltip/tooltip.d.ts.map +1 -1
- package/cdn/elements/tooltip/tooltip.js +1 -1
- package/cdn/elements/tooltip/tooltip.js.map +1 -1
- package/cdn/shared/controllers/popover.d.ts +40 -0
- package/cdn/shared/controllers/popover.d.ts.map +1 -1
- package/cdn/shared/controllers/popover.js +1 -1
- package/cdn/shared/controllers/popover.js.map +1 -1
- package/cdn/shared/styles/button-core.styles.js +1 -1
- package/cdn/shared/styles/button-core.styles.js.map +1 -1
- package/cdn/standalone.css +774 -28
- package/cdn/styles/elements/button-group.css +4 -3
- package/cdn/styles/elements/button.css +28 -1
- package/cdn/styles/elements/disclosure.css +3 -3
- package/cdn/styles/elements/input-stepper/default.css +29 -2
- package/cdn/styles/elements/input-stepper/pill.css +420 -0
- package/cdn/styles/elements/input-stepper/rounded.css +69 -8
- package/cdn/styles/elements/kbd.css +2 -2
- package/cdn/styles/elements/radio-group.css +206 -0
- package/cdn/styles/elements/segmented-control.css +3 -3
- package/cdn/styles/elements/tabs/enclosed.css +4 -4
- package/cdn/styles/elements/tabs/line.css +2 -2
- package/dist/css/elements/button-group.css +4 -3
- package/dist/css/elements/button.css +28 -1
- package/dist/css/elements/disclosure.css +3 -3
- package/dist/css/elements/input-stepper/default.css +29 -2
- package/dist/css/elements/input-stepper/pill.css +420 -0
- package/dist/css/elements/input-stepper/rounded.css +69 -8
- package/dist/css/elements/kbd.css +2 -2
- package/dist/css/elements/radio-group.css +206 -0
- package/dist/css/elements/segmented-control.css +3 -3
- package/dist/css/elements/tabs/enclosed.css +4 -4
- package/dist/css/elements/tabs/line.css +2 -2
- package/dist/custom-elements.json +99 -5
- package/dist/elements/button-group/button-group.d.ts +12 -7
- package/dist/elements/button-group/button-group.d.ts.map +1 -1
- package/dist/elements/button-group/button-group.js +12 -7
- package/dist/elements/input-stepper/input-stepper.d.ts +1 -1
- package/dist/elements/input-stepper/input-stepper.js +1 -1
- package/dist/elements/popover/popover.d.ts +15 -0
- package/dist/elements/popover/popover.d.ts.map +1 -1
- package/dist/elements/popover/popover.js +61 -14
- package/dist/elements/radio-group/radio-group.meta.d.ts +41 -0
- package/dist/elements/radio-group/radio-group.meta.d.ts.map +1 -0
- package/dist/elements/radio-group/radio-group.meta.js +51 -0
- package/dist/elements/segmented-control/segmented-control.d.ts +8 -4
- package/dist/elements/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/elements/segmented-control/segmented-control.js +8 -4
- package/dist/elements/select/select.css +14 -0
- package/dist/elements/tag/tag.css +128 -49
- package/dist/elements/tag/tag.d.ts +3 -1
- package/dist/elements/tag/tag.d.ts.map +1 -1
- package/dist/elements/tag/tag.js +3 -1
- package/dist/elements/tooltip/tooltip.d.ts +15 -0
- package/dist/elements/tooltip/tooltip.d.ts.map +1 -1
- package/dist/elements/tooltip/tooltip.js +61 -14
- package/dist/metadata/button-group.json +2 -2
- package/dist/metadata/index.json +95 -7
- package/dist/metadata/input-stepper.json +3 -2
- package/dist/metadata/popover.json +6 -0
- package/dist/metadata/radio-group.json +65 -0
- package/dist/metadata/segmented-control.json +1 -1
- package/dist/metadata/tag.json +11 -1
- package/dist/metadata/tooltip.json +6 -0
- package/dist/shared/controllers/popover.d.ts +40 -0
- package/dist/shared/controllers/popover.d.ts.map +1 -1
- package/dist/shared/controllers/popover.js +69 -0
- package/dist/shared/styles/button-core.css +28 -1
- package/dist/templates/elements/button-group.md +159 -41
- package/dist/templates/elements/button.md +1 -1
- package/dist/templates/elements/input-stepper.md +220 -58
- package/dist/templates/elements/popover.md +3 -0
- package/dist/templates/elements/radio-group.md +351 -0
- package/dist/templates/elements/radio.md +34 -30
- package/dist/templates/elements/segmented-control.md +5 -63
- package/dist/templates/elements/tag.md +72 -3
- package/dist/templates/elements/tooltip.md +3 -0
- package/elements.json +10 -1
- package/package.json +1 -1
- package/vite-plugin.ts +44 -14
package/cdn/standalone.css
CHANGED
|
@@ -1545,8 +1545,8 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
1545
1545
|
/* button-group.css */
|
|
1546
1546
|
@layer components {
|
|
1547
1547
|
/**
|
|
1548
|
-
* Visually joins a set of `.l-button` elements into a single
|
|
1549
|
-
*
|
|
1548
|
+
* Visually joins a set of `.l-button` elements into a single unit.
|
|
1549
|
+
* Pure CSS: it targets direct `.l-button` children and buttons
|
|
1550
1550
|
* nested one level inside a wrapper (e.g. an `l-dropdown` trigger, for split
|
|
1551
1551
|
* buttons), so it works without JavaScript. `<l-button-group>` only adds the
|
|
1552
1552
|
* `role="group"` / `aria-orientation` semantics on top.
|
|
@@ -1571,7 +1571,8 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
1571
1571
|
}
|
|
1572
1572
|
|
|
1573
1573
|
l-button-group .l-button:hover,
|
|
1574
|
-
l-button-group .l-button:active
|
|
1574
|
+
l-button-group .l-button:active,
|
|
1575
|
+
l-button-group .l-button[aria-pressed='true'] {
|
|
1575
1576
|
z-index: 1;
|
|
1576
1577
|
}
|
|
1577
1578
|
|
|
@@ -1692,7 +1693,7 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
1692
1693
|
display: inline-flex;
|
|
1693
1694
|
place-items: center;
|
|
1694
1695
|
justify-content: center;
|
|
1695
|
-
gap:
|
|
1696
|
+
gap: var(--l-spacing-2);
|
|
1696
1697
|
height: var(--height);
|
|
1697
1698
|
padding-inline: var(--padding-inline);
|
|
1698
1699
|
border: 1px solid var(--border-color);
|
|
@@ -1772,6 +1773,33 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
1772
1773
|
--border-color: transparent;
|
|
1773
1774
|
--border-color-hover: transparent;
|
|
1774
1775
|
}
|
|
1776
|
+
|
|
1777
|
+
/* Toggle button in the pressed state (APG toggle pattern): the button keeps its
|
|
1778
|
+
`:active` fill for as long as it is on. Rebinding the knobs rather than
|
|
1779
|
+
setting `background-color` is what makes this variant-agnostic — every
|
|
1780
|
+
variant inherits the pressed look from the active/hover colors it already
|
|
1781
|
+
defines. Hover mixes that fill toward the variant's own text color so a
|
|
1782
|
+
pressed button still answers the pointer: darker for the secondary button,
|
|
1783
|
+
lighter for `primary`, a deeper red for `destructive`.
|
|
1784
|
+
|
|
1785
|
+
`:has(input:checked)` gives the same look to a `.l-button` wrapping a checked
|
|
1786
|
+
radio or checkbox — the shape `.l-radio-group` uses, where the visible segment
|
|
1787
|
+
is a `<label class="l-button">`. Same state, same look, defined once.
|
|
1788
|
+
|
|
1789
|
+
MUST stay after the variant rules: `.l-button[aria-pressed='true']` and
|
|
1790
|
+
`.l-button[data-variant='…']` have the same specificity, so source order is
|
|
1791
|
+
what lets the pressed state win over a variant's base fill. (The `:has()`
|
|
1792
|
+
selector scores one higher and would win either way.) */
|
|
1793
|
+
.l-button[aria-pressed='true'],
|
|
1794
|
+
.l-button:has(input:checked) {
|
|
1795
|
+
--background-color: var(--background-color-active);
|
|
1796
|
+
--background-color-hover: color-mix(
|
|
1797
|
+
in oklab,
|
|
1798
|
+
var(--background-color-active) 88%,
|
|
1799
|
+
var(--text-color)
|
|
1800
|
+
);
|
|
1801
|
+
--border-color: var(--border-color-hover);
|
|
1802
|
+
}
|
|
1775
1803
|
}
|
|
1776
1804
|
@layer components {
|
|
1777
1805
|
.l-button[data-press-effect]:active {
|
|
@@ -2235,7 +2263,7 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
2235
2263
|
display: flex;
|
|
2236
2264
|
align-items: center;
|
|
2237
2265
|
justify-content: space-between;
|
|
2238
|
-
padding:
|
|
2266
|
+
padding: var(--l-spacing-3) var(--l-spacing-4);
|
|
2239
2267
|
font-weight: 600;
|
|
2240
2268
|
font-size: var(--l-text-base);
|
|
2241
2269
|
line-height: 1;
|
|
@@ -2258,7 +2286,7 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
2258
2286
|
}
|
|
2259
2287
|
|
|
2260
2288
|
& > :last-child:not(summary) {
|
|
2261
|
-
padding:
|
|
2289
|
+
padding: var(--l-spacing-4);
|
|
2262
2290
|
color: var(--l-color-text-secondary);
|
|
2263
2291
|
}
|
|
2264
2292
|
|
|
@@ -2356,7 +2384,7 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
2356
2384
|
.l-disclosure[data-marker-placement='start'] summary {
|
|
2357
2385
|
justify-content: flex-start;
|
|
2358
2386
|
/* Match the summary's inline padding so the space around the marker is symmetric */
|
|
2359
|
-
gap:
|
|
2387
|
+
gap: var(--l-spacing-4);
|
|
2360
2388
|
}
|
|
2361
2389
|
|
|
2362
2390
|
.l-disclosure[data-marker-placement='start'] summary::after {
|
|
@@ -2916,6 +2944,18 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
2916
2944
|
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
2917
2945
|
*/
|
|
2918
2946
|
|
|
2947
|
+
/*
|
|
2948
|
+
Appearance files re-style these internals, and each of them `@import`s this file,
|
|
2949
|
+
so a page loading two appearances ends up with two copies of the block below —
|
|
2950
|
+
the second one sitting *after* the first appearance's own rules. Element selectors
|
|
2951
|
+
like `button` carry no extra specificity from the `@scope` prelude, so that later
|
|
2952
|
+
copy would win on source order and strip the first appearance's skin.
|
|
2953
|
+
|
|
2954
|
+
Contract: an appearance file qualifies every rule that targets a shared internal
|
|
2955
|
+
with `:scope ` (`:scope button`, not `button`). That single pseudo-class puts it
|
|
2956
|
+
permanently above this block, whatever order the imports land in.
|
|
2957
|
+
*/
|
|
2958
|
+
|
|
2919
2959
|
button {
|
|
2920
2960
|
padding: 0;
|
|
2921
2961
|
appearance: none;
|
|
@@ -2999,6 +3039,12 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
2999
3039
|
min-width: 0;
|
|
3000
3040
|
}
|
|
3001
3041
|
|
|
3042
|
+
/* No background: the overlay REPLACES the input's digits (see the opacity rule
|
|
3043
|
+
below) instead of masking them behind an opaque fill, so whatever the host
|
|
3044
|
+
paints — the form-control fill in `default`, nothing at all in `rounded` —
|
|
3045
|
+
shows through untouched. A fill here would composite a second time over the
|
|
3046
|
+
host's own and read as a tinted rectangle over the value area wherever either
|
|
3047
|
+
one is translucent, e.g. --l-form-control-disabled-background. */
|
|
3002
3048
|
.l-input-stepper-track-display {
|
|
3003
3049
|
position: absolute;
|
|
3004
3050
|
inset: 0;
|
|
@@ -3006,7 +3052,6 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3006
3052
|
overflow: hidden;
|
|
3007
3053
|
pointer-events: none;
|
|
3008
3054
|
font-variant-numeric: tabular-nums;
|
|
3009
|
-
background: var(--_track-bg, var(--l-color-surface));
|
|
3010
3055
|
}
|
|
3011
3056
|
|
|
3012
3057
|
.l-input-stepper-track {
|
|
@@ -3020,6 +3065,17 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3020
3065
|
height: var(--_button-size);
|
|
3021
3066
|
}
|
|
3022
3067
|
|
|
3068
|
+
/* Hide the real digits while the roller is the thing on screen. `opacity`, NOT
|
|
3069
|
+
`visibility`/`display` — those drop the input out of the tab order, so the
|
|
3070
|
+
:focus-within rule below could never fire to swap the two back. Gated on both
|
|
3071
|
+
the attribute and the overlay's presence because the overlay is built once at
|
|
3072
|
+
setup: toggling `with-roller` afterwards must not blank the value. */
|
|
3073
|
+
:scope[with-roller]
|
|
3074
|
+
.l-input-stepper-value:has(.l-input-stepper-track-display):not(:focus-within)
|
|
3075
|
+
input {
|
|
3076
|
+
opacity: 0;
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3023
3079
|
.l-input-stepper-value:focus-within .l-input-stepper-track-display {
|
|
3024
3080
|
visibility: hidden;
|
|
3025
3081
|
}
|
|
@@ -3075,7 +3131,6 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3075
3131
|
/* Uses the form-control disabled tokens, not the generic aliases: a stepper
|
|
3076
3132
|
is a text control and must grey out identically to the input next to it. */
|
|
3077
3133
|
:scope:has(input:disabled) {
|
|
3078
|
-
--_track-bg: var(--l-form-control-disabled-background);
|
|
3079
3134
|
border-color: var(--l-form-control-disabled-border);
|
|
3080
3135
|
background-color: var(--l-form-control-disabled-background);
|
|
3081
3136
|
}
|
|
@@ -3094,6 +3149,428 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3094
3149
|
}
|
|
3095
3150
|
}
|
|
3096
3151
|
|
|
3152
|
+
/* input-stepper/pill.css */
|
|
3153
|
+
@layer components {
|
|
3154
|
+
/*
|
|
3155
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3156
|
+
🅸🅽🅿🆄🆃 🆂🆃🅴🅿🅿🅴🆁
|
|
3157
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3158
|
+
- https://www.nngroup.com/articles/input-steppers/
|
|
3159
|
+
|
|
3160
|
+
@scope keeps these rules from leaking OUT, and the reset below strips UA default
|
|
3161
|
+
chrome off the generated buttons / input / track divs so the component styles from
|
|
3162
|
+
a clean slate. Caveat: this lives in @layer components, so it only shields the
|
|
3163
|
+
internals from UA defaults and lower-layer rules — *unlayered* host-page rules (a
|
|
3164
|
+
CSS reset, Tailwind preflight, naked `button {}`) still outrank every cascade layer
|
|
3165
|
+
and are NOT neutralized here.
|
|
3166
|
+
*/
|
|
3167
|
+
|
|
3168
|
+
@scope (l-input-stepper) {
|
|
3169
|
+
/* Reset — :where() keeps specificity at (0,0,0) so the component rules below win
|
|
3170
|
+
over it. Strips UA default styling off the generated internals for a clean
|
|
3171
|
+
slate. Custom properties are NOT affected by `all` — design tokens cascade
|
|
3172
|
+
through. :scope is excluded — the host is a unique custom element name and gets
|
|
3173
|
+
its styles from the base + appearance :scope blocks without interference. */
|
|
3174
|
+
*:where(:not(img, svg, l-icon):not(svg *)),
|
|
3175
|
+
*::before,
|
|
3176
|
+
*::after {
|
|
3177
|
+
all: unset;
|
|
3178
|
+
display: revert;
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
/*
|
|
3182
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3183
|
+
🅷🅾🆂🆃
|
|
3184
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3185
|
+
*/
|
|
3186
|
+
|
|
3187
|
+
:scope {
|
|
3188
|
+
--_button-size: var(--l-size-control-md);
|
|
3189
|
+
--border-color: var(--l-form-control-border-color);
|
|
3190
|
+
--border-radius: var(--l-form-control-border-radius);
|
|
3191
|
+
--_button-bg-hover: var(--l-color-bg-fill-neutral-soft);
|
|
3192
|
+
--_button-bg-active: var(--l-color-bg-fill-neutral-subtle);
|
|
3193
|
+
|
|
3194
|
+
display: inline-flex;
|
|
3195
|
+
align-items: stretch;
|
|
3196
|
+
white-space: nowrap;
|
|
3197
|
+
box-sizing: border-box;
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
/*
|
|
3201
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3202
|
+
🅵🅾🆄🅲🅴 🅿🆁🅴🆅🅴🅽🆃🅸🅾🅽
|
|
3203
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3204
|
+
Reserve button space before JS loads to avoid layout shift when buttons mount.
|
|
3205
|
+
*/
|
|
3206
|
+
|
|
3207
|
+
:scope:not(:defined) {
|
|
3208
|
+
padding-inline: var(--_button-size);
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
:scope:defined {
|
|
3212
|
+
padding-inline: 0;
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
/*
|
|
3216
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3217
|
+
🆂🅸🆉🅴🆂
|
|
3218
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3219
|
+
*/
|
|
3220
|
+
|
|
3221
|
+
:scope[size='xs'] {
|
|
3222
|
+
--_button-size: var(--l-size-control-xs);
|
|
3223
|
+
}
|
|
3224
|
+
:scope[size='sm'] {
|
|
3225
|
+
--_button-size: var(--l-size-control-sm);
|
|
3226
|
+
}
|
|
3227
|
+
:scope[size='lg'] {
|
|
3228
|
+
--_button-size: var(--l-size-control-lg);
|
|
3229
|
+
}
|
|
3230
|
+
:scope[size='xl'] {
|
|
3231
|
+
--_button-size: var(--l-size-control-xl);
|
|
3232
|
+
}
|
|
3233
|
+
|
|
3234
|
+
/*
|
|
3235
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3236
|
+
🅱🆄🆃🆃🅾🅽🆂
|
|
3237
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3238
|
+
*/
|
|
3239
|
+
|
|
3240
|
+
/*
|
|
3241
|
+
Appearance files re-style these internals, and each of them `@import`s this file,
|
|
3242
|
+
so a page loading two appearances ends up with two copies of the block below —
|
|
3243
|
+
the second one sitting *after* the first appearance's own rules. Element selectors
|
|
3244
|
+
like `button` carry no extra specificity from the `@scope` prelude, so that later
|
|
3245
|
+
copy would win on source order and strip the first appearance's skin.
|
|
3246
|
+
|
|
3247
|
+
Contract: an appearance file qualifies every rule that targets a shared internal
|
|
3248
|
+
with `:scope ` (`:scope button`, not `button`). That single pseudo-class puts it
|
|
3249
|
+
permanently above this block, whatever order the imports land in.
|
|
3250
|
+
*/
|
|
3251
|
+
|
|
3252
|
+
button {
|
|
3253
|
+
padding: 0;
|
|
3254
|
+
appearance: none;
|
|
3255
|
+
background: none;
|
|
3256
|
+
border: 0;
|
|
3257
|
+
font-family: inherit;
|
|
3258
|
+
font-size: inherit;
|
|
3259
|
+
width: var(--_button-size);
|
|
3260
|
+
aspect-ratio: 1;
|
|
3261
|
+
cursor: pointer;
|
|
3262
|
+
touch-action: manipulation;
|
|
3263
|
+
-webkit-tap-highlight-color: transparent;
|
|
3264
|
+
display: flex;
|
|
3265
|
+
align-items: center;
|
|
3266
|
+
justify-content: center;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
button:focus-visible {
|
|
3270
|
+
outline: 2px solid var(--l-focus-ring);
|
|
3271
|
+
outline-offset: -2px;
|
|
3272
|
+
z-index: 1;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
/* The buttons hold nothing but a currentColor icon, so the disabled ink
|
|
3276
|
+
token does the whole job — and undiluted, unlike the opacity fade it
|
|
3277
|
+
replaces, which also dimmed the border token the `rounded` appearance
|
|
3278
|
+
sets on this same state. Matches `input:disabled` below. */
|
|
3279
|
+
button:disabled {
|
|
3280
|
+
cursor: not-allowed;
|
|
3281
|
+
color: var(--l-form-control-disabled-color);
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
@media (hover: hover) {
|
|
3285
|
+
button:hover:not(:disabled) {
|
|
3286
|
+
background-color: var(--_button-bg-hover);
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
button:active:not(:disabled) {
|
|
3291
|
+
background-color: var(--_button-bg-active);
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
/*
|
|
3295
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3296
|
+
🅸🅽🅿🆄🆃
|
|
3297
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3298
|
+
*/
|
|
3299
|
+
|
|
3300
|
+
input {
|
|
3301
|
+
appearance: textfield;
|
|
3302
|
+
box-sizing: border-box;
|
|
3303
|
+
font-family: inherit;
|
|
3304
|
+
font-size: inherit;
|
|
3305
|
+
font-variant-numeric: tabular-nums;
|
|
3306
|
+
border: 0;
|
|
3307
|
+
text-align: center;
|
|
3308
|
+
width: calc(3ch + var(--_button-size) * 2 / 3);
|
|
3309
|
+
min-width: 0;
|
|
3310
|
+
padding-inline: calc(var(--_button-size) / 3);
|
|
3311
|
+
align-self: stretch;
|
|
3312
|
+
background: transparent;
|
|
3313
|
+
color: inherit;
|
|
3314
|
+
caret-shape: underscore;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
input:disabled {
|
|
3318
|
+
cursor: not-allowed;
|
|
3319
|
+
color: var(--l-color-text-disabled);
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
/*
|
|
3323
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3324
|
+
🆃🆁🅰🅲🅺 (animated number display)
|
|
3325
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3326
|
+
*/
|
|
3327
|
+
|
|
3328
|
+
.l-input-stepper-value {
|
|
3329
|
+
position: relative;
|
|
3330
|
+
display: flex;
|
|
3331
|
+
align-items: center;
|
|
3332
|
+
min-width: 0;
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
/* No background: the overlay REPLACES the input's digits (see the opacity rule
|
|
3336
|
+
below) instead of masking them behind an opaque fill, so whatever the host
|
|
3337
|
+
paints — the form-control fill in `default`, nothing at all in `rounded` —
|
|
3338
|
+
shows through untouched. A fill here would composite a second time over the
|
|
3339
|
+
host's own and read as a tinted rectangle over the value area wherever either
|
|
3340
|
+
one is translucent, e.g. --l-form-control-disabled-background. */
|
|
3341
|
+
.l-input-stepper-track-display {
|
|
3342
|
+
position: absolute;
|
|
3343
|
+
inset: 0;
|
|
3344
|
+
height: var(--_button-size);
|
|
3345
|
+
overflow: hidden;
|
|
3346
|
+
pointer-events: none;
|
|
3347
|
+
font-variant-numeric: tabular-nums;
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
.l-input-stepper-track {
|
|
3351
|
+
transition: translate 0.26s ease-out;
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
.l-input-stepper-track div {
|
|
3355
|
+
display: flex;
|
|
3356
|
+
align-items: center;
|
|
3357
|
+
justify-content: center;
|
|
3358
|
+
height: var(--_button-size);
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3361
|
+
/* Hide the real digits while the roller is the thing on screen. `opacity`, NOT
|
|
3362
|
+
`visibility`/`display` — those drop the input out of the tab order, so the
|
|
3363
|
+
:focus-within rule below could never fire to swap the two back. Gated on both
|
|
3364
|
+
the attribute and the overlay's presence because the overlay is built once at
|
|
3365
|
+
setup: toggling `with-roller` afterwards must not blank the value. */
|
|
3366
|
+
:scope[with-roller]
|
|
3367
|
+
.l-input-stepper-value:has(.l-input-stepper-track-display):not(:focus-within)
|
|
3368
|
+
input {
|
|
3369
|
+
opacity: 0;
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
.l-input-stepper-value:focus-within .l-input-stepper-track-display {
|
|
3373
|
+
visibility: hidden;
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3376
|
+
:scope:not([with-roller]) .l-input-stepper-track-display {
|
|
3377
|
+
display: none;
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
/*
|
|
3381
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3382
|
+
🅳🅸🆂🅰🅱🅻🅴🅳
|
|
3383
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3384
|
+
*/
|
|
3385
|
+
|
|
3386
|
+
:scope:has(input:disabled) {
|
|
3387
|
+
color: var(--l-color-text-disabled);
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3390
|
+
/* Invalid — mirror the shared form control invalid border (set by
|
|
3391
|
+
`l-form-field` via `aria-invalid`, or authored directly). */
|
|
3392
|
+
:scope:has(input[aria-invalid='true']) {
|
|
3393
|
+
--border-color: var(--l-form-control-border-color-invalid);
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
/* Hide native spinners — kept outside @scope because Safari ignores
|
|
3398
|
+
::-webkit-*-spin-button rules nested inside @scope blocks. */
|
|
3399
|
+
l-input-stepper input::-webkit-inner-spin-button,
|
|
3400
|
+
l-input-stepper input::-webkit-outer-spin-button {
|
|
3401
|
+
appearance: none;
|
|
3402
|
+
display: none;
|
|
3403
|
+
margin: 0;
|
|
3404
|
+
}
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
@layer components {
|
|
3408
|
+
/*
|
|
3409
|
+
A capsule track carrying the fill, with the two circular buttons inset into it
|
|
3410
|
+
and lifted off by a shadow — the iOS-style quantity picker. Where `rounded`
|
|
3411
|
+
drops the container entirely and outlines each button, `pill` does the
|
|
3412
|
+
opposite: the container is the only painted edge and the buttons are solid.
|
|
3413
|
+
*/
|
|
3414
|
+
@scope (l-input-stepper[appearance='pill']) {
|
|
3415
|
+
:scope {
|
|
3416
|
+
/* Space between the track edge and the buttons. Applied as padding on the
|
|
3417
|
+
host, so it grows the capsule *around* the content row and leaves the row
|
|
3418
|
+
itself exactly --_button-size tall — which the roller depends on, since
|
|
3419
|
+
its rows and its JS-computed translate are both sized off that variable. */
|
|
3420
|
+
--_inset: 0.25rem;
|
|
3421
|
+
|
|
3422
|
+
/* Hairline around each button, drawn as a ring rather than a border: the
|
|
3423
|
+
buttons compute their size from --_button-size with the content-box
|
|
3424
|
+
sizing `all: unset` leaves them, so a real border would add 2px to every
|
|
3425
|
+
one and desync the capsule from the space the FOUCE rules reserve.
|
|
3426
|
+
`divider` resolves to the track's own colour in dark mode, where it
|
|
3427
|
+
disappears — correct, since a gray-900 disc on a gray-700 track needs no
|
|
3428
|
+
help; the ring earns its keep in light mode, where a white disc sits on
|
|
3429
|
+
a near-white track and the shadow alone cannot hold its top edge. */
|
|
3430
|
+
--_ring: 0 0 0 1px var(--l-color-divider);
|
|
3431
|
+
|
|
3432
|
+
/* Capsule fill, and asymmetric on purpose: the relationship between the
|
|
3433
|
+
track and the buttons inverts between modes. In dark the buttons are
|
|
3434
|
+
*darker* than the track, so the track has to stand well clear of the
|
|
3435
|
+
page for them to read as sitting in it — neutral-subtle (gray-700 on a
|
|
3436
|
+
gray-900 page) already does that. In light the buttons are *lighter*
|
|
3437
|
+
than the track, so the same token lands at gray-100, barely 0.03 from
|
|
3438
|
+
white, and the capsule dissolves against any near-white surface. Light
|
|
3439
|
+
therefore steps off the surface itself, which also keeps the capsule
|
|
3440
|
+
correct on a themed page rather than pinned to one grey. */
|
|
3441
|
+
--_fill: light-dark(
|
|
3442
|
+
color-mix(in oklab, var(--l-color-surface) 92%, var(--l-color-text-primary)),
|
|
3443
|
+
var(--l-color-bg-fill-neutral-subtle)
|
|
3444
|
+
);
|
|
3445
|
+
|
|
3446
|
+
min-height: calc(var(--_button-size) + var(--_inset) * 2);
|
|
3447
|
+
border-radius: var(--l-radius-full);
|
|
3448
|
+
background-color: var(--_fill);
|
|
3449
|
+
|
|
3450
|
+
/* Capsule edge, inset so it paints inside the border box. A real border
|
|
3451
|
+
would add 2px to a host that is box-sizing: border-box with a min-height
|
|
3452
|
+
computed from --_button-size and the inset, breaking the pre-hydration
|
|
3453
|
+
parity the :not(:defined) rule maintains. Weighted above the buttons'
|
|
3454
|
+
hairline on purpose — a container boundary should not read lighter than
|
|
3455
|
+
the lines inside it — and it lands on the same token as the box
|
|
3456
|
+
`default` draws, so the two appearances sit at the same edge weight.
|
|
3457
|
+
Reading --border-color also means the shared invalid rule in `_base.css`
|
|
3458
|
+
recolours this capsule for free, exactly as it does default's box. */
|
|
3459
|
+
box-shadow: inset 0 0 0 1px var(--border-color);
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3462
|
+
/* Both rules restate a `padding-inline` the base sets (it reserves button
|
|
3463
|
+
space before JS loads, then clears it), and `:scope:defined` alone ties
|
|
3464
|
+
with it — leaving these to win on source order only holds while `pill` is
|
|
3465
|
+
the last appearance a page imports. Repeating the attribute breaks the tie
|
|
3466
|
+
outright, the same guard `rounded.css` uses on its own FOUCE rule. */
|
|
3467
|
+
:scope:defined[appearance='pill'] {
|
|
3468
|
+
padding: var(--_inset);
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
/* FOUCE: the reserved space has to clear the inset too, so the capsule keeps
|
|
3472
|
+
its hydrated width and the buttons mount without shifting anything. */
|
|
3473
|
+
:scope:not(:defined)[appearance='pill'] {
|
|
3474
|
+
padding: var(--_inset) calc(var(--_button-size) + var(--_inset));
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3477
|
+
/* Every rule that re-styles a shared internal is qualified with `:scope ` — see
|
|
3478
|
+
the note above the button block in `_base.css`. Without it, the base copy
|
|
3479
|
+
inlined by a *later*-imported appearance would win on source order. */
|
|
3480
|
+
:scope button {
|
|
3481
|
+
border-radius: var(--l-radius-full);
|
|
3482
|
+
background-color: var(--l-form-control-background-color);
|
|
3483
|
+
box-shadow: var(--_ring), var(--l-shadow-sm);
|
|
3484
|
+
transition: box-shadow 0.15s ease-out;
|
|
3485
|
+
|
|
3486
|
+
/* Both the ring and the shadow are drawn *outside* the button's box, so
|
|
3487
|
+
they spill 1px into the value area next door. With `with-roller` that
|
|
3488
|
+
area holds an absolutely-positioned, opaque overlay, which paints above
|
|
3489
|
+
non-positioned content and sliced the spill clean off — the disc looked
|
|
3490
|
+
cut on the side facing the number. Lifting the buttons puts them back on
|
|
3491
|
+
top; `_base.css` already does exactly this for the focus outline, which
|
|
3492
|
+
is outset for the same reason. Works without `position` because these are
|
|
3493
|
+
flex items, which honour z-index on their own. */
|
|
3494
|
+
z-index: 1;
|
|
3495
|
+
}
|
|
3496
|
+
|
|
3497
|
+
/* Same gesture as `rounded`: on hover the button's outline steps up. That
|
|
3498
|
+
appearance has nothing but an outline to work with, so it was already the
|
|
3499
|
+
house signal for "this disc is live" — matching it here keeps the two from
|
|
3500
|
+
teaching different vocabularies for the same control, and both now land on
|
|
3501
|
+
the token the system names for exactly this state on a form control. It
|
|
3502
|
+
sits at gray-500 in both modes: unmistakable against the divider hairline
|
|
3503
|
+
it replaces, without the near-black (gray-700) / near-white (gray-200)
|
|
3504
|
+
edge that reaching all the way to the ink draws on a 36px disc. Elevation is deliberately left alone — the
|
|
3505
|
+
ring carries the state, and shadow-sm to shadow-md was never the part
|
|
3506
|
+
anyone noticed. */
|
|
3507
|
+
@media (hover: hover) {
|
|
3508
|
+
:scope button:hover:not(:disabled) {
|
|
3509
|
+
/* Pinned so the base's --_button-bg-hover cannot slip a tint in behind
|
|
3510
|
+
the ring — `rounded` pins its own fill on hover for the same reason.
|
|
3511
|
+
The ring is the whole signal; nothing else moves. */
|
|
3512
|
+
background-color: var(--l-form-control-background-color);
|
|
3513
|
+
box-shadow:
|
|
3514
|
+
0 0 0 1px var(--l-form-control-border-color-hover),
|
|
3515
|
+
var(--l-shadow-sm);
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
/* Press holds hover's outline rather than hardening it again — `rounded` does
|
|
3520
|
+
the same — and adds what only this appearance can say: the disc drops the
|
|
3521
|
+
elevation it rests on and shrinks, pressing down into the capsule. That
|
|
3522
|
+
shrink is load-bearing now that hover and press share one ring colour: it
|
|
3523
|
+
is the only thing separating the two states, and on touch, where no hover
|
|
3524
|
+
exists at all, the only feedback a tap gets. `.l-button[data-press-effect]`
|
|
3525
|
+
presses instantly for the same reason. */
|
|
3526
|
+
:scope button:active:not(:disabled) {
|
|
3527
|
+
/* Cancels the hover easing for the duration of the press. Without it the
|
|
3528
|
+
elevation would fade out over 150ms while the scale snaps, so the two
|
|
3529
|
+
halves of the same gesture arrive at different times. Releasing still
|
|
3530
|
+
eases back, since the rule above carries the transition again. */
|
|
3531
|
+
transition: none;
|
|
3532
|
+
box-shadow: 0 0 0 1px var(--l-form-control-border-color-hover);
|
|
3533
|
+
scale: 0.94;
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3537
|
+
:scope button {
|
|
3538
|
+
transition: none;
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
:scope button:active:not(:disabled) {
|
|
3542
|
+
scale: none;
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
/* At a bound, the button sinks into the track instead of sitting on it as a
|
|
3547
|
+
dead white disc. The base already dims the icon to the disabled ink. */
|
|
3548
|
+
:scope button:disabled {
|
|
3549
|
+
background-color: transparent;
|
|
3550
|
+
box-shadow: none;
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
/* Deliberately *not* the --l-form-control-disabled-* tokens the `default`
|
|
3554
|
+
appearance greys out with: those are translucent, and this capsule needs
|
|
3555
|
+
one flat colour rather than a tint laid over whatever it happens to sit
|
|
3556
|
+
on. Soft lands between the page and the enabled fill in both modes —
|
|
3557
|
+
gray-50 under a white page, gray-800 over a gray-900 one — so the capsule
|
|
3558
|
+
recedes toward the surface instead of standing off it. The roller follows
|
|
3559
|
+
on its own: its overlay paints nothing, so whatever --_fill puts on the
|
|
3560
|
+
host is what shows through the value area.
|
|
3561
|
+
|
|
3562
|
+
Attribute repeated for the same reason the padding rules above repeat it:
|
|
3563
|
+
--border-color is also claimed by the base's invalid rule at identical
|
|
3564
|
+
specificity, so without it a disabled *and* aria-invalid stepper draws a
|
|
3565
|
+
danger-red capsule whenever another appearance is imported after this
|
|
3566
|
+
one. */
|
|
3567
|
+
:scope:has(input:disabled)[appearance='pill'] {
|
|
3568
|
+
--_fill: var(--l-color-bg-fill-neutral-soft);
|
|
3569
|
+
--border-color: var(--l-form-control-disabled-border);
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3097
3574
|
/* input-stepper/rounded.css */
|
|
3098
3575
|
@layer components {
|
|
3099
3576
|
/*
|
|
@@ -3182,6 +3659,18 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3182
3659
|
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
3183
3660
|
*/
|
|
3184
3661
|
|
|
3662
|
+
/*
|
|
3663
|
+
Appearance files re-style these internals, and each of them `@import`s this file,
|
|
3664
|
+
so a page loading two appearances ends up with two copies of the block below —
|
|
3665
|
+
the second one sitting *after* the first appearance's own rules. Element selectors
|
|
3666
|
+
like `button` carry no extra specificity from the `@scope` prelude, so that later
|
|
3667
|
+
copy would win on source order and strip the first appearance's skin.
|
|
3668
|
+
|
|
3669
|
+
Contract: an appearance file qualifies every rule that targets a shared internal
|
|
3670
|
+
with `:scope ` (`:scope button`, not `button`). That single pseudo-class puts it
|
|
3671
|
+
permanently above this block, whatever order the imports land in.
|
|
3672
|
+
*/
|
|
3673
|
+
|
|
3185
3674
|
button {
|
|
3186
3675
|
padding: 0;
|
|
3187
3676
|
appearance: none;
|
|
@@ -3265,6 +3754,12 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3265
3754
|
min-width: 0;
|
|
3266
3755
|
}
|
|
3267
3756
|
|
|
3757
|
+
/* No background: the overlay REPLACES the input's digits (see the opacity rule
|
|
3758
|
+
below) instead of masking them behind an opaque fill, so whatever the host
|
|
3759
|
+
paints — the form-control fill in `default`, nothing at all in `rounded` —
|
|
3760
|
+
shows through untouched. A fill here would composite a second time over the
|
|
3761
|
+
host's own and read as a tinted rectangle over the value area wherever either
|
|
3762
|
+
one is translucent, e.g. --l-form-control-disabled-background. */
|
|
3268
3763
|
.l-input-stepper-track-display {
|
|
3269
3764
|
position: absolute;
|
|
3270
3765
|
inset: 0;
|
|
@@ -3272,7 +3767,6 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3272
3767
|
overflow: hidden;
|
|
3273
3768
|
pointer-events: none;
|
|
3274
3769
|
font-variant-numeric: tabular-nums;
|
|
3275
|
-
background: var(--_track-bg, var(--l-color-surface));
|
|
3276
3770
|
}
|
|
3277
3771
|
|
|
3278
3772
|
.l-input-stepper-track {
|
|
@@ -3286,6 +3780,17 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3286
3780
|
height: var(--_button-size);
|
|
3287
3781
|
}
|
|
3288
3782
|
|
|
3783
|
+
/* Hide the real digits while the roller is the thing on screen. `opacity`, NOT
|
|
3784
|
+
`visibility`/`display` — those drop the input out of the tab order, so the
|
|
3785
|
+
:focus-within rule below could never fire to swap the two back. Gated on both
|
|
3786
|
+
the attribute and the overlay's presence because the overlay is built once at
|
|
3787
|
+
setup: toggling `with-roller` afterwards must not blank the value. */
|
|
3788
|
+
:scope[with-roller]
|
|
3789
|
+
.l-input-stepper-value:has(.l-input-stepper-track-display):not(:focus-within)
|
|
3790
|
+
input {
|
|
3791
|
+
opacity: 0;
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3289
3794
|
.l-input-stepper-value:focus-within .l-input-stepper-track-display {
|
|
3290
3795
|
visibility: hidden;
|
|
3291
3796
|
}
|
|
@@ -3324,28 +3829,61 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3324
3829
|
@layer components {
|
|
3325
3830
|
@scope (l-input-stepper[appearance='rounded']) {
|
|
3326
3831
|
:scope {
|
|
3327
|
-
|
|
3832
|
+
--_gap: 0.25rem;
|
|
3833
|
+
|
|
3834
|
+
gap: var(--_gap);
|
|
3328
3835
|
}
|
|
3329
3836
|
|
|
3330
|
-
button
|
|
3837
|
+
/* FOUCE: the base reserves two bare button widths, which is right for an
|
|
3838
|
+
appearance whose buttons sit flush against the value. These do not — each
|
|
3839
|
+
carries a 1px border and a gap — so the reserved box has to grow by both
|
|
3840
|
+
or the stepper jumps 12px wider and 12px taller the moment it hydrates.
|
|
3841
|
+
Qualified with the attribute so it outranks the base rule (equal
|
|
3842
|
+
specificity otherwise) whichever order the appearance sheets load in. */
|
|
3843
|
+
:scope:not(:defined)[appearance='rounded'] {
|
|
3844
|
+
padding-inline: calc(var(--_button-size) + 2px + var(--_gap));
|
|
3845
|
+
min-height: calc(var(--_button-size) + 2px);
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
/* Every rule that re-styles a shared internal is qualified with `:scope ` — see
|
|
3849
|
+
the note above the button block in `_base.css`. Without it, the base copy
|
|
3850
|
+
inlined by a *later*-imported appearance would win on source order. */
|
|
3851
|
+
:scope button {
|
|
3331
3852
|
border: 1px solid var(--border-color);
|
|
3332
3853
|
border-radius: var(--l-radius-full);
|
|
3333
3854
|
background-color: var(--l-form-control-background-color);
|
|
3334
3855
|
}
|
|
3335
3856
|
|
|
3336
3857
|
@media (hover: hover) {
|
|
3337
|
-
button:hover:not(:disabled) {
|
|
3338
|
-
border-color: var(--l-color-
|
|
3858
|
+
:scope button:hover:not(:disabled) {
|
|
3859
|
+
border-color: var(--l-form-control-border-color-hover);
|
|
3339
3860
|
background-color: transparent;
|
|
3340
3861
|
}
|
|
3341
3862
|
}
|
|
3342
3863
|
|
|
3343
|
-
|
|
3344
|
-
|
|
3864
|
+
/* Hover and press share one border token, the system's own for a hovered
|
|
3865
|
+
form control. It reads at gray-500 in both modes; --l-color-text-primary,
|
|
3866
|
+
which these two states used to reach for, lands near-black on a white page
|
|
3867
|
+
and near-white on a dark one — too hard an edge for a hairline circle. The
|
|
3868
|
+
press is told apart by its fill and by the same shrink `pill` uses: both
|
|
3869
|
+
appearances hang their buttons as free-standing discs, so both can afford
|
|
3870
|
+
to press one into the surface. `default` cannot — its buttons sit flush
|
|
3871
|
+
inside the container's border, and shrinking one opens a gap in the corner
|
|
3872
|
+
of the box — which is why the shrink lives in these two files and not in
|
|
3873
|
+
`_base.css`. */
|
|
3874
|
+
:scope button:active:not(:disabled) {
|
|
3875
|
+
border-color: var(--l-form-control-border-color-hover);
|
|
3345
3876
|
background-color: var(--_button-bg-active);
|
|
3877
|
+
scale: 0.94;
|
|
3346
3878
|
}
|
|
3347
3879
|
|
|
3348
|
-
|
|
3880
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3881
|
+
:scope button:active:not(:disabled) {
|
|
3882
|
+
scale: none;
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
:scope button:disabled {
|
|
3349
3887
|
border-color: var(--l-form-control-disabled-border);
|
|
3350
3888
|
}
|
|
3351
3889
|
}
|
|
@@ -3823,8 +4361,8 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
3823
4361
|
|
|
3824
4362
|
.l-kbd {
|
|
3825
4363
|
display: inline-block;
|
|
3826
|
-
padding-block:
|
|
3827
|
-
padding-inline:
|
|
4364
|
+
padding-block: var(--l-spacing-1);
|
|
4365
|
+
padding-inline: var(--l-spacing-2);
|
|
3828
4366
|
font-family: var(--l-font-mono);
|
|
3829
4367
|
font-size: var(--l-text-xs);
|
|
3830
4368
|
font-weight: 600;
|
|
@@ -4131,6 +4669,214 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
4131
4669
|
}
|
|
4132
4670
|
}
|
|
4133
4671
|
|
|
4672
|
+
/* radio-group.css */
|
|
4673
|
+
@layer components {
|
|
4674
|
+
/**
|
|
4675
|
+
* Radio group — a set of native `<input type="radio">` controls, each wrapped
|
|
4676
|
+
* in the `<label>` that names it, in one of two appearances:
|
|
4677
|
+
*
|
|
4678
|
+
* default the radio primitive (`.l-radio` on the input): a dot in a
|
|
4679
|
+
* circle, with its label beside it.
|
|
4680
|
+
* button the segments wear the `.l-button` look and are joined into a
|
|
4681
|
+
* single unit, like `l-button-group`.
|
|
4682
|
+
*
|
|
4683
|
+
* There is no JavaScript because there is nothing to implement. Radios
|
|
4684
|
+
* sharing a `name` already give single selection, arrow-key navigation, a
|
|
4685
|
+
* single tab stop, form submission, reset and validation. This file only
|
|
4686
|
+
* decides what the group looks like.
|
|
4687
|
+
*
|
|
4688
|
+
* The host is the `<fieldset>` itself, captioned by its `<legend>`: that is
|
|
4689
|
+
* the platform's own way to group and name a set of radios, so no ARIA is
|
|
4690
|
+
* needed. A rendered legend is taken out of flow, so it sits above the group
|
|
4691
|
+
* and never becomes a flex item — verified in Chrome 148, and what the HTML
|
|
4692
|
+
* rendering spec requires. (Making the fieldset a flex container used to be
|
|
4693
|
+
* ignored by Chrome and Safari; that was fixed years ago.)
|
|
4694
|
+
*
|
|
4695
|
+
* Kept as one flat file rather than an appearance directory: the default
|
|
4696
|
+
* appearance adds layout and nothing else — the dot itself lives in
|
|
4697
|
+
* radio.css — so there is no second visual treatment to isolate, and a
|
|
4698
|
+
* consumer wanting both appearances on one page keeps a single import.
|
|
4699
|
+
*
|
|
4700
|
+
* - https://www.w3.org/WAI/ARIA/apg/patterns/radio/
|
|
4701
|
+
*/
|
|
4702
|
+
|
|
4703
|
+
.l-radio-group {
|
|
4704
|
+
display: inline-flex;
|
|
4705
|
+
align-items: stretch;
|
|
4706
|
+
|
|
4707
|
+
/* Fieldset defaults, cleared so the group is the only visible chrome.
|
|
4708
|
+
`min-inline-size: 0` overrides the UA's `min-content`, which would
|
|
4709
|
+
otherwise stop the group from ever shrinking. */
|
|
4710
|
+
margin: 0;
|
|
4711
|
+
border: 0;
|
|
4712
|
+
padding: 0;
|
|
4713
|
+
min-inline-size: 0;
|
|
4714
|
+
}
|
|
4715
|
+
|
|
4716
|
+
/* The group's caption. Out of flow, so it needs no flex handling — only the
|
|
4717
|
+
gap below it. Typography matches an `l-form-field` label, so a radio group
|
|
4718
|
+
and a labelled field read as the same thing in a form. */
|
|
4719
|
+
.l-radio-group > legend {
|
|
4720
|
+
margin-block-end: var(--l-spacing-2);
|
|
4721
|
+
padding: 0;
|
|
4722
|
+
color: var(--l-form-control-label-color);
|
|
4723
|
+
font-size: var(--l-text-sm);
|
|
4724
|
+
font-weight: var(--l-font-weight-medium);
|
|
4725
|
+
}
|
|
4726
|
+
|
|
4727
|
+
.l-radio-group[data-orientation='vertical'] {
|
|
4728
|
+
flex-direction: column;
|
|
4729
|
+
align-items: start;
|
|
4730
|
+
}
|
|
4731
|
+
|
|
4732
|
+
/*
|
|
4733
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
4734
|
+
Default appearance — the radio primitive. Layout only: put `.l-radio` on each
|
|
4735
|
+
input and radio.css draws the dot.
|
|
4736
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
4737
|
+
*/
|
|
4738
|
+
|
|
4739
|
+
.l-radio-group:not([data-appearance='button']) {
|
|
4740
|
+
gap: var(--l-spacing-4);
|
|
4741
|
+
|
|
4742
|
+
/* Luxen tokens, never `var(--spacing)`: that one belongs to Tailwind's base
|
|
4743
|
+
layer, so outside a Tailwind project the calc() is invalid and the gap
|
|
4744
|
+
collapses to zero. That is not cosmetic — a zero gap puts two stacked
|
|
4745
|
+
radio boxes close enough to fail the WCAG 2.5.8 target-size spacing
|
|
4746
|
+
exception (the boxes are under the 24px minimum on their own). There is
|
|
4747
|
+
an axe fixture on the stacked group. */
|
|
4748
|
+
&[data-orientation='vertical'] {
|
|
4749
|
+
gap: var(--l-spacing-3);
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4752
|
+
& > label {
|
|
4753
|
+
display: inline-flex;
|
|
4754
|
+
gap: var(--l-spacing-2);
|
|
4755
|
+
align-items: center;
|
|
4756
|
+
cursor: pointer;
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
& > label:has(:disabled) {
|
|
4760
|
+
cursor: not-allowed;
|
|
4761
|
+
opacity: 0.4;
|
|
4762
|
+
}
|
|
4763
|
+
}
|
|
4764
|
+
|
|
4765
|
+
/*
|
|
4766
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
4767
|
+
Button appearance — `.l-button` on each label, segments joined.
|
|
4768
|
+
The checked fill is NOT defined here: `.l-button:has(input:checked)` in
|
|
4769
|
+
button-core.css already gives it the same look as a pressed toggle button.
|
|
4770
|
+
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
|
|
4771
|
+
*/
|
|
4772
|
+
|
|
4773
|
+
.l-radio-group[data-appearance='button'] {
|
|
4774
|
+
/* Segments overlap their neighbour's border, so the interacted one has to
|
|
4775
|
+
be raised or its border and focus ring get clipped. */
|
|
4776
|
+
& > .l-button {
|
|
4777
|
+
position: relative;
|
|
4778
|
+
}
|
|
4779
|
+
|
|
4780
|
+
& > .l-button:hover,
|
|
4781
|
+
& > .l-button:has(:checked) {
|
|
4782
|
+
z-index: 1;
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4785
|
+
/*
|
|
4786
|
+
* The input covers its label and is transparent, rather than being sized to
|
|
4787
|
+
* zero: a zero-size focusable control is occasionally skipped by assistive
|
|
4788
|
+
* tech. It must never be `display: none` or `visibility: hidden` either —
|
|
4789
|
+
* both drop it from the accessibility tree AND the tab order, which would
|
|
4790
|
+
* take the group's whole keyboard model with them.
|
|
4791
|
+
*/
|
|
4792
|
+
& > .l-button > input[type='radio'] {
|
|
4793
|
+
position: absolute;
|
|
4794
|
+
inset: 0;
|
|
4795
|
+
margin: 0;
|
|
4796
|
+
padding: 0;
|
|
4797
|
+
appearance: none;
|
|
4798
|
+
border: 0;
|
|
4799
|
+
background: none;
|
|
4800
|
+
opacity: 0;
|
|
4801
|
+
cursor: inherit;
|
|
4802
|
+
}
|
|
4803
|
+
|
|
4804
|
+
/* A `<label>` is never focused itself — the ring has to be mirrored from
|
|
4805
|
+
the input inside it. */
|
|
4806
|
+
& > .l-button:has(:focus-visible) {
|
|
4807
|
+
z-index: 2;
|
|
4808
|
+
outline: 2px solid var(--l-focus-ring);
|
|
4809
|
+
outline-offset: 2px;
|
|
4810
|
+
}
|
|
4811
|
+
|
|
4812
|
+
/* A `<label>` is never `:disabled` either, so the button's own
|
|
4813
|
+
`:not(:disabled)` guards all pass and a disabled segment would still
|
|
4814
|
+
react to the pointer. Rebinding the hover knobs (rather than overriding
|
|
4815
|
+
`background-color`) keeps it inert on hover in every variant, and
|
|
4816
|
+
resolves to the checked fill when it is the selected one. */
|
|
4817
|
+
& > .l-button:has(:disabled) {
|
|
4818
|
+
--background-color-hover: var(--background-color);
|
|
4819
|
+
--border-color-hover: var(--border-color);
|
|
4820
|
+
--text-color-hover: var(--text-color);
|
|
4821
|
+
|
|
4822
|
+
cursor: not-allowed;
|
|
4823
|
+
opacity: 0.4;
|
|
4824
|
+
}
|
|
4825
|
+
|
|
4826
|
+
/* `:active` needs its own rule: button-core sets `background-color`
|
|
4827
|
+
directly there, so rebinding the knobs above does not reach it and the
|
|
4828
|
+
segment flashed the pressed fill on mousedown. `data-press-effect` is
|
|
4829
|
+
opt-in per button but would move it for the same reason. There is a
|
|
4830
|
+
browser test on this, with an enabled segment as its control. */
|
|
4831
|
+
& > .l-button:has(:disabled):active {
|
|
4832
|
+
background-color: var(--background-color);
|
|
4833
|
+
scale: none;
|
|
4834
|
+
translate: none;
|
|
4835
|
+
}
|
|
4836
|
+
|
|
4837
|
+
&[data-orientation='vertical'] {
|
|
4838
|
+
align-items: stretch;
|
|
4839
|
+
}
|
|
4840
|
+
}
|
|
4841
|
+
|
|
4842
|
+
/*
|
|
4843
|
+
Seam collapsing. Deliberately duplicated from button-group.css: sharing it
|
|
4844
|
+
would need one selector list covering both hosts, so importing
|
|
4845
|
+
`luxen-ui/css/button-group` alone would ship the radio-group selectors too.
|
|
4846
|
+
Per-element files stay self-contained; keep the two in sync by hand.
|
|
4847
|
+
*/
|
|
4848
|
+
|
|
4849
|
+
.l-radio-group[data-appearance='button']:not([data-orientation='vertical']) {
|
|
4850
|
+
/* Overlap the shared 1px border. Sibling selectors rather than
|
|
4851
|
+
`:not(:first-child)` / `:not(:last-child)`: the group's first child is
|
|
4852
|
+
the `<legend>`, so the positional pseudo-classes would be off by one and
|
|
4853
|
+
square the first segment's leading corners. */
|
|
4854
|
+
& > .l-button + .l-button {
|
|
4855
|
+
margin-inline-start: -1px;
|
|
4856
|
+
border-start-start-radius: 0;
|
|
4857
|
+
border-end-start-radius: 0;
|
|
4858
|
+
}
|
|
4859
|
+
|
|
4860
|
+
& > .l-button:has(+ .l-button) {
|
|
4861
|
+
border-start-end-radius: 0;
|
|
4862
|
+
border-end-end-radius: 0;
|
|
4863
|
+
}
|
|
4864
|
+
}
|
|
4865
|
+
|
|
4866
|
+
.l-radio-group[data-appearance='button'][data-orientation='vertical'] {
|
|
4867
|
+
& > .l-button + .l-button {
|
|
4868
|
+
margin-block-start: -1px;
|
|
4869
|
+
border-start-start-radius: 0;
|
|
4870
|
+
border-start-end-radius: 0;
|
|
4871
|
+
}
|
|
4872
|
+
|
|
4873
|
+
& > .l-button:has(+ .l-button) {
|
|
4874
|
+
border-end-start-radius: 0;
|
|
4875
|
+
border-end-end-radius: 0;
|
|
4876
|
+
}
|
|
4877
|
+
}
|
|
4878
|
+
}
|
|
4879
|
+
|
|
4134
4880
|
/* radio.css */
|
|
4135
4881
|
/* Radio — `.l-radio` on a native `<input type="radio">`.
|
|
4136
4882
|
|
|
@@ -4283,7 +5029,7 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
4283
5029
|
align-items: stretch;
|
|
4284
5030
|
height: var(--_height);
|
|
4285
5031
|
padding: var(--_pad);
|
|
4286
|
-
gap:
|
|
5032
|
+
gap: var(--l-spacing-0_5);
|
|
4287
5033
|
background: var(--l-color-bg-fill-neutral-subtle);
|
|
4288
5034
|
border-radius: var(--border-radius, var(--l-radius-lg));
|
|
4289
5035
|
/* Match the form-control border (--l-color-border, as used by .l-button,
|
|
@@ -4345,8 +5091,8 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
4345
5091
|
display: inline-flex;
|
|
4346
5092
|
align-items: center;
|
|
4347
5093
|
justify-content: center;
|
|
4348
|
-
gap:
|
|
4349
|
-
padding-inline:
|
|
5094
|
+
gap: var(--l-spacing-1_5);
|
|
5095
|
+
padding-inline: var(--l-spacing-3);
|
|
4350
5096
|
margin: 0;
|
|
4351
5097
|
appearance: none;
|
|
4352
5098
|
border: none;
|
|
@@ -5469,8 +6215,8 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
5469
6215
|
& > :first-child {
|
|
5470
6216
|
background: var(--l-color-bg-fill-neutral-subtle);
|
|
5471
6217
|
border-radius: var(--l-radius-lg);
|
|
5472
|
-
padding:
|
|
5473
|
-
gap:
|
|
6218
|
+
padding: var(--l-spacing-1);
|
|
6219
|
+
gap: var(--l-spacing-1);
|
|
5474
6220
|
box-shadow: inset 0 0 0 1px var(--l-color-divider);
|
|
5475
6221
|
|
|
5476
6222
|
&::before {
|
|
@@ -5479,7 +6225,7 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
5479
6225
|
box-shadow:
|
|
5480
6226
|
0 1px 3px 0 rgb(0 0 0 / 0.08),
|
|
5481
6227
|
0 1px 2px -1px rgb(0 0 0 / 0.08);
|
|
5482
|
-
inset-block:
|
|
6228
|
+
inset-block: var(--l-spacing-1);
|
|
5483
6229
|
z-index: 0;
|
|
5484
6230
|
}
|
|
5485
6231
|
}
|
|
@@ -5487,7 +6233,7 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
5487
6233
|
& > :first-child button {
|
|
5488
6234
|
position: relative;
|
|
5489
6235
|
z-index: 1;
|
|
5490
|
-
padding:
|
|
6236
|
+
padding: var(--l-spacing-1_5) var(--l-spacing-3);
|
|
5491
6237
|
border-radius: var(--l-radius-md);
|
|
5492
6238
|
}
|
|
5493
6239
|
}
|
|
@@ -5641,7 +6387,7 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
5641
6387
|
}
|
|
5642
6388
|
|
|
5643
6389
|
& > :first-child button {
|
|
5644
|
-
padding:
|
|
6390
|
+
padding: var(--l-spacing-2) var(--l-spacing-3);
|
|
5645
6391
|
|
|
5646
6392
|
/* `isolation` keeps the pill's negative z-index inside the button: it
|
|
5647
6393
|
paints above the button background but under the label, and can never
|
|
@@ -5656,7 +6402,7 @@ In dark mode, mixes the base color with black (default 15% black).
|
|
|
5656
6402
|
content: '';
|
|
5657
6403
|
position: absolute;
|
|
5658
6404
|
z-index: -1;
|
|
5659
|
-
inset-block: var(--hover-inset,
|
|
6405
|
+
inset-block: var(--hover-inset, var(--l-spacing-1));
|
|
5660
6406
|
inset-inline: 0;
|
|
5661
6407
|
border-radius: var(--l-radius-md);
|
|
5662
6408
|
background: transparent;
|