material_design_lite-sass 1.1.2 → 1.1.3

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: 4cbccd8bb0315b89d19cda7f3ae15954acbc09b3
4
- data.tar.gz: f520969a2be4971d18ad2149a253131733f0f4b3
3
+ metadata.gz: a425971e9db70d19938707aa33ba82829a009473
4
+ data.tar.gz: 0f48e424e3ed7d927c2d345041861b94865688e1
5
5
  SHA512:
6
- metadata.gz: bde90ce203444754ace504ba94a6e916b88fc0afbe5d9317c63a7099cb675037b6b370d1b016650077e8e5b5a03902a14926c919905d7e547baabd8ce98f1576
7
- data.tar.gz: 7bc2f86ce72d2eb95cc9e476737a9c8968abae6962834761f68716c351312125ea03750ad1384b78decd18845634172d0a4a81ef19d5b4ee0efde3ecbad627f1
6
+ metadata.gz: 9c4d31dbfdae2ab0d059ca5e10b949e404e8a98cd603c86758c12108d85d65c418b09487407e52045486146f573096930201ba570d1e26f3467b5ca26d785f38
7
+ data.tar.gz: 497acf8388dcd1c2db060b14628539afe5246be2e9b1904b5810a3630dff55d08d5f6a13643bf7df47866e7a30272ca56b65c221cbb516a988541aa4a8f0b70b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 1.1.3 (2016-03-18)
2
+
3
+ - Update assets to match upstream version
4
+
5
+ Library version:
6
+
7
+ - Material Design Lite v1.1.3
8
+ - Material Icons v2.2.1
9
+
1
10
  ## 1.1.2 (2016-03-05)
2
11
 
3
12
  - Update assets to match upstream version
@@ -1,5 +1,5 @@
1
1
  module MaterialDesignLite
2
2
  module Sass
3
- VERSION = '1.1.2'
3
+ VERSION = '1.1.3'
4
4
  end
5
5
  end
@@ -230,8 +230,15 @@ componentHandler = (function() {
230
230
  'Unable to find a registered component for the given class.');
231
231
  }
232
232
 
233
- var ev = document.createEvent('Events');
234
- ev.initEvent('mdl-componentupgraded', true, true);
233
+ var ev;
234
+ if ('CustomEvent' in window && typeof window.CustomEvent === 'function') {
235
+ ev = new Event('mdl-componentupgraded', {
236
+ 'bubbles': true, 'cancelable': false
237
+ });
238
+ } else {
239
+ ev = document.createEvent('Events');
240
+ ev.initEvent('mdl-componentupgraded', true, true);
241
+ }
235
242
  element.dispatchEvent(ev);
236
243
  }
237
244
  }
@@ -354,9 +361,15 @@ componentHandler = (function() {
354
361
  upgrades.splice(componentPlace, 1);
355
362
  component.element_.setAttribute('data-upgraded', upgrades.join(','));
356
363
 
357
- var ev = document.createEvent('Events');
358
- ev.initEvent('mdl-componentdowngraded', true, true);
359
- component.element_.dispatchEvent(ev);
364
+ var ev;
365
+ if ('CustomEvent' in window && typeof window.CustomEvent === 'function') {
366
+ ev = new Event('mdl-componentdowngraded', {
367
+ 'bubbles': true, 'cancelable': false
368
+ });
369
+ } else {
370
+ ev = document.createEvent('Events');
371
+ ev.initEvent('mdl-componentdowngraded', true, true);
372
+ }
360
373
  }
361
374
  }
362
375
 
@@ -3567,15 +3580,6 @@ function MaterialLayoutTab(tab, tabs, panels, layout) {
3567
3580
  }
3568
3581
  });
3569
3582
  tab.show = selectTab;
