m3-svelte 4.0.0-beta.1 → 4.0.0-beta.3
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.
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
gap: 0.25rem;
|
|
37
37
|
}
|
|
38
38
|
&.expanded {
|
|
39
|
-
padding-
|
|
39
|
+
padding-block: 1.25rem;
|
|
40
40
|
min-width: 13.75rem;
|
|
41
41
|
max-width: 22.5rem;
|
|
42
42
|
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
@media (100rem <= width) {
|
|
62
62
|
/* Expanded */
|
|
63
63
|
flex-direction: column;
|
|
64
|
-
padding-
|
|
64
|
+
padding-block: 1.25rem;
|
|
65
65
|
min-width: 13.75rem;
|
|
66
66
|
max-width: 22.5rem;
|
|
67
67
|
}
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
<button
|
|
21
21
|
onclick={click}
|
|
22
22
|
class="m3-container m3-font-label-medium {variant}"
|
|
23
|
-
|
|
23
|
+
disabled={selected}
|
|
24
24
|
{...extra}
|
|
25
25
|
>
|
|
26
|
-
<div class="content">
|
|
26
|
+
<div class="content" class:selected>
|
|
27
27
|
<Layer />
|
|
28
28
|
<div class="icon">
|
|
29
29
|
<Icon {icon} width="1.5rem" height="1.5rem" />
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
transition: all var(--m3-util-easing);
|
|
58
58
|
&:is(.compact .content, .large .content) {
|
|
59
59
|
flex-direction: column;
|
|
60
|
+
text-align: center;
|
|
60
61
|
&.selected {
|
|
61
62
|
color: rgb(var(--m3-scheme-secondary));
|
|
62
63
|
> .icon {
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
}
|
|
140
141
|
&.large {
|
|
141
142
|
flex-direction: column;
|
|
142
|
-
height: 4rem;
|
|
143
|
+
min-height: 4rem;
|
|
143
144
|
padding-block: 0.375rem;
|
|
144
145
|
}
|
|
145
146
|
&.expanded {
|
|
@@ -161,6 +162,7 @@
|
|
|
161
162
|
|
|
162
163
|
.content {
|
|
163
164
|
flex-direction: column;
|
|
165
|
+
text-align: center;
|
|
164
166
|
|
|
165
167
|
&.selected {
|
|
166
168
|
color: rgb(var(--m3-scheme-secondary));
|
|
@@ -218,7 +220,8 @@
|
|
|
218
220
|
@media (52.5rem <= width < 100rem) {
|
|
219
221
|
/* Large */
|
|
220
222
|
flex-direction: column;
|
|
221
|
-
|
|
223
|
+
text-align: center;
|
|
224
|
+
min-height: 4rem;
|
|
222
225
|
padding-block: 0.375rem;
|
|
223
226
|
|
|
224
227
|
.content {
|