m3-svelte 6.0.0 → 6.0.2
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 -1
- package/package/buttons/Button.svelte +15 -46
- package/package/buttons/FAB.svelte +1 -8
- package/package/buttons/SplitButton.svelte +2 -9
- package/package/containers/BottomSheet.svelte +4 -4
- package/package/containers/Dialog.svelte +3 -15
- package/package/containers/ListItem.svelte +7 -31
- package/package/containers/MenuItem.svelte +4 -10
- package/package/containers/Snackbar.svelte +3 -15
- package/package/containers/StandardSideSheet.svelte +1 -7
- package/package/forms/Checkbox.svelte +2 -3
- package/package/forms/Chip.svelte +4 -11
- package/package/forms/CircularProgressEstimate.svelte +1 -33
- package/package/forms/DateField.svelte +7 -19
- package/package/forms/DateFieldOutlined.svelte +9 -21
- package/package/forms/LinearProgressEstimate.svelte +1 -98
- package/package/forms/RadioAnim1.svelte +1 -2
- package/package/forms/RadioAnim2.svelte +1 -2
- package/package/forms/RadioAnim3.svelte +1 -2
- package/package/forms/Select.svelte +4 -16
- package/package/forms/SelectOutlined.svelte +4 -16
- package/package/forms/Slider.svelte +6 -12
- package/package/forms/Switch.svelte +7 -8
- package/package/forms/TextField.svelte +10 -29
- package/package/forms/TextFieldMultiline.svelte +11 -37
- package/package/forms/TextFieldOutlined.svelte +8 -27
- package/package/forms/TextFieldOutlinedMultiline.svelte +9 -35
- package/package/forms/_picker/CalendarPicker.svelte +1 -7
- package/package/forms/_picker/FocusPicker.svelte +1 -7
- package/package/forms/_picker/Header.svelte +2 -8
- package/package/forms/_picker/Item.svelte +2 -8
- package/package/misc/Layer.svelte +18 -16
- package/package/misc/recommended-styles.css +1 -1
- package/package/misc/styles.css +109 -16
- package/package/misc/tailwind-styles.css +15 -105
- package/package/nav/NavCMLX.svelte +8 -38
- package/package/nav/NavCMLXItem.svelte +19 -277
- package/package/nav/Tabs.svelte +1 -8
- package/package/nav/TabsLink.svelte +1 -8
- package/package/nav/VariableTabs.svelte +1 -8
- package/package/nav/VariableTabsLink.svelte +1 -8
- package/package.json +7 -5
|
@@ -37,14 +37,7 @@
|
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
39
|
<div class="m3-container" class:leading-icon={leadingIcon} class:error use:resize>
|
|
40
|
-
<textarea
|
|
41
|
-
class="focus-none"
|
|
42
|
-
placeholder=" "
|
|
43
|
-
bind:value
|
|
44
|
-
{id}
|
|
45
|
-
{disabled}
|
|
46
|
-
{required}
|
|
47
|
-
{...extra}
|
|
40
|
+
<textarea class="focus-none" placeholder=" " bind:value {id} {disabled} {required} {...extra}
|
|
48
41
|
></textarea>
|
|
49
42
|
<div class="layer"></div>
|
|
50
43
|
<label for={id}>{label}</label>
|
|
@@ -67,17 +60,11 @@
|
|
|
67
60
|
display: inline-flex;
|
|
68
61
|
position: relative;
|
|
69
62
|
align-items: center;
|
|
70
|
-
min-height:
|
|
63
|
+
min-height: --m3-density(5rem);
|
|
71
64
|
min-width: 15rem;
|
|
72
65
|
}
|
|
73
66
|
textarea {
|
|
74
|
-
|
|
75
|
-
font-family: var(--m3-font);
|
|
76
|
-
font-size: 1rem;
|
|
77
|
-
line-height: 1.5;
|
|
78
|
-
letter-spacing: 0;
|
|
79
|
-
font-weight: 400;
|
|
80
|
-
|
|
67
|
+
@apply --m3-body-large;
|
|
81
68
|
position: absolute;
|
|
82
69
|
inset: 0;
|
|
83
70
|
width: 100%;
|
|
@@ -91,13 +78,7 @@
|
|
|
91
78
|
resize: none;
|
|
92
79
|
}
|
|
93
80
|
label {
|
|
94
|
-
|
|
95
|
-
font-family: var(--m3-font);
|
|
96
|
-
font-size: 1rem;
|
|
97
|
-
line-height: 1.5;
|
|
98
|
-
letter-spacing: 0;
|
|
99
|
-
font-weight: 400;
|
|
100
|
-
|
|
81
|
+
@apply --m3-body-large;
|
|
101
82
|
position: absolute;
|
|
102
83
|
inset-inline-start: 0.75rem;
|
|
103
84
|
top: 50%;
|
|
@@ -112,16 +93,10 @@
|
|
|
112
93
|
color: var(--error, var(--m3c-primary));
|
|
113
94
|
}
|
|
114
95
|
&:is(textarea:disabled ~ label) {
|
|
115
|
-
color:
|
|
96
|
+
color: --translucent(var(--m3c-on-surface), 0.38);
|
|
116
97
|
}
|
|
117
98
|
&:is(textarea:focus ~ label, textarea:not(:placeholder-shown) ~ label) {
|
|
118
|
-
|
|
119
|
-
font-family: var(--m3-font);
|
|
120
|
-
font-size: 0.75rem;
|
|
121
|
-
line-height: 1.333;
|
|
122
|
-
letter-spacing: 0.025rem;
|
|
123
|
-
font-weight: 400;
|
|
124
|
-
|
|
99
|
+
@apply --m3-body-small;
|
|
125
100
|
top: 0;
|
|
126
101
|
}
|
|
127
102
|
pointer-events: none;
|
|
@@ -172,17 +147,16 @@
|
|
|
172
147
|
}
|
|
173
148
|
|
|
174
149
|
textarea:disabled {
|
|
175
|
-
color:
|
|
150
|
+
color: --translucent(var(--m3c-on-surface), 0.38);
|
|
176
151
|
}
|
|
177
152
|
textarea:disabled ~ .layer {
|
|
178
|
-
border-color:
|
|
153
|
+
border-color: --translucent(var(--m3c-on-surface), 0.38);
|
|
179
154
|
}
|
|
180
155
|
textarea:disabled ~ :global(svg) {
|
|
181
|
-
color:
|
|
156
|
+
color: --translucent(var(--m3c-on-surface), 0.38);
|
|
182
157
|
}
|
|
183
158
|
|
|
184
159
|
.m3-container {
|
|
185
160
|
print-color-adjust: exact;
|
|
186
|
-
-webkit-print-color-adjust: exact;
|
|
187
161
|
}
|
|
188
162
|
</style>
|
|
@@ -58,13 +58,7 @@
|
|
|
58
58
|
gap: 0.25rem;
|
|
59
59
|
}
|
|
60
60
|
.day {
|
|
61
|
-
|
|
62
|
-
font-family: var(--m3-font);
|
|
63
|
-
font-size: 0.75rem;
|
|
64
|
-
line-height: 1.333;
|
|
65
|
-
letter-spacing: 0.025rem;
|
|
66
|
-
font-weight: 400;
|
|
67
|
-
|
|
61
|
+
@apply --m3-body-small;
|
|
68
62
|
display: inline-flex;
|
|
69
63
|
width: 2.5rem;
|
|
70
64
|
height: 2.5rem;
|
|
@@ -35,13 +35,7 @@
|
|
|
35
35
|
margin-bottom: 1.25rem;
|
|
36
36
|
}
|
|
37
37
|
button {
|
|
38
|
-
|
|
39
|
-
font-family: var(--m3-font);
|
|
40
|
-
font-size: 1rem;
|
|
41
|
-
line-height: 1.5;
|
|
42
|
-
letter-spacing: 0;
|
|
43
|
-
font-weight: 400;
|
|
44
|
-
|
|
38
|
+
@apply --m3-body-large;
|
|
45
39
|
display: inline-flex;
|
|
46
40
|
align-items: center;
|
|
47
41
|
height: 3rem;
|
|
@@ -108,17 +108,11 @@
|
|
|
108
108
|
}
|
|
109
109
|
button:disabled {
|
|
110
110
|
cursor: auto;
|
|
111
|
-
color:
|
|
111
|
+
color: --translucent(var(--m3c-on-surface-variant), 0.38);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.chooser {
|
|
115
|
-
|
|
116
|
-
font-family: var(--m3-font);
|
|
117
|
-
font-size: 0.875rem;
|
|
118
|
-
line-height: 1.429;
|
|
119
|
-
letter-spacing: 0.006rem;
|
|
120
|
-
font-weight: 500;
|
|
121
|
-
|
|
115
|
+
@apply --m3-label-large;
|
|
122
116
|
flex-grow: 1;
|
|
123
117
|
}
|
|
124
118
|
.chooser :global(svg) {
|
|
@@ -30,13 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
<style>
|
|
32
32
|
.item {
|
|
33
|
-
|
|
34
|
-
font-family: var(--m3-font);
|
|
35
|
-
font-size: 0.75rem;
|
|
36
|
-
line-height: 1.333;
|
|
37
|
-
letter-spacing: 0.025rem;
|
|
38
|
-
font-weight: 400;
|
|
39
|
-
|
|
33
|
+
@apply --m3-body-small;
|
|
40
34
|
display: inline-flex;
|
|
41
35
|
width: 2.5rem;
|
|
42
36
|
height: 2.5rem;
|
|
@@ -53,7 +47,7 @@
|
|
|
53
47
|
}
|
|
54
48
|
button:disabled {
|
|
55
49
|
cursor: auto;
|
|
56
|
-
color:
|
|
50
|
+
color: --translucent(var(--m3c-on-surface-variant), 0.38);
|
|
57
51
|
}
|
|
58
52
|
.today {
|
|
59
53
|
border: solid 1px var(--m3c-primary);
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
circle.appendChild(expand);
|
|
64
64
|
|
|
65
65
|
const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
66
|
-
svg.style.cssText =
|
|
67
|
-
position: absolute
|
|
68
|
-
left: ${x - size / 2}px
|
|
69
|
-
top: ${y - size / 2}px
|
|
70
|
-
width: ${size}px
|
|
71
|
-
height: ${size}px
|
|
72
|
-
pointer-events: none
|
|
73
|
-
overflow: visible
|
|
74
|
-
|
|
66
|
+
svg.style.cssText = [
|
|
67
|
+
"position: absolute",
|
|
68
|
+
`left: ${x - size / 2}px`,
|
|
69
|
+
`top: ${y - size / 2}px`,
|
|
70
|
+
`width: ${size}px`,
|
|
71
|
+
`height: ${size}px`,
|
|
72
|
+
"pointer-events: none",
|
|
73
|
+
"overflow: visible",
|
|
74
|
+
].join(";");
|
|
75
75
|
svg.appendChild(gradient);
|
|
76
76
|
svg.appendChild(circle);
|
|
77
77
|
|
|
@@ -192,18 +192,20 @@
|
|
|
192
192
|
transition: opacity var(--m3-easing-fast);
|
|
193
193
|
|
|
194
194
|
&:not(
|
|
195
|
-
:global(input:disabled + label) >
|
|
196
|
-
:global(input:disabled + .layer-container) >
|
|
197
|
-
:global(:disabled) >
|
|
195
|
+
:global(input:disabled + label) > *,
|
|
196
|
+
:global(input:disabled + .layer-container) > *,
|
|
197
|
+
:global(:disabled) > *
|
|
198
198
|
) {
|
|
199
199
|
@media (hover: hover) {
|
|
200
|
-
&:is(:global(:hover) >
|
|
200
|
+
&:is(:global(:hover) > *, :global(:active) > *) {
|
|
201
201
|
opacity: 0.08;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
&:is(
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
&:is(
|
|
205
|
+
:global(input:focus-visible + label) > *,
|
|
206
|
+
:global(:focus-visible) > *,
|
|
207
|
+
:global(:active) > .ripple-container.broken + *
|
|
208
|
+
) {
|
|
207
209
|
opacity: 0.12;
|
|
208
210
|
}
|
|
209
211
|
}
|
package/package/misc/styles.css
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
@function --translucent(--color, --opacity) {
|
|
2
2
|
result: oklab(from var(--color) l a b / var(--opacity));
|
|
3
3
|
}
|
|
4
|
+
/* DEPRECATED: This default --m3-density function will be removed in a future version.
|
|
5
|
+
For new themes, pick which option you actually want. */
|
|
4
6
|
@function --m3-density(--size) {
|
|
5
|
-
result: calc(var(--size) + (var(--m3v-density) * 0.25rem));
|
|
7
|
+
result: calc(var(--size) + (var(--m3v-density, 0) * 0.25rem));
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
@layer tokens {
|
|
@@ -11,20 +13,20 @@
|
|
|
11
13
|
--m3-elevation-0: none;
|
|
12
14
|
--m3-elevation-1:
|
|
13
15
|
/* Spot */
|
|
14
|
-
0px 1px 2px 0px
|
|
15
|
-
/* Ambient */ 0px 1px 3px 1px
|
|
16
|
+
0px 1px 2px 0px --translucent(var(--m3c-shadow), 0.3),
|
|
17
|
+
/* Ambient */ 0px 1px 3px 1px --translucent(var(--m3c-shadow), 0.15);
|
|
16
18
|
--m3-elevation-2:
|
|
17
|
-
0px 1px 2px 0px
|
|
18
|
-
0px 2px 6px 2px
|
|
19
|
+
0px 1px 2px 0px --translucent(var(--m3c-shadow), 0.3),
|
|
20
|
+
0px 2px 6px 2px --translucent(var(--m3c-shadow), 0.15);
|
|
19
21
|
--m3-elevation-3:
|
|
20
|
-
0px 1px 3px 0px
|
|
21
|
-
0px 4px 8px 3px
|
|
22
|
+
0px 1px 3px 0px --translucent(var(--m3c-shadow), 0.3),
|
|
23
|
+
0px 4px 8px 3px --translucent(var(--m3c-shadow), 0.15);
|
|
22
24
|
--m3-elevation-4:
|
|
23
|
-
0px 2px 3px 0px
|
|
24
|
-
0px 6px 10px 4px
|
|
25
|
+
0px 2px 3px 0px --translucent(var(--m3c-shadow), 0.3),
|
|
26
|
+
0px 6px 10px 4px --translucent(var(--m3c-shadow), 0.15);
|
|
25
27
|
--m3-elevation-5:
|
|
26
|
-
0px 4px 4px 0px
|
|
27
|
-
0px 8px 12px 6px
|
|
28
|
+
0px 4px 4px 0px --translucent(var(--m3c-shadow), 0.3),
|
|
29
|
+
0px 8px 12px 6px --translucent(var(--m3c-shadow), 0.15);
|
|
28
30
|
|
|
29
31
|
/* Shapes */
|
|
30
32
|
--m3-shape-none: 0;
|
|
@@ -84,6 +86,38 @@
|
|
|
84
86
|
);
|
|
85
87
|
--m3-timing-function-emphasized-accel: cubic-bezier(0.3, 0, 0.8, 0.15);
|
|
86
88
|
--m3-timing-function-emphasized-decel: cubic-bezier(0.05, 0.7, 0.1, 1);
|
|
89
|
+
|
|
90
|
+
--m3-timing-function-zeno: linear(
|
|
91
|
+
0,
|
|
92
|
+
0.08 1.5%,
|
|
93
|
+
0.15 2.93%,
|
|
94
|
+
0.22 4.48%,
|
|
95
|
+
0.29 6.18%,
|
|
96
|
+
0.35 7.77%,
|
|
97
|
+
0.41 9.52%,
|
|
98
|
+
0.47 11.45%,
|
|
99
|
+
0.52 13.24%,
|
|
100
|
+
0.57 15.22%,
|
|
101
|
+
0.61 16.98%,
|
|
102
|
+
0.65 18.93%,
|
|
103
|
+
0.69 21.12%,
|
|
104
|
+
0.73 23.61%,
|
|
105
|
+
0.76 25.74%,
|
|
106
|
+
0.79 28.14%,
|
|
107
|
+
0.82 30.92%,
|
|
108
|
+
0.84 33.05%,
|
|
109
|
+
0.86 35.46%,
|
|
110
|
+
0.88 38.24%,
|
|
111
|
+
0.9 41.52%,
|
|
112
|
+
0.92 45.55%,
|
|
113
|
+
0.93 47.96%,
|
|
114
|
+
0.95 54.02%,
|
|
115
|
+
0.96 58.05%,
|
|
116
|
+
0.97 63.24%,
|
|
117
|
+
0.98 70.55%,
|
|
118
|
+
0.99 83.05%,
|
|
119
|
+
1
|
|
120
|
+
);
|
|
87
121
|
}
|
|
88
122
|
}
|
|
89
123
|
/* Not tokens because they may be dynamically get/set and aren't generally constant */
|
|
@@ -92,11 +126,6 @@
|
|
|
92
126
|
inherits: true;
|
|
93
127
|
initial-value: 0;
|
|
94
128
|
}
|
|
95
|
-
@property --m3v-density {
|
|
96
|
-
syntax: "<number>";
|
|
97
|
-
inherits: true;
|
|
98
|
-
initial-value: 0;
|
|
99
|
-
}
|
|
100
129
|
:root {
|
|
101
130
|
--m3v-background: var(--m3c-surface);
|
|
102
131
|
}
|
|
@@ -346,3 +375,67 @@ const optimizedSmallResult = createCSSEaseOptimized(testInput, 0.01);
|
|
|
346
375
|
console.log("Optimized result (relaxed threshold 0.01):");
|
|
347
376
|
console.log(optimizedSmallResult);
|
|
348
377
|
*/
|
|
378
|
+
/* Zeno timing function derived from this code:
|
|
379
|
+
// 1) define the original mapping f(y)=time-%, capped at 100% for y=1
|
|
380
|
+
const whenReached = (y) => Math.log(1 - y) / Math.log(0.5);
|
|
381
|
+
const makePoints = () => {
|
|
382
|
+
const pts = [];
|
|
383
|
+
for (let i = 0; i < 100; i++) {
|
|
384
|
+
const v = i / 100;
|
|
385
|
+
const t = (whenReached(v) * 100) / 8;
|
|
386
|
+
pts.push([v, t]);
|
|
387
|
+
}
|
|
388
|
+
// add the final point (1, 100)
|
|
389
|
+
pts.push([1, 100]);
|
|
390
|
+
return pts;
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
// 2) helper: compute perpendicular distance from pt to line (p0→p1)
|
|
394
|
+
const perpDist = (pt, p0, p1) => {
|
|
395
|
+
const [x, y] = pt;
|
|
396
|
+
const [x1, y1] = p0;
|
|
397
|
+
const [x2, y2] = p1;
|
|
398
|
+
const num = Math.abs((y2 - y1) * x - (x2 - x1) * y + x2 * y1 - y2 * x1);
|
|
399
|
+
const den = Math.hypot(y2 - y1, x2 - x1);
|
|
400
|
+
return den === 0 ? 0 : num / den;
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
// 3) RDP (recursive)
|
|
404
|
+
function rdp(points, eps) {
|
|
405
|
+
if (points.length < 3) return points;
|
|
406
|
+
let maxD = 0,
|
|
407
|
+
idx = 0;
|
|
408
|
+
for (let i = 1; i < points.length - 1; i++) {
|
|
409
|
+
const d = perpDist(points[i], points[0], points[points.length - 1]);
|
|
410
|
+
if (d > maxD) {
|
|
411
|
+
maxD = d;
|
|
412
|
+
idx = i;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
if (maxD > eps) {
|
|
416
|
+
const left = rdp(points.slice(0, idx + 1), eps);
|
|
417
|
+
const right = rdp(points.slice(idx), eps);
|
|
418
|
+
return left.slice(0, -1).concat(right);
|
|
419
|
+
}
|
|
420
|
+
return [points[0], points[points.length - 1]];
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// 4) round x to 2 decimals (keep trailing zeros); round y to 2 decimals (cap tiny negatives to 0)
|
|
424
|
+
const fmt = (v, t) => {
|
|
425
|
+
const xv = v.toFixed(2);
|
|
426
|
+
let tv = Math.round(t * 100) / 100; // round to 2 decimals
|
|
427
|
+
if (Math.abs(tv) < 1e-8) tv = 0; // avoid "-0.00"
|
|
428
|
+
return `${xv} ${tv.toFixed(2)}%`;
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
// 5) put it all together
|
|
432
|
+
function buildCompressedLinear(tolerance) {
|
|
433
|
+
const raw = makePoints();
|
|
434
|
+
const reduced = rdp(raw, tolerance);
|
|
435
|
+
return `linear(${reduced.map(([v, t]) => fmt(v, t)).join(", ")})`;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
// 6) example result
|
|
439
|
+
const compressed = buildCompressedLinear(0.001);
|
|
440
|
+
console.log(compressed);
|
|
441
|
+
*/
|
|
@@ -125,139 +125,49 @@
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
@utility m3-font-display-large {
|
|
128
|
-
|
|
129
|
-
font-family: var(--m3-font);
|
|
130
|
-
font-size: 3.563rem;
|
|
131
|
-
line-height: 1.123;
|
|
132
|
-
letter-spacing: 0;
|
|
133
|
-
font-weight: 400;
|
|
134
|
-
|
|
128
|
+
@apply --m3-display-large;
|
|
135
129
|
}
|
|
136
130
|
@utility m3-font-display-medium {
|
|
137
|
-
|
|
138
|
-
font-family: var(--m3-font);
|
|
139
|
-
font-size: 2.813rem;
|
|
140
|
-
line-height: 1.156;
|
|
141
|
-
letter-spacing: 0;
|
|
142
|
-
font-weight: 400;
|
|
143
|
-
|
|
131
|
+
@apply --m3-display-medium;
|
|
144
132
|
}
|
|
145
133
|
@utility m3-font-display-small {
|
|
146
|
-
|
|
147
|
-
font-family: var(--m3-font);
|
|
148
|
-
font-size: 2.25rem;
|
|
149
|
-
line-height: 1.222;
|
|
150
|
-
letter-spacing: 0;
|
|
151
|
-
font-weight: 400;
|
|
152
|
-
|
|
134
|
+
@apply --m3-display-small;
|
|
153
135
|
}
|
|
154
136
|
@utility m3-font-headline-large {
|
|
155
|
-
|
|
156
|
-
font-family: var(--m3-font);
|
|
157
|
-
font-size: 2rem;
|
|
158
|
-
line-height: 1.25;
|
|
159
|
-
letter-spacing: 0;
|
|
160
|
-
font-weight: 400;
|
|
161
|
-
|
|
137
|
+
@apply --m3-headline-large;
|
|
162
138
|
}
|
|
163
139
|
@utility m3-font-headline-medium {
|
|
164
|
-
|
|
165
|
-
font-family: var(--m3-font);
|
|
166
|
-
font-size: 1.75rem;
|
|
167
|
-
line-height: 1.286;
|
|
168
|
-
letter-spacing: 0;
|
|
169
|
-
font-weight: 400;
|
|
170
|
-
|
|
140
|
+
@apply --m3-headline-medium;
|
|
171
141
|
}
|
|
172
142
|
@utility m3-font-headline-small {
|
|
173
|
-
|
|
174
|
-
font-family: var(--m3-font);
|
|
175
|
-
font-size: 1.5rem;
|
|
176
|
-
line-height: 1.333;
|
|
177
|
-
letter-spacing: 0;
|
|
178
|
-
font-weight: 400;
|
|
179
|
-
|
|
143
|
+
@apply --m3-headline-small;
|
|
180
144
|
}
|
|
181
145
|
@utility m3-font-title-large {
|
|
182
|
-
|
|
183
|
-
font-family: var(--m3-font);
|
|
184
|
-
font-size: 1.375rem;
|
|
185
|
-
line-height: 1.273;
|
|
186
|
-
letter-spacing: 0;
|
|
187
|
-
font-weight: 400;
|
|
188
|
-
|
|
146
|
+
@apply --m3-title-large;
|
|
189
147
|
}
|
|
190
148
|
@utility m3-font-title-medium {
|
|
191
|
-
|
|
192
|
-
font-family: var(--m3-font);
|
|
193
|
-
font-size: 1rem;
|
|
194
|
-
line-height: 1.5;
|
|
195
|
-
letter-spacing: 0;
|
|
196
|
-
font-weight: 500;
|
|
197
|
-
|
|
149
|
+
@apply --m3-title-medium;
|
|
198
150
|
}
|
|
199
151
|
@utility m3-font-title-small {
|
|
200
|
-
|
|
201
|
-
font-family: var(--m3-font);
|
|
202
|
-
font-size: 0.875rem;
|
|
203
|
-
line-height: 1.429;
|
|
204
|
-
letter-spacing: 0.006rem;
|
|
205
|
-
font-weight: 500;
|
|
206
|
-
|
|
152
|
+
@apply --m3-title-small;
|
|
207
153
|
}
|
|
208
154
|
@utility m3-font-label-large {
|
|
209
|
-
|
|
210
|
-
font-family: var(--m3-font);
|
|
211
|
-
font-size: 0.875rem;
|
|
212
|
-
line-height: 1.429;
|
|
213
|
-
letter-spacing: 0.006rem;
|
|
214
|
-
font-weight: 500;
|
|
215
|
-
|
|
155
|
+
@apply --m3-label-large;
|
|
216
156
|
}
|
|
217
157
|
@utility m3-font-label-medium {
|
|
218
|
-
|
|
219
|
-
font-family: var(--m3-font);
|
|
220
|
-
font-size: 0.75rem;
|
|
221
|
-
line-height: 1.333;
|
|
222
|
-
letter-spacing: 0.031rem;
|
|
223
|
-
font-weight: 500;
|
|
224
|
-
|
|
158
|
+
@apply --m3-label-medium;
|
|
225
159
|
}
|
|
226
160
|
@utility m3-font-label-small {
|
|
227
|
-
|
|
228
|
-
font-family: var(--m3-font);
|
|
229
|
-
font-size: 0.688rem;
|
|
230
|
-
line-height: 1.455;
|
|
231
|
-
letter-spacing: 0.031rem;
|
|
232
|
-
font-weight: 500;
|
|
233
|
-
|
|
161
|
+
@apply --m3-label-small;
|
|
234
162
|
}
|
|
235
163
|
@utility m3-font-body-large {
|
|
236
|
-
|
|
237
|
-
font-family: var(--m3-font);
|
|
238
|
-
font-size: 1rem;
|
|
239
|
-
line-height: 1.5;
|
|
240
|
-
letter-spacing: 0;
|
|
241
|
-
font-weight: 400;
|
|
242
|
-
|
|
164
|
+
@apply --m3-body-large;
|
|
243
165
|
}
|
|
244
166
|
@utility m3-font-body-medium {
|
|
245
|
-
|
|
246
|
-
font-family: var(--m3-font);
|
|
247
|
-
font-size: 0.875rem;
|
|
248
|
-
line-height: 1.429;
|
|
249
|
-
letter-spacing: 0.016rem;
|
|
250
|
-
font-weight: 400;
|
|
251
|
-
|
|
167
|
+
@apply --m3-body-medium;
|
|
252
168
|
}
|
|
253
169
|
@utility m3-font-body-small {
|
|
254
|
-
|
|
255
|
-
font-family: var(--m3-font);
|
|
256
|
-
font-size: 0.75rem;
|
|
257
|
-
line-height: 1.333;
|
|
258
|
-
letter-spacing: 0.025rem;
|
|
259
|
-
font-weight: 400;
|
|
260
|
-
|
|
170
|
+
@apply --m3-body-small;
|
|
261
171
|
}
|
|
262
172
|
|
|
263
173
|
@layer base {
|
|
@@ -41,65 +41,35 @@
|
|
|
41
41
|
.m3-container {
|
|
42
42
|
display: flex;
|
|
43
43
|
&.compact {
|
|
44
|
-
|
|
45
|
-
background-color: var(--m3c-surface-container);
|
|
46
|
-
justify-content: space-evenly;
|
|
47
|
-
|
|
44
|
+
@apply --cmlx-compact;
|
|
48
45
|
}
|
|
49
46
|
&.medium {
|
|
50
|
-
|
|
51
|
-
background-color: var(--m3c-surface-container);
|
|
52
|
-
justify-content: center;
|
|
53
|
-
|
|
47
|
+
@apply --cmlx-medium;
|
|
54
48
|
}
|
|
55
49
|
&.large {
|
|
56
|
-
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
gap: 0.25rem;
|
|
59
|
-
width: 6rem;
|
|
60
|
-
|
|
50
|
+
@apply --cmlx-large;
|
|
61
51
|
}
|
|
62
52
|
&.extra-large {
|
|
63
|
-
|
|
64
|
-
flex-direction: column;
|
|
65
|
-
padding-block: 1.25rem;
|
|
66
|
-
min-width: 13.75rem;
|
|
67
|
-
max-width: 22.5rem;
|
|
68
|
-
|
|
53
|
+
@apply --cmlx-extra-large;
|
|
69
54
|
}
|
|
70
55
|
}
|
|
71
56
|
|
|
72
57
|
.m3-container.auto {
|
|
73
58
|
@media (width < 37.5rem) {
|
|
74
59
|
/* Compact */
|
|
75
|
-
|
|
76
|
-
background-color: var(--m3c-surface-container);
|
|
77
|
-
justify-content: space-evenly;
|
|
78
|
-
|
|
60
|
+
@apply --cmlx-compact;
|
|
79
61
|
}
|
|
80
62
|
@media (37.5rem <= width < 52.5rem) {
|
|
81
63
|
/* Medium */
|
|
82
|
-
|
|
83
|
-
background-color: var(--m3c-surface-container);
|
|
84
|
-
justify-content: center;
|
|
85
|
-
|
|
64
|
+
@apply --cmlx-medium;
|
|
86
65
|
}
|
|
87
66
|
@media (52.5rem <= width < 100rem) {
|
|
88
67
|
/* Large */
|
|
89
|
-
|
|
90
|
-
flex-direction: column;
|
|
91
|
-
gap: 0.25rem;
|
|
92
|
-
width: 6rem;
|
|
93
|
-
|
|
68
|
+
@apply --cmlx-large;
|
|
94
69
|
}
|
|
95
70
|
@media (100rem <= width) {
|
|
96
71
|
/* Extra large */
|
|
97
|
-
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
padding-block: 1.25rem;
|
|
100
|
-
min-width: 13.75rem;
|
|
101
|
-
max-width: 22.5rem;
|
|
102
|
-
|
|
72
|
+
@apply --cmlx-extra-large;
|
|
103
73
|
}
|
|
104
74
|
}
|
|
105
75
|
</style>
|