material_components_web-sass 0.25.0 → 0.26.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 +10 -0
- data/lib/material_components_web/sass/version.rb +1 -1
- data/material_components_web-sass.gemspec +1 -0
- data/vendor/assets/javascripts/material-components-web.js +1327 -523
- data/vendor/assets/stylesheets/@material/dialog/mdc-dialog.scss +0 -1
- data/vendor/assets/stylesheets/@material/drawer/temporary/mdc-temporary-drawer.scss +0 -1
- data/vendor/assets/stylesheets/@material/list/mdc-list.scss +2 -1
- data/vendor/assets/stylesheets/@material/select/mdc-select.scss +5 -0
- data/vendor/assets/stylesheets/@material/textfield/_functions.scss +19 -0
- data/vendor/assets/stylesheets/@material/textfield/bottom-line/mdc-text-field-bottom-line.scss +44 -0
- data/vendor/assets/stylesheets/@material/textfield/helper-text/mdc-text-field-helper-text.scss +49 -0
- data/vendor/assets/stylesheets/@material/textfield/mdc-text-field.scss +10 -65
- metadata +19 -2
@@ -49,7 +49,7 @@ $mdc-list-side-padding: 16px;
|
|
49
49
|
}
|
50
50
|
|
51
51
|
margin: 0;
|
52
|
-
padding: 8px $mdc-list-side-padding
|
52
|
+
padding: 8px $mdc-list-side-padding;
|
53
53
|
|
54
54
|
// According to the mocks and stickersheet, the line-height is adjusted to 24px for text content,
|
55
55
|
// same as for subheading1.
|
@@ -59,6 +59,7 @@ $mdc-list-side-padding: 16px;
|
|
59
59
|
|
60
60
|
.mdc-list--dense {
|
61
61
|
padding-top: 4px;
|
62
|
+
padding-bottom: 4px;
|
62
63
|
font-size: .812rem;
|
63
64
|
}
|
64
65
|
|
@@ -43,6 +43,7 @@
|
|
43
43
|
border: none;
|
44
44
|
border-bottom: 1px solid rgba(black, .12);
|
45
45
|
border-radius: 0;
|
46
|
+
background-color: transparent;
|
46
47
|
background-repeat: no-repeat;
|
47
48
|
background-position: right center;
|
48
49
|
font-family: Roboto, sans-serif;
|
@@ -263,3 +264,7 @@
|
|
263
264
|
// with CSS. Use the font-size rule instead.
|
264
265
|
|
265
266
|
// postcss-bem-linter: end
|
267
|
+
|
268
|
+
.mdc-select-scroll-lock {
|
269
|
+
overflow: hidden;
|
270
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
//
|
2
|
+
// Copyright 2017 Google Inc. All Rights Reserved.
|
3
|
+
//
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
// you may not use this file except in compliance with the License.
|
6
|
+
// You may obtain a copy of the License at
|
7
|
+
//
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
//
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
// See the License for the specific language governing permissions and
|
14
|
+
// limitations under the License.
|
15
|
+
//
|
16
|
+
|
17
|
+
@function mdc-text-field-transition($property) {
|
18
|
+
@return #{$property} 180ms $mdc-animation-standard-curve-timing-function;
|
19
|
+
}
|
data/vendor/assets/stylesheets/@material/textfield/bottom-line/mdc-text-field-bottom-line.scss
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
//
|
2
|
+
// Copyright 2017 Google Inc. All Rights Reserved.
|
3
|
+
//
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
// you may not use this file except in compliance with the License.
|
6
|
+
// You may obtain a copy of the License at
|
7
|
+
//
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
//
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
// See the License for the specific language governing permissions and
|
14
|
+
// limitations under the License.
|
15
|
+
//
|
16
|
+
|
17
|
+
@import "../functions";
|
18
|
+
@import "@material/theme/mixins";
|
19
|
+
|
20
|
+
// postcss-bem-linter: define textfield
|
21
|
+
.mdc-text-field {
|
22
|
+
|
23
|
+
&__bottom-line {
|
24
|
+
@include mdc-theme-prop(background-color, primary);
|
25
|
+
|
26
|
+
position: absolute;
|
27
|
+
bottom: 0;
|
28
|
+
left: 0;
|
29
|
+
width: 100%;
|
30
|
+
height: 2px;
|
31
|
+
transform: scaleX(0);
|
32
|
+
transition: mdc-text-field-transition(transform), mdc-text-field-transition(opacity);
|
33
|
+
opacity: 0;
|
34
|
+
z-index: 2;
|
35
|
+
}
|
36
|
+
|
37
|
+
&__bottom-line--active {
|
38
|
+
transform: scaleX(1);
|
39
|
+
}
|
40
|
+
|
41
|
+
.mdc-text-field__input:focus ~ .mdc-text-field__bottom-line {
|
42
|
+
opacity: 1;
|
43
|
+
}
|
44
|
+
}
|
data/vendor/assets/stylesheets/@material/textfield/helper-text/mdc-text-field-helper-text.scss
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
//
|
2
|
+
// Copyright 2017 Google Inc. All Rights Reserved.
|
3
|
+
//
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
// you may not use this file except in compliance with the License.
|
6
|
+
// You may obtain a copy of the License at
|
7
|
+
//
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
//
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
// See the License for the specific language governing permissions and
|
14
|
+
// limitations under the License.
|
15
|
+
//
|
16
|
+
|
17
|
+
@import "../functions";
|
18
|
+
@import "@material/theme/mixins";
|
19
|
+
|
20
|
+
// postcss-bem-linter: define text-field-helper-text
|
21
|
+
|
22
|
+
.mdc-text-field-helper-text {
|
23
|
+
@include mdc-theme-prop(color, text-hint-on-light);
|
24
|
+
|
25
|
+
margin: 0;
|
26
|
+
transition: mdc-text-field-transition(opacity);
|
27
|
+
opacity: 0;
|
28
|
+
font-size: .75rem;
|
29
|
+
will-change: opacity;
|
30
|
+
|
31
|
+
@include mdc-theme-dark {
|
32
|
+
@include mdc-theme-prop(color, text-hint-on-dark);
|
33
|
+
}
|
34
|
+
|
35
|
+
// stylelint-disable plugin/selector-bem-pattern
|
36
|
+
.mdc-text-field + & {
|
37
|
+
margin-bottom: 8px;
|
38
|
+
}
|
39
|
+
|
40
|
+
// stylelint-enable plugin/selector-bem-pattern
|
41
|
+
}
|
42
|
+
|
43
|
+
.mdc-text-field-helper-text--persistent {
|
44
|
+
transition: none;
|
45
|
+
opacity: 1;
|
46
|
+
will-change: initial;
|
47
|
+
}
|
48
|
+
|
49
|
+
// postcss-bem-linter: end
|
@@ -14,6 +14,7 @@
|
|
14
14
|
// limitations under the License.
|
15
15
|
//
|
16
16
|
|
17
|
+
@import "./functions";
|
17
18
|
@import "./mixins";
|
18
19
|
@import "./variables";
|
19
20
|
@import "@material/animation/variables";
|
@@ -23,15 +24,13 @@
|
|
23
24
|
@import "@material/theme/mixins";
|
24
25
|
@import "@material/typography/mixins";
|
25
26
|
@import "@material/typography/variables";
|
26
|
-
|
27
|
-
@
|
28
|
-
@return #{$property} 180ms $mdc-animation-standard-curve-timing-function;
|
29
|
-
}
|
30
|
-
|
27
|
+
@import "./bottom-line/mdc-text-field-bottom-line";
|
28
|
+
@import "./helper-text/mdc-text-field-helper-text";
|
31
29
|
@include mdc-text-field-invalid-label-shake_keyframes_(standard, 100%);
|
32
30
|
@include mdc-text-field-invalid-label-shake_keyframes_(box, 50%);
|
33
31
|
|
34
32
|
// postcss-bem-linter: define text-field
|
33
|
+
|
35
34
|
.mdc-text-field {
|
36
35
|
display: inline-block;
|
37
36
|
position: relative;
|
@@ -102,28 +101,6 @@
|
|
102
101
|
}
|
103
102
|
}
|
104
103
|
|
105
|
-
&__bottom-line {
|
106
|
-
@include mdc-theme-prop(background-color, primary);
|
107
|
-
|
108
|
-
position: absolute;
|
109
|
-
bottom: 0;
|
110
|
-
left: 0;
|
111
|
-
width: 100%;
|
112
|
-
height: 2px;
|
113
|
-
transform: scaleX(0);
|
114
|
-
transition: mdc-text-field-transition(transform), mdc-text-field-transition(opacity);
|
115
|
-
opacity: 0;
|
116
|
-
z-index: 2;
|
117
|
-
}
|
118
|
-
|
119
|
-
&__bottom-line--active {
|
120
|
-
transform: scaleX(1);
|
121
|
-
}
|
122
|
-
|
123
|
-
.mdc-text-field__input:focus ~ .mdc-text-field__bottom-line {
|
124
|
-
opacity: 1;
|
125
|
-
}
|
126
|
-
|
127
104
|
&__label {
|
128
105
|
position: absolute;
|
129
106
|
bottom: 8px;
|
@@ -408,7 +385,7 @@
|
|
408
385
|
// stylelint-disable plugin/selector-bem-pattern
|
409
386
|
.mdc-text-field__input,
|
410
387
|
.mdc-text-field__label,
|
411
|
-
+ .mdc-text-field-
|
388
|
+
+ .mdc-text-field-helper-text {
|
412
389
|
@include mdc-theme-prop(color, text-disabled-on-light);
|
413
390
|
}
|
414
391
|
// stylelint-enable plugin/selector-bem-pattern
|
@@ -422,7 +399,7 @@
|
|
422
399
|
|
423
400
|
@include mdc-theme-dark(".mdc-text-field", true) {
|
424
401
|
// stylelint-disable plugin/selector-bem-pattern
|
425
|
-
+ .mdc-text-field-
|
402
|
+
+ .mdc-text-field-helper-text {
|
426
403
|
@include mdc-theme-prop(color, text-disabled-on-dark);
|
427
404
|
}
|
428
405
|
// stylelint-enable plugin/selector-bem-pattern
|
@@ -434,16 +411,6 @@
|
|
434
411
|
}
|
435
412
|
}
|
436
413
|
|
437
|
-
.mdc-text-field--invalid.mdc-text-field--disabled {
|
438
|
-
.mdc-text-field__label {
|
439
|
-
@include mdc-theme-prop(color, text-disabled-on-light);
|
440
|
-
|
441
|
-
@include mdc-theme-dark(".mdc-text-field") {
|
442
|
-
@include mdc-theme-prop(color, text-disabled-on-dark);
|
443
|
-
}
|
444
|
-
}
|
445
|
-
}
|
446
|
-
|
447
414
|
.mdc-text-field__input:required + .mdc-text-field__label::after {
|
448
415
|
margin-left: 1px;
|
449
416
|
content: "*";
|
@@ -649,26 +616,10 @@
|
|
649
616
|
|
650
617
|
// postcss-bem-linter: end
|
651
618
|
|
652
|
-
// postcss-bem-linter: define text-field-
|
653
|
-
|
654
|
-
.mdc-text-field-helptext {
|
655
|
-
@include mdc-theme-prop(color, text-hint-on-light);
|
656
|
-
|
657
|
-
margin: 0;
|
658
|
-
transition: mdc-text-field-transition(opacity);
|
659
|
-
opacity: 0;
|
660
|
-
font-size: .75rem;
|
661
|
-
will-change: opacity;
|
662
|
-
|
663
|
-
@include mdc-theme-dark {
|
664
|
-
@include mdc-theme-prop(color, text-hint-on-dark);
|
665
|
-
}
|
619
|
+
// postcss-bem-linter: define text-field-helper-text
|
666
620
|
|
621
|
+
.mdc-text-field-helper-text {
|
667
622
|
// stylelint-disable plugin/selector-bem-pattern
|
668
|
-
.mdc-text-field + & {
|
669
|
-
margin-bottom: 8px;
|
670
|
-
}
|
671
|
-
|
672
623
|
.mdc-text-field--dense + & {
|
673
624
|
margin-bottom: 4px;
|
674
625
|
}
|
@@ -685,22 +636,16 @@
|
|
685
636
|
// stylelint-enable plugin/selector-bem-pattern
|
686
637
|
}
|
687
638
|
|
688
|
-
.mdc-text-field-helptext--persistent {
|
689
|
-
transition: none;
|
690
|
-
opacity: 1;
|
691
|
-
will-change: initial;
|
692
|
-
}
|
693
|
-
|
694
639
|
// postcss-bem-linter: end
|
695
640
|
|
696
641
|
.mdc-text-field--invalid {
|
697
|
-
+ .mdc-text-field-
|
642
|
+
+ .mdc-text-field-helper-text--validation-msg {
|
698
643
|
opacity: 1;
|
699
644
|
color: $mdc-text-field-error-on-light;
|
700
645
|
}
|
701
646
|
|
702
647
|
@include mdc-theme-dark(".mdc-text-field", true) {
|
703
|
-
+ .mdc-text-field-
|
648
|
+
+ .mdc-text-field-helper-text--validation-msg {
|
704
649
|
color: $mdc-text-field-error-on-dark;
|
705
650
|
}
|
706
651
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material_components_web-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Tarasov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: railties
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,8 +201,11 @@ files:
|
|
187
201
|
- vendor/assets/stylesheets/@material/tabs/tab-bar-scroller/mdc-tab-bar-scroller.scss
|
188
202
|
- vendor/assets/stylesheets/@material/tabs/tab-bar/mdc-tab-bar.scss
|
189
203
|
- vendor/assets/stylesheets/@material/tabs/tab/mdc-tab.scss
|
204
|
+
- vendor/assets/stylesheets/@material/textfield/_functions.scss
|
190
205
|
- vendor/assets/stylesheets/@material/textfield/_mixins.scss
|
191
206
|
- vendor/assets/stylesheets/@material/textfield/_variables.scss
|
207
|
+
- vendor/assets/stylesheets/@material/textfield/bottom-line/mdc-text-field-bottom-line.scss
|
208
|
+
- vendor/assets/stylesheets/@material/textfield/helper-text/mdc-text-field-helper-text.scss
|
192
209
|
- vendor/assets/stylesheets/@material/textfield/mdc-text-field.scss
|
193
210
|
- vendor/assets/stylesheets/@material/theme/_color-palette.scss
|
194
211
|
- vendor/assets/stylesheets/@material/theme/_constants.scss
|