3570
- tab.addEventListener('click', function (e) {
3571
- e.preventDefault();
3572
- var href = tab.href.split('#')[1];
3573
- var panel = layout.content_.querySelector('#' + href);
3574
- layout.resetTabState_(tabs);
3575
- layout.resetPanelState_(panels);
3576
- tab.classList.add(layout.CssClasses_.IS_ACTIVE);
3577
- panel.classList.add(layout.CssClasses_.IS_ACTIVE);
3578
- });
3579
3583
  }
3580
3584
  window['MaterialLayoutTab'] = MaterialLayoutTab;
3581
3585
  // The component registers itself. It can assume componentHandler is available
@@ -558,15 +558,6 @@
558
558
 
559
559
  tab.show = selectTab;
560
560
 
561
- tab.addEventListener('click', function(e) {
562
- e.preventDefault();
563
- var href = tab.href.split('#')[1];
564
- var panel = layout.content_.querySelector('#' + href);
565
- layout.resetTabState_(tabs);
566
- layout.resetPanelState_(panels);
567
- tab.classList.add(layout.CssClasses_.IS_ACTIVE);
568
- panel.classList.add(layout.CssClasses_.IS_ACTIVE);
569
- });
570
561
  }
571
562
  window['MaterialLayoutTab'] = MaterialLayoutTab;
572
563
 
@@ -227,8 +227,15 @@ componentHandler = (function() {
227
227
  'Unable to find a registered component for the given class.');
228
228
  }
229
229
 
230
- var ev = document.createEvent('Events');
231
- ev.initEvent('mdl-componentupgraded', true, true);
230
+ var ev;
231
+ if ('CustomEvent' in window && typeof window.CustomEvent === 'function') {
232
+ ev = new Event('mdl-componentupgraded', {
233
+ 'bubbles': true, 'cancelable': false
234
+ });
235
+ } else {
236
+ ev = document.createEvent('Events');
237
+ ev.initEvent('mdl-componentupgraded', true, true);
238
+ }
232
239
  element.dispatchEvent(ev);
233
240
  }
234
241
  }
@@ -351,9 +358,15 @@ componentHandler = (function() {
351
358
  upgrades.splice(componentPlace, 1);
352
359
  component.element_.setAttribute('data-upgraded', upgrades.join(','));
353
360
 
354
- var ev = document.createEvent('Events');
355
- ev.initEvent('mdl-componentdowngraded', true, true);
356
- component.element_.dispatchEvent(ev);
361
+ var ev;
362
+ if ('CustomEvent' in window && typeof window.CustomEvent === 'function') {
363
+ ev = new Event('mdl-componentdowngraded', {
364
+ 'bubbles': true, 'cancelable': false
365
+ });
366
+ } else {
367
+ ev = document.createEvent('Events');
368
+ ev.initEvent('mdl-componentdowngraded', true, true);
369
+ }
357
370
  }
358
371
  }
359
372
 
@@ -29,7 +29,7 @@
29
29
  justify-content: space-between;
30
30
  font-family: $preferred_font;
31
31
  will-change: transform;
32
- transform: translate(-50%, 80px);
32
+ transform: translate(0, 80px);
33
33
  transition: transform 0.25s $animation-curve-fast-out-linear-in;
34
34
  pointer-events: none;
35
35
  @media(max-width: $snackbar-tablet-breakpoint - 1) {
@@ -42,11 +42,16 @@
42
42
  min-width: 288px;
43
43
  max-width: 568px;
44
44
  border-radius: 2px;
45
+ transform: translate(-50%, 80px);
45
46
  }
46
47
  &--active {
47
- transform: translate(-50%, 0);
48
+ transform: translate(0, 0);
48
49
  pointer-events: auto;
49
50
  transition: transform 0.25s $animation-curve-linear-out-slow-in;
51
+
52
+ @media(min-width: $snackbar-tablet-breakpoint) {
53
+ transform: translate(-50%, 0);
54
+ }
50
55
  }
51
56
 
52
57
  &__text {
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.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Tarasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-05 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass