material_components_web-sass 0.18.0 → 0.18.1
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 +1 -1
- data/vendor/assets/stylesheets/@material/button/mdc-button.scss +31 -25
- data/vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss +5 -0
- data/vendor/assets/stylesheets/@material/toolbar/mdc-toolbar.scss +4 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7623297ff148423d88d276b1510d0dec781ca709
|
4
|
+
data.tar.gz: 95d49c4c9324f210b6f0eec05247c6daec1380ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f1b6efce0ac8249ea472459df4dfdf9a564fd2d241cd7f38de2fa0f0b72f8b5defaf2517c1acd5ca778a062d2895d04c755146bedc095dbcb6ba7ac9d7a4531
|
7
|
+
data.tar.gz: b5366dd5cbe49c9ae5f828e9c9c4aec8d4acb138f71a9a605c915a9deb268a922988f349150f30d4b0ab02bc4461921eca8fc4a8320ac9c82dc47e2611168b55
|
data/CHANGELOG.md
CHANGED
@@ -2964,7 +2964,7 @@ var MDCRippleFoundation = function (_MDCFoundation) {
|
|
2964
2964
|
this.frame_ = this.adapter_.computeBoundingRect();
|
2965
2965
|
|
2966
2966
|
var maxDim = Math.max(this.frame_.height, this.frame_.width);
|
2967
|
-
var surfaceDiameter = Math.
|
2967
|
+
var surfaceDiameter = Math.min(this.frame_.width, this.frame_.height);
|
2968
2968
|
|
2969
2969
|
// 60% of the largest dimension of the surface
|
2970
2970
|
this.initialSize_ = maxDim * MDCRippleFoundation.numbers.INITIAL_ORIGIN_SCALE;
|
@@ -62,17 +62,6 @@
|
|
62
62
|
-webkit-tap-highlight-color: rgba(black, .3);
|
63
63
|
}
|
64
64
|
|
65
|
-
fieldset:disabled &,
|
66
|
-
&:disabled {
|
67
|
-
color: rgba(black, .38);
|
68
|
-
cursor: default;
|
69
|
-
pointer-events: none;
|
70
|
-
|
71
|
-
@include mdc-theme-dark(".mdc-button") {
|
72
|
-
@include mdc-theme-prop(color, text-disabled-on-dark);
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
65
|
@include mdc-theme-dark(".mdc-button") {
|
77
66
|
@include mdc-ripple-base;
|
78
67
|
@include mdc-ripple-bg((pseudo: "::before", base-color: white, opacity: .16));
|
@@ -104,20 +93,6 @@
|
|
104
93
|
@include mdc-elevation(8);
|
105
94
|
}
|
106
95
|
|
107
|
-
fieldset:disabled &,
|
108
|
-
&:disabled {
|
109
|
-
@include mdc-elevation(0);
|
110
|
-
@include mdc-theme-prop(color, text-primary-on-dark);
|
111
|
-
|
112
|
-
background-color: rgba(black, .15);
|
113
|
-
|
114
|
-
@include mdc-theme-dark(".mdc-button") {
|
115
|
-
@include mdc-theme-prop(color, text-disabled-on-dark);
|
116
|
-
|
117
|
-
background-color: rgba(255, 255, 255, .15);
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
96
|
@include mdc-theme-dark(".mdc-button") {
|
122
97
|
@include mdc-ripple-base;
|
123
98
|
@include mdc-ripple-bg((pseudo: "::before", base-color: black, opacity: .32));
|
@@ -174,4 +149,35 @@
|
|
174
149
|
}
|
175
150
|
}
|
176
151
|
}
|
152
|
+
|
153
|
+
// Disabled button styles need to be last to ensure they override other primary/accent/dark styles
|
154
|
+
|
155
|
+
.mdc-button {
|
156
|
+
fieldset:disabled &,
|
157
|
+
&:disabled {
|
158
|
+
color: rgba(black, .38);
|
159
|
+
cursor: default;
|
160
|
+
pointer-events: none;
|
161
|
+
|
162
|
+
@include mdc-theme-dark(".mdc-button") {
|
163
|
+
@include mdc-theme-prop(color, text-disabled-on-dark);
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
.mdc-button--raised {
|
169
|
+
fieldset:disabled &,
|
170
|
+
&:disabled {
|
171
|
+
@include mdc-elevation(0);
|
172
|
+
@include mdc-theme-prop(color, text-primary-on-dark);
|
173
|
+
|
174
|
+
background-color: rgba(black, .15);
|
175
|
+
|
176
|
+
@include mdc-theme-dark(".mdc-button") {
|
177
|
+
@include mdc-theme-prop(color, text-disabled-on-dark);
|
178
|
+
|
179
|
+
background-color: rgba(255, 255, 255, .15);
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
177
183
|
// postcss-bem-linter: end
|
@@ -93,8 +93,10 @@
|
|
93
93
|
cursor: pointer;
|
94
94
|
}
|
95
95
|
|
96
|
-
|
97
|
-
|
96
|
+
@media (min-width: $mdc-toolbar-mobile-breakpoint) {
|
97
|
+
&__icon:last-of-type {
|
98
|
+
margin-right: 8px;
|
99
|
+
}
|
98
100
|
}
|
99
101
|
|
100
102
|
&__icon--menu {
|
@@ -115,10 +117,6 @@
|
|
115
117
|
padding: 16px;
|
116
118
|
}
|
117
119
|
|
118
|
-
.mdc-toolbar__icon:last-child {
|
119
|
-
padding: 16px 8px;
|
120
|
-
}
|
121
|
-
|
122
120
|
.mdc-toolbar__title {
|
123
121
|
margin-left: 16px !important;
|
124
122
|
}
|
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.18.
|
4
|
+
version: 0.18.1
|
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-08-
|
11
|
+
date: 2017-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|