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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e22c1b380f273230e7e293a19c70779327dab61
4
- data.tar.gz: 3e06ef9312f0e3b61d7df84ec40a1e2a4cc6762d
3
+ metadata.gz: 7623297ff148423d88d276b1510d0dec781ca709
4
+ data.tar.gz: 95d49c4c9324f210b6f0eec05247c6daec1380ca
5
5
  SHA512:
6
- metadata.gz: e17e8a34d5927e8fbb2e506b235bebde0f32d31ad5ec89d52615fbce717a75e454897f2f4ee05452c568d0d4b06a36f7ee8f973dcb270f4ed346e2cfb1fb126b
7
- data.tar.gz: ecbfce12311f3ab7c782dbe4abf2e5238c7b6fa2563d6da440e4b04d5570c413e4a007d7efcef52e9b6ae7d785bfb060565ade24d268d45dfb34be7554813908
6
+ metadata.gz: 1f1b6efce0ac8249ea472459df4dfdf9a564fd2d241cd7f38de2fa0f0b72f8b5defaf2517c1acd5ca778a062d2895d04c755146bedc095dbcb6ba7ac9d7a4531
7
+ data.tar.gz: b5366dd5cbe49c9ae5f828e9c9c4aec8d4acb138f71a9a605c915a9deb268a922988f349150f30d4b0ab02bc4461921eca8fc4a8320ac9c82dc47e2611168b55
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 0.18.1 (2017-08-24)
2
+
3
+ - Update assets to match upstream version
4
+
5
+ Library version:
6
+
7
+ - Material Components for the web v0.18.1
8
+ - Material Icons v3.0.0
9
+
1
10
  ## 0.18.0 (2017-08-22)
2
11
 
3
12
  - Update assets to match upstream version
@@ -1,5 +1,5 @@
1
1
  module MaterialComponentsWeb
2
2
  module Sass
3
- VERSION = '0.18.0'.freeze
3
+ VERSION = '0.18.1'.freeze
4
4
  end
5
5
  end
@@ -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.sqrt(Math.pow(this.frame_.width, 2) + Math.pow(this.frame_.height, 2));
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
@@ -690,6 +690,11 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
690
690
  opacity: 1;
691
691
  }
692
692
 
693
+ .mdc-textfield--box + & {
694
+ margin-right: 16px;
695
+ margin-left: 16px;
696
+ }
697
+
693
698
  // stylelint-enable plugin/selector-bem-pattern
694
699
  }
695
700
 
@@ -93,8 +93,10 @@
93
93
  cursor: pointer;
94
94
  }
95
95
 
96
- &__icon:last-of-type {
97
- padding-right: 16px;
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.0
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-22 00:00:00.000000000 Z
11
+ date: 2017-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails