material_design_lite-sass 1.0.5 → 1.0.6

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.
@@ -132,10 +132,12 @@
132
132
  * @public
133
133
  */
134
134
  MaterialTextfield.prototype.checkValidity = function() {
135
- if (this.input_.validity.valid) {
136
- this.element_.classList.remove(this.CssClasses_.IS_INVALID);
137
- } else {
138
- this.element_.classList.add(this.CssClasses_.IS_INVALID);
135
+ if (this.input_.validity) {
136
+ if (this.input_.validity.valid) {
137
+ this.element_.classList.remove(this.CssClasses_.IS_INVALID);
138
+ } else {
139
+ this.element_.classList.add(this.CssClasses_.IS_INVALID);
140
+ }
139
141
  }
140
142
  };
141
143
  MaterialTextfield.prototype['checkValidity'] =
@@ -186,11 +188,7 @@
186
188
  */
187
189
  MaterialTextfield.prototype.change = function(value) {
188
190
 
189
- if (value) {
190
- this.input_.value = value;
191
- } else {
192
- this.input_.value = '';
193
- }
191
+ this.input_.value = value || '';
194
192
  this.updateClasses_();
195
193
  };
196
194
  MaterialTextfield.prototype['change'] = MaterialTextfield.prototype.change;
@@ -227,9 +225,13 @@
227
225
  this.boundKeyDownHandler = this.onKeyDown_.bind(this);
228
226
  this.input_.addEventListener('keydown', this.boundKeyDownHandler);
229
227
  }
230
-
228
+ var invalid = this.element_.classList
229
+ .contains(this.CssClasses_.IS_INVALID);
231
230
  this.updateClasses_();
232
231
  this.element_.classList.add(this.CssClasses_.IS_UPGRADED);
232
+ if (invalid) {
233
+ this.element_.classList.add(this.CssClasses_.IS_INVALID);
234
+ }
233
235
  }
234
236
  }
235
237
  };
@@ -248,6 +250,17 @@
248
250
  }
249
251
  };
250
252
 
253
+ /**
254
+ * Public alias for the downgrade method.
255
+ *
256
+ * @public
257
+ */
258
+ MaterialTextfield.prototype.mdlDowngrade =
259
+ MaterialTextfield.prototype.mdlDowngrade_;
260
+
261
+ MaterialTextfield.prototype['mdlDowngrade'] =
262
+ MaterialTextfield.prototype.mdlDowngrade;
263
+
251
264
  // The component registers itself. It can assume componentHandler is available
252
265
  // in the global scope.
