material_components_web-sass 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b334719663df042c604d36a3ae498e7740df9fb
4
- data.tar.gz: 6969131d3b9cb32034243b9a09f666ae0f513cf2
3
+ metadata.gz: ac6fdad56ca66489e91f089efa9b6189f1e06288
4
+ data.tar.gz: 36980319afe25681f31cab1cca53f51b3cab1121
5
5
  SHA512:
6
- metadata.gz: fd8ac4ba7ce363e33f730882ccad3b1e932003d0b99d11a8586a90a53ff65abaa843eede000ac1c3b6117de26bd868bba4e01f23365a770f155eef5acee5024b
7
- data.tar.gz: 64e6c4947c5bfabdb7c428114a1a2b9346a03a101617f8cd8414ab5aba99c1812937586fc5a13fdd0110cfdaa0234df2c281bf240fbcf6993f543f2459837448
6
+ metadata.gz: 503e72559a46c9ac7e1bdd2f206ac74c5b79297878c79341fb11068e4ee3caa00132d550c310f07c4bc8f58d55ecb3ce3e1ffe11227d520eef05620381ac77aa
7
+ data.tar.gz: ddf5ce31c67807557efdbb16ed271feb4b3a078c5a7e2c0931d0c24a564110a705a03e2b675ac8adfaa55240c83ccf11eb0a0c95e8ff89d6d9e9750441b01284
@@ -1,3 +1,12 @@
1
+ ## 0.21.1 (2017-09-21)
2
+
3
+ - Update assets to match upstream version
4
+
5
+ Library version:
6
+
7
+ - Material Components for the web v0.21.1
8
+ - Material Icons v3.0.0
9
+
1
10
  ## 0.21.0 (2017-09-19)
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.21.0'.freeze
3
+ VERSION = '0.21.1'.freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
 
15
- @import "@material/animation/variables";
15
+ @import "@material/animation/functions";
16
16
  @import "@material/elevation/mixins";
17
17
  @import "@material/elevation/variables";
18
18
  @import "@material/ripple/mixins";
@@ -21,21 +21,13 @@
21
21
  * Both .mdc-toolbar__icon and .mdc-toolbar__icon--menu share all styles except for
22
22
  * horizontal padding.
23
23
  */
24
- @mixin mdc-shared-icon-style($padding-type: null) {
24
+ @mixin mdc-shared-icon-style() {
25
25
  display: flex;
26
26
  align-items: center;
27
27
  justify-content: center;
28
- // stylelint enable
29
-
28
+ padding: $mdc-toolbar-element-vertical-padding;
30
29
  border: none;
31
30
  background-color: inherit;
32
31
  color: inherit;
33
32
  text-decoration: none;
34
-
35
- // stylelint-disable at-rule-empty-line-before, block-closing-brace-newline-after
36
- @if $padding-type == menu {
37
- padding: $mdc-toobar-element-vertical-padding;
38
- } @else {
39
- padding: $mdc-toobar-element-vertical-padding 8px;
40
- }
41
33
  }
@@ -17,8 +17,12 @@
17
17
  $mdc-toolbar-row-height: 64px;
18
18
  $mdc-toolbar-mobile-row-height: 56px;
19
19
  $mdc-toolbar-mobile-landscape-row-height: 48px;
20
- $mdc-toolbar-padding: 20px 28px;
21
- $mdc-toobar-element-vertical-padding: 16px;
20
+
21
+ $mdc-toolbar-element-vertical-padding: 16px;
22
+ $mdc-toolbar-element-horizontal-padding-desktop: 24px;
23
+ $mdc-toolbar-element-horizontal-padding-mobile: 16px;
24
+ $mdc-toolbar-title-margin-to-menu-icon-desktop: 8px;
25
+ $mdc-toolbar-title-margin-to-menu-icon-mobile: 16px;
22
26
 
23
27
  $mdc-toolbar-ratio-to-extend-flexible: 4 !default;
24
28
 
@@ -77,11 +77,10 @@
77
77
  &__title {
78
78
  @include mdc-typography(title);
79
79
  @include mdc-typography-overflow-ellipsis;
80
+ @include mdc-rtl-reflexive-box(margin, left, $mdc-toolbar-element-horizontal-padding-desktop);
80
81
 
81
82
  align-self: center;
82
- margin: 0;
83
- margin-left: 24px;
84
- padding: $mdc-toobar-element-vertical-padding 0;
83
+ padding: $mdc-toolbar-element-vertical-padding 0;
85
84
  line-height: 1.5rem;
86
85
  z-index: 1;
87
86
  }
@@ -90,37 +89,50 @@
90
89
  @include mdc-shared-icon-style;
91
90
  @include mdc-theme-prop(color, text-primary-on-primary);
92
91
 
92
+ padding-right: $mdc-toolbar-element-horizontal-padding-desktop / 2;
93
+ padding-left: $mdc-toolbar-element-horizontal-padding-desktop / 2;
93
94
  cursor: pointer;
94
95
  }
