material_design_lite-sass 1.1.2 → 1.1.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/material_design_lite/sass/version.rb +1 -1
- data/vendor/assets/fonts/material-icons/MaterialIcons-Regular.woff2 +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/vendor/assets/javascripts/material.js +18 -14
- data/vendor/assets/javascripts/material/layout.js +0 -9
- data/vendor/assets/javascripts/material/mdlComponentHandler.js +18 -5
- data/vendor/assets/stylesheets/material/_snackbar.scss +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a425971e9db70d19938707aa33ba82829a009473
|
4
|
+
data.tar.gz: 0f48e424e3ed7d927c2d345041861b94865688e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c4d31dbfdae2ab0d059ca5e10b949e404e8a98cd603c86758c12108d85d65c418b09487407e52045486146f573096930201ba570d1e26f3467b5ca26d785f38
|
7
|
+
data.tar.gz: 497acf8388dcd1c2db060b14628539afe5246be2e9b1904b5810a3630dff55d08d5f6a13643bf7df47866e7a30272ca56b65c221cbb516a988541aa4a8f0b70b
|
data/CHANGELOG.md
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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
|
234
|
-
|
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
|
358
|
-
|
359
|
-
|
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
|
231
|
-
|
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
|
355
|
-
|
356
|
-
|
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(
|
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(
|
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.
|
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-
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|