253
266
  componentHandler.register({
@@ -109,7 +109,7 @@
109
109
 
110
110
  if (this.forElement_) {
111
111
  // Tabindex needs to be set for `blur` events to be emitted
112
- if (!this.forElement_.getAttribute('tabindex')) {
112
+ if (!this.forElement_.hasAttribute('tabindex')) {
113
113
  this.forElement_.setAttribute('tabindex', '0');
114
114
  }
115
115
 
@@ -141,6 +141,17 @@
141
141
  }
142
142
  };
143
143
 
144
+ /**
145
+ * Public alias for the downgrade method.
146
+ *
147
+ * @public
148
+ */
149
+ MaterialTooltip.prototype.mdlDowngrade =
150
+ MaterialTooltip.prototype.mdlDowngrade_;
151
+
152
+ MaterialTooltip.prototype['mdlDowngrade'] =
153
+ MaterialTooltip.prototype.mdlDowngrade;
154
+
144
155
  // The component registers itself. It can assume componentHandler is available
145
156
  // in the global scope.
146
157
  componentHandler.register({
@@ -267,7 +267,7 @@ input.mdl-button[type="submit"] {
267
267
  &[disabled][disabled],
268
268
  &.mdl-button--disabled.mdl-button--disabled {
269
269
  color: $button-secondary-color-disabled;
270
- cursor: auto;
270
+ cursor: default;
271
271
  background-color: transparent;
272
272
  }
273
273
 
@@ -73,7 +73,7 @@
73
73
 
74
74
  .mdl-card__subtitle-text {
75
75
  font-size: $card-subtitle-font-size;
76
- color: grey;
76
+ color: $card-subtitle-color;
77
77
  margin: 0;
78
78
  }
79
79
 
@@ -62,6 +62,7 @@
62
62
 
63
63
 
64
64
  // Optional utility classes for formatting special blocks in this component.
65
+ .mdl-layout__title,
65
66
  .mdl-layout-title {
66
67
  display: block;
67
68
  position: relative;
@@ -113,12 +114,16 @@
113
114
 
114
115
  &.is-visible {
115
116
  transform: translateX(0);
117
+ & ~ .mdl-layout__content.mdl-layout__content {
118
+ overflow: hidden;
119
+ }
116
120
  }
117
121
 
118
122
  & > * {
119
123
  flex-shrink: 0;
120
124
  }
121
125
 
126
+ & > .mdl-layout__title,
122
127
  & > .mdl-layout-title {
123
128
  line-height: $layout-desktop-header-height;
124
129
  padding-left: $layout-header-desktop-indent;
@@ -382,7 +387,7 @@
382
387
  transition-property: background-color;
383
388
  @include material-animation-default();
384
389
 
385
- .mdl-layout__drawer.is-visible ~ & {
390
+ &.is-visible {
386
391
  background-color: rgba(0, 0, 0, 0.5);
387
392
  visibility: visible;
388
393
  }
@@ -169,8 +169,8 @@
169
169
  z-index: 1;
170
170
  opacity: 0;
171
171
 
172
- &~.mdl-mega-footer--heading:after,
173
- &~.mdl-mega-footer__heading:after {
172
+ & + .mdl-mega-footer--heading:after,
173
+ & + .mdl-mega-footer__heading:after {
174
174
  font-family: 'Material Icons';
175
175
  content: '\E5CE'
176
176
  }
@@ -178,12 +178,18 @@
178
178
 
179
179
  .mdl-mega-footer--heading-checkbox:checked,
180
180
  .mdl-mega-footer__heading-checkbox:checked {
181
- &~ul {
182
- display:none;
181
+ // WebViews in iOS 9 break the "~" operator, and WebViews in OS X 10.10
182
+ // break consecutive "+" operators in some cases. Therefore, we need to use
183
+ // both here to cover all the bases.
184
+ & ~ .mdl-mega-footer--link-list,
185
+ & ~ .mdl-mega-footer__link-list,
186
+ & + .mdl-mega-footer--heading + .mdl-mega-footer--link-list,
187
+ & + .mdl-mega-footer__heading + .mdl-mega-footer__link-list {
188
+ display: none;
183
189
  }
184
190
 
185
- &~.mdl-mega-footer--heading:after,
186
- &~.mdl-mega-footer__heading:after {
191
+ & + .mdl-mega-footer--heading:after,
192
+ & + .mdl-mega-footer__heading:after {
187
193
  font-family: 'Material Icons';
188
194
  content: '\E5CF'
189
195
  }
@@ -260,23 +266,29 @@
260
266
  .mdl-mega-footer__heading-checkbox {
261
267
  display: none;
262
268
 
263
- &~.mdl-mega-footer--heading:after,
264
- &~.mdl-mega-footer__heading:after {
269
+ & + .mdl-mega-footer--heading:after,
270
+ & + .mdl-mega-footer__heading:after {
265
271
  background-image: none;
266
272
  }
267
273
  }
268
274
  .mdl-mega-footer--heading-checkbox:checked,
269
275
  .mdl-mega-footer__heading-checkbox:checked {
270
- &~ul {
271
- display: block;
272
- }
276
+ // WebViews in iOS 9 break the "~" operator, and WebViews in OS X 10.10
277
+ // break consecutive "+" operators in some cases. Therefore, we need to use
278
+ // both here to cover all the bases.
279
+ & ~ .mdl-mega-footer--link-list,
280
+ & ~ .mdl-mega-footer__link-list,
281
+ & + .mdl-mega-footer__heading + .mdl-mega-footer__link-list,
282
+ & + .mdl-mega-footer--heading + .mdl-mega-footer--link-list {
283
+ display: block;
284
+ }
273
285
 
274
- &~.mdl-mega-footer--heading:after,
275
- &~.mdl-mega-footer__heading:after {
276
- content: '';
286
+ & + .mdl-mega-footer--heading:after,
287
+ & + .mdl-mega-footer__heading:after {
288
+ content: '';
289
+ }
277
290
  }
278
291
  }
279
- }
280
292
 
281
293
  .mdl-mega-footer--bottom-section,
282
294
  .mdl-mega-footer__bottom-section {
@@ -185,7 +185,7 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider.is-upgraded {
185
185
  background: transparent;
186
186
  }
187
187
 
188
- &.is-lowest-value ~
188
+ &.is-lowest-value +
189
189
  .mdl-slider__background-flex > .mdl-slider__background-upper {
190
190
  left: 6px;
191
191
  }
@@ -205,7 +205,7 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider.is-upgraded {
205
205
  transform: scale(1.5);
206
206
  }
207
207
 
208
- &.is-lowest-value:active ~
208
+ &.is-lowest-value:active +
209
209
  .mdl-slider__background-flex > .mdl-slider__background-upper {
210
210
  left: 9px;
211
211
  }
@@ -271,13 +271,13 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider.is-upgraded {
271
271
  background: $range-bg-color;
272
272
  }
273
273
 
274
- &:disabled ~
274
+ &:disabled +
275
275
  .mdl-slider__background-flex > .mdl-slider__background-lower {
276
276
  background-color: $range-bg-color;
277
277
  left: -6px;
278
278
  }
279
279
 
280
- &:disabled ~
280
+ &:disabled +
281
281
  .mdl-slider__background-flex > .mdl-slider__background-upper {
282
282
  left: 6px;
283
283
  }
@@ -298,7 +298,7 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider.is-upgraded {
298
298
  transform: scale(0.667);
299
299
  }
300
300
 
301
- &.is-lowest-value:disabled:active ~
301
+ &.is-lowest-value:disabled:active +
302
302
  .mdl-slider__background-flex > .mdl-slider__background-upper {
303
303
  left: 6px;
304
304
  }
@@ -71,7 +71,7 @@ $performance_font: 'Helvetica', 'Arial', sans-serif !default;
71
71
  @import "functions";
72
72
 
73
73
  /* ========== IMAGES ========== */
74
- $image_path: '/assets';
74
+ $image_path: '/assets' !default;
75
75
 
76
76
  /* ========== Color & Themes ========== */
77
77
 
@@ -183,7 +183,7 @@ $layout-drawer-border-color: unquote("rgb(#{$palette-grey-300})") !default;
183
183
  $layout-text-color: unquote("rgb(#{$palette-grey-800})") !default;
184
184
  $layout-drawer-navigation-color: #757575 !default;
185
185
  $layout-drawer-navigation-link-active-background: unquote("rgb(#{$color-light-contrast})") !default;
186
- $layout-drawer-navigation-link-active-color: unquote("rgb(#{$color-primary})") !default;
186
+ $layout-drawer-navigation-link-active-color: unquote("rgb(#{$palette-grey-300})") !default;
187
187
 
188
188
  // Header
189
189
  $layout-header-bg-color: unquote("rgb(#{$color-primary})") !default;
@@ -247,6 +247,7 @@ $card-text-color: unquote("rgb(#{$color-black})") !default;
247
247
  $card-image-placeholder-color: unquote("rgb(#{$color-accent})") !default;
248
248
  $card-supporting-text-text-color: unquote("rgba(#{$color-black}, 0.54)") !default;
249
249
  $card-border-color: rgba(0,0,0,0.1) !default;
250
+ $card-subtitle-color: unquote("rgba(#{$color-black}, 0.54)") !default;
250
251
 
251
252
  /* ========== Sliders ========== */
252
253
 
@@ -463,7 +464,7 @@ $card-background-image-url: '' !default;
463
464
  */
464
465
  $button-min-width: 64px !default;
465
466
  $button-height: 36px !default;
466
- $button-padding: 8px !default;
467
+ $button-padding: 16px !default;
467
468
  $button-margin: 4px !default;
468
469
  $button-border-radius: 2px !default;
469
470
 
@@ -488,10 +489,10 @@ $bar-height: 4px !default;
488
489
 
489
490
  /* BADGE */
490
491
  $badge-font-size: 12px;
491
- $badge-color: unquote("rgb(#{$color-white})") !default;
492
+ $badge-color: unquote("rgb(#{$color-accent-contrast})") !default;
492
493
  $badge-color-inverse: unquote("rgb(#{$color-accent})") !default;
493
494
  $badge-background: unquote("rgb(#{$color-accent})") !default;
494
- $badge-background-inverse: unquote("rgba(#{$color-white},0.2)") !default;
495
+ $badge-background-inverse: unquote("rgb(#{$color-accent-contrast})") !default;
495
496
  $badge-size : 22px;
496
497
  $badge-padding: 2px;
497
498
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_design_lite-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Tarasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass