material_components_web-sass 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/material_components_web/sass/version.rb +1 -1
- data/vendor/assets/javascripts/material-components-web.js +138 -143
- data/vendor/assets/stylesheets/@material/button/_mixins.scss +16 -5
- data/vendor/assets/stylesheets/@material/button/_variables.scss +2 -0
- data/vendor/assets/stylesheets/@material/dialog/mdc-dialog.scss +1 -1
- data/vendor/assets/stylesheets/@material/elevation/_mixins.scss +27 -8
- data/vendor/assets/stylesheets/@material/elevation/_variables.scss +4 -3
- data/vendor/assets/stylesheets/@material/fab/_mixins.scss +3 -4
- data/vendor/assets/stylesheets/@material/linear-progress/_mixins.scss +52 -0
- data/vendor/assets/stylesheets/@material/linear-progress/_variables.scss +15 -0
- data/vendor/assets/stylesheets/@material/linear-progress/mdc-linear-progress.scss +5 -11
- data/vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss +1 -0
- data/vendor/assets/stylesheets/@material/slider/_keyframes.scss +30 -0
- data/vendor/assets/stylesheets/@material/slider/_mixins.scss +129 -0
- data/vendor/assets/stylesheets/@material/slider/_variables.scss +2 -0
- data/vendor/assets/stylesheets/@material/slider/mdc-slider.scss +21 -121
- data/vendor/assets/stylesheets/@material/snackbar/mdc-snackbar.scss +8 -0
- data/vendor/assets/stylesheets/@material/textfield/_mixins.scss +2 -2
- data/vendor/assets/stylesheets/@material/textfield/_variables.scss +27 -27
- data/vendor/assets/stylesheets/@material/textfield/{mdc-textfield.scss → mdc-text-field.scss} +165 -165
- data/vendor/assets/stylesheets/@material/theme/_functions.scss +19 -5
- data/vendor/assets/stylesheets/@material/theme/_variables.scss +8 -8
- data/vendor/assets/stylesheets/_material-components-web.scss +1 -1
- metadata +7 -3
@@ -17,29 +17,34 @@
|
|
17
17
|
@import "@material/theme/mixins";
|
18
18
|
@import "@material/typography/mixins";
|
19
19
|
@import "@material/rtl/mixins";
|
20
|
+
@import "./keyframes";
|
21
|
+
@import "./mixins";
|
20
22
|
@import "./variables";
|
21
23
|
|
22
|
-
$mdc-slider-main-grey: #bdbdbd;
|
23
|
-
$mdc-slider-dark-theme-grey: #5c5c5c;
|
24
|
-
|
25
24
|
// postcss-bem-linter: define slider
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
animation-timing-function: ease-out;
|
30
|
-
}
|
26
|
+
.mdc-slider {
|
27
|
+
@include mdc-slider-color-accessible(secondary);
|
31
28
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
29
|
+
&--disabled {
|
30
|
+
$light-color: #9a9a9a;
|
31
|
+
$dark-color: #787878;
|
36
32
|
|
37
|
-
|
38
|
-
|
33
|
+
@include mdc-slider-highlight-color_($light-color);
|
34
|
+
@include mdc-slider-rail-color_($light-color);
|
35
|
+
@include mdc-slider-rail-tick-mark-color_($light-color);
|
36
|
+
@include mdc-slider-thumb-color_($light-color);
|
37
|
+
@include mdc-slider-thumb-stroke-cutout_($mdc-slider-default-assumed-bg-color);
|
38
|
+
|
39
|
+
@include mdc-theme-dark(".mdc-slider", true) {
|
40
|
+
@include mdc-slider-highlight-color_($dark-color);
|
41
|
+
@include mdc-slider-rail-color_($dark-color);
|
42
|
+
@include mdc-slider-rail-tick-mark-color_($dark-color);
|
43
|
+
@include mdc-slider-thumb-color_($dark-color);
|
44
|
+
@include mdc-slider-thumb-stroke-cutout_($mdc-slider-dark-theme-assumed-bg-color);
|
45
|
+
}
|
39
46
|
}
|
40
|
-
}
|
41
47
|
|
42
|
-
.mdc-slider {
|
43
48
|
position: relative;
|
44
49
|
width: 100%;
|
45
50
|
height: 48px;
|
@@ -56,17 +61,10 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
|
|
56
61
|
top: 50%;
|
57
62
|
width: 100%;
|
58
63
|
height: 2px;
|
59
|
-
background-color: $mdc-slider-main-grey;
|
60
64
|
overflow: hidden;
|
61
|
-
|
62
|
-
@include mdc-theme-dark(".mdc-slider") {
|
63
|
-
background-color: $mdc-slider-dark-theme-grey;
|
64
|
-
}
|
65
65
|
}
|
66
66
|
|
67
67
|
&__track {
|
68
|
-
@include mdc-theme-prop(background-color, primary);
|
69
|
-
|
70
68
|
position: absolute;
|
71
69
|
width: 100%;
|
72
70
|
height: 100%;
|
@@ -89,16 +87,12 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
|
|
89
87
|
margin-left: 0;
|
90
88
|
}
|
91
89
|
|
90
|
+
// Last marker at the very end of the slider (right-most in LTR, left-most in RTL)
|
92
91
|
&::after {
|
93
92
|
display: block;
|
94
93
|
width: 2px;
|
95
94
|
height: 2px;
|
96
|
-
background-color: $mdc-slider-dark-theme-grey;
|
97
95
|
content: "";
|
98
|
-
|
99
|
-
@include mdc-theme-dark(".mdc-slider", true) {
|
100
|
-
background-color: $mdc-slider-main-grey;
|
101
|
-
}
|
102
96
|
}
|
103
97
|
}
|
104
98
|
|
@@ -109,12 +103,7 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
|
|
109
103
|
display: block;
|
110
104
|
width: 2px;
|
111
105
|
height: 2px;
|
112
|
-
background-color: $mdc-slider-dark-theme-grey;
|
113
106
|
content: "";
|
114
|
-
|
115
|
-
@include mdc-theme-dark(".mdc-slider", true) {
|
116
|
-
background-color: $mdc-slider-main-grey;
|
117
|
-
}
|
118
107
|
}
|
119
108
|
|
120
109
|
&:first-child::after {
|
@@ -135,9 +124,6 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
|
|
135
124
|
}
|
136
125
|
|
137
126
|
&__thumb {
|
138
|
-
@include mdc-theme-prop(fill, primary);
|
139
|
-
@include mdc-theme-prop(stroke, primary);
|
140
|
-
|
141
127
|
position: absolute;
|
142
128
|
top: 0;
|
143
129
|
left: 0;
|
@@ -147,8 +133,6 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
|
|
147
133
|
}
|
148
134
|
|
149
135
|
&__focus-ring {
|
150
|
-
@include mdc-theme-prop(background-color, primary);
|
151
|
-
|
152
136
|
width: 21px;
|
153
137
|
height: 21px;
|
154
138
|
transition: transform 266.67ms ease-out, opacity 266.67ms ease-out, background-color 266.67ms ease-out;
|
@@ -157,9 +141,6 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
|
|
157
141
|
}
|
158
142
|
|
159
143
|
&__pin {
|
160
|
-
@include mdc-theme-prop(background-color, primary);
|
161
|
-
@include mdc-theme-prop(color, text-primary-on-primary);
|
162
|
-
|
163
144
|
display: flex;
|
164
145
|
position: absolute;
|
165
146
|
top: 0;
|
@@ -207,82 +188,6 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
|
|
207
188
|
|
208
189
|
.mdc-slider--disabled {
|
209
190
|
cursor: auto;
|
210
|
-
|
211
|
-
.mdc-slider__track {
|
212
|
-
background-color: $mdc-slider-main-grey;
|
213
|
-
|
214
|
-
@include mdc-theme-dark(".mdc-slider", true) {
|
215
|
-
background-color: $mdc-slider-dark-theme-grey;
|
216
|
-
}
|
217
|
-
}
|
218
|
-
|
219
|
-
// We use !important here to override all styles without having to use excessive
|
220
|
-
// :not() selectors or intricate compound selectors.
|
221
|
-
.mdc-slider__thumb {
|
222
|
-
fill: $mdc-slider-main-grey !important;
|
223
|
-
stroke: $mdc-slider-default-assumed-bg-color !important;
|
224
|
-
stroke: var(--mdc-slider-bg-color-behind-component, $mdc-slider-default-assumed-bg-color) !important;
|
225
|
-
|
226
|
-
@include mdc-theme-dark(".mdc-slider", true) {
|
227
|
-
fill: $mdc-slider-dark-theme-grey !important;
|
228
|
-
stroke: $mdc-slider-dark-theme-assumed-bg-color !important;
|
229
|
-
stroke: var(--mdc-slider-bg-color-behind-component, $mdc-slider-dark-theme-assumed-bg-color) !important;
|
230
|
-
}
|
231
|
-
}
|
232
|
-
}
|
233
|
-
|
234
|
-
.mdc-slider--off {
|
235
|
-
.mdc-slider__track {
|
236
|
-
opacity: 0;
|
237
|
-
}
|
238
|
-
|
239
|
-
// stylelint-disable-next-line plugin/selector-bem-pattern
|
240
|
-
.mdc-slider__thumb {
|
241
|
-
fill: $mdc-slider-default-assumed-bg-color;
|
242
|
-
fill: var(--mdc-slider-bg-color-behind-component, $mdc-slider-default-assumed-bg-color);
|
243
|
-
stroke: $mdc-slider-main-grey;
|
244
|
-
|
245
|
-
@include mdc-theme-dark(".mdc-slider", true) {
|
246
|
-
fill: $mdc-slider-dark-theme-assumed-bg-color;
|
247
|
-
fill: var(--mdc-slider-bg-color-behind-component, $mdc-slider-dark-theme-assumed-bg-color);
|
248
|
-
stroke: $mdc-slider-dark-theme-grey;
|
249
|
-
}
|
250
|
-
}
|
251
|
-
|
252
|
-
.mdc-slider__pin {
|
253
|
-
background-color: $mdc-slider-main-grey;
|
254
|
-
|
255
|
-
@include mdc-theme-dark(".mdc-slider", true) {
|
256
|
-
background-color: $mdc-slider-dark-theme-grey;
|
257
|
-
}
|
258
|
-
}
|
259
|
-
|
260
|
-
// stylelint-disable plugin/selector-bem-pattern
|
261
|
-
&.mdc-slider--focus {
|
262
|
-
.mdc-slider__thumb {
|
263
|
-
fill: #dedede;
|
264
|
-
|
265
|
-
@include mdc-theme-dark(".mdc-slider", true) {
|
266
|
-
fill: #82848c;
|
267
|
-
stroke: #82848c;
|
268
|
-
}
|
269
|
-
}
|
270
|
-
}
|
271
|
-
|
272
|
-
&.mdc-slider--active.mdc-slider--focus {
|
273
|
-
.mdc-slider__thumb {
|
274
|
-
stroke: #8c8c8c;
|
275
|
-
|
276
|
-
@include mdc-theme-dark(".mdc-slider", true) {
|
277
|
-
stroke: $mdc-slider-dark-theme-grey;
|
278
|
-
}
|
279
|
-
}
|
280
|
-
}
|
281
|
-
|
282
|
-
.mdc-slider__focus-ring {
|
283
|
-
background-color: $mdc-slider-main-grey;
|
284
|
-
}
|
285
|
-
// stylelint-enable plugin/selector-bem-pattern
|
286
191
|
}
|
287
192
|
|
288
193
|
.mdc-slider--in-transit {
|
@@ -324,11 +229,6 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
|
|
324
229
|
.mdc-slider__thumb {
|
325
230
|
animation: none;
|
326
231
|
}
|
327
|
-
|
328
|
-
.mdc-slider__focus-ring {
|
329
|
-
transform: none;
|
330
|
-
opacity: 0;
|
331
|
-
}
|
332
232
|
}
|
333
233
|
|
334
234
|
&.mdc-slider--display-markers {
|
@@ -86,6 +86,10 @@
|
|
86
86
|
}
|
87
87
|
}
|
88
88
|
|
89
|
+
&__action-wrapper {
|
90
|
+
@include mdc-rtl-reflexive-property(padding, 24px, 0);
|
91
|
+
}
|
92
|
+
|
89
93
|
&--action-on-bottom {
|
90
94
|
flex-direction: column;
|
91
95
|
}
|
@@ -117,6 +121,10 @@
|
|
117
121
|
@include mdc-theme-dark(".mdc-snackbar") {
|
118
122
|
@include mdc-theme-prop(color, text-primary-on-light);
|
119
123
|
}
|
124
|
+
|
125
|
+
@media (min-width: $mdc-snackbar-tablet-breakpoint) {
|
126
|
+
@include mdc-rtl-reflexive-property(padding, 0, 24px);
|
127
|
+
}
|
120
128
|
}
|
121
129
|
|
122
130
|
&--multiline &__text {
|
@@ -21,13 +21,13 @@
|
|
21
21
|
@mixin mdc-text-field-textarea-corner-radius($radius) {
|
22
22
|
border-radius: $radius;
|
23
23
|
|
24
|
-
.mdc-
|
24
|
+
.mdc-text-field__label {
|
25
25
|
// Bottom corners are square to prevent weird edge cases
|
26
26
|
// where text would be visible outside of the curve.
|
27
27
|
border-radius: $radius $radius 0 0;
|
28
28
|
}
|
29
29
|
|
30
|
-
.mdc-
|
30
|
+
.mdc-text-field__input {
|
31
31
|
// The input element is required to have 2 pixels shaved off
|
32
32
|
// of the radius of its parent. This prevents an ugly space of
|
33
33
|
// background between the two borders in each corner when the
|
@@ -14,34 +14,34 @@
|
|
14
14
|
// limitations under the License.
|
15
15
|
//
|
16
16
|
|
17
|
-
$mdc-
|
18
|
-
$mdc-
|
19
|
-
$mdc-
|
20
|
-
$mdc-
|
21
|
-
$mdc-
|
22
|
-
$mdc-
|
23
|
-
$mdc-
|
24
|
-
$mdc-
|
25
|
-
$mdc-
|
26
|
-
$mdc-
|
27
|
-
$mdc-
|
28
|
-
$mdc-
|
29
|
-
$mdc-
|
30
|
-
$mdc-
|
31
|
-
$mdc-
|
32
|
-
$mdc-
|
33
|
-
$mdc-
|
34
|
-
$mdc-
|
35
|
-
$mdc-
|
36
|
-
$mdc-
|
37
|
-
$mdc-
|
38
|
-
$mdc-
|
17
|
+
$mdc-text-field-error-on-light: #d50000;
|
18
|
+
$mdc-text-field-error-on-dark: #ff6e6e;
|
19
|
+
$mdc-text-field-divider-on-light: rgba(black, .12);
|
20
|
+
$mdc-text-field-divider-on-dark: rgba(white, .12);
|
21
|
+
$mdc-text-field-disabled-border-on-light: rgba(#231f20, .26);
|
22
|
+
$mdc-text-field-disabled-border-on-dark: rgba(white, .3);
|
23
|
+
$mdc-text-field-disabled-icon-on-light: rgba(black, .3);
|
24
|
+
$mdc-text-field-disabled-icon-on-dark: rgba(white, .3);
|
25
|
+
$mdc-text-field-icon-position: 15px;
|
26
|
+
$mdc-text-field-icon-padding: 48px;
|
27
|
+
$mdc-text-field-dense-icon-position: 12px;
|
28
|
+
$mdc-text-field-dense-icon-padding: 38px;
|
29
|
+
$mdc-text-field-underline-on-light: rgba(black, 1);
|
30
|
+
$mdc-text-field-underline-on-light-idle: rgba(black, .5);
|
31
|
+
$mdc-text-field-underline-on-dark: rgba(white, 1);
|
32
|
+
$mdc-text-field-underline-on-dark-idle: rgba(white, .5);
|
33
|
+
$mdc-text-field-dark-background: rgba(48, 48, 48, 1);
|
34
|
+
$mdc-text-field-dark-label: rgba(white, .6);
|
35
|
+
$mdc-text-field-dark-placeholder: rgba(black, .38);
|
36
|
+
$mdc-text-field-light-background: rgba(white, 1);
|
37
|
+
$mdc-text-field-light-label: rgba(white, .7);
|
38
|
+
$mdc-text-field-light-placeholder: rgba(white, .3);
|
39
39
|
|
40
|
-
$mdc-
|
41
|
-
$mdc-
|
42
|
-
$mdc-
|
43
|
-
$mdc-
|
44
|
-
$mdc-
|
40
|
+
$mdc-text-field-box-background: rgba(black, .04);
|
41
|
+
$mdc-text-field-box-background-dark: rgba(white, .1);
|
42
|
+
$mdc-text-field-box-disabled-background: rgba(black, .02);
|
43
|
+
$mdc-text-field-box-disabled-background-dark: rgba(white, .05);
|
44
|
+
$mdc-text-field-box-secondary-text: rgba(black, .6);
|
45
45
|
|
46
46
|
$mdc-textarea-border-on-light: rgba(black, .73);
|
47
47
|
$mdc-textarea-border-on-dark: rgba(white, 1);
|
data/vendor/assets/stylesheets/@material/textfield/{mdc-textfield.scss → mdc-text-field.scss}
RENAMED
@@ -24,15 +24,15 @@
|
|
24
24
|
@import "@material/typography/mixins";
|
25
25
|
@import "@material/typography/variables";
|
26
26
|
|
27
|
-
@function mdc-
|
27
|
+
@function mdc-text-field-transition($property) {
|
28
28
|
@return #{$property} 180ms $mdc-animation-standard-curve-timing-function;
|
29
29
|
}
|
30
30
|
|
31
31
|
@include mdc-text-field-invalid-label-shake_keyframes_(standard, 100%);
|
32
32
|
@include mdc-text-field-invalid-label-shake_keyframes_(box, 50%);
|
33
33
|
|
34
|
-
// postcss-bem-linter: define
|
35
|
-
.mdc-
|
34
|
+
// postcss-bem-linter: define text-field
|
35
|
+
.mdc-text-field {
|
36
36
|
display: inline-block;
|
37
37
|
position: relative;
|
38
38
|
margin-bottom: 8px;
|
@@ -52,9 +52,9 @@
|
|
52
52
|
|
53
53
|
width: 100%;
|
54
54
|
padding: 0 0 8px;
|
55
|
-
transition: mdc-
|
55
|
+
transition: mdc-text-field-transition(opacity);
|
56
56
|
border: none;
|
57
|
-
border-bottom: 1px solid $mdc-
|
57
|
+
border-bottom: 1px solid $mdc-text-field-underline-on-light-idle;
|
58
58
|
background: none;
|
59
59
|
font-size: inherit;
|
60
60
|
appearance: none;
|
@@ -62,19 +62,19 @@
|
|
62
62
|
&::placeholder {
|
63
63
|
@include mdc-theme-prop(color, text-hint-on-light);
|
64
64
|
|
65
|
-
transition: mdc-
|
65
|
+
transition: mdc-text-field-transition(color);
|
66
66
|
opacity: 1;
|
67
67
|
}
|
68
68
|
|
69
69
|
&:hover {
|
70
|
-
border-color: $mdc-
|
70
|
+
border-color: $mdc-text-field-underline-on-light;
|
71
71
|
}
|
72
72
|
|
73
73
|
&:focus {
|
74
74
|
outline: none;
|
75
75
|
|
76
76
|
&::placeholder {
|
77
|
-
@include mdc-theme-prop(color, $mdc-
|
77
|
+
@include mdc-theme-prop(color, $mdc-text-field-light-placeholder);
|
78
78
|
}
|
79
79
|
}
|
80
80
|
|
@@ -86,10 +86,10 @@
|
|
86
86
|
@include mdc-theme-dark {
|
87
87
|
@include mdc-theme-prop(color, text-primary-on-dark);
|
88
88
|
|
89
|
-
border-bottom: 1px solid $mdc-
|
89
|
+
border-bottom: 1px solid $mdc-text-field-underline-on-dark-idle;
|
90
90
|
|
91
91
|
&:hover {
|
92
|
-
border-bottom: 1px solid $mdc-
|
92
|
+
border-bottom: 1px solid $mdc-text-field-underline-on-dark;
|
93
93
|
}
|
94
94
|
|
95
95
|
&::placeholder {
|
@@ -97,7 +97,7 @@
|
|
97
97
|
}
|
98
98
|
|
99
99
|
&:focus::placeholder {
|
100
|
-
@include mdc-theme-prop(color, $mdc-
|
100
|
+
@include mdc-theme-prop(color, $mdc-text-field-dark-placeholder);
|
101
101
|
}
|
102
102
|
}
|
103
103
|
}
|
@@ -111,7 +111,7 @@
|
|
111
111
|
width: 100%;
|
112
112
|
height: 2px;
|
113
113
|
transform: scaleX(0);
|
114
|
-
transition: mdc-
|
114
|
+
transition: mdc-text-field-transition(transform), mdc-text-field-transition(opacity);
|
115
115
|
opacity: 0;
|
116
116
|
z-index: 2;
|
117
117
|
}
|
@@ -120,7 +120,7 @@
|
|
120
120
|
transform: scaleX(1);
|
121
121
|
}
|
122
122
|
|
123
|
-
.mdc-
|
123
|
+
.mdc-text-field__input:focus ~ .mdc-text-field__bottom-line {
|
124
124
|
opacity: 1;
|
125
125
|
}
|
126
126
|
|
@@ -129,20 +129,20 @@
|
|
129
129
|
bottom: 8px;
|
130
130
|
left: 0;
|
131
131
|
transform-origin: left top;
|
132
|
-
transition: mdc-
|
133
|
-
color: $mdc-
|
132
|
+
transition: mdc-text-field-transition(transform), mdc-text-field-transition(color);
|
133
|
+
color: $mdc-text-field-underline-on-light-idle;
|
134
134
|
cursor: text;
|
135
135
|
|
136
136
|
// stylelint-disable plugin/selector-bem-pattern
|
137
|
-
@include mdc-rtl(".mdc-
|
137
|
+
@include mdc-rtl(".mdc-text-field") {
|
138
138
|
right: 0;
|
139
139
|
left: auto;
|
140
140
|
transform-origin: right top;
|
141
141
|
}
|
142
142
|
// stylelint-enable plugin/selector-bem-pattern
|
143
143
|
|
144
|
-
@include mdc-theme-dark(".mdc-
|
145
|
-
@include mdc-theme-prop(color, $mdc-
|
144
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
145
|
+
@include mdc-theme-prop(color, $mdc-text-field-dark-label);
|
146
146
|
}
|
147
147
|
|
148
148
|
&--float-above {
|
@@ -152,17 +152,17 @@
|
|
152
152
|
}
|
153
153
|
}
|
154
154
|
|
155
|
-
// Move label when
|
156
|
-
.mdc-
|
155
|
+
// Move label when text-field gets autofilled in Chrome
|
156
|
+
.mdc-text-field__input {
|
157
157
|
// stylelint-disable plugin/selector-bem-pattern
|
158
|
-
&:-webkit-autofill + .mdc-
|
158
|
+
&:-webkit-autofill + .mdc-text-field__label {
|
159
159
|
transform: translateY(-100%) scale(.75, .75);
|
160
160
|
cursor: auto;
|
161
161
|
}
|
162
162
|
// stylelint-enable plugin/selector-bem-pattern
|
163
163
|
}
|
164
164
|
|
165
|
-
.mdc-
|
165
|
+
.mdc-text-field--box {
|
166
166
|
@include mdc-ripple-surface;
|
167
167
|
@include mdc-ripple-color(black, .04);
|
168
168
|
@include mdc-ripple-radius;
|
@@ -171,14 +171,14 @@
|
|
171
171
|
display: inline-flex;
|
172
172
|
position: relative;
|
173
173
|
height: 56px;
|
174
|
-
background-color: $mdc-
|
174
|
+
background-color: $mdc-text-field-box-background;
|
175
175
|
overflow: hidden;
|
176
176
|
|
177
|
-
@include mdc-theme-dark(".mdc-
|
178
|
-
background-color: $mdc-
|
177
|
+
@include mdc-theme-dark(".mdc-text-field", true) {
|
178
|
+
background-color: $mdc-text-field-box-background-dark;
|
179
179
|
}
|
180
180
|
|
181
|
-
@include mdc-theme-dark(".mdc-
|
181
|
+
@include mdc-theme-dark(".mdc-text-field", true) {
|
182
182
|
@include mdc-ripple-color(white, .05);
|
183
183
|
}
|
184
184
|
|
@@ -187,20 +187,20 @@
|
|
187
187
|
// we would normally disable it (on combined selectors) as a workaround.
|
188
188
|
|
189
189
|
// stylelint-disable plugin/selector-bem-pattern
|
190
|
-
.mdc-
|
190
|
+
.mdc-text-field__input {
|
191
191
|
align-self: flex-end;
|
192
192
|
box-sizing: border-box;
|
193
193
|
height: 100%;
|
194
194
|
padding: 20px 16px 0;
|
195
195
|
}
|
196
196
|
|
197
|
-
.mdc-
|
197
|
+
.mdc-text-field__label {
|
198
198
|
@include mdc-rtl-reflexive-position(left, 16px);
|
199
199
|
|
200
200
|
position: absolute;
|
201
201
|
bottom: 20px;
|
202
|
-
width: calc(100% - #{$mdc-
|
203
|
-
color: $mdc-
|
202
|
+
width: calc(100% - #{$mdc-text-field-icon-padding});
|
203
|
+
color: $mdc-text-field-box-secondary-text;
|
204
204
|
text-overflow: ellipsis;
|
205
205
|
white-space: nowrap;
|
206
206
|
pointer-events: none;
|
@@ -209,7 +209,7 @@
|
|
209
209
|
// when the ripple is activated behind it.
|
210
210
|
will-change: transform;
|
211
211
|
|
212
|
-
@include mdc-theme-dark(".mdc-
|
212
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
213
213
|
@include mdc-theme-prop(color, text-secondary-on-dark);
|
214
214
|
}
|
215
215
|
|
@@ -218,44 +218,44 @@
|
|
218
218
|
}
|
219
219
|
}
|
220
220
|
|
221
|
-
.mdc-
|
222
|
-
&.mdc-
|
221
|
+
.mdc-text-field__label--float-above {
|
222
|
+
&.mdc-text-field__label--shake {
|
223
223
|
animation: invalid-shake-float-above-box 250ms 1;
|
224
224
|
}
|
225
225
|
}
|
226
226
|
|
227
|
-
&.mdc-
|
228
|
-
@include mdc-theme-prop(color, $mdc-
|
227
|
+
&.mdc-text-field--disabled {
|
228
|
+
@include mdc-theme-prop(color, $mdc-text-field-light-placeholder);
|
229
229
|
|
230
230
|
border-bottom: none;
|
231
|
-
background-color: $mdc-
|
231
|
+
background-color: $mdc-text-field-box-disabled-background;
|
232
232
|
|
233
|
-
@include mdc-theme-dark(".mdc-
|
234
|
-
@include mdc-theme-prop(background-color, $mdc-
|
235
|
-
@include mdc-theme-prop(color, $mdc-
|
233
|
+
@include mdc-theme-dark(".mdc-text-field", true) {
|
234
|
+
@include mdc-theme-prop(background-color, $mdc-text-field-dark-background);
|
235
|
+
@include mdc-theme-prop(color, $mdc-text-field-dark-placeholder);
|
236
236
|
|
237
237
|
border-bottom: none;
|
238
238
|
}
|
239
239
|
|
240
|
-
.mdc-
|
240
|
+
.mdc-text-field__label {
|
241
241
|
bottom: 20px;
|
242
242
|
}
|
243
243
|
|
244
|
-
.mdc-
|
245
|
-
@include mdc-theme-prop(color, $mdc-
|
244
|
+
.mdc-text-field__icon {
|
245
|
+
@include mdc-theme-prop(color, $mdc-text-field-disabled-icon-on-light);
|
246
246
|
|
247
247
|
@include mdc-theme-dark() {
|
248
|
-
@include mdc-theme-prop(color, $mdc-
|
248
|
+
@include mdc-theme-prop(color, $mdc-text-field-disabled-icon-on-dark);
|
249
249
|
}
|
250
250
|
}
|
251
251
|
}
|
252
252
|
|
253
|
-
&.mdc-
|
254
|
-
.mdc-
|
253
|
+
&.mdc-text-field--dense {
|
254
|
+
.mdc-text-field__input {
|
255
255
|
padding: 12px 12px 0;
|
256
256
|
}
|
257
257
|
|
258
|
-
.mdc-
|
258
|
+
.mdc-text-field__label {
|
259
259
|
@include mdc-rtl-reflexive-position(left, 12px);
|
260
260
|
|
261
261
|
bottom: 20px;
|
@@ -268,196 +268,196 @@
|
|
268
268
|
// stylelint-enable plugin/selector-bem-pattern
|
269
269
|
}
|
270
270
|
|
271
|
-
.mdc-
|
272
|
-
.mdc-
|
271
|
+
.mdc-text-field--with-leading-icon .mdc-text-field__icon,
|
272
|
+
.mdc-text-field--with-trailing-icon .mdc-text-field__icon {
|
273
273
|
position: absolute;
|
274
274
|
bottom: 16px;
|
275
275
|
cursor: pointer;
|
276
276
|
|
277
|
-
@include mdc-theme-dark(".mdc-
|
277
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
278
278
|
@include mdc-theme-prop(color, text-secondary-on-dark);
|
279
279
|
}
|
280
280
|
}
|
281
281
|
|
282
|
-
.mdc-
|
283
|
-
.mdc-
|
284
|
-
@include mdc-rtl-reflexive-property(padding, $mdc-
|
282
|
+
.mdc-text-field--with-leading-icon {
|
283
|
+
.mdc-text-field__input {
|
284
|
+
@include mdc-rtl-reflexive-property(padding, $mdc-text-field-icon-padding, $mdc-text-field-icon-position);
|
285
285
|
}
|
286
286
|
|
287
|
-
.mdc-
|
288
|
-
@include mdc-rtl-reflexive-position(left, $mdc-
|
287
|
+
.mdc-text-field__icon {
|
288
|
+
@include mdc-rtl-reflexive-position(left, $mdc-text-field-icon-position);
|
289
289
|
}
|
290
290
|
|
291
|
-
.mdc-
|
292
|
-
@include mdc-rtl-reflexive-position(left, $mdc-
|
291
|
+
.mdc-text-field__label {
|
292
|
+
@include mdc-rtl-reflexive-position(left, $mdc-text-field-icon-padding);
|
293
293
|
}
|
294
294
|
}
|
295
295
|
|
296
|
-
.mdc-
|
297
|
-
.mdc-
|
298
|
-
@include mdc-rtl-reflexive-property(padding, $mdc-
|
296
|
+
.mdc-text-field--with-trailing-icon {
|
297
|
+
.mdc-text-field__input {
|
298
|
+
@include mdc-rtl-reflexive-property(padding, $mdc-text-field-icon-position, $mdc-text-field-icon-padding);
|
299
299
|
}
|
300
300
|
|
301
|
-
.mdc-
|
302
|
-
@include mdc-rtl-reflexive-position(right, $mdc-
|
301
|
+
.mdc-text-field__icon {
|
302
|
+
@include mdc-rtl-reflexive-position(right, $mdc-text-field-icon-position);
|
303
303
|
}
|
304
304
|
}
|
305
305
|
|
306
|
-
.mdc-
|
307
|
-
.mdc-
|
306
|
+
.mdc-text-field__icon:not([tabindex]),
|
307
|
+
.mdc-text-field__icon[tabindex="-1"] {
|
308
308
|
cursor: default;
|
309
309
|
pointer-events: none;
|
310
310
|
}
|
311
311
|
|
312
312
|
// stylelint-disable plugin/selector-bem-pattern
|
313
|
-
.mdc-
|
314
|
-
.mdc-
|
313
|
+
.mdc-text-field--with-leading-icon.mdc-text-field--dense .mdc-text-field__icon,
|
314
|
+
.mdc-text-field--with-trailing-icon.mdc-text-field--dense .mdc-text-field__icon {
|
315
315
|
bottom: 16px;
|
316
316
|
transform: scale(.8);
|
317
317
|
}
|
318
318
|
|
319
|
-
.mdc-
|
320
|
-
.mdc-
|
321
|
-
@include mdc-rtl-reflexive-property(padding, $mdc-
|
319
|
+
.mdc-text-field--with-leading-icon.mdc-text-field--dense {
|
320
|
+
.mdc-text-field__input {
|
321
|
+
@include mdc-rtl-reflexive-property(padding, $mdc-text-field-dense-icon-padding, $mdc-text-field-dense-icon-position);
|
322
322
|
}
|
323
323
|
|
324
|
-
.mdc-
|
325
|
-
@include mdc-rtl-reflexive-position(left, $mdc-
|
324
|
+
.mdc-text-field__icon {
|
325
|
+
@include mdc-rtl-reflexive-position(left, $mdc-text-field-dense-icon-position);
|
326
326
|
}
|
327
327
|
|
328
|
-
.mdc-
|
329
|
-
@include mdc-rtl-reflexive-position(left, $mdc-
|
328
|
+
.mdc-text-field__label {
|
329
|
+
@include mdc-rtl-reflexive-position(left, $mdc-text-field-dense-icon-padding);
|
330
330
|
}
|
331
331
|
}
|
332
332
|
|
333
|
-
.mdc-
|
334
|
-
.mdc-
|
335
|
-
@include mdc-rtl-reflexive-property(padding, $mdc-
|
333
|
+
.mdc-text-field--with-trailing-icon.mdc-text-field--dense {
|
334
|
+
.mdc-text-field__input {
|
335
|
+
@include mdc-rtl-reflexive-property(padding, $mdc-text-field-dense-icon-position, $mdc-text-field-dense-icon-padding);
|
336
336
|
}
|
337
337
|
|
338
|
-
.mdc-
|
339
|
-
@include mdc-rtl-reflexive-position(right, $mdc-
|
338
|
+
.mdc-text-field__icon {
|
339
|
+
@include mdc-rtl-reflexive-position(right, $mdc-text-field-dense-icon-position);
|
340
340
|
}
|
341
341
|
}
|
342
342
|
// stylelint-enable plugin/selector-bem-pattern
|
343
343
|
|
344
|
-
.mdc-
|
344
|
+
.mdc-text-field--upgraded:not(.mdc-text-field--fullwidth):not(.mdc-text-field--box) {
|
345
345
|
display: inline-flex;
|
346
346
|
position: relative;
|
347
347
|
align-items: flex-end;
|
348
348
|
box-sizing: border-box;
|
349
349
|
margin-top: 16px;
|
350
350
|
|
351
|
-
&:not(.mdc-
|
351
|
+
&:not(.mdc-text-field--textarea) {
|
352
352
|
height: 48px;
|
353
353
|
}
|
354
354
|
|
355
|
-
.mdc-
|
355
|
+
.mdc-text-field__label {
|
356
356
|
pointer-events: none;
|
357
357
|
}
|
358
358
|
}
|
359
359
|
|
360
|
-
.mdc-
|
361
|
-
.mdc-
|
362
|
-
color: $mdc-
|
360
|
+
.mdc-text-field--invalid {
|
361
|
+
.mdc-text-field__label {
|
362
|
+
color: $mdc-text-field-error-on-light;
|
363
363
|
}
|
364
364
|
|
365
|
-
.mdc-
|
366
|
-
border-color: $mdc-
|
365
|
+
.mdc-text-field__input {
|
366
|
+
border-color: $mdc-text-field-error-on-light;
|
367
367
|
}
|
368
368
|
|
369
|
-
.mdc-
|
370
|
-
background-color: $mdc-
|
369
|
+
.mdc-text-field__bottom-line {
|
370
|
+
background-color: $mdc-text-field-error-on-light;
|
371
371
|
}
|
372
372
|
}
|
373
373
|
|
374
374
|
// stylelint-disable plugin/selector-bem-pattern
|
375
|
-
.mdc-
|
376
|
-
border-color: $mdc-
|
375
|
+
.mdc-text-field--invalid.mdc-text-field--textarea {
|
376
|
+
border-color: $mdc-text-field-error-on-light;
|
377
377
|
}
|
378
378
|
|
379
|
-
.mdc-
|
380
|
-
&.mdc-
|
379
|
+
.mdc-text-field__label--float-above {
|
380
|
+
&.mdc-text-field__label--shake {
|
381
381
|
animation: invalid-shake-float-above-standard 250ms 1;
|
382
382
|
}
|
383
383
|
}
|
384
384
|
// stylelint-enable plugin/selector-bem-pattern
|
385
385
|
|
386
|
-
.mdc-
|
386
|
+
.mdc-text-field--dense {
|
387
387
|
margin-top: 12px;
|
388
388
|
margin-bottom: 4px;
|
389
389
|
font-size: .813rem;
|
390
390
|
|
391
|
-
.mdc-
|
391
|
+
.mdc-text-field__label--float-above {
|
392
392
|
// NOTE: This is an eyeball'd approximation of what's in the mocks.
|
393
393
|
transform: translateY(calc(-100% - 2px)) scale(.923, .923);
|
394
394
|
}
|
395
395
|
}
|
396
396
|
|
397
|
-
.mdc-
|
397
|
+
.mdc-text-field--disabled {
|
398
398
|
pointer-events: none;
|
399
399
|
|
400
|
-
.mdc-
|
401
|
-
border-bottom: 1px dotted $mdc-
|
400
|
+
.mdc-text-field__input {
|
401
|
+
border-bottom: 1px dotted $mdc-text-field-disabled-border-on-light;
|
402
402
|
|
403
|
-
@include mdc-theme-dark(".mdc-
|
404
|
-
border-bottom: 1px dotted $mdc-
|
403
|
+
@include mdc-theme-dark(".mdc-text-field", true) {
|
404
|
+
border-bottom: 1px dotted $mdc-text-field-disabled-border-on-dark;
|
405
405
|
}
|
406
406
|
}
|
407
407
|
|
408
408
|
// stylelint-disable plugin/selector-bem-pattern
|
409
|
-
.mdc-
|
410
|
-
.mdc-
|
411
|
-
+ .mdc-
|
409
|
+
.mdc-text-field__input,
|
410
|
+
.mdc-text-field__label,
|
411
|
+
+ .mdc-text-field-helptext {
|
412
412
|
@include mdc-theme-prop(color, text-disabled-on-light);
|
413
413
|
}
|
414
414
|
// stylelint-enable plugin/selector-bem-pattern
|
415
415
|
|
416
|
-
.mdc-
|
417
|
-
.mdc-
|
418
|
-
@include mdc-theme-dark(".mdc-
|
416
|
+
.mdc-text-field__input,
|
417
|
+
.mdc-text-field__label {
|
418
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
419
419
|
@include mdc-theme-prop(color, text-disabled-on-dark);
|
420
420
|
}
|
421
421
|
}
|
422
422
|
|
423
|
-
@include mdc-theme-dark(".mdc-
|
423
|
+
@include mdc-theme-dark(".mdc-text-field", true) {
|
424
424
|
// stylelint-disable plugin/selector-bem-pattern
|
425
|
-
+ .mdc-
|
425
|
+
+ .mdc-text-field-helptext {
|
426
426
|
@include mdc-theme-prop(color, text-disabled-on-dark);
|
427
427
|
}
|
428
428
|
// stylelint-enable plugin/selector-bem-pattern
|
429
429
|
}
|
430
430
|
|
431
|
-
.mdc-
|
431
|
+
.mdc-text-field__label {
|
432
432
|
bottom: 8px;
|
433
433
|
cursor: default;
|
434
434
|
}
|
435
435
|
}
|
436
436
|
|
437
|
-
.mdc-
|
438
|
-
.mdc-
|
437
|
+
.mdc-text-field--invalid.mdc-text-field--disabled {
|
438
|
+
.mdc-text-field__label {
|
439
439
|
@include mdc-theme-prop(color, text-disabled-on-light);
|
440
440
|
|
441
|
-
@include mdc-theme-dark(".mdc-
|
441
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
442
442
|
@include mdc-theme-prop(color, text-disabled-on-dark);
|
443
443
|
}
|
444
444
|
}
|
445
445
|
}
|
446
446
|
|
447
|
-
.mdc-
|
447
|
+
.mdc-text-field__input:required + .mdc-text-field__label::after {
|
448
448
|
margin-left: 1px;
|
449
449
|
content: "*";
|
450
450
|
|
451
|
-
.mdc-
|
452
|
-
color: $mdc-
|
451
|
+
.mdc-text-field--focused & {
|
452
|
+
color: $mdc-text-field-error-on-light;
|
453
453
|
|
454
|
-
@include mdc-theme-dark(".mdc-
|
455
|
-
color: $mdc-
|
454
|
+
@include mdc-theme-dark(".mdc-text-field", true) {
|
455
|
+
color: $mdc-text-field-error-on-dark;
|
456
456
|
}
|
457
457
|
}
|
458
458
|
}
|
459
459
|
|
460
|
-
.mdc-
|
460
|
+
.mdc-text-field--textarea {
|
461
461
|
@include mdc-text-field-textarea-corner-radius($mdc-text-field-border-radius);
|
462
462
|
|
463
463
|
$padding-inset: 16px;
|
@@ -470,12 +470,12 @@
|
|
470
470
|
border: 1px solid $mdc-textarea-border-on-light;
|
471
471
|
overflow: hidden;
|
472
472
|
|
473
|
-
@include mdc-theme-dark(".mdc-
|
473
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
474
474
|
border-color: $mdc-textarea-border-on-dark;
|
475
475
|
}
|
476
476
|
|
477
477
|
// stylelint-disable plugin/selector-bem-pattern
|
478
|
-
.mdc-
|
478
|
+
.mdc-text-field__input {
|
479
479
|
padding: $padding-inset;
|
480
480
|
padding-top: $padding-inset * 2;
|
481
481
|
border: 1px solid transparent;
|
@@ -485,10 +485,10 @@
|
|
485
485
|
}
|
486
486
|
|
487
487
|
&:invalid:not(:focus) {
|
488
|
-
border-color: $mdc-
|
488
|
+
border-color: $mdc-text-field-error-on-light;
|
489
489
|
}
|
490
490
|
|
491
|
-
@include mdc-theme-dark(".mdc-
|
491
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
492
492
|
&:hover {
|
493
493
|
border-bottom-color: transparent;
|
494
494
|
}
|
@@ -498,12 +498,12 @@
|
|
498
498
|
}
|
499
499
|
|
500
500
|
&:invalid:not(:focus) {
|
501
|
-
border-color: $mdc-
|
501
|
+
border-color: $mdc-text-field-error-on-dark;
|
502
502
|
}
|
503
503
|
}
|
504
504
|
}
|
505
505
|
|
506
|
-
.mdc-
|
506
|
+
.mdc-text-field__label {
|
507
507
|
@include mdc-rtl-reflexive-position(left, 1px);
|
508
508
|
|
509
509
|
top: $label-offset-y;
|
@@ -511,7 +511,7 @@
|
|
511
511
|
padding: 8px 16px;
|
512
512
|
background-color: $mdc-textarea-light-background;
|
513
513
|
|
514
|
-
@include mdc-theme-dark(".mdc-
|
514
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
515
515
|
background-color: $mdc-textarea-dark-background;
|
516
516
|
}
|
517
517
|
|
@@ -523,53 +523,53 @@
|
|
523
523
|
}
|
524
524
|
}
|
525
525
|
|
526
|
-
&.mdc-
|
526
|
+
&.mdc-text-field--disabled {
|
527
527
|
border-style: solid;
|
528
|
-
border-color: $mdc-
|
528
|
+
border-color: $mdc-text-field-disabled-border-on-light;
|
529
529
|
background-color: $mdc-textarea-disabled-background-on-light;
|
530
530
|
|
531
|
-
@include mdc-theme-dark(".mdc-
|
532
|
-
border-color: $mdc-
|
531
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
532
|
+
border-color: $mdc-text-field-disabled-border-on-dark;
|
533
533
|
background-color: $mdc-textarea-disabled-background-on-dark;
|
534
534
|
}
|
535
535
|
|
536
|
-
.mdc-
|
536
|
+
.mdc-text-field__label {
|
537
537
|
background-color: $mdc-textarea-disabled-background-on-light;
|
538
538
|
|
539
|
-
@include mdc-theme-dark(".mdc-
|
539
|
+
@include mdc-theme-dark(".mdc-text-field") {
|
540
540
|
background-color: $mdc-textarea-disabled-background-on-dark;
|
541
541
|
}
|
542
542
|
}
|
543
543
|
}
|
544
544
|
|
545
|
-
&:not(.mdc-
|
546
|
-
.mdc-
|
545
|
+
&:not(.mdc-text-field--upgraded) {
|
546
|
+
.mdc-text-field__input {
|
547
547
|
padding-top: $padding-inset;
|
548
548
|
}
|
549
549
|
}
|
550
550
|
}
|
551
551
|
|
552
|
-
.mdc-
|
552
|
+
.mdc-text-field--textarea.mdc-text-field--focused {
|
553
553
|
@include mdc-theme-prop(border-color, primary);
|
554
554
|
}
|
555
555
|
|
556
556
|
// stylelint-enable plugin/selector-bem-pattern
|
557
557
|
|
558
|
-
.mdc-
|
558
|
+
.mdc-text-field--fullwidth {
|
559
559
|
width: 100%;
|
560
560
|
|
561
561
|
// stylelint-disable plugin/selector-bem-pattern
|
562
562
|
|
563
|
-
&:not(.mdc-
|
563
|
+
&:not(.mdc-text-field--textarea) {
|
564
564
|
display: block;
|
565
565
|
box-sizing: border-box;
|
566
566
|
height: 56px;
|
567
567
|
margin: 0;
|
568
568
|
border: none;
|
569
|
-
border-bottom: 1px solid $mdc-
|
569
|
+
border-bottom: 1px solid $mdc-text-field-divider-on-light;
|
570
570
|
outline: none;
|
571
571
|
|
572
|
-
.mdc-
|
572
|
+
.mdc-text-field__input {
|
573
573
|
width: 100%;
|
574
574
|
height: 100%;
|
575
575
|
padding: 0;
|
@@ -580,7 +580,7 @@
|
|
580
580
|
}
|
581
581
|
|
582
582
|
@include mdc-theme-dark {
|
583
|
-
border-bottom: 1px solid $mdc-
|
583
|
+
border-bottom: 1px solid $mdc-text-field-divider-on-dark;
|
584
584
|
}
|
585
585
|
|
586
586
|
// stylelint-enable plugin/selector-bem-pattern
|
@@ -588,53 +588,53 @@
|
|
588
588
|
|
589
589
|
// Graceful degredation for css-only inputs
|
590
590
|
|
591
|
-
.mdc-
|
592
|
-
&:not(.mdc-
|
593
|
-
transition: mdc-
|
594
|
-
border-bottom: 1px solid $mdc-
|
591
|
+
.mdc-text-field {
|
592
|
+
&:not(.mdc-text-field--upgraded):not(.mdc-text-field--textarea) .mdc-text-field__input {
|
593
|
+
transition: mdc-text-field-transition(border-bottom-color);
|
594
|
+
border-bottom: 1px solid $mdc-text-field-divider-on-light;
|
595
595
|
}
|
596
596
|
|
597
|
-
&:not(.mdc-
|
597
|
+
&:not(.mdc-text-field--upgraded) .mdc-text-field__input {
|
598
598
|
&:focus {
|
599
599
|
@include mdc-theme-prop(border-color, primary);
|
600
600
|
}
|
601
601
|
|
602
602
|
&:disabled {
|
603
|
-
@include mdc-theme-prop(color, $mdc-
|
603
|
+
@include mdc-theme-prop(color, $mdc-text-field-dark-placeholder);
|
604
604
|
|
605
605
|
border-bottom-style: dotted;
|
606
606
|
}
|
607
607
|
|
608
608
|
// stylelint-disable selector-max-specificity
|
609
609
|
&:invalid:not(:focus) {
|
610
|
-
border-color: $mdc-
|
610
|
+
border-color: $mdc-text-field-error-on-light;
|
611
611
|
}
|
612
612
|
// stylelint-enable selector-max-specificity
|
613
613
|
}
|
614
614
|
|
615
615
|
@include mdc-theme-dark {
|
616
|
-
&:not(.mdc-
|
616
|
+
&:not(.mdc-text-field--upgraded) .mdc-text-field__input {
|
617
617
|
&:not(:focus) {
|
618
618
|
border-color: rgba(white, .12);
|
619
619
|
}
|
620
620
|
|
621
621
|
&:disabled {
|
622
|
-
@include mdc-theme-prop(color, $mdc-
|
622
|
+
@include mdc-theme-prop(color, $mdc-text-field-dark-placeholder);
|
623
623
|
|
624
|
-
border-color: $mdc-
|
624
|
+
border-color: $mdc-text-field-disabled-border-on-dark;
|
625
625
|
background-color: $mdc-textarea-disabled-background-on-dark;
|
626
626
|
}
|
627
627
|
|
628
628
|
// stylelint-disable selector-max-specificity
|
629
629
|
&:invalid:not(:focus) {
|
630
|
-
border-color: $mdc-
|
630
|
+
border-color: $mdc-text-field-error-on-dark;
|
631
631
|
}
|
632
632
|
// stylelint-enable selector-max-specificity
|
633
633
|
}
|
634
634
|
}
|
635
635
|
}
|
636
636
|
|
637
|
-
.mdc-
|
637
|
+
.mdc-text-field--box:not(.mdc-text-field--upgraded) {
|
638
638
|
height: 56px;
|
639
639
|
|
640
640
|
&::before,
|
@@ -642,20 +642,20 @@
|
|
642
642
|
border-radius: 0;
|
643
643
|
}
|
644
644
|
|
645
|
-
.mdc-
|
645
|
+
.mdc-text-field__input {
|
646
646
|
padding-top: 0;
|
647
647
|
}
|
648
648
|
}
|
649
649
|
|
650
650
|
// postcss-bem-linter: end
|
651
651
|
|
652
|
-
// postcss-bem-linter: define
|
652
|
+
// postcss-bem-linter: define text-field-helptext
|
653
653
|
|
654
|
-
.mdc-
|
654
|
+
.mdc-text-field-helptext {
|
655
655
|
@include mdc-theme-prop(color, text-hint-on-light);
|
656
656
|
|
657
657
|
margin: 0;
|
658
|
-
transition: mdc-
|
658
|
+
transition: mdc-text-field-transition(opacity);
|
659
659
|
opacity: 0;
|
660
660
|
font-size: .75rem;
|
661
661
|
will-change: opacity;
|
@@ -665,19 +665,19 @@
|
|
665
665
|
}
|
666
666
|
|
667
667
|
// stylelint-disable plugin/selector-bem-pattern
|
668
|
-
.mdc-
|
668
|
+
.mdc-text-field + & {
|
669
669
|
margin-bottom: 8px;
|
670
670
|
}
|
671
671
|
|
672
|
-
.mdc-
|
672
|
+
.mdc-text-field--dense + & {
|
673
673
|
margin-bottom: 4px;
|
674
674
|
}
|
675
675
|
|
676
|
-
.mdc-
|
676
|
+
.mdc-text-field--focused + &:not(#{&}--validation-msg) {
|
677
677
|
opacity: 1;
|
678
678
|
}
|
679
679
|
|
680
|
-
.mdc-
|
680
|
+
.mdc-text-field--box + & {
|
681
681
|
margin-right: 16px;
|
682
682
|
margin-left: 16px;
|
683
683
|
}
|
@@ -685,7 +685,7 @@
|
|
685
685
|
// stylelint-enable plugin/selector-bem-pattern
|
686
686
|
}
|
687
687
|
|
688
|
-
.mdc-
|
688
|
+
.mdc-text-field-helptext--persistent {
|
689
689
|
transition: none;
|
690
690
|
opacity: 1;
|
691
691
|
will-change: initial;
|
@@ -693,22 +693,22 @@
|
|
693
693
|
|
694
694
|
// postcss-bem-linter: end
|
695
695
|
|
696
|
-
.mdc-
|
697
|
-
+ .mdc-
|
696
|
+
.mdc-text-field--invalid {
|
697
|
+
+ .mdc-text-field-helptext--validation-msg {
|
698
698
|
opacity: 1;
|
699
|
-
color: $mdc-
|
699
|
+
color: $mdc-text-field-error-on-light;
|
700
700
|
}
|
701
701
|
|
702
|
-
@include mdc-theme-dark(".mdc-
|
703
|
-
+ .mdc-
|
704
|
-
color: $mdc-
|
702
|
+
@include mdc-theme-dark(".mdc-text-field", true) {
|
703
|
+
+ .mdc-text-field-helptext--validation-msg {
|
704
|
+
color: $mdc-text-field-error-on-dark;
|
705
705
|
}
|
706
706
|
}
|
707
707
|
}
|
708
708
|
|
709
709
|
// mdc-form-field tweaks to align text field label correctly
|
710
710
|
// stylelint-disable selector-max-type
|
711
|
-
.mdc-form-field > .mdc-
|
711
|
+
.mdc-form-field > .mdc-text-field + label {
|
712
712
|
align-self: flex-start;
|
713
713
|
}
|
714
714
|
// stylelint-enable selector-max-type
|