materialize-sass 0.95.3.4 → 0.96.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/app/assets/javascripts/materialize-sprockets.js +2 -1
- data/app/assets/javascripts/materialize.js +832 -522
- data/app/assets/javascripts/materialize/character_counter.js +59 -0
- data/app/assets/javascripts/materialize/dropdown.js +64 -61
- data/app/assets/javascripts/materialize/forms.js +14 -0
- data/app/assets/javascripts/materialize/global.js +13 -0
- data/app/assets/javascripts/materialize/init.js +5 -1
- data/app/assets/javascripts/materialize/leanModal.js +4 -5
- data/app/assets/javascripts/materialize/parallax.js +9 -12
- data/app/assets/javascripts/materialize/scrollFire.js +24 -24
- data/app/assets/javascripts/materialize/toasts.js +6 -2
- data/app/assets/stylesheets/materialize/components/_buttons.scss +16 -7
- data/app/assets/stylesheets/materialize/components/_cards.scss +9 -9
- data/app/assets/stylesheets/materialize/components/_collapsible.scss +19 -1
- data/app/assets/stylesheets/materialize/components/_color.scss +3 -2
- data/app/assets/stylesheets/materialize/components/_dropdown.scss +16 -10
- data/app/assets/stylesheets/materialize/components/_form.scss +93 -5
- data/app/assets/stylesheets/materialize/components/_global.scss +37 -6
- data/app/assets/stylesheets/materialize/components/_modal.scss +2 -2
- data/app/assets/stylesheets/materialize/components/_navbar.scss +5 -7
- data/app/assets/stylesheets/materialize/components/_normalize.scss +2 -2
- data/app/assets/stylesheets/materialize/components/_prefixer.scss +4 -4
- data/app/assets/stylesheets/materialize/components/_sideNav.scss +6 -0
- data/app/assets/stylesheets/materialize/components/_tabs.scss +1 -2
- data/app/assets/stylesheets/materialize/components/_typography.scss +2 -1
- data/app/assets/stylesheets/materialize/components/_variables.scss +1 -0
- data/lib/materialize-sass/version.rb +1 -1
- metadata +16 -7
- checksums.yaml +0 -7
@@ -61,7 +61,11 @@ Materialize.toast = function (message, displayLength, className, completeCallbac
|
|
61
61
|
var toast = document.createElement('div');
|
62
62
|
toast.classList.add('toast');
|
63
63
|
if (className) {
|
64
|
-
|
64
|
+
var classes = className.split(' ');
|
65
|
+
|
66
|
+
for (var i = 0, count = classes.length; i < count; i++) {
|
67
|
+
toast.classList.add(classes[i]);
|
68
|
+
}
|
65
69
|
}
|
66
70
|
toast.innerHTML = html;
|
67
71
|
|
@@ -114,4 +118,4 @@ Materialize.toast = function (message, displayLength, className, completeCallbac
|
|
114
118
|
|
115
119
|
return toast;
|
116
120
|
}
|
117
|
-
}
|
121
|
+
}
|
@@ -1,14 +1,15 @@
|
|
1
1
|
// shared styles
|
2
2
|
.btn, .btn-flat {
|
3
|
+
border: none;
|
4
|
+
border-radius: 2px;
|
3
5
|
display: inline-block;
|
4
6
|
height: $button-height;
|
5
|
-
margin-bottom: 15px;
|
6
|
-
padding: 0 2rem;
|
7
|
-
border-radius: 2px;
|
8
7
|
line-height: $button-line-height;
|
9
|
-
|
10
|
-
border: none;
|
8
|
+
// margin-bottom: 15px;
|
11
9
|
outline: 0;
|
10
|
+
padding: 0 2rem;
|
11
|
+
text-transform: uppercase;
|
12
|
+
vertical-align: middle;
|
12
13
|
// Gets rid of tap active state
|
13
14
|
-webkit-tap-highlight-color: transparent;
|
14
15
|
}
|
@@ -18,6 +19,9 @@
|
|
18
19
|
box-shadow: none;
|
19
20
|
color: $button-color-disabled;
|
20
21
|
cursor: default;
|
22
|
+
* {
|
23
|
+
pointer-events: none;
|
24
|
+
}
|
21
25
|
|
22
26
|
&:hover {
|
23
27
|
background-color: $button-bg-color-disabled;
|
@@ -54,6 +58,7 @@
|
|
54
58
|
display: inline-block;
|
55
59
|
color: $button-color-raised;
|
56
60
|
position: relative;
|
61
|
+
overflow: hidden;
|
57
62
|
z-index: 1;
|
58
63
|
width: $button-floating-size;
|
59
64
|
height: $button-floating-size;
|
@@ -62,8 +67,9 @@
|
|
62
67
|
background-color: $button-color;
|
63
68
|
border-radius: 50%;
|
64
69
|
@extend .z-depth-1;
|
65
|
-
|
70
|
+
transition: .3s;
|
66
71
|
cursor: pointer;
|
72
|
+
vertical-align: middle;
|
67
73
|
|
68
74
|
i {
|
69
75
|
width: inherit;
|
@@ -77,6 +83,9 @@
|
|
77
83
|
&:hover {
|
78
84
|
@extend .z-depth-1-half;
|
79
85
|
}
|
86
|
+
&:before {
|
87
|
+
border-radius: 0;
|
88
|
+
}
|
80
89
|
&.btn-large {
|
81
90
|
width: $button-floating-size * 1.5;
|
82
91
|
height: $button-floating-size * 1.5;
|
@@ -98,7 +107,7 @@ button.btn-floating {
|
|
98
107
|
bottom: 23px;
|
99
108
|
padding-top: 15px;
|
100
109
|
margin-bottom: 0;
|
101
|
-
z-index:
|
110
|
+
z-index: 998;
|
102
111
|
|
103
112
|
ul {
|
104
113
|
left: 0;
|
@@ -26,15 +26,6 @@
|
|
26
26
|
}
|
27
27
|
}
|
28
28
|
|
29
|
-
a {
|
30
|
-
color: color("orange", "accent-2");
|
31
|
-
margin-right: $card-padding;
|
32
|
-
@include transition(color .3s ease);
|
33
|
-
text-transform: uppercase;
|
34
|
-
|
35
|
-
&:hover { color: lighten(color("orange", "accent-2"), 20%); }
|
36
|
-
}
|
37
|
-
|
38
29
|
// Card Sizes
|
39
30
|
&.small, &.medium, &.large {
|
40
31
|
position: relative;
|
@@ -128,6 +119,15 @@
|
|
128
119
|
.card-action {
|
129
120
|
border-top: 1px solid rgba(160,160,160,.2);
|
130
121
|
padding: $card-padding;
|
122
|
+
|
123
|
+
a {
|
124
|
+
color: color("orange", "accent-2");
|
125
|
+
margin-right: $card-padding;
|
126
|
+
@include transition(color .3s ease);
|
127
|
+
text-transform: uppercase;
|
128
|
+
|
129
|
+
&:hover { color: lighten(color("orange", "accent-2"), 20%); }
|
130
|
+
}
|
131
131
|
}
|
132
132
|
|
133
133
|
.card-reveal {
|
@@ -4,7 +4,6 @@
|
|
4
4
|
border-left: 1px solid $collapsible-border-color;
|
5
5
|
margin: $element-top-margin 0 $element-bottom-margin 0;
|
6
6
|
@extend .z-depth-1;
|
7
|
-
|
8
7
|
}
|
9
8
|
|
10
9
|
.collapsible-header {
|
@@ -68,3 +67,22 @@
|
|
68
67
|
|
69
68
|
}
|
70
69
|
|
70
|
+
// Popout Collapsible
|
71
|
+
|
72
|
+
.collapsible.popout {
|
73
|
+
border: none;
|
74
|
+
box-shadow: none;
|
75
|
+
> li {
|
76
|
+
&:hover {
|
77
|
+
will-change: margin, transform;
|
78
|
+
}
|
79
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
80
|
+
transform: scaleX(.92) translate3d(0,0,0);
|
81
|
+
transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940), transform .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
|
82
|
+
}
|
83
|
+
> li.active {
|
84
|
+
box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
|
85
|
+
margin: 16px 0;
|
86
|
+
transform: scaleX(1) translate3d(0,0,0);
|
87
|
+
}
|
88
|
+
}
|
@@ -1,32 +1,38 @@
|
|
1
|
+
.dropdown-button {
|
2
|
+
position: relative;
|
3
|
+
}
|
1
4
|
.dropdown-content {
|
2
|
-
display:none;
|
3
5
|
@extend .z-depth-1;
|
4
|
-
position: absolute;
|
5
6
|
background-color: #FFFFFF;
|
6
7
|
margin: 0;
|
8
|
+
display: none;
|
7
9
|
min-width: 100px;
|
8
|
-
|
9
|
-
|
10
|
+
max-height: 650px;
|
11
|
+
overflow-y: auto;
|
10
12
|
opacity: 0;
|
11
|
-
|
13
|
+
position: absolute;
|
12
14
|
white-space: nowrap; // Force one line
|
13
|
-
|
15
|
+
z-index: 1;
|
14
16
|
will-change: width, height;
|
15
17
|
|
16
18
|
li {
|
17
|
-
|
18
|
-
font-size: 1.2rem;
|
19
|
+
clear: both;
|
19
20
|
color: $off-black;
|
21
|
+
cursor: pointer;
|
20
22
|
line-height: 1.5rem;
|
23
|
+
width: 100%;
|
24
|
+
text-align: left;
|
25
|
+
text-transform: none;
|
21
26
|
|
22
27
|
&:hover, &.active {
|
23
|
-
background-color:
|
28
|
+
background-color: #eee;
|
24
29
|
}
|
25
30
|
|
26
31
|
& > a, & > span {
|
32
|
+
font-size: 1.2rem;
|
33
|
+
color: $dropdown-color;
|
27
34
|
display: block;
|
28
35
|
padding: 1rem 1rem;
|
29
|
-
color: $dropdown-color;
|
30
36
|
}
|
31
37
|
}
|
32
38
|
}
|
@@ -50,6 +50,7 @@ textarea.materialize-textarea {
|
|
50
50
|
background-color: transparent;
|
51
51
|
border: none;
|
52
52
|
border-bottom: 1px solid $input-border-color;
|
53
|
+
border-radius: 0;
|
53
54
|
outline: none;
|
54
55
|
height: 3rem;
|
55
56
|
width: 100%;
|
@@ -81,12 +82,14 @@ textarea.materialize-textarea {
|
|
81
82
|
color: $input-focus-color;
|
82
83
|
}
|
83
84
|
// Valid Input Style
|
84
|
-
&.valid
|
85
|
+
&.valid,
|
86
|
+
&:focus.valid {
|
85
87
|
border-bottom: 1px solid $input-success-color;
|
86
88
|
box-shadow: 0 1px 0 0 $input-success-color;
|
87
89
|
}
|
88
90
|
// Invalid Input Style
|
89
|
-
&.invalid
|
91
|
+
&.invalid,
|
92
|
+
&:focus.invalid {
|
90
93
|
border-bottom: 1px solid $input-error-color;
|
91
94
|
box-shadow: 0 1px 0 0 $input-error-color;
|
92
95
|
}
|
@@ -111,7 +114,6 @@ textarea.materialize-textarea {
|
|
111
114
|
@include transform(translateY(-140%));
|
112
115
|
}
|
113
116
|
|
114
|
-
|
115
117
|
// Prefix Icons
|
116
118
|
.prefix {
|
117
119
|
position: absolute;
|
@@ -179,6 +181,7 @@ textarea {
|
|
179
181
|
[type="radio"]:checked {
|
180
182
|
position: absolute;
|
181
183
|
left: -9999px;
|
184
|
+
visibility: hidden;
|
182
185
|
}
|
183
186
|
|
184
187
|
[type="radio"]:not(:checked) + label,
|
@@ -303,7 +306,6 @@ form p:last-child {
|
|
303
306
|
-moz-user-select: none; /* mozilla browsers */
|
304
307
|
-khtml-user-select: none; /* webkit (konqueror) browsers */
|
305
308
|
-ms-user-select: none; /* IE10+ */
|
306
|
-
|
307
309
|
}
|
308
310
|
|
309
311
|
/* checkbox aspect */
|
@@ -371,6 +373,91 @@ form p:last-child {
|
|
371
373
|
}
|
372
374
|
}
|
373
375
|
|
376
|
+
|
377
|
+
// Filled in Style
|
378
|
+
[type="checkbox"].filled-in {
|
379
|
+
// General
|
380
|
+
+ label:after {
|
381
|
+
border-radius: 2px;
|
382
|
+
}
|
383
|
+
+ label:before,
|
384
|
+
+ label:after {
|
385
|
+
content: '';
|
386
|
+
left: 0;
|
387
|
+
position: absolute;
|
388
|
+
/* .1s delay is for check animation */
|
389
|
+
transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
|
390
|
+
z-index: 1;
|
391
|
+
}
|
392
|
+
// Unchecked style
|
393
|
+
&:not(:checked) + label:before {
|
394
|
+
width: 0;
|
395
|
+
height: 0;
|
396
|
+
border: 3px solid transparent;
|
397
|
+
left: 6px;
|
398
|
+
top: 10px;
|
399
|
+
|
400
|
+
-webkit-transform: rotateZ(37deg);
|
401
|
+
transform: rotateZ(37deg);
|
402
|
+
-webkit-transform-origin: 20% 40%;
|
403
|
+
transform-origin: 100% 100%;
|
404
|
+
}
|
405
|
+
&:not(:checked) + label:after {
|
406
|
+
height: 20px;
|
407
|
+
width: 20px;
|
408
|
+
background-color: transparent;
|
409
|
+
border: 2px solid $radio-empty-color;
|
410
|
+
top: 0px;
|
411
|
+
z-index: 0;
|
412
|
+
}
|
413
|
+
// Checked style
|
414
|
+
&:checked {
|
415
|
+
+ label:before {
|
416
|
+
top: 0;
|
417
|
+
left: 1px;
|
418
|
+
width: 8px;
|
419
|
+
height: 13px;
|
420
|
+
border-top: 2px solid transparent;
|
421
|
+
border-left: 2px solid transparent;
|
422
|
+
border-right: 2px solid #fff;
|
423
|
+
border-bottom: 2px solid #fff;
|
424
|
+
-webkit-transform: rotateZ(37deg);
|
425
|
+
transform: rotateZ(37deg);
|
426
|
+
|
427
|
+
-webkit-transform-origin: 100% 100%;
|
428
|
+
transform-origin: 100% 100%;
|
429
|
+
}
|
430
|
+
+ label:after {
|
431
|
+
top: 0px;
|
432
|
+
width: 20px;
|
433
|
+
height: 20px;
|
434
|
+
border: 2px solid $secondary-color;
|
435
|
+
background-color: $secondary-color;
|
436
|
+
z-index: 0;
|
437
|
+
}
|
438
|
+
}
|
439
|
+
// Disabled style
|
440
|
+
&:disabled:not(:checked) + label:before {
|
441
|
+
|
442
|
+
background-color: transparent;
|
443
|
+
border: 2px solid transparent;
|
444
|
+
|
445
|
+
}
|
446
|
+
&:disabled:not(:checked) + label:after {
|
447
|
+
border-color: transparent;
|
448
|
+
background-color: $input-disabled-solid-color;
|
449
|
+
}
|
450
|
+
&:disabled:checked + label:before {
|
451
|
+
background-color: transparent;
|
452
|
+
|
453
|
+
}
|
454
|
+
&:disabled:checked + label:after {
|
455
|
+
background-color: $input-disabled-solid-color;
|
456
|
+
border-color: $input-disabled-solid-color;
|
457
|
+
}
|
458
|
+
|
459
|
+
}
|
460
|
+
|
374
461
|
/***************
|
375
462
|
Switch
|
376
463
|
***************/
|
@@ -512,15 +599,16 @@ select:disabled {
|
|
512
599
|
**********************/
|
513
600
|
.file-field {
|
514
601
|
position: relative;
|
515
|
-
overflow: hidden;
|
516
602
|
|
517
603
|
input.file-path {
|
518
604
|
margin-left: 100px;
|
605
|
+
width: calc(100% - 100px);
|
519
606
|
}
|
520
607
|
|
521
608
|
.btn {
|
522
609
|
position: absolute;
|
523
610
|
top: 0;
|
611
|
+
left: 0;
|
524
612
|
height: 3rem;
|
525
613
|
line-height: 3rem;
|
526
614
|
}
|
@@ -177,15 +177,34 @@ video.responsive-video {
|
|
177
177
|
img {
|
178
178
|
display: none;
|
179
179
|
position: absolute;
|
180
|
+
left: 50%;
|
180
181
|
bottom: 0;
|
181
|
-
width: 100%;
|
182
|
+
min-width: 100%;
|
182
183
|
min-height: 100%;
|
183
|
-
|
184
|
-
|
185
|
-
|
184
|
+
-webkit-transform: translate3d(0,0,0);
|
185
|
+
transform: translate3d(0,0,0);
|
186
|
+
transform: translateX(-50%);
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
@media #{$small-and-down} {
|
191
|
+
.parallax-container {
|
192
|
+
height: auto;
|
193
|
+
|
194
|
+
.parallax {
|
195
|
+
position: relative;
|
196
|
+
|
197
|
+
img {
|
198
|
+
position: relative;
|
199
|
+
min-height: 0;
|
200
|
+
min-width: 0;
|
201
|
+
width: 100%;
|
202
|
+
}
|
203
|
+
}
|
186
204
|
}
|
187
205
|
}
|
188
206
|
|
207
|
+
|
189
208
|
// Pushpin
|
190
209
|
.pin-top, .pin-bottom {
|
191
210
|
position: relative;
|
@@ -360,6 +379,10 @@ td, th{
|
|
360
379
|
tr {
|
361
380
|
display: block;
|
362
381
|
padding: 0 10px 0 0;
|
382
|
+
|
383
|
+
th::before {
|
384
|
+
content: "\00a0";
|
385
|
+
}
|
363
386
|
}
|
364
387
|
}
|
365
388
|
tbody {
|
@@ -409,6 +432,7 @@ td, th{
|
|
409
432
|
border: 1px solid $collection-border-color;
|
410
433
|
border-radius: 2px;
|
411
434
|
overflow: hidden;
|
435
|
+
position: relative;
|
412
436
|
|
413
437
|
.collection-item {
|
414
438
|
background-color: $collection-bg-color;
|
@@ -505,7 +529,8 @@ span.badge {
|
|
505
529
|
font-size: 1rem;
|
506
530
|
line-height: inherit;
|
507
531
|
color: color('grey', 'darken-1');
|
508
|
-
|
532
|
+
position: absolute;
|
533
|
+
right: 15px;
|
509
534
|
@include box-sizing(border-box);
|
510
535
|
|
511
536
|
&.new {
|
@@ -618,6 +643,10 @@ span.badge {
|
|
618
643
|
Utility Classes
|
619
644
|
*******************/
|
620
645
|
|
646
|
+
.hide {
|
647
|
+
display: none !important;
|
648
|
+
}
|
649
|
+
|
621
650
|
// Text Align
|
622
651
|
.left-align {
|
623
652
|
text-align: left;
|
@@ -663,4 +692,6 @@ span.badge {
|
|
663
692
|
text-overflow: ellipsis;
|
664
693
|
}
|
665
694
|
|
666
|
-
.no-padding {
|
695
|
+
.no-padding {
|
696
|
+
padding: 0 !important;
|
697
|
+
}
|