material_components_web-sass 0.2.0 → 0.3.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: d55522dc5fb6cd66e3c953551a16eb9740b586f5
4
- data.tar.gz: b29da9138be004b7ae8563d9ced77155765377ac
3
+ metadata.gz: 59f1f332cb247cd990daa0eb55e74a2c6ee66a97
4
+ data.tar.gz: 688dbe9025f3e7d289bb129e496f1a3d05acfeb4
5
5
  SHA512:
6
- metadata.gz: 627f3366f81b281cf9fa9354c2ead3c7e7a49086f5b0cd0f214c3ff7433be386fdb18f982cd9d33e4598dc72a8c3731bb08cbff442810a0d0830840fcba92b7f
7
- data.tar.gz: d9114795c64440c83610b67f41763fbdffa1433ab265bd34b7ceaeff9895ec987edd08f3736999600d7b9495a526e72ade71d17bafffcbfb5b597ad79d6ea5e8
6
+ metadata.gz: 383cb970896719d80de84c2cc8adab4e2525dce76cc747465e600f19c58c40cc0406648b8f55739eef0ed82d6fa3b44e7e89a74dc5ca4a6f3488f10dc8f10e5e
7
+ data.tar.gz: '08a151b718467b56e3c591f7e06f135a2b551190fca774a5986fcb719d3c0b897244f55a6e59d309e2d3f405cf10dbb7c2520b3305872ef36d82ff848044c20a'
@@ -1,3 +1,12 @@
1
+ ## 0.3.0 (2017-01-24)
2
+
3
+ - Update assets to match upstream version
4
+
5
+ Library version:
6
+
7
+ - Material Components for the web v0.3.0
8
+ - Material Icons v3.0.0
9
+
1
10
  ## 0.2.0 (2017-01-10)
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.2.0'.freeze
3
+ VERSION = '0.3.0'.freeze
4
4
  end
5
5
  end
@@ -316,7 +316,9 @@ return /******/ (function(modules) { // webpackBootstrap
316
316
  }
317
317
  }]);
318
318
 
