material_components_web-sass 0.11.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,7 +63,6 @@ $mdc-simple-menu-item-fade-duration: .3s;
63
63
  }
64
64
 
65
65
  &__items {
66
- display: inline-block;
67
66
  overflow-x: hidden;
68
67
  overflow-y: auto;
69
68
  box-sizing: border-box;
@@ -125,7 +124,7 @@ $mdc-simple-menu-item-fade-duration: .3s;
125
124
  /* stylelint-disable plugin/selector-bem-pattern */
126
125
  .mdc-list-group,
127
126
  .mdc-list {
128
- padding: 0;
127
+ padding: 8px 0;
129
128
  }
130
129
 
131
130
  .mdc-list-item {
@@ -40,7 +40,7 @@ $mdc-radio-transition-duration: 120ms;
40
40
  display: inline-block;
41
41
  position: relative;
42
42
  box-sizing: border-box;
43
- flex: 0 0 $mdc-radio-touch-area;
43
+ flex: 0 0 auto;
44
44
  width: $mdc-radio-touch-area;
45
45
  height: $mdc-radio-touch-area;
46
46
  padding: ($mdc-radio-touch-area - $mdc-radio-ui-size) / 2;
@@ -16,3 +16,4 @@
16
16
 
17
17
  @import "./tab/mdc-tab";
18
18
  @import "./tab-bar/mdc-tab-bar";
19
+ @import "./tab-bar-scroller/mdc-tab-bar-scroller";
@@ -0,0 +1,95 @@
1
+ //
2
+ // Copyright 2017 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/animation/functions";
18
+ @import "@material/theme/mixins";
19
+ @import "@material/rtl/mixins";
20
+
21
+ $mdc-tab-bar-scroller-indicator-width: 48px;
22
+
23
+ // postcss-bem-linter: define tab-bar-scroller
24
+ .mdc-tab-bar-scroller {
25
+ display: flex;
26
+ align-items: center;
27
+ box-sizing: border-box;
28
+ width: 100%;
29
+ background-color: inherit;
30
+ overflow: hidden;
31
+
32
+ &__scroll-frame {
33
+ display: flex;
34
+ position: relative;
35
+ flex: 1;
36
+ justify-content: flex-start;
37
+ overflow: hidden;
38
+
39
+ &__tabs {
40
+ transition: mdc-animation-enter(transform, 240ms);
41
+ will-change: transform;
42
+ }
43
+ }
44
+
45
+ &__indicator {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ width: $mdc-tab-bar-scroller-indicator-width;
50
+ cursor: pointer;
51
+ visibility: hidden;
52
+
53
+ @include mdc-theme-prop(color, text-secondary-on-light);
54
+
55
+ @include mdc-theme-dark(".mdc-tab-bar") {
56
+ @include mdc-theme-prop(color, text-secondary-on-dark);
57
+ }
58
+
59
+ &:hover {
60
+ @include mdc-theme-prop(color, text-primary-on-light);
61
+
62
+ @include mdc-theme-dark(".mdc-tab-bar") {
63
+ @include mdc-theme-prop(color, text-primary-on-dark);
64
+ }
65
+ }
66
+
67
+ &__inner {
68
+ color: inherit;
69
+ text-decoration: inherit;
70
+ cursor: inherit;
71
+
72
+ &:focus {
73
+ outline-color: inherit;
74
+ }
75
+
76
+ @include mdc-rtl(".mdc-tab-bar-scroller") {
77
+ transform: rotate(180deg);
78
+ }
79
+ }
80
+
81
+ &__inner:hover {
82
+ color: inherit;
83
+
84
+ @include mdc-theme-dark(".mdc-tab-bar") {
85
+ @include mdc-theme-prop(color, text-secondary-on-dark);
86
+ }
87
+ }
88
+ }
89
+
90
+ &__indicator--enabled {
91
+ visibility: visible;
92
+ }
93
+ }
94
+
95
+ // postcss-bem-linter: end
@@ -21,14 +21,17 @@
21
21
  // postcss-bem-linter: define tab-bar
22
22
  .mdc-tab-bar {
23
23
  display: table;
24
+ position: relative;
24
25
  height: 48px;
25
26
  margin: 0 auto;
26
- position: relative;
27
27
  text-transform: uppercase;
28
28
 
29
29
  &__indicator {
30
- height: 2px;
30
+ position: absolute;
31
+ bottom: 0;
32
+ left: 0;
31
33
  width: 100%;
34
+ height: 2px;
32
35
 
33
36
  @include mdc-theme-prop(background-color, text-primary-on-light);
34
37
 
@@ -36,9 +39,6 @@
36
39
  @include mdc-theme-prop(background-color, text-primary-on-dark);
37
40
  }
38
41
 
39
- position: absolute;
40
- bottom: 0;
41
- left: 0;
42
42
  transform-origin: left top;
43
43
  transition: mdc-animation-enter(transform, 240ms);
44
44
  will-change: transform;
@@ -32,18 +32,18 @@ $mdc-tab-with-icon-and-text-height: 72px;
32
32
  .mdc-tab {
33
33
  @include mdc-typography(body2);
34
34
 
35
+ display: table-cell;
35
36
  position: relative;
36
37
  box-sizing: border-box;
37
- display: table-cell;
38
- text-align: center;
39
- vertical-align: middle;
40
- min-height: $mdc-tab-with-text-height;
41
38
  min-width: 160px;
42
- overflow: hidden;
39
+ min-height: $mdc-tab-with-text-height;
43
40
  padding: 0 24px;
41
+ text-align: center;
44
42
  text-decoration: none;
45
- cursor: pointer;
46
43
  white-space: nowrap;
44
+ cursor: pointer;
45
+ overflow: hidden;
46
+ vertical-align: middle;
47
47
 
48
48
  @include mdc-theme-prop(color, text-secondary-on-light);
49
49
 
@@ -107,20 +107,22 @@ $mdc-tab-with-icon-and-text-height: 72px;
107
107
  }
108
108
  }
109
109
 
110
+ // stylelint-disable plugin/selector-bem-pattern
110
111
  .mdc-tab-bar:not(.mdc-tab-bar-upgraded) .mdc-tab {
111
112
  position: relative;
112
113
 
113
114
  &::after {
115
+ display: none;
114
116
  position: absolute;
115
- left: 0;
116
117
  top: $mdc-tab-with-text-height - 2px;
117
- content: "";
118
+ left: 0;
118
119
  width: calc(100% - 4px);
119
120
  height: 2px;
120
- display: none;
121
+ content: "";
121
122
  pointer-events: none;
122
123
 
123
124
  @include mdc-theme-prop(background-color, text-primary-on-light);
125
+
124
126
  @include mdc-theme-dark(".mdc-tab-bar", true) {
125
127
  @include mdc-theme-prop(background-color, text-primary-on-dark);
126
128
  }
@@ -147,15 +149,19 @@ $mdc-tab-with-icon-and-text-height: 72px;
147
149
  opacity: .87;
148
150
  }
149
151
  }
152
+ // stylelint-enable plugin/selector-bem-pattern
150
153
 
154
+ // stylelint-disable plugin/selector-bem-pattern
151
155
  .mdc-tab-bar--icons-with-text:not(.mdc-tab-bar-upgraded) .mdc-tab::after {
152
156
  top: $mdc-tab-with-icon-and-text-height - 2px;
153
157
  }
158
+ // stylelint-enable plugin/selector-bem-pattern
154
159
 
155
160
  .mdc-tab.mdc-ripple-upgraded {
156
161
  @include mdc-ripple-base;
157
162
  @include mdc-ripple-fg((pseudo: "::after"));
158
163
  @include mdc-ripple-bg((pseudo: "::before"));
164
+
159
165
  @include mdc-theme-dark(".mdc-tab-bar") {
160
166
  @include mdc-ripple-bg((pseudo: "::before", base-color: map-get($mdc-theme-property-values, text-primary-on-dark), opacity: .16));
161
167
  @include mdc-ripple-fg((pseudo: "::after", base-color: map-get($mdc-theme-property-values, text-primary-on-dark), opacity: .16));
@@ -166,9 +172,10 @@ $mdc-tab-with-icon-and-text-height: 72px;
166
172
  @include mdc-ripple-fg((pseudo: "::after", base-color: map-get($mdc-theme-property-values, text-primary-on-primary), opacity: .16));
167
173
  }
168
174
 
175
+ // stylelint-disable plugin/selector-bem-pattern
169
176
  &:focus {
170
177
  outline: none;
171
178
  }
179
+ // stylelint-enable plugin/selector-bem-pattern
172
180
  }
173
-
174
181
  // postcss-bem-linter: end
@@ -26,6 +26,7 @@
26
26
  @import "@material/grid-list/mdc-grid-list";
27
27
  @import "@material/icon-toggle/mdc-icon-toggle";
28
28
  @import "@material/layout-grid/mdc-layout-grid";
29
+ @import "@material/linear-progress/mdc-linear-progress";
29
30
  @import "@material/list/mdc-list";
30
31
  @import "@material/menu/mdc-menu";
31
32
  @import "@material/radio/mdc-radio";
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.11.1
4
+ version: 0.12.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-05-18 00:00:00.000000000 Z
11
+ date: 2017-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -28,56 +28,56 @@ dependencies:
28
28
  name: sass
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: railties
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '5.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.5'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sprockets-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
83
  description: Material Components for the web (MDC-Web) with Material Icons and Roboto
@@ -153,6 +153,8 @@ files:
153
153
  - vendor/assets/stylesheets/@material/layout-grid/_mixins.scss
154
154
  - vendor/assets/stylesheets/@material/layout-grid/_variables.scss
155
155
  - vendor/assets/stylesheets/@material/layout-grid/mdc-layout-grid.scss
156
+ - vendor/assets/stylesheets/@material/linear-progress/_keyframes.scss
157
+ - vendor/assets/stylesheets/@material/linear-progress/mdc-linear-progress.scss
156
158
  - vendor/assets/stylesheets/@material/list/mdc-list.scss
157
159
  - vendor/assets/stylesheets/@material/menu/mdc-menu.scss
158
160
  - vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss
@@ -168,6 +170,7 @@ files:
168
170
  - vendor/assets/stylesheets/@material/switch/_variables.scss
169
171
  - vendor/assets/stylesheets/@material/switch/mdc-switch.scss
170
172
  - vendor/assets/stylesheets/@material/tabs/mdc-tabs.scss
173
+ - vendor/assets/stylesheets/@material/tabs/tab-bar-scroller/mdc-tab-bar-scroller.scss
171
174
  - vendor/assets/stylesheets/@material/tabs/tab-bar/mdc-tab-bar.scss
172
175
  - vendor/assets/stylesheets/@material/tabs/tab/mdc-tab.scss
173
176
  - vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss