materialize-sass 0.95.1 → 0.95.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +18 -9
- data/app/assets/javascripts/{materialize-sprokets.js → materialize-sprockets.js} +5 -1
- data/app/assets/javascripts/materialize.js +453 -139
- data/app/assets/javascripts/materialize/animations.js +8 -0
- data/app/assets/javascripts/materialize/buttons.js +35 -0
- data/app/assets/javascripts/materialize/cards.js +7 -3
- data/app/assets/javascripts/materialize/collapsible.js +6 -6
- data/app/assets/javascripts/materialize/dropdown.js +42 -32
- data/app/assets/javascripts/materialize/forms.js +128 -18
- data/app/assets/javascripts/materialize/hammer.min.js +1 -1
- data/app/assets/javascripts/materialize/init.js +13 -36
- data/app/assets/javascripts/materialize/jquery.easing.1.3.js +34 -34
- data/app/assets/javascripts/materialize/parallax.js +19 -17
- data/app/assets/javascripts/materialize/scrollFire.js +29 -0
- data/app/assets/javascripts/materialize/scrollspy.js +1 -1
- data/app/assets/javascripts/materialize/sideNav.js +32 -16
- data/app/assets/javascripts/materialize/slider.js +16 -9
- data/app/assets/javascripts/materialize/transitions.js +94 -0
- data/app/assets/stylesheets/materialize.scss +30 -30
- data/app/assets/stylesheets/{components → materialize/components}/_buttons.scss +29 -0
- data/app/assets/stylesheets/{components → materialize/components}/_cards.scss +36 -7
- data/app/assets/stylesheets/{components → materialize/components}/_collapsible.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_color.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_dropdown.scss +2 -2
- data/app/assets/stylesheets/{components → materialize/components}/_form.scss +88 -31
- data/app/assets/stylesheets/{components → materialize/components}/_global.scss +63 -13
- data/app/assets/stylesheets/{components → materialize/components}/_grid.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_icons-material-design.scss +5 -5
- data/app/assets/stylesheets/{components → materialize/components}/_materialbox.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_mixins.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_modal.scss +34 -8
- data/app/assets/stylesheets/{components → materialize/components}/_navbar.scss +9 -4
- data/app/assets/stylesheets/{components → materialize/components}/_normalize.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_prefixer.scss +3 -4
- data/app/assets/stylesheets/{components → materialize/components}/_preloader.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_roboto.scss +5 -5
- data/app/assets/stylesheets/{components → materialize/components}/_sideNav.scss +28 -67
- data/app/assets/stylesheets/{components → materialize/components}/_slider.scss +5 -1
- data/app/assets/stylesheets/{components → materialize/components}/_table_of_contents.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_tabs.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_toast.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_tooltip.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_typography.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_variables.scss +6 -2
- data/app/assets/stylesheets/{components → materialize/components}/_waves.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/date_picker/_default.date.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/date_picker/_default.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/date_picker/_default.time.scss +0 -0
- data/lib/materialize-sass.rb +7 -0
- data/lib/materialize-sass/version.rb +1 -1
- data/materialize-sass.gemspec +4 -0
- metadata +68 -42
- checksums.yaml +0 -7
@@ -0,0 +1,94 @@
|
|
1
|
+
(function ($) {
|
2
|
+
$(document).ready(function() {
|
3
|
+
|
4
|
+
var time = 0;
|
5
|
+
|
6
|
+
// Horizontal staggered list
|
7
|
+
showStaggeredList = function(selector) {
|
8
|
+
$(selector).find('li').velocity(
|
9
|
+
{ translateX: "-100px"},
|
10
|
+
{ duration: 0 });
|
11
|
+
|
12
|
+
$(selector).find('li').each(function() {
|
13
|
+
$(this).velocity(
|
14
|
+
{ opacity: "1", translateX: "0"},
|
15
|
+
{ duration: 800, delay: time, easing: [60, 10] });
|
16
|
+
time += 120;
|
17
|
+
});
|
18
|
+
}
|
19
|
+
|
20
|
+
// Hardcoded .staggered-list scrollFire
|
21
|
+
var staggeredListOptions = [];
|
22
|
+
$('ul.staggered-list').each(function (i) {
|
23
|
+
|
24
|
+
console.log(i);
|
25
|
+
var label = 'scrollFire-' + i;
|
26
|
+
$(this).addClass(label);
|
27
|
+
staggeredListOptions.push(
|
28
|
+
{selector: 'ul.staggered-list.' + label,
|
29
|
+
offset: 200,
|
30
|
+
callback: 'showStaggeredList("ul.staggered-list.' + label + '")'});
|
31
|
+
});
|
32
|
+
console.log(staggeredListOptions);
|
33
|
+
scrollFire(staggeredListOptions);
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
// time = 0
|
39
|
+
// // Vertical Staggered list
|
40
|
+
// $('ul.staggered-list.vertical li').velocity(
|
41
|
+
// { translateY: "100px"},
|
42
|
+
// { duration: 0 });
|
43
|
+
|
44
|
+
// $('ul.staggered-list.vertical li').each(function() {
|
45
|
+
// $(this).velocity(
|
46
|
+
// { opacity: "1", translateY: "0"},
|
47
|
+
// { duration: 800, delay: time, easing: [60, 25] });
|
48
|
+
// time += 120;
|
49
|
+
// });
|
50
|
+
|
51
|
+
// // Fade in and Scale
|
52
|
+
// $('.fade-in.scale').velocity(
|
53
|
+
// { scaleX: .4, scaleY: .4, translateX: -600},
|
54
|
+
// { duration: 0});
|
55
|
+
// $('.fade-in').each(function() {
|
56
|
+
// $(this).velocity(
|
57
|
+
// { opacity: "1", scaleX: 1, scaleY: 1, translateX: 0},
|
58
|
+
// { duration: 800, easing: [60, 10] });
|
59
|
+
// });
|
60
|
+
|
61
|
+
|
62
|
+
// Image transition function
|
63
|
+
fadeInImage = function(selector){
|
64
|
+
var element = $(selector);
|
65
|
+
element.css({opacity: 0});
|
66
|
+
$(element).velocity({opacity: 1}, {
|
67
|
+
duration: 650,
|
68
|
+
queue: false,
|
69
|
+
easing: 'easeOutSine'
|
70
|
+
});
|
71
|
+
$(element).animate({opacity: 1}, {
|
72
|
+
duration: 1300,
|
73
|
+
queue: false,
|
74
|
+
easing: 'swing',
|
75
|
+
step: function(now, fx) {
|
76
|
+
fx.start = 100;
|
77
|
+
var grayscale_setting = now/100;
|
78
|
+
var brightness_setting = 150 - (100 - now)/1.75;
|
79
|
+
|
80
|
+
if (brightness_setting < 100)
|
81
|
+
brightness_setting = 100;
|
82
|
+
console.log(grayscale_setting)
|
83
|
+
if (now >= 0) {
|
84
|
+
$(this).css({
|
85
|
+
"-webkit-filter": "grayscale("+grayscale_setting+")" + "brightness("+brightness_setting+"%)",
|
86
|
+
"filter": "grayscale("+grayscale_setting+")" + "brightness("+brightness_setting+"%)"
|
87
|
+
});
|
88
|
+
}
|
89
|
+
}
|
90
|
+
});
|
91
|
+
};
|
92
|
+
|
93
|
+
});
|
94
|
+
}( jQuery ));
|
@@ -1,38 +1,38 @@
|
|
1
1
|
@charset "UTF-8";
|
2
2
|
|
3
3
|
// Mixins
|
4
|
-
@import "components/prefixer";
|
5
|
-
@import "components/mixins";
|
6
|
-
@import "components/color";
|
4
|
+
@import "materialize/components/prefixer";
|
5
|
+
@import "materialize/components/mixins";
|
6
|
+
@import "materialize/components/color";
|
7
7
|
|
8
8
|
// Variables;
|
9
|
-
@import "components/variables";
|
9
|
+
@import "materialize/components/variables";
|
10
10
|
|
11
11
|
// Reset
|
12
|
-
@import "components/normalize";
|
12
|
+
@import "materialize/components/normalize";
|
13
13
|
|
14
|
-
// components
|
15
|
-
@import "components/global";
|
16
|
-
@import "components/icons-material-design";
|
17
|
-
@import "components/grid";
|
18
|
-
@import "components/navbar";
|
19
|
-
@import "components/roboto";
|
20
|
-
@import "components/typography";
|
21
|
-
@import "components/cards";
|
22
|
-
@import "components/toast";
|
23
|
-
@import "components/tabs";
|
24
|
-
@import "components/tooltip";
|
25
|
-
@import "components/buttons";
|
26
|
-
@import "components/dropdown";
|
27
|
-
@import "components/waves";
|
28
|
-
@import "components/modal";
|
29
|
-
@import "components/collapsible";
|
30
|
-
@import "components/materialbox";
|
31
|
-
@import "components/form";
|
32
|
-
@import "components/table_of_contents";
|
33
|
-
@import "components/sideNav";
|
34
|
-
@import "components/preloader";
|
35
|
-
@import "components/slider";
|
36
|
-
@import "components/date_picker/default.scss";
|
37
|
-
@import "components/date_picker/default.date.scss";
|
38
|
-
@import "components/date_picker/default.time.scss";
|
14
|
+
// materialize/components
|
15
|
+
@import "materialize/components/global";
|
16
|
+
@import "materialize/components/icons-material-design";
|
17
|
+
@import "materialize/components/grid";
|
18
|
+
@import "materialize/components/navbar";
|
19
|
+
@import "materialize/components/roboto";
|
20
|
+
@import "materialize/components/typography";
|
21
|
+
@import "materialize/components/cards";
|
22
|
+
@import "materialize/components/toast";
|
23
|
+
@import "materialize/components/tabs";
|
24
|
+
@import "materialize/components/tooltip";
|
25
|
+
@import "materialize/components/buttons";
|
26
|
+
@import "materialize/components/dropdown";
|
27
|
+
@import "materialize/components/waves";
|
28
|
+
@import "materialize/components/modal";
|
29
|
+
@import "materialize/components/collapsible";
|
30
|
+
@import "materialize/components/materialbox";
|
31
|
+
@import "materialize/components/form";
|
32
|
+
@import "materialize/components/table_of_contents";
|
33
|
+
@import "materialize/components/sideNav";
|
34
|
+
@import "materialize/components/preloader";
|
35
|
+
@import "materialize/components/slider";
|
36
|
+
@import "materialize/components/date_picker/default.scss";
|
37
|
+
@import "materialize/components/date_picker/default.date.scss";
|
38
|
+
@import "materialize/components/date_picker/default.time.scss";
|
@@ -17,6 +17,7 @@
|
|
17
17
|
background-color: $button-bg-color-disabled;
|
18
18
|
box-shadow: none;
|
19
19
|
color: $button-color-disabled;
|
20
|
+
cursor: default;
|
20
21
|
|
21
22
|
&:hover {
|
22
23
|
background-color: $button-bg-color-disabled;
|
@@ -83,6 +84,33 @@
|
|
83
84
|
line-height: $button-floating-size * 1.5;
|
84
85
|
}
|
85
86
|
}
|
87
|
+
|
88
|
+
}
|
89
|
+
|
90
|
+
// Fixed Action Button
|
91
|
+
.fixed-action-btn {
|
92
|
+
position: fixed;
|
93
|
+
right: 23px;
|
94
|
+
bottom: 23px;
|
95
|
+
padding-top: 15px;
|
96
|
+
margin-bottom: 0;
|
97
|
+
z-index: 1000;
|
98
|
+
|
99
|
+
ul {
|
100
|
+
left: 0;
|
101
|
+
right: 0;
|
102
|
+
text-align: center;
|
103
|
+
position: absolute;
|
104
|
+
bottom: 64px;
|
105
|
+
|
106
|
+
li {
|
107
|
+
margin-bottom: 15px;
|
108
|
+
}
|
109
|
+
|
110
|
+
a.btn-floating {
|
111
|
+
@include opacity(0);
|
112
|
+
}
|
113
|
+
}
|
86
114
|
}
|
87
115
|
|
88
116
|
// Flat button
|
@@ -94,6 +122,7 @@
|
|
94
122
|
|
95
123
|
&.disabled {
|
96
124
|
color: lighten(#999, 10%);
|
125
|
+
cursor: default;
|
97
126
|
}
|
98
127
|
}
|
99
128
|
|
@@ -10,7 +10,6 @@
|
|
10
10
|
|
11
11
|
.card {
|
12
12
|
position: relative;
|
13
|
-
overflow: hidden;
|
14
13
|
margin: $element-top-margin 0 $element-bottom-margin 0;
|
15
14
|
background-color: $card-bg-color;
|
16
15
|
@include box-sizing(border-box);
|
@@ -36,18 +35,15 @@
|
|
36
35
|
&:hover { color: lighten(color("orange", "accent-2"), 20%); }
|
37
36
|
}
|
38
37
|
|
39
|
-
|
40
|
-
&.small {
|
41
|
-
height: 300px;
|
38
|
+
// Card Sizes
|
39
|
+
&.small, &.medium, &.large {
|
42
40
|
position: relative;
|
43
41
|
|
44
42
|
.card-image {
|
45
43
|
overflow: hidden;
|
46
|
-
height: 150px;
|
47
44
|
}
|
48
45
|
.card-content {
|
49
46
|
overflow: hidden;
|
50
|
-
height: 150px;
|
51
47
|
}
|
52
48
|
.card-action {
|
53
49
|
position: absolute;
|
@@ -57,10 +53,43 @@
|
|
57
53
|
}
|
58
54
|
}
|
59
55
|
|
56
|
+
&.small {
|
57
|
+
height: 300px;
|
58
|
+
|
59
|
+
.card-image {
|
60
|
+
height: 150px;
|
61
|
+
}
|
62
|
+
.card-content {
|
63
|
+
height: 150px;
|
64
|
+
}
|
65
|
+
|
66
|
+
}
|
67
|
+
|
68
|
+
&.medium {
|
69
|
+
height: 400px;
|
70
|
+
|
71
|
+
.card-image {
|
72
|
+
height: 250px;
|
73
|
+
}
|
74
|
+
.card-content {
|
75
|
+
height: 150px;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
&.large {
|
80
|
+
height: 500px;
|
81
|
+
|
82
|
+
.card-image {
|
83
|
+
height: 330px;
|
84
|
+
}
|
85
|
+
.card-content {
|
86
|
+
height: 170px;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
60
90
|
|
61
91
|
.card-image {
|
62
92
|
position: relative;
|
63
|
-
overflow: hidden;
|
64
93
|
|
65
94
|
// Image background for content
|
66
95
|
img {
|
File without changes
|
File without changes
|
@@ -31,7 +31,7 @@ label {
|
|
31
31
|
}
|
32
32
|
label.active {
|
33
33
|
font-size: $label-font-size;
|
34
|
-
@include transform(translateY(-
|
34
|
+
@include transform(translateY(-140%));
|
35
35
|
}
|
36
36
|
|
37
37
|
input[type=text]:focus + label,
|
@@ -153,6 +153,7 @@ textarea.materialize-textarea {
|
|
153
153
|
overflow-y: hidden; /* prevents scroll bar flash */
|
154
154
|
padding: 1.6rem 0; /* prevents text jump on Enter keypress */
|
155
155
|
resize: none;
|
156
|
+
min-height: 3rem;
|
156
157
|
}
|
157
158
|
|
158
159
|
// For textarea autoresize
|
@@ -391,7 +392,7 @@ form p {
|
|
391
392
|
margin-right: 10px;
|
392
393
|
transition: background 0.3s ease;
|
393
394
|
vertical-align: middle;
|
394
|
-
margin
|
395
|
+
margin: 0px 16px;
|
395
396
|
}
|
396
397
|
.switch label .lever:after {
|
397
398
|
content: "";
|
@@ -406,50 +407,62 @@ form p {
|
|
406
407
|
top: -2px;
|
407
408
|
transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease;
|
408
409
|
}
|
409
|
-
|
410
|
-
|
411
|
-
background-color: #BDBDBD;
|
412
|
-
}
|
413
|
-
input[type=checkbox]:first-child:checked ~ .lever:active:after {
|
410
|
+
// Switch active style
|
411
|
+
input[type=checkbox]:first-child:checked:not(:disabled) ~ .lever:active:after {
|
414
412
|
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4), 0 0 0 15px rgba(0, 149, 135, 0.1);
|
415
413
|
}
|
416
|
-
input[type=checkbox]:first-child ~ .lever:active:after
|
417
|
-
input[type=checkbox][disabled]:first-child ~ .lever:active:after {
|
414
|
+
input[type=checkbox]:first-child:not(:disabled) ~ .lever:active:after {
|
418
415
|
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
|
419
416
|
}
|
417
|
+
|
418
|
+
// Disabled Styles
|
419
|
+
.switch label input[type=checkbox][disabled]:first-child + .lever:after,
|
420
|
+
.switch label input[type=checkbox][disabled]:checked:first-child + .lever:after {
|
421
|
+
background-color: #BDBDBD;
|
422
|
+
}
|
423
|
+
|
420
424
|
.switch label input[type=checkbox]:first-child:checked + .lever:after {
|
421
425
|
left: 30px;
|
422
426
|
}
|
423
427
|
|
424
428
|
|
429
|
+
|
430
|
+
|
431
|
+
|
425
432
|
/***************
|
426
433
|
Select Field
|
427
434
|
***************/
|
428
435
|
|
429
|
-
.select-
|
430
|
-
position:
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
border: none;
|
435
|
-
border-bottom: 1px solid $input-border-color;
|
436
|
-
outline: none;
|
437
|
-
height: 3rem;
|
438
|
-
line-height: 3rem;
|
439
|
-
width: 100%;
|
440
|
-
font-size: 1rem;
|
441
|
-
margin: 0 0 15px 0;
|
442
|
-
padding: 0;
|
443
|
-
display: block;
|
436
|
+
.select-label {
|
437
|
+
position: absolute;
|
438
|
+
}
|
439
|
+
|
440
|
+
.select-wrapper {
|
444
441
|
position: relative;
|
442
|
+
margin-top: 15px;
|
445
443
|
|
446
|
-
|
447
|
-
position:
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
444
|
+
input.select-dropdown {
|
445
|
+
position: relative;
|
446
|
+
cursor: pointer;
|
447
|
+
color: #444;
|
448
|
+
background-color: transparent;
|
449
|
+
border: none;
|
450
|
+
border-bottom: 1px solid $input-border-color;
|
451
|
+
outline: none;
|
452
|
+
height: 3rem;
|
453
|
+
line-height: 3rem;
|
454
|
+
width: 100%;
|
455
|
+
font-size: 1rem;
|
456
|
+
margin: 0 0 15px 0;
|
457
|
+
padding: 0;
|
458
|
+
display: block;
|
452
459
|
}
|
460
|
+
.mdi-navigation-arrow-drop-down {
|
461
|
+
position: absolute;
|
462
|
+
right: 0;
|
463
|
+
top: 0;
|
464
|
+
font-size: 23px;
|
465
|
+
}
|
453
466
|
}
|
454
467
|
|
455
468
|
select { display: none; }
|
@@ -460,7 +473,11 @@ select.browser-default { display: block; }
|
|
460
473
|
select:disabled {
|
461
474
|
color: rgba(0,0,0,.3);
|
462
475
|
}
|
463
|
-
.select-wrapper
|
476
|
+
.select-wrapper input.select-dropdown:disabled {
|
477
|
+
color: rgba(0,0,0,.3);
|
478
|
+
border-bottom: 1px solid rgba(0,0,0,.3);
|
479
|
+
}
|
480
|
+
.select-wrapper i {
|
464
481
|
color: rgba(0,0,0,.3);
|
465
482
|
}
|
466
483
|
.select-dropdown li.disabled {
|
@@ -470,6 +487,46 @@ select:disabled {
|
|
470
487
|
}
|
471
488
|
|
472
489
|
|
490
|
+
/*********************
|
491
|
+
File Input
|
492
|
+
**********************/
|
493
|
+
.file-field {
|
494
|
+
position: relative;
|
495
|
+
overflow: hidden;
|
496
|
+
|
497
|
+
input.file-path {
|
498
|
+
margin-left: 100px;
|
499
|
+
}
|
500
|
+
|
501
|
+
.btn {
|
502
|
+
position: absolute;
|
503
|
+
top: 0;
|
504
|
+
height: 3rem;
|
505
|
+
line-height: 3rem;
|
506
|
+
}
|
507
|
+
|
508
|
+
span {
|
509
|
+
cursor: pointer;
|
510
|
+
}
|
511
|
+
|
512
|
+
input[type=file] {
|
513
|
+
position: absolute;
|
514
|
+
top: 0;
|
515
|
+
right: 0;
|
516
|
+
left: 0;
|
517
|
+
bottom: 0;
|
518
|
+
width: 100%;
|
519
|
+
margin: 0;
|
520
|
+
padding: 0;
|
521
|
+
font-size: 20px;
|
522
|
+
cursor: pointer;
|
523
|
+
opacity: 0;
|
524
|
+
filter: alpha(opacity=0);
|
525
|
+
}
|
526
|
+
}
|
527
|
+
|
528
|
+
|
529
|
+
|
473
530
|
/***************
|
474
531
|
Range
|
475
532
|
***************/
|