319
- function MDCComponent(root, foundation) {
319
+ function MDCComponent(root) {
320
+ var foundation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDefaultFoundation();
321
+
320
322
  _classCallCheck(this, MDCComponent);
321
323
 
322
324
  this.root_ = root;
@@ -326,7 +328,7 @@ return /******/ (function(modules) { // webpackBootstrap
326
328
  }
327
329
 
328
330
  this.initialize.apply(this, args);
329
- this.foundation_ = foundation === undefined ? this.getDefaultFoundation() : foundation;
331
+ this.foundation_ = foundation;
330
332
  this.foundation_.init();
331
333
  this.initialSyncWithDOM();
332
334
  }
@@ -1457,6 +1459,10 @@ return /******/ (function(modules) { // webpackBootstrap
1457
1459
  _this.cancelBgBounded_ = function () {};
1458
1460
  _this.cancelFgBounded_ = function () {};
1459
1461
  _this.cancelFgUnbounded_ = function () {};
1462
+ _this.unboundedCoords_ = {
1463
+ left: 0,
1464
+ top: 0
1465
+ };
1460
1466
  return _this;
1461
1467
  }
1462
1468
 
@@ -1586,8 +1592,8 @@ return /******/ (function(modules) { // webpackBootstrap
1586
1592
  VAR_XF_ORIGIN_X = _MDCRippleFoundation$3.VAR_XF_ORIGIN_X,
1587
1593
  VAR_XF_ORIGIN_Y = _MDCRippleFoundation$3.VAR_XF_ORIGIN_Y;
1588
1594
 
1589
- this.adapter_.updateCssVariable(VAR_XF_ORIGIN_X, left + 'px');
1590
- this.adapter_.updateCssVariable(VAR_XF_ORIGIN_Y, top + 'px');
1595
+ this.adapter_.updateCssVariable(VAR_XF_ORIGIN_X, left - this.unboundedCoords_.left + 'px');
1596
+ this.adapter_.updateCssVariable(VAR_XF_ORIGIN_Y, top - this.unboundedCoords_.top + 'px');
1591
1597
  this.adapter_.addClass(FG_UNBOUNDED_ACTIVATION);
1592
1598
  }
1593
1599
  }, {
@@ -1806,10 +1812,12 @@ return /******/ (function(modules) { // webpackBootstrap
1806
1812
  this.adapter_.updateCssVariable(VAR_FG_UNBOUNDED_TRANSFORM_DURATION, this.xfDuration_ + 'ms');
1807
1813
 
1808
1814
  if (this.adapter_.isUnbounded()) {
1809
- var left = -(fgSize / 2) + this.frame_.width / 2;
1810
- var top = -(fgSize / 2) + this.frame_.height / 2;
1811
- this.adapter_.updateCssVariable(VAR_LEFT, left + 'px');
1812
- this.adapter_.updateCssVariable(VAR_TOP, top + 'px');
1815
+ this.unboundedCoords_ = {
1816
+ left: Math.round(-(fgSize / 2) + this.frame_.width / 2),
1817
+ top: Math.round(-(fgSize / 2) + this.frame_.height / 2)
1818
+ };
1819
+ this.adapter_.updateCssVariable(VAR_LEFT, this.unboundedCoords_.left + 'px');
1820
+ this.adapter_.updateCssVariable(VAR_TOP, this.unboundedCoords_.top + 'px');
1813
1821
  }
1814
1822
  }
1815
1823
  }]);
@@ -3280,12 +3288,24 @@ return /******/ (function(modules) { // webpackBootstrap
3280
3288
  registerInputBlurHandler: function registerInputBlurHandler(handler) {
3281
3289
  return _this3.input_.addEventListener('blur', handler);
3282
3290
  },
3291
+ registerInputInputHandler: function registerInputInputHandler(handler) {
3292
+ return _this3.input_.addEventListener('input', handler);
3293
+ },
3294
+ registerInputKeydownHandler: function registerInputKeydownHandler(handler) {
3295
+ return _this3.input_.addEventListener('keydown', handler);
3296
+ },
3283
3297
  deregisterInputFocusHandler: function deregisterInputFocusHandler(handler) {
3284
3298
  return _this3.input_.removeEventListener('focus', handler);
3285
3299
  },
3286
3300
  deregisterInputBlurHandler: function deregisterInputBlurHandler(handler) {
3287
3301
  return _this3.input_.removeEventListener('blur', handler);
3288
3302
  },
3303
+ deregisterInputInputHandler: function deregisterInputInputHandler(handler) {
3304
+ return _this3.input_.removeEventListener('input', handler);
3305
+ },
3306
+ deregisterInputKeydownHandler: function deregisterInputKeydownHandler(handler) {
3307
+ return _this3.input_.removeEventListener('keydown', handler);
3308
+ },
3289
3309
  getNativeInput: function getNativeInput() {
3290
3310
  return _this3.input_;
3291
3311
  }
@@ -3429,6 +3449,10 @@ return /******/ (function(modules) { // webpackBootstrap
3429
3449
  deregisterInputFocusHandler: function deregisterInputFocusHandler() /* handler: EventListener */{},
3430
3450
  registerInputBlurHandler: function registerInputBlurHandler() /* handler: EventListener */{},
3431
3451
  deregisterInputBlurHandler: function deregisterInputBlurHandler() /* handler: EventListener */{},
3452
+ registerInputInputHandler: function registerInputInputHandler() /* handler: EventListener */{},
3453
+ deregisterInputInputHandler: function deregisterInputInputHandler() /* handler: EventListener */{},
3454
+ registerInputKeydownHandler: function registerInputKeydownHandler() /* handler: EventListener */{},
3455
+ deregisterInputKeydownHandler: function deregisterInputKeydownHandler() /* handler: EventListener */{},
3432
3456
  setHelptextAttr: function setHelptextAttr() /* name: string, value: string */{},
3433
3457
  removeHelptextAttr: function removeHelptextAttr() /* name: string, value: string */{},
3434
3458
  getNativeInput: function getNativeInput() {
@@ -3446,12 +3470,19 @@ return /******/ (function(modules) { // webpackBootstrap
3446
3470
 
3447
3471
  var _this = _possibleConstructorReturn(this, (MDCTextfieldFoundation.__proto__ || Object.getPrototypeOf(MDCTextfieldFoundation)).call(this, _extends(MDCTextfieldFoundation.defaultAdapter, adapter)));
3448
3472
 
3473
+ _this.receivedUserInput_ = false;
3449
3474
  _this.inputFocusHandler_ = function () {
3450
3475
  return _this.activateFocus_();
3451
3476
  };
3452
3477
  _this.inputBlurHandler_ = function () {
3453
3478
  return _this.deactivateFocus_();
3454
3479
  };
3480
+ _this.inputInputHandler_ = function () {
3481
+ return _this.autoCompleteFocus_();
3482
+ };
3483
+ _this.inputKeydownHandler_ = function () {
3484
+ return _this.receivedUserInput_ = true;
3485
+ };
3455
3486
  return _this;
3456
3487
  }
3457
3488
 
@@ -3461,6 +3492,8 @@ return /******/ (function(modules) { // webpackBootstrap
3461
3492
  this.adapter_.addClass(MDCTextfieldFoundation.cssClasses.UPGRADED);
3462
3493
  this.adapter_.registerInputFocusHandler(this.inputFocusHandler_);
3463
3494
  this.adapter_.registerInputBlurHandler(this.inputBlurHandler_);
3495
+ this.adapter_.registerInputInputHandler(this.inputInputHandler_);
3496
+ this.adapter_.registerInputKeydownHandler(this.inputKeydownHandler_);
3464
3497
  }
3465
3498
  }, {
3466
3499
  key: 'destroy',
@@ -3468,6 +3501,8 @@ return /******/ (function(modules) { // webpackBootstrap
3468
3501
  this.adapter_.removeClass(MDCTextfieldFoundation.cssClasses.UPGRADED);
3469
3502
  this.adapter_.deregisterInputFocusHandler(this.inputFocusHandler_);
3470
3503
  this.adapter_.deregisterInputBlurHandler(this.inputBlurHandler_);
3504
+ this.adapter_.deregisterInputInputHandler(this.inputInputHandler_);
3505
+ this.adapter_.deregisterInputKeydownHandler(this.inputKeydownHandler_);
3471
3506
  }
3472
3507
  }, {
3473
3508
  key: 'activateFocus_',
@@ -3480,6 +3515,13 @@ return /******/ (function(modules) { // webpackBootstrap
3480
3515
  this.adapter_.addClassToLabel(LABEL_FLOAT_ABOVE);
3481
3516
  this.showHelptext_();
3482
3517
  }
3518
+ }, {
3519
+ key: 'autoCompleteFocus_',
3520
+ value: function autoCompleteFocus_() {
3521
+ if (!this.receivedUserInput_) {
3522
+ this.activateFocus_();
3523
+ }
3524
+ }
3483
3525
  }, {
3484
3526
  key: 'showHelptext_',
3485
3527
  value: function showHelptext_() {
@@ -3501,6 +3543,7 @@ return /******/ (function(modules) { // webpackBootstrap
3501
3543
  this.adapter_.removeClass(FOCUSED);
3502
3544
  if (!input.value) {
3503
3545
  this.adapter_.removeClassFromLabel(LABEL_FLOAT_ABOVE);
3546
+ this.receivedUserInput_ = false;
3504
3547
  }
3505
3548
  if (isValid) {
3506
3549
  this.adapter_.removeClass(INVALID);
@@ -1,27 +1,27 @@
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
- */
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
16
 
17
17
  @import "@material/animation/variables";
18
18
  @import "@material/animation/functions";
19
19
  @import "@material/elevation/mixins";
20
+ @import "@material/ripple/mixins";
20
21
  @import "@material/theme/mixins";
21
22
  @import "@material/typography/mixins";
22
23
 
23
- /* postcss-bem-linter: define button */
24
- /* stylelint-disable declaration-property-unit-whitelist */
24
+ // postcss-bem-linter: define button
25
25
  .mdc-button {
26
26
  @include mdc-typography(body2);
27
27
  @include mdc-theme-prop(color, text-primary-on-light);
@@ -35,21 +35,22 @@
35
35
  border-radius: 2px;
36
36
  outline: none;
37
37
  background: transparent;
38
- font-size: 14px; /* Override font to specifically be px as spec defined pt */
38
+ font-size: 14px; // Override font to specifically be px as spec defined pt
39
39
  font-weight: 500;
40
- line-height: 36px; /* Override line-height so text aligns centered */
40
+ line-height: 36px; // Override line-height so text aligns centered
41
41
  text-align: center;
42
42
  text-transform: uppercase;
43
43
  vertical-align: middle;
44
44
  box-sizing: border-box;
45
45
  -webkit-appearance: none;
46
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
46
+ -webkit-tap-highlight-color: rgba(black, .18);
47
47
 
48
48
  @include mdc-theme-dark {
49
49
  @include mdc-theme-prop(color, text-primary-on-dark);
50
+ -webkit-tap-highlight-color: rgba(white, .18);
50
51
  }
51
52
 
52
- /* postcss-bem-linter: ignore */
53
+ // postcss-bem-linter: ignore
53
54
  &::before {
54
55
  position: absolute;
55
56
  top: 0;
@@ -71,11 +72,9 @@
71
72
  &:active::before {
72
73
  transition: mdc-animation-enter(opacity, 120ms);
73
74
 
74
- /*
75
- Slightly darker value for visual distinction.
76
- This allows a full base that has distinct modes.
77
- Progressive enhancement with ripples will provide complete button spec alignment.
78
- */
75
+ // Slightly darker value for visual distinction.
76
+ // This allows a full base that has distinct modes.
77
+ // Progressive enhancement with ripples will provide complete button spec alignment.
79
78
  opacity: .18;
80
79
  }
81
80
 
@@ -98,7 +97,7 @@
98
97
 
99
98
  &--dense {
100
99
  height: 32px;
101
- font-size: .8125rem; /* 13sp */
100
+ font-size: .8125rem; // 13sp
102
101
  line-height: 32px;
103
102
  }
104
103
 
@@ -115,15 +114,12 @@
115
114
  @include mdc-theme-dark(".mdc-button") {
116
115
  @include mdc-theme-prop(background-color, primary);
117
116
 
118
- /* postcss-bem-linter: ignore */
117
+ // postcss-bem-linter: ignore
119
118
  &::before {
120
- /*
121
- We are explicitly not fully adhering to Material Design here.
122
- This should be the 700-shade when active instead of a black shade.
123
- Due to the complexity involved in adhering fully it is being ignored.
124
- Instead re-using the existing architecture for shading works just fine.
125
- - With <3 from Garbee
126
- */
119
+ // We are explicitly not fully adhering to Material Design here.
120
+ // This should be the 700-shade when active instead of a black shade.
121
+ // Due to the complexity involved in adhering fully it is being ignored.
122
+ // Instead re-using the existing architecture for shading works just fine.
127
123
  color: black;
128
124
  }
129
125
  }
@@ -136,12 +132,12 @@
136
132
  @include mdc-theme-prop(color, primary);
137
133
  }
138
134
 
139
- /* postcss-bem-linter: ignore */
135
+ // postcss-bem-linter: ignore
140
136
  &.mdc-button--raised {
141
137
  @include mdc-theme-prop(background-color, primary);
142
138
  @include mdc-theme-prop(color, text-primary-on-primary);
143
139
 
144
- /* postcss-bem-linter: ignore */
140
+ // postcss-bem-linter: ignore
145
141
  &::before {
146
142
  color: black;
147
143
  }
@@ -155,12 +151,12 @@
155
151
  @include mdc-theme-prop(color, accent);
156
152
  }
157
153
 
158
- /* postcss-bem-linter: ignore */
154
+ // postcss-bem-linter: ignore
159
155
  &.mdc-button--raised {
160
156
  @include mdc-theme-prop(background-color, accent);
161
157
  @include mdc-theme-prop(color, text-primary-on-accent);
162
158
 
163
- /* postcss-bem-linter: ignore */
159
+ // postcss-bem-linter: ignore
164
160
  &::before {
165
161
  color: black;
166
162
  }
@@ -171,7 +167,6 @@
171
167
  padding: 0 8px;
172
168
  }
173
169
 
174
- /* stylelint-disable selector-no-type */
175
170
  fieldset:disabled &,
176
171
  &:disabled {
177
172
  color: rgba(0, 0, 0, .26);
@@ -196,4 +191,33 @@
196
191
  }
197
192
  }
198
193
 
199
- /* postcss-bem-linter: end */
194
+ // postcss-bem-linter: end
195
+
196
+ .mdc-button.mdc-ripple-upgraded {
197
+ @include mdc-ripple-base;
198
+ @include mdc-ripple-bg((pseudo: "::before"));
199
+ @include mdc-ripple-fg((pseudo: "::after"));
200
+
201
+ overflow: hidden;
202
+
203
+ @include mdc-theme-dark(".mdc-button", true) {
204
+ @include mdc-ripple-bg((pseudo: "::before", base-color: white, opacity: .14));
205
+ @include mdc-ripple-fg((pseudo: "::after", base-color: white, opacity: .14));
206
+ }
207
+
208
+ @each $theme-style in (primary, accent) {
209
+ &.mdc-button--#{$theme-style} {
210
+ @include mdc-ripple-bg((pseudo: "::before", theme-style: $theme-style, opacity: .12));
211
+ @include mdc-ripple-fg((pseudo: "::after", theme-style: $theme-style, opacity: .12));
212
+ }
213
+ }
214
+ }
215
+
216
+ .mdc-button--raised.mdc-ripple-upgraded {
217
+ @each $theme-style in (primary, accent) {
218
+ &.mdc-button--#{$theme-style} {
219
+ @include mdc-ripple-bg((pseudo: "::before", base-color: white, opacity: .14));
220
+ @include mdc-ripple-fg((pseudo: "::after", base-color: white, opacity: .14));
221
+ }
222
+ }
223
+ }
@@ -19,9 +19,6 @@
19
19
  @import "@material/theme/mixins";
20
20
  @import "@material/typography/mixins";
21
21
 
22
- /* All variables are local, so disable pattern checking. */
23
- /* stylelint-disable scss/dollar-variable-pattern */
24
-
25
22
  @mixin mdc-drawer-toolbar-spacer_() {
26
23
  &__toolbar-spacer {
27
24
  display: flex;
@@ -141,5 +138,3 @@
141
138
  @include mdc-drawer-header_;
142
139
  @include mdc-drawer-list_;
143
140
  }
144
-
145
- /* stylelint-enable scss/dollar-variable-pattern */
@@ -1,25 +1,24 @@
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
- */
1
+ // Copyright 2016 Google Inc. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
16
14
 
17
15
  @import "@material/animation/functions";
18
16
  @import "@material/animation/variables";
19
17
  @import "@material/elevation/mixins";
18
+ @import "@material/ripple/mixins";
20
19
  @import "@material/theme/mixins";
21
20
 
22
- /* postcss-bem-linter: define fab */
21
+ // postcss-bem-linter: define fab
23
22
  .mdc-fab {
24
23
  display: inline-flex;
25
24
  position: relative;
@@ -36,7 +35,7 @@
36
35
  fill: currentColor;
37
36
  -moz-appearance: none;
38
37
  -webkit-appearance: none;
39
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
38
+ -webkit-tap-highlight-color: rgba(0, 0, 0, .18);
40
39
 
41
40
  @include mdc-theme-prop(background-color, accent);
42
41
  @include mdc-theme-prop(color, text-primary-on-accent);
@@ -98,17 +97,15 @@
98
97
  border: 0;
99
98
  }
100
99
 
101
- /*
102
- This allows for using SVGs within them to align properly in all browsers.
103
- Can remove once: https://bugzilla.mozilla.org/show_bug.cgi?id=1294515 is resolved.
104
- */
100
+ // This allows for using SVGs within them to align properly in all browsers.
101
+ // Can remove once: https://bugzilla.mozilla.org/show_bug.cgi?id=1294515 is resolved.
105
102
 
106
- /* stylelint-disable selector-no-type */
107
-
108
- /* postcss-bem-linter: ignore */
103
+ // stylelint-disable selector-no-type
104
+ // postcss-bem-linter: ignore
109
105
  > svg {
110
106
  width: 100%;
111
107
  }
108
+ // stylelint-enable selector-no-type
112
109
 
113
110
  fieldset:disabled &,
114
111
  &:disabled {
@@ -126,4 +123,17 @@
126
123
  width: 100%;
127
124
  }
128
125
 
129
- /* postcss-bem-linter: end */
126
+ // postcss-bem-linter: end
127
+
128
+ .mdc-fab.mdc-ripple-upgraded {
129
+ @include mdc-ripple-base;
130
+ @include mdc-ripple-bg((pseudo: "::before", base-color: white, opacity: .16));
131
+ @include mdc-ripple-fg((pseudo: "::after", base-color: white, opacity: .16));
132
+
133
+ overflow: hidden;
134
+ }
135
+
136
+ .mdc-fab--plain.mdc-ripple-upgraded {
137
+ @include mdc-ripple-bg((pseudo: "::before"));
138
+ @include mdc-ripple-fg((pseudo: "::after"));
139
+ }
@@ -1,51 +1,44 @@
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
-
1
+ // Copyright 2016 Google Inc. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ @import "@material/ripple/mixins";
17
16
  @import "@material/rtl/mixins";
18
17
  @import "@material/theme/mixins";
19
18
  @import "@material/typography/mixins";
20
19
  @import "@material/typography/variables";
21
20
 
22
- /**
23
- * Sets the width and height of a detail element to the specified dimension.
24
- */
21
+ $mdc-list-side-padding: 16px;
22
+
23
+ // Sets the width and height of a detail element to the specified dimension.
25
24
  @mixin mdc-list-detail-size_($size) {
26
25
  width: $size;
27
26
  height: $size;
28
27
  }
29
28
 
30
- /**
31
- * Sets the width and height of the start detail element, as well as calculates the margins for
32
- * the start detail element such that the text is always offset by 72px, which is defined within
33
- * the spec.
34
- */
29
+ // Sets the width and height of the start detail element, as well as calculates the margins for
30
+ // the start detail element such that the text is always offset by 72px, which is defined within
31
+ // the spec.
35
32
  @mixin mdc-list-start-detail-size_($size) {
36
- /* stylelint-disable scss/dollar-variable-pattern */
37
-
38
33
  $text-offset: 72px;
39
- $side-padding: 16px;
34
+ $side-padding: $mdc-list-side-padding;
40
35
  $margin-value: $text-offset - $side-padding - $size;
41
36
 
42
37
  @include mdc-list-detail-size_($size);
43
38
  @include mdc-rtl-reflexive-box(margin, right, $margin-value, ".mdc-list-item");
44
-
45
- /* stylelint-enable scss/dollar-variable-pattern */
46
39
  }
47
40
 
48
- /* postcss-bem-linter: define list */
41
+ // postcss-bem-linter: define list
49
42
 
50
43
  .mdc-list {
51
44
  @include mdc-typography(subheading2);
@@ -56,10 +49,10 @@
56
49
  }
57
50
 
58
51
  margin: 0;
59
- padding: 8px 16px 0;
52
+ padding: 8px $mdc-list-side-padding 0;
60
53
 
61
- /* According to the mocks and stickersheet, the line-height is adjusted to 24px for text content,
62
- * same as for subheading1. */
54
+ // According to the mocks and stickersheet, the line-height is adjusted to 24px for text content,
55
+ // same as for subheading1.
63
56
  line-height: map-get(map-get($mdc-typography-styles, subheading1), line-height);
64
57
  list-style-type: none;
65
58
  }
@@ -69,9 +62,9 @@
69
62
  font-size: .812rem;
70
63
  }
71
64
 
72
- /* postcss-bem-linter: end */
65
+ // postcss-bem-linter: end
73
66
 
74
- /* postcss-bem-linter: define list-item */
67
+ // postcss-bem-linter: define list-item
75
68
 
76
69
  .mdc-list-item {
77
70
  display: flex;
@@ -85,7 +78,7 @@
85
78
 
86
79
  &__end-detail {
87
80
  @include mdc-list-detail-size_(24px);
88
- @include mdc-rtl-reflexive-property(margin, auto, 16px, ".mdc-list-item");
81
+ @include mdc-rtl-reflexive-property(margin, auto, $mdc-list-side-padding, ".mdc-list-item");
89
82
  }
90
83
 
91
84
  &__text {
@@ -100,16 +93,16 @@
100
93
  @include mdc-theme-prop(color, text-secondary-on-dark);
101
94
  }
102
95
 
103
- /* Match the font size to the primary text when dense */
104
- /* stylelint-disable plugin/selector-bem-pattern */
96
+ // Match the font size to the primary text when dense
97
+ // stylelint-disable plugin/selector-bem-pattern
105
98
  .mdc-list--dense & {
106
99
  font-size: inherit;
107
100
  }
108
- /* stylelint-enable plugin/selector-bem-pattern */
101
+ // stylelint-enable plugin/selector-bem-pattern
109
102
  }
110
103
  }
111
104
 
112
- /* stylelint-disable plugin/selector-bem-pattern */
105
+ // stylelint-disable plugin/selector-bem-pattern
113
106
  .mdc-list--dense & {
114
107
  height: 40px;
115
108
 
@@ -147,12 +140,43 @@
147
140
  .mdc-list--two-line.mdc-list--dense & {
148
141
  height: 60px;
149
142
  }
150
- /* stylelint-enable plugin/selector-bem-pattern */
143
+ // stylelint-enable plugin/selector-bem-pattern
151
144
  }
152
145
 
153
- /* postcss-bem-linter: end */
146
+ // postcss-bem-linter: end //
147
+
148
+ // Override anchor tag styles for the use-case of a list being used for navigation
149
+ // stylelint-disable selector-no-type,selector-no-qualifying-type
150
+ a.mdc-list-item {
151
+ color: inherit;
152
+ text-decoration: none;
153
+ }
154
+ // stylelint-enable selector-no-type,selector-no-qualifying-type
155
+
156
+ .mdc-list-item.mdc-ripple-upgraded {
157
+ @include mdc-ripple-base;
158
+ @include mdc-ripple-bg((pseudo: "::before"));
159
+ @include mdc-ripple-fg((pseudo: "::after"));
160
+
161
+ position: relative;
162
+ // Cause the upgraded list item to cover the entirety of the list, causing ripples to emanate
163
+ // across the entire list element.
164
+ left: $mdc-list-side-padding * -1;
165
+ width: calc(100% + #{$mdc-list-side-padding * 2});
166
+ padding: 0 $mdc-list-side-padding;
167
+ overflow: hidden;
168
+
169
+ &:focus {
170
+ outline: none;
171
+ }
172
+
173
+ @include mdc-theme-dark(".mdc-list") {
174
+ @include mdc-ripple-bg((pseudo: "::before", base-color: white, opacity: .12));
175
+ @include mdc-ripple-fg((pseudo: "::after", base-color: white, opacity: .12));
176
+ }
177
+ }
154
178
 
155
- /* postcss-bem-linter: define list-divider */
179
+ // postcss-bem-linter: define list-divider
156
180
 
157
181
  .mdc-list-divider {
158
182
  height: 0;
@@ -166,19 +190,19 @@
166
190
  }
167
191
 
168
192
  .mdc-list-divider--inset {
169
- $mdc-list-divider-inset-amt: /* text offset */ 72px - /* padding offset */ 16px;
193
+ $mdc-list-divider-inset-amt: /* text offset */ 72px - /* padding offset */ $mdc-list-side-padding;
170
194
 
171
195
  @include mdc-rtl-reflexive-box(margin, left, $mdc-list-divider-inset-amt, ".mdc-list-group");
172
196
 
173
197
  width: calc(100% - #{$mdc-list-divider-inset-amt});
174
198
  }
175
199
 
176
- /* postcss-bem-linter: end */
200
+ // postcss-bem-linter: end
177
201
 
178
- /* postcss-bem-linter: define list-group */
202
+ // postcss-bem-linter: define list-group
179
203
 
180
204
  .mdc-list-group {
181
- padding: 0 16px;
205
+ padding: 0 $mdc-list-side-padding;
182
206
 
183
207
  &__subheader {
184
208
  $mdc-list-subheader-virtual-height: 3rem;
@@ -196,12 +220,12 @@
196
220
  margin: $mdc-list-subheader-margin 0;
197
221
  }
198
222
 
199
- /* Reset padding on mdc-list since it's already accounted for by the list group. */
200
- /* stylelint-disable plugin/selector-bem-pattern */
223
+ // Reset padding on mdc-list since it's already accounted for by the list group.
224
+ // stylelint-disable plugin/selector-bem-pattern
201
225
  .mdc-list {
202
226
  padding: 0;
203
227
  }
204
- /* stylelint-enable plugin/selector-bem-pattern */
228
+ // stylelint-enable plugin/selector-bem-pattern
205
229
  }
206
230
 
207
- /* postcss-bem-linter: end */
231
+ // postcss-bem-linter: end
@@ -46,7 +46,6 @@
46
46
  }
47
47
 
48
48
  @mixin mdc-ripple-color_($config) {
49
- /* stylelint-disable scss/dollar-variable-pattern */
50
49
  $base-color: map-get($config, base-color);
51
50
  $opacity: map-get($config, opacity);
52
51
  $theme-style: map-get($config, theme-style);
@@ -55,7 +54,6 @@
55
54
  @if ($theme-style) {
56
55
  $theme-value: map-get($mdc-theme-property-values, $theme-style);
57
56
  $css-var: var(--mdc-theme-#{$theme-style}, $theme-value);
58
- /* stylelint-enable scss/dollar-variable-pattern */
59
57
 
60
58
  background-color: rgba($theme-value, $opacity);
61
59
 
@@ -72,9 +70,7 @@
72
70
  }
73
71
 
74
72
  @mixin mdc-ripple-bg-base_($config) {
75
- /* stylelint-disable scss/dollar-variable-pattern */
76
73
  $radius: map-get($config, radius);
77
- /* stylelint-enable scss/dollar-variable-pattern */
78
74
 
79
75
  @include mdc-ripple-color_($config);
80
76
 
@@ -91,10 +87,8 @@
91
87
  }
92
88
 
93
89
  @mixin mdc-ripple-bg($config: ()) {
94
- /* stylelint-disable scss/dollar-variable-pattern */
95
90
  $config: map-merge(mdc-ripple-default-config_(), $config);
96
91
  $pseudo: map-get($config, pseudo);
97
- /* stylelint-enable scss/dollar-variable-pattern */
98
92
 
99
93
  /* stylelint-disable at-rule-empty-line-before, block-closing-brace-newline-after */
100
94
  @if ($pseudo) {
@@ -146,10 +140,8 @@
146
140
  }
147
141
 
148
142
  @mixin mdc-ripple-fg($config: ()) {
149
- /* stylelint-disable scss/dollar-variable-pattern */
150
143
  $config: map-merge(mdc-ripple-default-config_(), $config);
151
144
  $pseudo: map-get($config, pseudo);
152
- /* stylelint-enable scss/dollar-variable-pattern */
153
145
 
154
146
  /* stylelint-disable at-rule-empty-line-before, block-closing-brace-newline-after */
155
147
  @if ($pseudo) {
@@ -131,8 +131,6 @@
131
131
  * trying to flip the values, use mdc-rtl-reflexive-property().
132
132
  */
133
133
  @mixin mdc-rtl-reflexive-box($base-property, $default-direction, $value, $root-selector: null) {
134
- /* stylelint-disable scss/dollar-variable-pattern */
135
-
136
134
  @if (index((right, left), $default-direction) == null) {
137
135
  @error "Invalid default direction #{default-direction}. Please specifiy either right or left";
138
136
  }
@@ -146,8 +144,6 @@
146
144
  }
147
145
 
148
146
  @include mdc-rtl-reflexive-property($base-property, $left-value, $right-value, $root-selector);
149
-
150
- /* stylelint-enable scss/dollar-variable-pattern */
151
147
  }
152
148
 
153
149
  /**
@@ -177,14 +173,10 @@
177
173
  * A 4th optional $root-selector argument can be given, which will be passed to `mdc-rtl`.
178
174
  */
179
175
  @mixin mdc-rtl-reflexive-property($base-property, $left-value, $right-value, $root-selector: null) {
180
- /* stylelint-disable scss/dollar-variable-pattern */
181
-
182
176
  $prop-left: #{$base-property}-left;
183
177
  $prop-right: #{$base-property}-right;
184
178
 
185
179
  @include mdc-rtl-reflexive_($prop-left, $left-value, $prop-right, $right-value, $root-selector);
186
-
187
- /* stylelint-enable scss/dollar-variable-pattern */
188
180
  }
189
181
 
190
182
  /**
@@ -215,8 +207,6 @@
215
207
  * An optional third $root-selector argument may also be given, which is passed to `mdc-rtl`.
216
208
  */
217
209
  @mixin mdc-rtl-reflexive-position($pos, $value, $root-selector: null) {
218
- /* stylelint-disable scss/dollar-variable-pattern */
219
-
220
210
  @if (index((right, left), $pos) == null) {
221
211
  @error "Invalid position #{pos}. Please specifiy either right or left";
222
212
  }
@@ -230,8 +220,6 @@
230
220
  }
231
221
 
232
222
  @include mdc-rtl-reflexive_(left, $left-value, right, $right-value, $root-selector);
233
-
234
- /* stylelint-enable scss/dollar-variable-pattern */
235
223
  }
236
224
 
237
225
  @mixin mdc-rtl-reflexive_(
@@ -20,9 +20,7 @@
20
20
  @import "@material/rtl/mixins";
21
21
 
22
22
  @mixin mdc-select-dd-arrow-svg-bg_($fill-hex-number: 000000, $opacity: .54) {
23
- // stylelint-disable scss/dollar-variable-pattern
24
23
  background-image: url(data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23#{$fill-hex-number}%22%20fill-rule%3D%22evenodd%22%20opacity%3D%22#{$opacity}%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E);
25
- // stylelint-enable scss/dollar-variable-pattern
26
24
  }
27
25
 
28
26
  // postcss-bem-linter: define select
@@ -177,3 +175,97 @@
177
175
  }
178
176
  }
179
177
  }
178
+
179
+ // postcss-bem-linter: define multi-select
180
+ .mdc-multi-select {
181
+ appearance: none;
182
+ width: 250px;
183
+ padding: 0;
184
+ border: 1px solid;
185
+
186
+ @include mdc-theme-prop(border-color, text-hint-on-light);
187
+
188
+ @include mdc-theme-dark {
189
+ @include mdc-theme-prop(border-color, text-hint-on-dark);
190
+ }
191
+
192
+ outline: none;
193
+
194
+ // stylelint-disable plugin/selector-bem-pattern
195
+ .mdc-list-group {
196
+ margin: 16px 0 0;
197
+ padding: 0 0 0 16px;
198
+
199
+ @include mdc-theme-prop(color, text-hint-on-light);
200
+
201
+ @include mdc-theme-dark {
202
+ @include mdc-theme-prop(color, text-hint-on-dark);
203
+ }
204
+
205
+ font-weight: normal;
206
+
207
+ &:last-child {
208
+ margin-bottom: 16px;
209
+ }
210
+
211
+ .mdc-list-divider {
212
+ margin-left: -16px;
213
+ }
214
+ }
215
+ // stylelint-enable plugin/selector-bem-pattern
216
+
217
+ // stylelint-disable plugin/selector-bem-pattern
218
+ .mdc-list-item {
219
+ margin: 0 0 0 -16px;
220
+ padding: 0 16px;
221
+
222
+ @include mdc-theme-prop(color, text-primary-on-light);
223
+
224
+ @include mdc-theme-dark {
225
+ @include mdc-theme-prop(color, text-primary-on-dark);
226
+ }
227
+
228
+ &:first-child {
229
+ margin-top: 12px;
230
+ }
231
+
232
+ &:last-child {
233
+ margin-bottom: 8px;
234
+ }
235
+ }
236
+ // stylelint-enable plugin/selector-bem-pattern
237
+
238
+ // stylelint-disable plugin/selector-bem-pattern
239
+ .mdc-list-item:checked {
240
+ background-color: rgba(black, .12);
241
+
242
+ @include mdc-theme-prop(background-color, background);
243
+
244
+ @include mdc-theme-dark {
245
+ @include mdc-theme-prop(background-color, text-primary-on-dark);
246
+ }
247
+
248
+ }
249
+ // stylelint-enable plugin/selector-bem-pattern
250
+ }
251
+
252
+ .mdc-multi-select:focus .mdc-list-item:checked {
253
+ @include mdc-theme-prop(background-color, primary);
254
+
255
+ @include mdc-theme-dark {
256
+ @include mdc-theme-prop(background-color, text-primary-on-dark);
257
+ }
258
+ }
259
+
260
+ // height for option elements cannot be controlled
261
+ // with CSS. Use the font-size rule instead.
262
+
263
+ // stylelint-disable plugin/selector-bem-pattern
264
+ .mdc-list-divider {
265
+ margin-bottom: 8px;
266
+ padding-top: 8px;
267
+ font-size: 0;
268
+ }
269
+ // stylelint-enable plugin/selector-bem-pattern
270
+
271
+ // postcss-bem-linter: end
@@ -32,7 +32,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
32
32
  @return #{$property} 180ms $mdc-animation-fast-out-slow-in-timing-function;
33
33
  }
34
34
 
35
- /* postcss-bem-linter: define textfield */
35
+ // postcss-bem-linter: define textfield
36
36
  .mdc-textfield {
37
37
  @include mdc-typography-base;
38
38
  // We use only a subset of the MDC typography values here as changing things such as line-height
@@ -97,13 +97,13 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
97
97
  transition: mdc-textfield-transition(transform), mdc-textfield-transition(color);
98
98
  cursor: text;
99
99
 
100
- /* stylelint-disable plugin/selector-bem-pattern */
100
+ // stylelint-disable plugin/selector-bem-pattern
101
101
  @include mdc-rtl(".mdc-textfield") {
102
102
  right: 0;
103
103
  left: auto;
104
104
  transform-origin: right top;
105
105
  }
106
- /* stylelint-enable plugin/selector-bem-pattern */
106
+ // stylelint-enable plugin/selector-bem-pattern
107
107
 
108
108
  @include mdc-theme-dark(".mdc-textfield") {
109
109
  @include mdc-theme-prop(color, text-hint-on-dark);
@@ -116,6 +116,16 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
116
116
  }
117
117
  }
118
118
 
119
+ // Move label when textfield gets autofilled in Chrome
120
+ .mdc-textfield__input {
121
+ // stylelint-disable plugin/selector-bem-pattern
122
+ &:-webkit-autofill + .mdc-textfield__label {
123
+ transform: translateY(-100%) scale(.75, .75);
124
+ cursor: auto;
125
+ }
126
+ // stylelint-enable plugin/selector-bem-pattern
127
+ }
128
+
119
129
  .mdc-textfield--upgraded:not(.mdc-textfield--fullwidth) {
120
130
  display: inline-flex;
121
131
  position: relative;
@@ -229,13 +239,13 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
229
239
  border-bottom: 1px dotted $mdc-textfield-disabled-border-on-dark;
230
240
  }
231
241
 
232
- /* stylelint-disable plugin/selector-bem-pattern */
242
+ // stylelint-disable plugin/selector-bem-pattern
233
243
  .mdc-textfield__input,
234
244
  .mdc-textfield__label,
235
245
  & + .mdc-textfield-helptext {
236
246
  @include mdc-theme-prop(color, text-disabled-on-light);
237
247
  }
238
- /* stylelint-enable plugin/selector-bem-pattern */
248
+ // stylelint-enable plugin/selector-bem-pattern
239
249
 
240
250
  .mdc-textfield__input,
241
251
  .mdc-textfield__label {
@@ -245,11 +255,11 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
245
255
  }
246
256
 
247
257
  @include mdc-theme-dark(".mdc-textfield", true) {
248
- /* stylelint-disable plugin/selector-bem-pattern */
258
+ // stylelint-disable plugin/selector-bem-pattern
249
259
  + .mdc-textfield-helptext {
250
260
  @include mdc-theme-prop(colr, text-disabled-on-dark);
251
261
  }
252
- /* stylelint-enable plugin/selector-bem-pattern */
262
+ // stylelint-enable plugin/selector-bem-pattern
253
263
  }
254
264
 
255
265
  .mdc-textfield__label {
@@ -274,11 +284,9 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
274
284
  }
275
285
 
276
286
  .mdc-textfield--multiline {
277
- /* stylelint-disable scss/dollar-variable-pattern */
278
287
  $padding-inset: 4px;
279
288
  $label-offset-y: $padding-inset + 2;
280
289
  $label-offset-x: $padding-inset;
281
- /* stylelint-enable scss/dollar-variable-pattern */
282
290
 
283
291
  display: flex;
284
292
  height: initial;
@@ -288,7 +296,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
288
296
  content: initial;
289
297
  }
290
298
 
291
- /* stylelint-disable plugin/selector-bem-pattern */
299
+ // stylelint-disable plugin/selector-bem-pattern
292
300
 
293
301
  .mdc-textfield__input {
294
302
  padding: $padding-inset;
@@ -344,7 +352,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
344
352
  }
345
353
  }
346
354
  }
347
- /* stylelint-enable plugin/selector-bem-pattern */
355
+ // stylelint-enable plugin/selector-bem-pattern
348
356
  }
349
357
 
350
358
  .mdc-textfield--fullwidth {
@@ -356,7 +364,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
356
364
  border-bottom: 1px solid $mdc-textfield-divider-on-light;
357
365
  outline: none;
358
366
 
359
- /* stylelint-disable plugin/selector-bem-pattern */
367
+ // stylelint-disable plugin/selector-bem-pattern
360
368
 
361
369
  &:not(.mdc-textfield--multiline) {
362
370
  height: 56px;
@@ -394,7 +402,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
394
402
  }
395
403
  }
396
404
 
397
- /* stylelint-enable plugin/selector-bem-pattern */
405
+ // stylelint-enable plugin/selector-bem-pattern
398
406
 
399
407
  .mdc-textfield__input {
400
408
  width: 100%;
@@ -450,9 +458,9 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
450
458
  }
451
459
  }
452
460
 
453
- /* postcss-bem-linter: end */
461
+ // postcss-bem-linter: end
454
462
 
455
- /* postcss-bem-linter: define textfield-helptext */
463
+ // postcss-bem-linter: define textfield-helptext
456
464
 
457
465
  .mdc-textfield-helptext {
458
466
  @include mdc-theme-prop(color, text-hint-on-light);
@@ -467,7 +475,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
467
475
  @include mdc-theme-prop(color, text-hint-on-dark);
468
476
  }
469
477
 
470
- /* stylelint-disable plugin/selector-bem-pattern */
478
+ // stylelint-disable plugin/selector-bem-pattern
471
479
  .mdc-textfield + & {
472
480
  margin-bottom: 8px;
473
481
  }
@@ -480,7 +488,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
480
488
  opacity: 1;
481
489
  }
482
490
 
483
- /* stylelint-enable plugin/selector-bem-pattern */
491
+ // stylelint-enable plugin/selector-bem-pattern
484
492
  }
485
493
 
486
494
  .mdc-textfield-helptext--persistent {
@@ -489,7 +497,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
489
497
  will-change: initial;
490
498
  }
491
499
 
492
- /* postcss-bem-linter: end */
500
+ // postcss-bem-linter: end
493
501
 
494
502
  .mdc-textfield--invalid {
495
503
  + .mdc-textfield-helptext--validation-msg {
@@ -505,8 +513,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
505
513
  }
506
514
 
507
515
  // mdc-form-field tweaks to align text field label correctly
508
- /* stylelint-disable selector-no-type */
516
+ // stylelint-disable selector-no-type
509
517
  .mdc-form-field > .mdc-textfield + label {
510
518
  align-self: flex-start;
511
519
  }
512
- /* stylelint-enable selector-no-type */
520
+ // stylelint-enable selector-no-type
@@ -16,9 +16,6 @@
16
16
 
17
17
  @import "./constants";
18
18
 
19
- /* All variables are local, so disable pattern checking. */
20
- /* stylelint-disable scss/dollar-variable-pattern */
21
-
22
19
  /**
23
20
  * Calculate the luminance for a color.
24
21
  * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
@@ -60,5 +57,3 @@
60
57
  @return "light";
61
58
  }
62
59
  }
63
-
64
- /* stylelint-enable scss/dollar-variable-pattern */
@@ -16,9 +16,6 @@
16
16
 
17
17
  @import "./variables";
18
18
 
19
- /* All variables are local, so disable pattern checking. */
20
- /* stylelint-disable scss/dollar-variable-pattern */
21
-
22
19
  /**
23
20
  * Applies the correct theme color style to the specified property.
24
21
  * $property is typically color or background-color, but can be any CSS property that accepts color values.
@@ -100,5 +97,3 @@
100
97
  }
101
98
  }
102
99
  }
103
-
104
- /* stylelint-enable scss/dollar-variable-pattern */
@@ -14,9 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // All variables are local, so disable pattern checking.
18
- // stylelint-disable scss/dollar-variable-pattern
19
-
20
17
  @import "./variables";
21
18
 
22
19
  @mixin mdc-typography-base {
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.2.0
4
+ version: 0.3.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-01-09 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  requirements: []
189
189
  rubyforge_project:
190
- rubygems_version: 2.5.2
190
+ rubygems_version: 2.6.8
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: Material Components for the web (MDC-Web) with Material Icons and Roboto