material_components_web-sass 0.20.0 → 0.21.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/README.md +0 -1
- data/lib/material_components_web/sass/version.rb +1 -1
- data/vendor/assets/javascripts/material-components-web.js +24 -5
- data/vendor/assets/stylesheets/@material/button/_mixins.scss +166 -14
- data/vendor/assets/stylesheets/@material/{animation/mdc-animation.scss → button/_variables.scss} +2 -19
- data/vendor/assets/stylesheets/@material/button/mdc-button.scss +22 -160
- data/vendor/assets/stylesheets/@material/card/mdc-card.scss +12 -13
- data/vendor/assets/stylesheets/@material/checkbox/_keyframes.scss +3 -3
- data/vendor/assets/stylesheets/@material/checkbox/mdc-checkbox.scss +9 -10
- data/vendor/assets/stylesheets/@material/dialog/mdc-dialog.scss +12 -17
- data/vendor/assets/stylesheets/@material/drawer/_mixins.scss +5 -5
- data/vendor/assets/stylesheets/@material/fab/_mixins.scss +42 -6
- data/vendor/assets/stylesheets/@material/{animation/_mixins.scss → fab/_variables.scss} +1 -19
- data/vendor/assets/stylesheets/@material/fab/mdc-fab.scss +6 -8
- data/vendor/assets/stylesheets/@material/grid-list/mdc-grid-list.scss +9 -9
- data/vendor/assets/stylesheets/@material/icon-toggle/mdc-icon-toggle.scss +4 -4
- data/vendor/assets/stylesheets/@material/layout-grid/_mixins.scss +8 -15
- data/vendor/assets/stylesheets/@material/linear-progress/mdc-linear-progress.scss +5 -5
- data/vendor/assets/stylesheets/@material/radio/mdc-radio.scss +6 -6
- data/vendor/assets/stylesheets/@material/ripple/_keyframes.scss +3 -3
- data/vendor/assets/stylesheets/@material/ripple/_mixins.scss +16 -1
- data/vendor/assets/stylesheets/@material/ripple/mdc-ripple.scss +0 -16
- data/vendor/assets/stylesheets/@material/rtl/_mixins.scss +1 -3
- data/vendor/assets/stylesheets/@material/select/mdc-select.scss +18 -25
- data/vendor/assets/stylesheets/@material/slider/mdc-slider.scss +1 -1
- data/vendor/assets/stylesheets/@material/snackbar/mdc-snackbar.scss +18 -14
- data/vendor/assets/stylesheets/@material/switch/mdc-switch.scss +8 -9
- data/vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss +8 -9
- data/vendor/assets/stylesheets/@material/theme/_functions.scss +3 -9
- data/vendor/assets/stylesheets/@material/theme/_mixins.scss +5 -15
- data/vendor/assets/stylesheets/@material/toolbar/_mixins.scss +6 -6
- data/vendor/assets/stylesheets/@material/toolbar/mdc-toolbar.scss +7 -7
- data/vendor/assets/stylesheets/_material-components-web.scss +0 -1
- metadata +4 -4
@@ -130,8 +130,8 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
|
|
130
130
|
// Ensure that touching anywhere within the Y-coordinate space of thumb
|
131
131
|
// is considered "clicking on the thumb".
|
132
132
|
height: 100%;
|
133
|
-
will-change: transform;
|
134
133
|
user-select: none;
|
134
|
+
will-change: transform;
|
135
135
|
}
|
136
136
|
|
137
137
|
&__thumb {
|
@@ -33,14 +33,13 @@
|
|
33
33
|
transform: translate(-50%, 100%);
|
34
34
|
transition: mdc-animation-exit-permanent(transform, .25s);
|
35
35
|
background-color: $mdc-snackbar-background-color;
|
36
|
+
pointer-events: none;
|
37
|
+
will-change: transform;
|
36
38
|
|
37
39
|
@include mdc-theme-dark(".mdc-snackbar") {
|
38
40
|
background-color: $mdc-snackbar-background-color-on-dark;
|
39
41
|
}
|
40
42
|
|
41
|
-
will-change: transform;
|
42
|
-
pointer-events: none;
|
43
|
-
|
44
43
|
@media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
|
45
44
|
left: 0;
|
46
45
|
width: calc(100% - 48px);
|
@@ -55,10 +54,9 @@
|
|
55
54
|
|
56
55
|
&--align-start {
|
57
56
|
@media (min-width: $mdc-snackbar-tablet-breakpoint) {
|
58
|
-
bottom: 24px;
|
59
|
-
|
60
57
|
@include mdc-rtl-reflexive-position(left, 24px);
|
61
58
|
|
59
|
+
bottom: 24px;
|
62
60
|
transform: translate(0, 200%);
|
63
61
|
}
|
64
62
|
|
@@ -72,8 +70,8 @@
|
|
72
70
|
|
73
71
|
&--active {
|
74
72
|
transform: translate(0);
|
75
|
-
pointer-events: auto;
|
76
73
|
transition: mdc-animation-enter(transform, .25s);
|
74
|
+
pointer-events: auto;
|
77
75
|
|
78
76
|
&:not(.mdc-snackbar--align-start) {
|
79
77
|
transform: translate(-50%, 0);
|
@@ -96,12 +94,12 @@
|
|
96
94
|
}
|
97
95
|
|
98
96
|
&--action-on-bottom &__action-wrapper {
|
97
|
+
@include mdc-rtl-reflexive-box(margin, left, auto);
|
98
|
+
|
99
99
|
flex-direction: column;
|
100
100
|
justify-content: flex-start;
|
101
101
|
margin-top: -12px;
|
102
102
|
margin-bottom: 8px;
|
103
|
-
|
104
|
-
@include mdc-rtl-reflexive-box(margin, left, auto);
|
105
103
|
}
|
106
104
|
|
107
105
|
&__text {
|
@@ -112,13 +110,12 @@
|
|
112
110
|
align-items: center;
|
113
111
|
height: 48px;
|
114
112
|
transition: mdc-animation-exit-permanent(opacity, .3s);
|
113
|
+
opacity: 0;
|
115
114
|
color: $mdc-snackbar-foreground-color;
|
116
115
|
|
117
116
|
@include mdc-theme-dark(".mdc-snackbar") {
|
118
117
|
@include mdc-theme-prop(color, text-primary-on-light);
|
119
118
|
}
|
120
|
-
|
121
|
-
opacity: 0;
|
122
119
|
}
|
123
120
|
|
124
121
|
&--multiline &__text {
|
@@ -132,20 +129,27 @@
|
|
132
129
|
/* stylelint-enable plugin/selector-bem-pattern */
|
133
130
|
|
134
131
|
&__action-button {
|
132
|
+
@include mdc-typography(button);
|
135
133
|
@include mdc-theme-prop(color, secondary);
|
136
134
|
|
137
135
|
@include mdc-theme-dark(".mdc-snackbar") {
|
138
136
|
@include mdc-theme-prop(color, primary);
|
139
137
|
}
|
140
138
|
|
141
|
-
|
142
|
-
|
143
|
-
min-width: auto;
|
144
|
-
height: inherit;
|
139
|
+
padding: 0;
|
145
140
|
transition: mdc-animation-exit-permanent(opacity, .3s);
|
141
|
+
border: none;
|
142
|
+
outline: none;
|
143
|
+
background-color: transparent;
|
146
144
|
opacity: 0;
|
145
|
+
user-select: none;
|
146
|
+
-webkit-appearance: none;
|
147
147
|
visibility: hidden;
|
148
148
|
|
149
|
+
&:hover {
|
150
|
+
cursor: pointer;
|
151
|
+
}
|
152
|
+
|
149
153
|
&::-moz-focus-inner {
|
150
154
|
border: 0;
|
151
155
|
}
|
@@ -33,8 +33,8 @@
|
|
33
33
|
left: 0;
|
34
34
|
width: $mdc-switch-track-width;
|
35
35
|
height: $mdc-switch-track-height;
|
36
|
-
cursor: pointer;
|
37
36
|
opacity: 0;
|
37
|
+
cursor: pointer;
|
38
38
|
z-index: 2;
|
39
39
|
}
|
40
40
|
|
@@ -65,8 +65,8 @@
|
|
65
65
|
mdc-switch-transition(background-color);
|
66
66
|
border-radius: 7px;
|
67
67
|
background-color: $mdc-switch-unchecked-track-color;
|
68
|
-
content: "";
|
69
68
|
opacity: .38;
|
69
|
+
content: "";
|
70
70
|
|
71
71
|
@include mdc-theme-dark(".mdc-switch") {
|
72
72
|
background-color: $mdc-switch-unchecked-track-color-dark;
|
@@ -76,6 +76,8 @@
|
|
76
76
|
|
77
77
|
// postcss-bem-linter: ignore
|
78
78
|
.mdc-switch__knob {
|
79
|
+
@include mdc-elevation(2);
|
80
|
+
|
79
81
|
display: block;
|
80
82
|
position: absolute;
|
81
83
|
top: -3px;
|
@@ -88,15 +90,12 @@
|
|
88
90
|
mdc-switch-transition(background-color);
|
89
91
|
border-radius: $mdc-switch-knob-diameter / 2;
|
90
92
|
background-color: $mdc-switch-unchecked-knob-color;
|
93
|
+
z-index: 1;
|
91
94
|
|
92
95
|
@include mdc-theme-dark(".mdc-switch") {
|
93
96
|
background-color: $mdc-switch-unchecked-knob-color-dark;
|
94
97
|
}
|
95
98
|
|
96
|
-
@include mdc-elevation(2);
|
97
|
-
|
98
|
-
z-index: 1;
|
99
|
-
|
100
99
|
// postcss-bem-linter: ignore
|
101
100
|
&::before {
|
102
101
|
position: absolute;
|
@@ -110,8 +109,8 @@
|
|
110
109
|
mdc-switch-transition(background-color);
|
111
110
|
border-radius: $mdc-switch-focus-ring-diameter / 2;
|
112
111
|
background-color: transparent;
|
113
|
-
content: "";
|
114
112
|
opacity: .2;
|
113
|
+
content: "";
|
115
114
|
}
|
116
115
|
}
|
117
116
|
}
|
@@ -146,13 +145,13 @@
|
|
146
145
|
}
|
147
146
|
|
148
147
|
.mdc-switch__knob {
|
148
|
+
@include mdc-theme-prop(background-color, primary);
|
149
|
+
|
149
150
|
transform: translateX($mdc-switch-track-width - $mdc-switch-knob-diameter);
|
150
151
|
transition:
|
151
152
|
mdc-switch-transition(transform),
|
152
153
|
mdc-switch-transition(background-color);
|
153
154
|
|
154
|
-
@include mdc-theme-prop(background-color, primary);
|
155
|
-
|
156
155
|
&::before {
|
157
156
|
@include mdc-theme-prop(background-color, primary);
|
158
157
|
|
@@ -148,9 +148,9 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
|
|
148
148
|
height: 100%;
|
149
149
|
border-radius: 50%;
|
150
150
|
background-color: inherit;
|
151
|
-
content: "";
|
152
151
|
opacity: 0;
|
153
152
|
pointer-events: none;
|
153
|
+
content: "";
|
154
154
|
}
|
155
155
|
|
156
156
|
// NOTE: For some reasons, stylelint complains that the two patterns below don't follow BEM.
|
@@ -176,8 +176,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
|
|
176
176
|
|
177
177
|
.mdc-textfield__input {
|
178
178
|
align-self: flex-end;
|
179
|
-
height: 100%;
|
180
179
|
box-sizing: border-box;
|
180
|
+
height: 100%;
|
181
181
|
padding: 20px 16px 0;
|
182
182
|
}
|
183
183
|
|
@@ -266,8 +266,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
|
|
266
266
|
height: 100%;
|
267
267
|
transition: mdc-textfield-transition(opacity);
|
268
268
|
background-color: $mdc-textfield-error-on-light;
|
269
|
-
content: "";
|
270
269
|
opacity: 0;
|
270
|
+
content: "";
|
271
271
|
}
|
272
272
|
|
273
273
|
@include mdc-theme-dark(".mdc-textfield") {
|
@@ -316,8 +316,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
|
|
316
316
|
.mdc-textfield--upgraded:not(.mdc-textfield--fullwidth):not(.mdc-textfield--box) {
|
317
317
|
display: inline-flex;
|
318
318
|
position: relative;
|
319
|
-
box-sizing: border-box;
|
320
319
|
align-items: flex-end;
|
320
|
+
box-sizing: border-box;
|
321
321
|
margin-top: 16px;
|
322
322
|
|
323
323
|
&:not(.mdc-textfield--multiline) {
|
@@ -413,6 +413,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
|
|
413
413
|
}
|
414
414
|
|
415
415
|
.mdc-textfield--disabled {
|
416
|
+
border-bottom: 1px dotted $mdc-textfield-disabled-border-on-light;
|
416
417
|
pointer-events: none;
|
417
418
|
|
418
419
|
&::after {
|
@@ -424,8 +425,6 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
|
|
424
425
|
padding-bottom: 7px;
|
425
426
|
}
|
426
427
|
|
427
|
-
border-bottom: 1px dotted $mdc-textfield-disabled-border-on-light;
|
428
|
-
|
429
428
|
@include mdc-theme-dark(".mdc-textfield", true) {
|
430
429
|
border-bottom: 1px dotted $mdc-textfield-disabled-border-on-dark;
|
431
430
|
}
|
@@ -546,8 +545,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
|
|
546
545
|
|
547
546
|
.mdc-textfield--fullwidth {
|
548
547
|
display: block;
|
549
|
-
width: 100%;
|
550
548
|
box-sizing: border-box;
|
549
|
+
width: 100%;
|
551
550
|
margin: 0;
|
552
551
|
border: none;
|
553
552
|
border-bottom: 1px solid $mdc-textfield-divider-on-light;
|
@@ -669,8 +668,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
|
|
669
668
|
|
670
669
|
margin: 0;
|
671
670
|
transition: mdc-textfield-transition(opacity);
|
672
|
-
font-size: .75rem;
|
673
671
|
opacity: 0;
|
672
|
+
font-size: .75rem;
|
674
673
|
will-change: opacity;
|
675
674
|
|
676
675
|
@include mdc-theme-dark {
|
@@ -708,8 +707,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
|
|
708
707
|
|
709
708
|
.mdc-textfield--invalid {
|
710
709
|
+ .mdc-textfield-helptext--validation-msg {
|
711
|
-
color: $mdc-textfield-error-on-light;
|
712
710
|
opacity: 1;
|
711
|
+
color: $mdc-textfield-error-on-light;
|
713
712
|
}
|
714
713
|
|
715
714
|
@include mdc-theme-dark(".mdc-textfield", true) {
|
@@ -50,9 +50,7 @@ $_mdc-theme-tonal-offset: 7%;
|
|
50
50
|
|
51
51
|
@if ($lightContrast < $minimumContrast) and ($darkContrast > $lightContrast) {
|
52
52
|
@return "dark";
|
53
|
-
}
|
54
|
-
|
55
|
-
@else {
|
53
|
+
} @else {
|
56
54
|
@return "light";
|
57
55
|
}
|
58
56
|
}
|
@@ -76,16 +74,12 @@ $_mdc-theme-tonal-offset: 7%;
|
|
76
74
|
dark: lighten($color, $amount-1x),
|
77
75
|
light: lighten($color, $amount-2x)
|
78
76
|
);
|
79
|
-
}
|
80
|
-
|
81
|
-
@else if $luminance >= $upper-bound {
|
77
|
+
} @else if $luminance >= $upper-bound {
|
82
78
|
@return (
|
83
79
|
dark: darken($color, $amount-2x),
|
84
80
|
light: darken($color, $amount-1x)
|
85
81
|
);
|
86
|
-
}
|
87
|
-
|
88
|
-
@else {
|
82
|
+
} @else {
|
89
83
|
@return (
|
90
84
|
dark: darken($color, $amount-1x),
|
91
85
|
light: lighten($color, $amount-1x)
|
@@ -23,14 +23,10 @@
|
|
23
23
|
@if type-of($style) == "color" {
|
24
24
|
@if $important {
|
25
25
|
#{$property}: $style !important;
|
26
|
-
}
|
27
|
-
|
28
|
-
@else {
|
26
|
+
} @else {
|
29
27
|
#{$property}: $style;
|
30
28
|
}
|
31
|
-
}
|
32
|
-
|
33
|
-
@else {
|
29
|
+
} @else {
|
34
30
|
@if not map-has-key($mdc-theme-property-values, $style) {
|
35
31
|
@error "Invalid style: '#{$style}'. Choose one of: #{map-keys($mdc-theme-property-values)}";
|
36
32
|
}
|
@@ -41,9 +37,7 @@
|
|
41
37
|
/* @alternate */
|
42
38
|
#{$property}: $value !important;
|
43
39
|
#{$property}: var(--mdc-theme-#{$style}, $value) !important;
|
44
|
-
}
|
45
|
-
|
46
|
-
@else {
|
40
|
+
} @else {
|
47
41
|
/* @alternate */
|
48
42
|
#{$property}: $value;
|
49
43
|
#{$property}: var(--mdc-theme-#{$style}, $value);
|
@@ -91,18 +85,14 @@
|
|
91
85
|
.mdc-theme--dark & {
|
92
86
|
@content;
|
93
87
|
}
|
94
|
-
}
|
95
|
-
|
96
|
-
@else {
|
88
|
+
} @else {
|
97
89
|
#{$root-selector}--theme-dark &,
|
98
90
|
.mdc-theme--dark & {
|
99
91
|
@content;
|
100
92
|
}
|
101
93
|
}
|
102
94
|
}
|
103
|
-
}
|
104
|
-
|
105
|
-
@else {
|
95
|
+
} @else {
|
106
96
|
&--theme-dark,
|
107
97
|
.mdc-theme--dark & {
|
108
98
|
@content;
|
@@ -25,6 +25,12 @@
|
|
25
25
|
display: flex;
|
26
26
|
align-items: center;
|
27
27
|
justify-content: center;
|
28
|
+
// stylelint enable
|
29
|
+
|
30
|
+
border: none;
|
31
|
+
background-color: inherit;
|
32
|
+
color: inherit;
|
33
|
+
text-decoration: none;
|
28
34
|
|
29
35
|
// stylelint-disable at-rule-empty-line-before, block-closing-brace-newline-after
|
30
36
|
@if $padding-type == menu {
|
@@ -32,10 +38,4 @@
|
|
32
38
|
} @else {
|
33
39
|
padding: $mdc-toobar-element-vertical-padding 8px;
|
34
40
|
}
|
35
|
-
// stylelint enable
|
36
|
-
|
37
|
-
border: none;
|
38
|
-
background-color: inherit;
|
39
|
-
color: inherit;
|
40
|
-
text-decoration: none;
|
41
41
|
}
|
@@ -23,24 +23,24 @@
|
|
23
23
|
|
24
24
|
// postcss-bem-linter: define toolbar
|
25
25
|
.mdc-toolbar {
|
26
|
+
@include mdc-theme-prop(background-color, primary);
|
27
|
+
@include mdc-theme-prop(color, text-primary-on-primary);
|
28
|
+
|
26
29
|
display: flex;
|
27
30
|
position: relative;
|
28
31
|
flex-direction: column;
|
29
32
|
justify-content: space-between;
|
30
|
-
width: 100%;
|
31
33
|
box-sizing: border-box;
|
32
|
-
|
33
|
-
@include mdc-theme-prop(background-color, primary);
|
34
|
-
@include mdc-theme-prop(color, text-primary-on-primary);
|
34
|
+
width: 100%;
|
35
35
|
|
36
36
|
&__row {
|
37
37
|
display: flex;
|
38
38
|
position: relative;
|
39
39
|
align-items: center;
|
40
|
+
box-sizing: border-box;
|
40
41
|
width: 100%;
|
41
42
|
height: auto;
|
42
43
|
min-height: $mdc-toolbar-row-height;
|
43
|
-
box-sizing: border-box;
|
44
44
|
|
45
45
|
// TODO: refactor this out when #23 is implemented
|
46
46
|
@media (max-width: $mdc-toolbar-mobile-landscape-width-breakpoint)
|
@@ -125,12 +125,12 @@
|
|
125
125
|
}
|
126
126
|
|
127
127
|
.mdc-toolbar--fixed {
|
128
|
+
@include mdc-elevation(4);
|
129
|
+
|
128
130
|
position: fixed;
|
129
131
|
top: 0;
|
130
132
|
left: 0;
|
131
133
|
z-index: 4;
|
132
|
-
|
133
|
-
@include mdc-elevation(4);
|
134
134
|
}
|
135
135
|
|
136
136
|
.mdc-toolbar--flexible {
|
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.21.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-09-
|
11
|
+
date: 2017-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|
@@ -125,10 +125,9 @@ files:
|
|
125
125
|
- vendor/assets/fonts/roboto/Roboto-Thin.woff2
|
126
126
|
- vendor/assets/javascripts/material-components-web.js
|
127
127
|
- vendor/assets/stylesheets/@material/animation/_functions.scss
|
128
|
-
- vendor/assets/stylesheets/@material/animation/_mixins.scss
|
129
128
|
- vendor/assets/stylesheets/@material/animation/_variables.scss
|
130
|
-
- vendor/assets/stylesheets/@material/animation/mdc-animation.scss
|
131
129
|
- vendor/assets/stylesheets/@material/button/_mixins.scss
|
130
|
+
- vendor/assets/stylesheets/@material/button/_variables.scss
|
132
131
|
- vendor/assets/stylesheets/@material/button/mdc-button.scss
|
133
132
|
- vendor/assets/stylesheets/@material/card/mdc-card.scss
|
134
133
|
- vendor/assets/stylesheets/@material/checkbox/_keyframes.scss
|
@@ -146,6 +145,7 @@ files:
|
|
146
145
|
- vendor/assets/stylesheets/@material/elevation/_variables.scss
|
147
146
|
- vendor/assets/stylesheets/@material/elevation/mdc-elevation.scss
|
148
147
|
- vendor/assets/stylesheets/@material/fab/_mixins.scss
|
148
|
+
- vendor/assets/stylesheets/@material/fab/_variables.scss
|
149
149
|
- vendor/assets/stylesheets/@material/fab/mdc-fab.scss
|
150
150
|
- vendor/assets/stylesheets/@material/fonts/material-icons.scss
|
151
151
|
- vendor/assets/stylesheets/@material/fonts/roboto.scss
|