material_design_lite-rails 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: 03c1bda05b8d4289ea7dd6c4e0ad7a3c96be8fd0
4
- data.tar.gz: ea4625573442d5533ed78b28589992ac5d3a615c
3
+ metadata.gz: 7befe6eac81e7cc026ec199c1b5acad5c6728b96
4
+ data.tar.gz: f0558420949b218c56d15322f844c6fcb87bda81
5
5
  SHA512:
6
- metadata.gz: b0589aab601efb0c276bc3382f60be2554ed29d6639882e2a012c916c812ff0b3941193514e53886e6e6acfa66716f0eb2a5179514631fb9642b283cb07bc427
7
- data.tar.gz: e39afa626ab52525d3b379d3f71485add5be360e97e8b582ec91da3b674e88b6ea30879eefec5f1da8e3d4ace7d83e2de3e44efc53c38c844576497e1c0a2306
6
+ metadata.gz: 7107330eb49c80e4c35932968636182ec5e1af35e5974455002500c5fb9053d942052642b98298a073c5c343fd43bebcce411d47314bdab28666269ffcc65fae
7
+ data.tar.gz: b0f4df975b5cc9c57e071684aaf8371574210ea2e99b25d0570be11f268554afe7194e423f3b1ed70c15e4556b86680d28f04e2038bb10c5b26e9f2cc661d53f
@@ -1,5 +1,5 @@
1
1
  module MaterialDesignLite
2
2
  module Rails
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
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * material-design-lite - Material Design Components in CSS, JS and HTML
3
- * @version v1.1.2
3
+ * @version v1.1.3
4
4
  * @license Apache-2.0
5
5
  * @copyright 2015 Google, Inc.
6
6
  * @link https://github.com/google/material-design-lite
@@ -8472,8 +8472,8 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider.is-upgraded {
8472
8472
  justify-content: space-between;
8473
8473
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
8474
8474
  will-change: transform;
8475
- -webkit-transform: translate(-50%, 80px);
8476
- transform: translate(-50%, 80px);
8475
+ -webkit-transform: translate(0, 80px);
8476
+ transform: translate(0, 80px);
8477
8477
  transition: -webkit-transform 0.25s cubic-bezier(0.4, 0, 1, 1);
8478
8478
  transition: transform 0.25s cubic-bezier(0.4, 0, 1, 1);
8479
8479
  transition: transform 0.25s cubic-bezier(0.4, 0, 1, 1), -webkit-transform 0.25s cubic-bezier(0.4, 0, 1, 1);
@@ -8488,14 +8488,20 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider.is-upgraded {
8488
8488
  .mdl-snackbar {
8489
8489
  min-width: 288px;
8490
8490
  max-width: 568px;
8491
- border-radius: 2px; } }
8491
+ border-radius: 2px;
8492
+ -webkit-transform: translate(-50%, 80px);
8493
+ transform: translate(-50%, 80px); } }
8492
8494
  .mdl-snackbar--active {
8493
- -webkit-transform: translate(-50%, 0);
8494
- transform: translate(-50%, 0);
8495
+ -webkit-transform: translate(0, 0);
8496
+ transform: translate(0, 0);
8495
8497
  pointer-events: auto;
8496
8498
  transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.2, 1);
8497
8499
  transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1);
8498
8500
  transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.2, 1); }
8501
+ @media (min-width: 480px) {
8502
+ .mdl-snackbar--active {
8503
+ -webkit-transform: translate(-50%, 0);
8504
+ transform: translate(-50%, 0); } }
8499
8505
  .mdl-snackbar__text {
8500
8506
  padding: 14px 12px 14px 24px;
8501
8507
  vertical-align: middle;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_design_lite-rails
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
  - Sean Collins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-04 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: railties