95
96
 
96
97
  &__icon:last-of-type {
97
- padding-right: 16px;
98
+ @include mdc-rtl-reflexive-property(padding, $mdc-toolbar-element-horizontal-padding-desktop / 2, $mdc-toolbar-element-horizontal-padding-desktop);
98
99
  }
99
100
 
100
101
  &__icon--menu {
101
- @include mdc-shared-icon-style(menu);
102
+ @include mdc-shared-icon-style;
102
103
  @include mdc-theme-prop(color, text-primary-on-primary);
103
104
 
104
- padding: 16px 24px;
105
+ padding-right: $mdc-toolbar-element-horizontal-padding-desktop;
106
+ padding-left: $mdc-toolbar-element-horizontal-padding-desktop;
105
107
  cursor: pointer;
106
108
  }
107
109
  }
108
110
 
109
111
  .mdc-toolbar__icon--menu + .mdc-toolbar__title {
110
- margin-left: 8px;
112
+ @include mdc-rtl-reflexive-box(margin, left, $mdc-toolbar-title-margin-to-menu-icon-desktop);
111
113
  }
112
114
 
113
115
  @media (max-width: $mdc-toolbar-mobile-breakpoint) {
114
- .mdc-toolbar__icon--menu {
115
- padding: 16px;
116
+ .mdc-toolbar__title {
117
+ @include mdc-rtl-reflexive-box(margin, left, $mdc-toolbar-element-horizontal-padding-mobile);
116
118
  }
117
119
 
118
- .mdc-toolbar__icon:last-child {
119
- padding: 16px 8px;
120
+ .mdc-toolbar__icon {
121
+ padding-right: $mdc-toolbar-element-horizontal-padding-mobile / 2;
122
+ padding-left: $mdc-toolbar-element-horizontal-padding-mobile / 2;
120
123
  }
121
124
 
122
- .mdc-toolbar__title {
123
- margin-left: 16px !important;
125
+ .mdc-toolbar__icon:last-of-type {
126
+ @include mdc-rtl-reflexive-property(padding, $mdc-toolbar-element-horizontal-padding-mobile / 2, $mdc-toolbar-element-horizontal-padding-mobile);
127
+ }
128
+
129
+ .mdc-toolbar__icon--menu {
130
+ padding-right: $mdc-toolbar-element-horizontal-padding-mobile;
131
+ padding-left: $mdc-toolbar-element-horizontal-padding-mobile;
132
+ }
133
+
134
+ .mdc-toolbar__icon--menu + .mdc-toolbar__title {
135
+ @include mdc-rtl-reflexive-box(margin, left, $mdc-toolbar-title-margin-to-menu-icon-mobile);
124
136
  }
125
137
  }
126
138
 
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.21.0
4
+ version: 0.21.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-09-19 00:00:00.000000000 Z
11
+ date: 2017-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails