material_components_web-sass 0.18.1 → 0.19.0

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: 7623297ff148423d88d276b1510d0dec781ca709
4
- data.tar.gz: 95d49c4c9324f210b6f0eec05247c6daec1380ca
3
+ metadata.gz: 8bc374604a8e6e5c0784cb0dd4b49a1c31008ea7
4
+ data.tar.gz: b272cd91af045421a3f3566b9e176e0bb3e29c4d
5
5
  SHA512:
6
- metadata.gz: 1f1b6efce0ac8249ea472459df4dfdf9a564fd2d241cd7f38de2fa0f0b72f8b5defaf2517c1acd5ca778a062d2895d04c755146bedc095dbcb6ba7ac9d7a4531
7
- data.tar.gz: b5366dd5cbe49c9ae5f828e9c9c4aec8d4acb138f71a9a605c915a9deb268a922988f349150f30d4b0ab02bc4461921eca8fc4a8320ac9c82dc47e2611168b55
6
+ metadata.gz: 0a2cee9844bdf1c46f683e8000304160f0bab9aa208a531951a8af43506994ef435f16df8518b7e3f3e86e2f9ae025f91fed531dc8097255aabfad95f2fb9cc1
7
+ data.tar.gz: a8d6f8c0566c203bc2cad947352bf3d82586fdd09fa0c2a8ebdc3ea8c9d46c150903069c9ff001c8f6aafa3c45bb8a26efe0fdf9950d6dee6fcb2d58fad6c7c2
@@ -1,3 +1,12 @@
1
+ ## 0.19.0 (2017-08-27)
2
+
3
+ - Update assets to match upstream version
4
+
5
+ Library version:
6
+
7
+ - Material Components for the web v0.19.0
8
+ - Material Icons v3.0.0
9
+
1
10
  ## 0.18.1 (2017-08-24)
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.1'.freeze
3
+ VERSION = '0.19.0'.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.min(this.frame_.width, this.frame_.height);
2967
+ var surfaceDiameter = Math.sqrt(Math.pow(this.frame_.width, 2) + Math.pow(this.frame_.height, 2));
2968
2968
 
2969
2969
  // 60% of the largest dimension of the surface
2970
2970
  this.initialSize_ = maxDim * MDCRippleFoundation.numbers.INITIAL_ORIGIN_SCALE;
@@ -0,0 +1,41 @@
1
+ //
2
+ // Copyright 2016 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 "@material/ripple/mixins";
18
+ @import "@material/theme/mixins";
19
+ @import "@material/theme/variables";
20
+
21
+ @mixin mdc-button-filled() {
22
+ @include mdc-ripple-base;
23
+ @include mdc-ripple-bg((pseudo: "::before", base-color: white, opacity: .32));
24
+ @include mdc-ripple-fg((pseudo: "::after", base-color: white, opacity: .32));
25
+ @include mdc-theme-prop(color, text-primary-on-dark);
26
+
27
+ background-color: black;
28
+
29
+ @include mdc-theme-dark(".mdc-button") {
30
+ @include mdc-ripple-base;
31
+ @include mdc-ripple-bg((pseudo: "::before", base-color: black, opacity: .32));
32
+ @include mdc-ripple-fg((pseudo: "::after", base-color: black, opacity: .32));
33
+ @include mdc-theme-prop(color, text-primary-on-light);
34
+
35
+ background-color: white;
36
+
37
+ &:not(.mdc-ripple-upgraded) {
38
+ -webkit-tap-highlight-color: rgba(black, .18);
39
+ }
40
+ }
41
+ }
@@ -19,6 +19,7 @@
19
19
  @import "@material/theme/mixins";
20
20
  @import "@material/theme/variables";
21
21
  @import "@material/typography/mixins";
22
+ @import "./mixins";
22
23
 
23
24
  // postcss-bem-linter: define button
24
25
  .mdc-button {
@@ -74,15 +75,14 @@
74
75
  }
75
76
  }
76
77
 
78
+ .mdc-button--raised,
79
+ .mdc-button--unelevated {
80
+ @include mdc-button-filled;
81
+ }
82
+
77
83
  .mdc-button--raised {
78
84
  @include mdc-elevation(2);
79
85
  @include mdc-elevation-transition;
80
- @include mdc-ripple-base;
81
- @include mdc-ripple-bg((pseudo: "::before", base-color: white, opacity: .32));
82
- @include mdc-ripple-fg((pseudo: "::after", base-color: white, opacity: .32));
83
- @include mdc-theme-prop(color, text-primary-on-dark);
84
-
85
- background-color: black;
86
86
 
87
87
  &:hover,
88
88
  &:focus {
@@ -92,19 +92,6 @@
92
92
  &:active {
93
93
  @include mdc-elevation(8);
94
94
  }
95
-
96
- @include mdc-theme-dark(".mdc-button") {
97
- @include mdc-ripple-base;
98
- @include mdc-ripple-bg((pseudo: "::before", base-color: black, opacity: .32));
99
- @include mdc-ripple-fg((pseudo: "::after", base-color: black, opacity: .32));
100
- @include mdc-theme-prop(color, text-primary-on-light);
101
-
102
- background-color: white;
103
-
104
- &:not(.mdc-ripple-upgraded) {
105
- -webkit-tap-highlight-color: rgba(black, .18);
106
- }
107
- }
108
95
  }
109
96
 
110
97
  .mdc-button--compact {
@@ -165,7 +152,8 @@
165
152
  }
166
153
  }
167
154
 
168
- .mdc-button--raised {
155
+ .mdc-button--raised,
156
+ .mdc-button--unelevated {
169
157
  fieldset:disabled &,
170
158
  &:disabled {
171
159
  @include mdc-elevation(0);
@@ -93,10 +93,8 @@
93
93
  cursor: pointer;
94
94
  }
95
95
 
96
- @media (min-width: $mdc-toolbar-mobile-breakpoint) {
97
- &__icon:last-of-type {
98
- margin-right: 8px;
99
- }
96
+ &__icon:last-of-type {
97
+ padding-right: 16px;
100
98
  }
101
99
 
102
100
  &__icon--menu {
@@ -117,6 +115,10 @@
117
115
  padding: 16px;
118
116
  }
119
117
 
118
+ .mdc-toolbar__icon:last-child {
119
+ padding: 16px 8px;
120
+ }
121
+
120
122
  .mdc-toolbar__title {
121
123
  margin-left: 16px !important;
122
124
  }
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.1
4
+ version: 0.19.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-08-24 00:00:00.000000000 Z
11
+ date: 2017-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -128,6 +128,7 @@ files:
128
128
  - vendor/assets/stylesheets/@material/animation/_mixins.scss
129
129
  - vendor/assets/stylesheets/@material/animation/_variables.scss
130
130
  - vendor/assets/stylesheets/@material/animation/mdc-animation.scss
131
+ - vendor/assets/stylesheets/@material/button/_mixins.scss
131
132
  - vendor/assets/stylesheets/@material/button/mdc-button.scss
132
133
  - vendor/assets/stylesheets/@material/card/mdc-card.scss
133
134
  - vendor/assets/stylesheets/@material/checkbox/_keyframes.scss