@shortfuse/materialdesignweb 0.7.1-0 → 0.7.1-1
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/bin/generate-css.js +1 -2
- package/components/Badge.js +40 -3
- package/components/Body.js +16 -2
- package/components/BottomAppBar.js +25 -2
- package/components/Box.js +33 -3
- package/components/Button.js +146 -9
- package/components/Card.js +111 -3
- package/components/Checkbox.js +91 -3
- package/components/CheckboxIcon.js +92 -4
- package/components/Chip.js +38 -2
- package/components/Dialog.js +237 -3
- package/components/DialogActions.js +3 -2
- package/components/Divider.js +44 -3
- package/components/ExtendedFab.js +27 -2
- package/components/Fab.js +26 -2
- package/components/FilterChip.js +83 -2
- package/components/Headline.js +16 -2
- package/components/Icon.js +80 -4
- package/components/IconButton.js +153 -2
- package/components/Label.js +16 -2
- package/components/Layout.js +21 -3
- package/components/List.js +15 -2
- package/components/ListItem.js +229 -3
- package/components/ListOption.js +37 -3
- package/components/ListSelect.js +12 -2
- package/components/Menu.js +173 -3
- package/components/MenuItem.js +55 -2
- package/components/Nav.js +19 -2
- package/components/NavBar.js +37 -2
- package/components/NavBarItem.js +44 -2
- package/components/NavDrawer.js +34 -2
- package/components/NavDrawerItem.js +44 -2
- package/components/NavItem.js +183 -3
- package/components/NavRail.js +50 -2
- package/components/NavRailItem.js +25 -2
- package/components/Pane.js +263 -3
- package/components/Progress.js +469 -10
- package/components/Radio.js +97 -3
- package/components/RadioIcon.js +77 -5
- package/components/Ripple.js +76 -3
- package/components/SegmentedButton.js +97 -2
- package/components/SegmentedButtonGroup.js +15 -2
- package/components/Select.js +54 -2
- package/components/Shape.js +55 -18
- package/components/Slider.js +309 -3
- package/components/Snackbar.js +82 -2
- package/components/Surface.js +13 -4
- package/components/Switch.js +67 -4
- package/components/SwitchIcon.js +272 -5
- package/components/Tab.js +87 -3
- package/components/TabContent.js +21 -21
- package/components/TabList.js +131 -2
- package/components/TextArea.js +97 -3
- package/components/Title.js +16 -2
- package/components/Tooltip.js +42 -2
- package/components/TopAppBar.js +212 -3
- package/core/template.js +36 -9
- package/mixins/ControlMixin.js +65 -2
- package/mixins/DensityMixin.js +17 -3
- package/mixins/FlexableMixin.js +81 -3
- package/mixins/RippleMixin.js +15 -4
- package/mixins/ShapeMixin.js +279 -8
- package/mixins/StateMixin.js +87 -5
- package/mixins/SurfaceMixin.js +152 -3
- package/mixins/TextFieldMixin.js +661 -2
- package/mixins/ThemableMixin.js +206 -3
- package/mixins/TooltipTriggerMixin.js +30 -4
- package/mixins/TouchTargetMixin.js +29 -4
- package/package.json +2 -1
- package/theming/loader.js +0 -2
- package/components/Badge.css +0 -38
- package/components/Body.css +0 -14
- package/components/BottomAppBar.css +0 -23
- package/components/Box.css +0 -31
- package/components/Button.css +0 -147
- package/components/Card.css +0 -109
- package/components/Checkbox.css +0 -89
- package/components/CheckboxIcon.css +0 -90
- package/components/Chip.css +0 -35
- package/components/Dialog.css +0 -235
- package/components/Divider.css +0 -41
- package/components/ExtendedFab.css +0 -24
- package/components/Fab.css +0 -23
- package/components/FilterChip.css +0 -80
- package/components/Headline.css +0 -14
- package/components/Icon.css +0 -76
- package/components/IconButton.css +0 -150
- package/components/Label.css +0 -14
- package/components/Layout.css +0 -19
- package/components/List.css +0 -12
- package/components/ListItem.css +0 -224
- package/components/ListOption.css +0 -34
- package/components/ListSelect.css +0 -9
- package/components/Menu.css +0 -171
- package/components/MenuItem.css +0 -53
- package/components/Nav.css +0 -17
- package/components/NavBar.css +0 -34
- package/components/NavBarItem.css +0 -41
- package/components/NavDrawer.css +0 -31
- package/components/NavDrawerItem.css +0 -42
- package/components/NavItem.css +0 -181
- package/components/NavRail.css +0 -47
- package/components/NavRailItem.css +0 -25
- package/components/Outline.css +0 -138
- package/components/Pane.css +0 -261
- package/components/Progress.css +0 -75
- package/components/ProgressCircle.css +0 -226
- package/components/ProgressLine.css +0 -155
- package/components/Radio.css +0 -95
- package/components/RadioIcon.css +0 -73
- package/components/Ripple.css +0 -74
- package/components/SegmentedButton.css +0 -94
- package/components/SegmentedButtonGroup.css +0 -12
- package/components/Select.css +0 -52
- package/components/Shape.css +0 -132
- package/components/Slider.css +0 -307
- package/components/Snackbar.css +0 -80
- package/components/Surface.css +0 -10
- package/components/Switch.css +0 -64
- package/components/SwitchIcon.css +0 -178
- package/components/SwitchIconAnimations.css +0 -89
- package/components/Tab.css +0 -85
- package/components/TabList.css +0 -129
- package/components/TextArea.css +0 -93
- package/components/Title.css +0 -14
- package/components/Tooltip.css +0 -40
- package/components/TopAppBar.css +0 -209
- package/mixins/ControlMixin.css +0 -57
- package/mixins/DensityMixin.css +0 -40
- package/mixins/FlexableMixin.css +0 -79
- package/mixins/RippleMixin.css +0 -12
- package/mixins/ShapeMixin.css +0 -135
- package/mixins/StateMixin.css +0 -82
- package/mixins/SurfaceMixin.css +0 -150
- package/mixins/TextFieldMixin.css +0 -657
- package/mixins/ThemableMixin.css +0 -204
- package/mixins/TooltipTriggerMixin.css +0 -27
- package/mixins/TouchTargetMixin.css +0 -26
|
@@ -1,657 +0,0 @@
|
|
|
1
|
-
/* https://m3.material.io/components/text-fields/specs */
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* States: Enabled / Hover / Focus / Error / Error Hover / Error Focus
|
|
5
|
-
* Input: on-surface / on-surface / on-surface / on-surface / on-surface / on-surface
|
|
6
|
-
* Inline: on-surface-variant / on-surface-variant / on-surface-variant / on-surface-variant / on-surface-variant / on-surface-variant
|
|
7
|
-
* Label: on-surface-variant / on-surface* / ink / error / on-error-container / error
|
|
8
|
-
* Indicator: on-surface-variant / on-surface / ink / error / on-error-container / error
|
|
9
|
-
* Caret: (any) / (any) / ink / (any) / (any) / error
|
|
10
|
-
* Outline: outline / on-surface / ink / error / on-error-container / error
|
|
11
|
-
* Selection: on-* / on-* / ink / error / on-error-container / error
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* *Filled hovered unpopulated label may be on-surface-variant instead
|
|
15
|
-
*
|
|
16
|
-
* Input: Always on-surface
|
|
17
|
-
* Inline: Always on-surface-variant
|
|
18
|
-
* Indicator: same as label
|
|
19
|
-
* Label: same as indicator
|
|
20
|
-
* Outline: outline default, same as label+indicator on :hover or :focus
|
|
21
|
-
* Caret: same as label+indicator+outline (cannot inherit color or use currentColor)
|
|
22
|
-
* Selection: (cannot inherit color or use currentColor)
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
:host {
|
|
26
|
-
--mdw-shape__size: var(--mdw-shape__extra-small);
|
|
27
|
-
/* --mdw-shape__size: 8px; */
|
|
28
|
-
/* --mdw-shape__size__bottom-start-size: var(--mdw-shape__size); */
|
|
29
|
-
/* --mdw-shape__size__bottom-end-size: var(--mdw-shape__size); */
|
|
30
|
-
--mdw-text-field__ratio: calc(var(--mdw-density) * 0.125 + 1);
|
|
31
|
-
|
|
32
|
-
--control__margin-top: calc(var(--mdw-typescale__body-small__line-height) / 2);
|
|
33
|
-
--control__padding-top: calc((var(--mdw-text-field__ratio) * 16px) - calc(var(--mdw-typescale__body-small__line-height) / 2));
|
|
34
|
-
--control__padding-bottom: calc(var(--mdw-text-field__ratio) * 16px);
|
|
35
|
-
--control__margin-bottom: 0px;
|
|
36
|
-
|
|
37
|
-
--inline-color: rgb(var(--mdw-color__on-surface-variant));
|
|
38
|
-
|
|
39
|
-
--descriptor-opacity: 0.5;
|
|
40
|
-
--mdw-ink: var(--mdw-color__primary);
|
|
41
|
-
--mdw-bg: var(--mdw-color__surface-variant);
|
|
42
|
-
|
|
43
|
-
--mdw-type__font: var(--mdw-typescale__body-large__font);
|
|
44
|
-
--mdw-type__letter-spacing: var(--mdw-typescale__body-large__letter-spacing);
|
|
45
|
-
|
|
46
|
-
display: inline-block;
|
|
47
|
-
|
|
48
|
-
/* State layer */
|
|
49
|
-
color: rgb(var(--mdw-color__on-surface));
|
|
50
|
-
|
|
51
|
-
font: var(--mdw-type__font);
|
|
52
|
-
letter-spacing: var(--mdw-type__letter-spacing);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:host([icon]) {
|
|
56
|
-
--padding-inline-start: 12px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:host([trailing-icon]) {
|
|
60
|
-
--padding-inline-end: 12px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host(:is([color], [ink])) {
|
|
64
|
-
background-color: transparent;
|
|
65
|
-
color: rgb(var(--mdw-color__on-surface));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
#label {
|
|
69
|
-
position: relative;
|
|
70
|
-
|
|
71
|
-
display: flex;
|
|
72
|
-
|
|
73
|
-
align-items: center;
|
|
74
|
-
overflow: visible;
|
|
75
|
-
|
|
76
|
-
padding-inline-start: 16px;
|
|
77
|
-
padding-inline-end: 16px;
|
|
78
|
-
|
|
79
|
-
cursor: inherit;
|
|
80
|
-
|
|
81
|
-
z-index: 0;
|
|
82
|
-
|
|
83
|
-
background-color: transparent;
|
|
84
|
-
|
|
85
|
-
font-weight: inherit;
|
|
86
|
-
font-size: inherit;
|
|
87
|
-
line-height: inherit;
|
|
88
|
-
font-family: inherit;
|
|
89
|
-
letter-spacing: inherit;
|
|
90
|
-
|
|
91
|
-
transition: none 200ms cubic-bezier(0.0, 0.0, 0.2, 1);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
#label:is([filled],[color]) {
|
|
95
|
-
background-color: rgb(var(--mdw-bg));
|
|
96
|
-
color: rgb(var(--mdw-color__on-surface));
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
#label[outlined] {
|
|
100
|
-
background-color: transparent;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
#label-text,
|
|
104
|
-
#indicator {
|
|
105
|
-
color: rgb(var(--mdw-color__on-surface-variant))
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:is(#label-text, #indicator)[focused] {
|
|
109
|
-
color: rgb(var(--mdw-ink))
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
#label[icon] {
|
|
113
|
-
padding-inline-start: 12px;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
#label[trailing-icon] {
|
|
117
|
-
padding-inline-end: 12px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
#label[focused] {
|
|
121
|
-
transition: none 100ms cubic-bezier(0.4, 0.0, 1, 1);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
#prefix,
|
|
125
|
-
#suffix,
|
|
126
|
-
#control::placeholder {
|
|
127
|
-
opacity: var(--descriptor-opacity);
|
|
128
|
-
|
|
129
|
-
color: var(--inline-color);
|
|
130
|
-
|
|
131
|
-
transition-duration: inherit;
|
|
132
|
-
transition-property: opacity;
|
|
133
|
-
transition-timing-function: inherit;
|
|
134
|
-
will-change: opacity;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
:host([label]:is([filled],[outlined])) {
|
|
138
|
-
--descriptor-opacity: 0;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
#control {
|
|
142
|
-
position: relative;
|
|
143
|
-
inset: auto;
|
|
144
|
-
align-self: flex-start;
|
|
145
|
-
|
|
146
|
-
display: inline;
|
|
147
|
-
|
|
148
|
-
box-sizing: border-box;
|
|
149
|
-
|
|
150
|
-
block-size: auto;
|
|
151
|
-
min-block-size: none;
|
|
152
|
-
inline-size: 100%;
|
|
153
|
-
min-inline-size: none;
|
|
154
|
-
flex: 1;
|
|
155
|
-
border-block-start: solid var(--control__margin-top) transparent;
|
|
156
|
-
border-block-end: solid var(--control__margin-bottom) transparent;
|
|
157
|
-
padding-block: var(--control__padding-top) var(--control__padding-bottom);
|
|
158
|
-
|
|
159
|
-
appearance: none;
|
|
160
|
-
caret-color: rgb(var(--mdw-ink));
|
|
161
|
-
cursor: auto;
|
|
162
|
-
|
|
163
|
-
transform: none;
|
|
164
|
-
|
|
165
|
-
visibility: visible;
|
|
166
|
-
|
|
167
|
-
background-color: transparent;
|
|
168
|
-
border-color: transparent;
|
|
169
|
-
color: inherit;
|
|
170
|
-
/* rgb(var(--mdw-color__on-surface)); */
|
|
171
|
-
|
|
172
|
-
font-weight: inherit;
|
|
173
|
-
font-size: inherit;
|
|
174
|
-
line-height: inherit;
|
|
175
|
-
font-family: inherit;
|
|
176
|
-
letter-spacing: inherit;
|
|
177
|
-
|
|
178
|
-
transition-duration: inherit;
|
|
179
|
-
transition-property: color;
|
|
180
|
-
transition-timing-function: inherit;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
#suffix,
|
|
184
|
-
#prefix {
|
|
185
|
-
/* Symmetrical to allow centering */
|
|
186
|
-
margin-block: var(--control__margin-top) var(--control__margin-bottom);
|
|
187
|
-
padding-block: var(--control__padding-top) var(--control__padding-bottom);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
191
|
-
#control::selection {
|
|
192
|
-
background-color: rgb(var(--mdw-ink));
|
|
193
|
-
color: rgb(var(--mdw-color__surface));
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
#state {
|
|
197
|
-
--mdw-state__focus-opacity: 0;
|
|
198
|
-
--mdw-state__pressed-opacity: 0;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
mdw-icon {
|
|
202
|
-
--mdw-icon__size: 24px;
|
|
203
|
-
align-self: center;
|
|
204
|
-
|
|
205
|
-
color: var(--inline-color);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
#icon {
|
|
209
|
-
order: -2;
|
|
210
|
-
|
|
211
|
-
margin-inline-end: 16px;
|
|
212
|
-
|
|
213
|
-
font-size: 24px;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
#prefix {
|
|
217
|
-
order: -1;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
#suffix {
|
|
221
|
-
order: 1;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
#trailing-icon {
|
|
225
|
-
order: 2;
|
|
226
|
-
|
|
227
|
-
margin-inline-start: 16px;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
#indicator {
|
|
231
|
-
position: absolute;
|
|
232
|
-
inset-block-end: 0;
|
|
233
|
-
inset-inline: 0;
|
|
234
|
-
|
|
235
|
-
border-block-end: 2px solid currentColor;
|
|
236
|
-
|
|
237
|
-
pointer-events: none;
|
|
238
|
-
|
|
239
|
-
transform: scaleY(0.5);
|
|
240
|
-
z-index: 1; /* Force new layer to avoid repaint */
|
|
241
|
-
|
|
242
|
-
transition-duration: inherit;
|
|
243
|
-
transition-property: transform;
|
|
244
|
-
transition-timing-function: inherit;
|
|
245
|
-
will-change: transform;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
#indicator[focused] {
|
|
249
|
-
transform: scaleY(1);
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/** Label Text **/
|
|
254
|
-
|
|
255
|
-
#label-text {
|
|
256
|
-
position: absolute;
|
|
257
|
-
inset-block-start: 0;
|
|
258
|
-
inset-inline: 0;
|
|
259
|
-
|
|
260
|
-
display: block;
|
|
261
|
-
overflow-x: clip;
|
|
262
|
-
overflow-y: visible;
|
|
263
|
-
|
|
264
|
-
padding-inline: 16px;
|
|
265
|
-
|
|
266
|
-
pointer-events: none;
|
|
267
|
-
|
|
268
|
-
opacity: 1;
|
|
269
|
-
transform: translateY(calc((var(--control__margin-top) + var(--control__padding-top) + 100% + var(--control__padding-bottom) + var(--control__margin-bottom)) / 2)) translateY(-50%);
|
|
270
|
-
z-index: 4;
|
|
271
|
-
/* FireFox bug */
|
|
272
|
-
|
|
273
|
-
color: rgb(var(--mdw-color__on-surface-variant));
|
|
274
|
-
|
|
275
|
-
text-overflow: ellipsis;
|
|
276
|
-
white-space: nowrap;
|
|
277
|
-
|
|
278
|
-
transition-duration: 200ms;
|
|
279
|
-
transition-property: inset-inline-start, font-size, transform;
|
|
280
|
-
/* transition-timing-function: inherit; */
|
|
281
|
-
/*Expand*/
|
|
282
|
-
|
|
283
|
-
will-change: inset-inline-start, font-size, transform;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
@supports (-moz-appearance:none ) {
|
|
287
|
-
#label-text {
|
|
288
|
-
/* Firefox clips Y as well as X */
|
|
289
|
-
overflow-x: hidden;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
#label-text[focused] {
|
|
294
|
-
color: rgb(var(--mdw-ink));
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
#label-text[icon] {
|
|
298
|
-
inset-inline-start: calc(12px + 24px);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
#label-text[trailing-icon] {
|
|
302
|
-
inset-inline-end: calc(24px + 12px);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
#label-text:is([focused], [populated]) {
|
|
306
|
-
transform: translateY(calc(var(--mdw-text-field__ratio) * 8px));
|
|
307
|
-
|
|
308
|
-
font: var(--mdw-typescale__body-small__font);
|
|
309
|
-
/* Not spec: Should only use font-size and line-height */
|
|
310
|
-
letter-spacing: var(--mdw-typescale__body-small__letter-spacing);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
#label-text[outlined]:is([focused], [populated]) {
|
|
314
|
-
inset-inline: 0;
|
|
315
|
-
|
|
316
|
-
transform: translateY(-50%);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
#label[label][outlined] {
|
|
320
|
-
/** Guard against bleed */
|
|
321
|
-
--mdw-shape__size__top-start-size: min(var(--mdw-shape__size), 12px);
|
|
322
|
-
--mdw-shape__size__bottom-start-size: min(var(--mdw-shape__size), 12px);
|
|
323
|
-
--mdw-shape__size__top-end-size: min(var(--mdw-shape__size), 12px);
|
|
324
|
-
--mdw-shape__size__bottom-end-size: min(var(--mdw-shape__size), 12px);
|
|
325
|
-
-webkit-mask-box-image-width: min(var(--mdw-shape__size), 12px);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
:is(#prefix, #suffix):is([focused], [populated]) {
|
|
329
|
-
opacity: 1;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/* If no label */
|
|
333
|
-
#control:is(:focus, :not(:placeholder-shown))::placeholder {
|
|
334
|
-
opacity: 0.70;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
#control[input-suffix] {
|
|
338
|
-
text-align: end;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/** Outlined **/
|
|
342
|
-
|
|
343
|
-
#outline::before {
|
|
344
|
-
content: none;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.outline-section {
|
|
348
|
-
position: relative;
|
|
349
|
-
|
|
350
|
-
border: 1px solid currentColor;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.outline-section[focused] {
|
|
354
|
-
border-width: 2px;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
#outline-left {
|
|
358
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
359
|
-
border-right-width: 0;
|
|
360
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
361
|
-
border-top-left-radius: inherit;
|
|
362
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
363
|
-
border-bottom-left-radius: inherit;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
#outline-right {
|
|
367
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
368
|
-
border-left-width: 0;
|
|
369
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
370
|
-
border-top-right-radius: inherit;
|
|
371
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
372
|
-
border-bottom-right-radius: inherit;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
#outline {
|
|
376
|
-
display: grid;
|
|
377
|
-
grid-auto-flow: column;
|
|
378
|
-
grid-template-columns: 12px minmax(0,auto) minmax(12px, 1fr);
|
|
379
|
-
|
|
380
|
-
color: rgb(var(--mdw-color__outline));
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
#outline[hovered] {
|
|
386
|
-
color: rgb(var(--mdw-color__on-surface));
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
#outline[focused] {
|
|
390
|
-
color: rgb(var(--mdw-ink));
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.outline-section {
|
|
394
|
-
min-inline-size: 12px;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.outline-section::before,
|
|
398
|
-
.outline-section::after {
|
|
399
|
-
max-inline-size: none;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.outline-left {
|
|
403
|
-
grid-column: calc(2 - var(--mdw-dir, 1)) / span 1; /* 1 on LTR, 3 on RTL */
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.outline-right {
|
|
407
|
-
grid-column: calc(2 + var(--mdw-dir, 1)) / span 1;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
#gap {
|
|
411
|
-
position: relative;
|
|
412
|
-
|
|
413
|
-
display: inline-block;
|
|
414
|
-
overflow: clip hidden;
|
|
415
|
-
|
|
416
|
-
max-inline-size: 100%;
|
|
417
|
-
grid-column: 2;
|
|
418
|
-
|
|
419
|
-
font: var(--mdw-typescale__body-small__font);
|
|
420
|
-
/* Not spec: Should only use font-size and line-height */
|
|
421
|
-
letter-spacing: var(--mdw-typescale__body-small__letter-spacing);
|
|
422
|
-
|
|
423
|
-
/* Close gap */
|
|
424
|
-
transition-duration: inherit;
|
|
425
|
-
transition-property: padding;
|
|
426
|
-
transition-timing-function: inherit;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
#gap-label {
|
|
430
|
-
display: inline-block;
|
|
431
|
-
overflow: clip hidden;
|
|
432
|
-
|
|
433
|
-
padding-inline: 4px;
|
|
434
|
-
|
|
435
|
-
color:transparent;
|
|
436
|
-
|
|
437
|
-
white-space: nowrap;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
#gap::after {
|
|
441
|
-
content: '';
|
|
442
|
-
|
|
443
|
-
position: absolute;
|
|
444
|
-
inset: 0;
|
|
445
|
-
|
|
446
|
-
border-block-end: solid 1px currentColor;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
#gap[focused]::after {
|
|
450
|
-
border-block-end-width: 2px;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
#gap-slot {
|
|
454
|
-
position: absolute;
|
|
455
|
-
inset: 0;
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
#gap-slot::before,
|
|
460
|
-
#gap-slot::after {
|
|
461
|
-
content: '';
|
|
462
|
-
|
|
463
|
-
position: absolute;
|
|
464
|
-
inset: 0;
|
|
465
|
-
|
|
466
|
-
border-block-start: solid 1px currentColor;
|
|
467
|
-
|
|
468
|
-
transition: transform 200ms;
|
|
469
|
-
will-change: transform;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
#gap-slot[focused]::before,
|
|
473
|
-
#gap-slot[focused]::after {
|
|
474
|
-
border-block-start-width: 2px;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
@supports(-webkit-mask-box-image: none) {
|
|
478
|
-
#outline[focused] {
|
|
479
|
-
/** Fake 2px outline */
|
|
480
|
-
filter:
|
|
481
|
-
drop-shadow(1px 0px 0px currentColor)
|
|
482
|
-
drop-shadow(0px 1px 0px currentColor)
|
|
483
|
-
drop-shadow(-1px 0px 0px currentColor)
|
|
484
|
-
drop-shadow(0px -1px 0px currentColor);
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
#outline::before {
|
|
488
|
-
content: '';
|
|
489
|
-
|
|
490
|
-
position: absolute;
|
|
491
|
-
inset: 0;
|
|
492
|
-
|
|
493
|
-
grid-column: calc(2 - var(--mdw-dir, 1)) / span 1;
|
|
494
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
495
|
-
margin-right: -0.99px;
|
|
496
|
-
border: none;
|
|
497
|
-
|
|
498
|
-
background-color: currentColor;
|
|
499
|
-
-webkit-mask-box-image: var(--mdw-shape__mask-image__edges)
|
|
500
|
-
8 fill /
|
|
501
|
-
auto
|
|
502
|
-
stretch;
|
|
503
|
-
-webkit-mask-box-image-width: auto 0 auto auto;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
#outline::after {
|
|
507
|
-
grid-column: calc(2 + var(--mdw-dir, 1)) / span 1;
|
|
508
|
-
grid-row: 1;
|
|
509
|
-
|
|
510
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
511
|
-
margin-left: -0.99px;
|
|
512
|
-
-webkit-mask-box-image-width: auto auto auto 0;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.outline-section {
|
|
516
|
-
border: none;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
#gap::after {
|
|
520
|
-
border: none;
|
|
521
|
-
|
|
522
|
-
background-color: currentColor;
|
|
523
|
-
-webkit-mask-box-image: var(--mdw-shape__mask-image__edges)
|
|
524
|
-
8 fill /
|
|
525
|
-
auto
|
|
526
|
-
stretch;
|
|
527
|
-
-webkit-mask-box-image-width: 0 0 auto 0;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
#gap-slot::before,
|
|
531
|
-
#gap-slot::after {
|
|
532
|
-
border: none;
|
|
533
|
-
|
|
534
|
-
background-color: currentColor;
|
|
535
|
-
|
|
536
|
-
-webkit-mask-box-image: var(--mdw-shape__mask-image__edges)
|
|
537
|
-
8 fill /
|
|
538
|
-
auto
|
|
539
|
-
stretch;
|
|
540
|
-
-webkit-mask-box-image-width: auto 0 0 0;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
#gap-slot::before {
|
|
545
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
546
|
-
margin-right: -0.99px;
|
|
547
|
-
|
|
548
|
-
transform: var(--gap-transform, scaleX(0.5));
|
|
549
|
-
transform-origin: 0 0;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
#gap-slot::after {
|
|
553
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
554
|
-
margin-left: -0.99px;
|
|
555
|
-
|
|
556
|
-
transform: var(--gap-transform, scaleX(0.5));
|
|
557
|
-
transform-origin: 100% 0;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
#gap:is([focused], [populated]) {
|
|
561
|
-
/* Open gap */
|
|
562
|
-
--gap-transform: scaleX(0);
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
#gap:empty {
|
|
566
|
-
padding: 0;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
#label[label][filled] {
|
|
570
|
-
align-items: flex-start;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
:host([filled]) {
|
|
574
|
-
--mdw-shape__size__bottom-start-size: 0px;
|
|
575
|
-
--mdw-shape__size__bottom-end-size: 0px;
|
|
576
|
-
--mdw-text-field__ratio: calc(var(--mdw-density) * 0.25 + 1);
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
:host(:is([filled][label])) {
|
|
580
|
-
--control__margin-top: calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));
|
|
581
|
-
--control__padding-top: 0px;
|
|
582
|
-
--control__padding-bottom: calc(var(--mdw-text-field__ratio) * 4px);
|
|
583
|
-
--control__margin-bottom: calc(var(--mdw-text-field__ratio) * 4px);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
#supporting {
|
|
587
|
-
min-block-size: var(--mdw-typescale__body-small__line-height);
|
|
588
|
-
margin-block-start: 4px;
|
|
589
|
-
margin-inline: 16px;
|
|
590
|
-
|
|
591
|
-
font-weight: var(--mdw-typescale__body-small__font-weight); /* Not spec */
|
|
592
|
-
font-size: var(--mdw-typescale__body-small__font-size);
|
|
593
|
-
line-height: var(--mdw-typescale__body-small__line-height);
|
|
594
|
-
font-family: var(--mdw-typescale__body-small__font-family); /* Not spec */
|
|
595
|
-
letter-spacing: var(--mdw-typescale__body-small__letter-spacing); /* Not spec */
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
/* Error States */
|
|
599
|
-
|
|
600
|
-
#control[errored] {
|
|
601
|
-
caret-color: rgb(var(--mdw-color__error));
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
#control[errored]::selection {
|
|
605
|
-
background-color: rgb(var(--mdw-color__on-error-container));
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
:is(#indicator, #label-text, #supporting, #outline)[errored] {
|
|
609
|
-
color: rgb(var(--mdw-color__error));
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
:is(#indicator, #label-text, #supporting, #outline)[errored]:where([hovered]) {
|
|
613
|
-
color: rgb(var(--mdw-color__on-error-container));
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
:is(#indicator, #label-text, #supporting, #outline)[errored]:where([focused]) {
|
|
617
|
-
color: rgb(var(--mdw-color__error));
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
/* stylelint-disable-next-line selector-max-compound-selectors */
|
|
621
|
-
#label[disabled],
|
|
622
|
-
#label[disabled] #control {
|
|
623
|
-
cursor: not-allowed;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
#outline[disabled] {
|
|
627
|
-
color: rgba(var(--mdw-color__outline), 0.12);
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
#label-text[disabled] {
|
|
631
|
-
color: rgba(var(--mdw-color__on-surface), 0.38);
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
#supporting[disabled] {
|
|
635
|
-
color: rgba(var(--mdw-color__on-surface), 0.38);
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
.inline[disabled] {
|
|
639
|
-
color: rgba(var(--mdw-color__on-surface), 0.38);
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
mdw-icon[disabled] {
|
|
643
|
-
color: rgba(var(--mdw-color__on-surface), 0.38);
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
#label[disabled] {
|
|
647
|
-
background-color: rgba(var(--mdw-color__on-surface), calc(0.04));
|
|
648
|
-
color: rgba(var(--mdw-color__on-surface), 0.38);
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
#indicator[disabled] {
|
|
652
|
-
color: rgba(var(--mdw-color__on-surface), 0.38);
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
#label[disabled][outlined] {
|
|
656
|
-
background-color: transparent;
|
|
657
|
-
}
|