materialize-sass 0.97.1 → 0.97.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -2
  3. data/app/assets/javascripts/materialize.js +461 -221
  4. data/app/assets/javascripts/materialize.min.js +9 -0
  5. data/app/assets/javascripts/materialize/buttons.js +39 -8
  6. data/app/assets/javascripts/materialize/cards.js +2 -0
  7. data/app/assets/javascripts/materialize/dropdown.js +65 -48
  8. data/app/assets/javascripts/materialize/forms.js +228 -130
  9. data/app/assets/javascripts/materialize/global.js +9 -1
  10. data/app/assets/javascripts/materialize/materialbox.js +22 -2
  11. data/app/assets/javascripts/materialize/slider.js +24 -4
  12. data/app/assets/javascripts/materialize/tabs.js +20 -1
  13. data/app/assets/javascripts/materialize/tooltip.js +48 -24
  14. data/app/assets/javascripts/materialize/velocity.min.js +4 -3
  15. data/app/assets/stylesheets/materialize.scss +2 -2
  16. data/app/assets/stylesheets/materialize/components/_buttons.scss +23 -0
  17. data/app/assets/stylesheets/materialize/components/_cards.scss +5 -24
  18. data/app/assets/stylesheets/materialize/components/_chips.scss +1 -1
  19. data/app/assets/stylesheets/materialize/components/_dropdown.scss +20 -3
  20. data/app/assets/stylesheets/materialize/components/_form.scss +57 -26
  21. data/app/assets/stylesheets/materialize/components/_global.scss +30 -6
  22. data/app/assets/stylesheets/materialize/components/_grid.scss +23 -18
  23. data/app/assets/stylesheets/materialize/components/_roboto.scss +4 -4
  24. data/app/assets/stylesheets/materialize/components/_tabs.scss +24 -2
  25. data/app/assets/stylesheets/materialize/components/_toast.scss +8 -4
  26. data/app/assets/stylesheets/materialize/components/_tooltip.scss +2 -3
  27. data/app/assets/stylesheets/materialize/components/_variables.scss +13 -8
  28. data/app/assets/stylesheets/materialize/components/_waves.scss +9 -0
  29. data/lib/materialize-sass/version.rb +1 -1
  30. metadata +3 -2
@@ -170,10 +170,7 @@ textarea.materialize-textarea {
170
170
  }
171
171
  }
172
172
 
173
-
174
173
  // Search Field
175
-
176
-
177
174
  .input-field input[type=search] {
178
175
  display: block;
179
176
  line-height: inherit;
@@ -224,7 +221,6 @@ textarea {
224
221
  }
225
222
  }
226
223
 
227
-
228
224
  // For textarea autoresize
229
225
  .hiddendiv {
230
226
  display: none;
@@ -277,7 +273,6 @@ textarea {
277
273
  @include transition(.28s ease);
278
274
  }
279
275
 
280
-
281
276
  /* Unchecked styles */
282
277
  [type="radio"]:not(:checked) + label:before {
283
278
  border-radius: 50%;
@@ -343,7 +338,6 @@ textarea {
343
338
  border-color: $input-disabled-solid-color;
344
339
  }
345
340
 
346
-
347
341
  /***************
348
342
  Checkboxes
349
343
  ***************/
@@ -365,7 +359,6 @@ form p:last-child {
365
359
  visibility: hidden;
366
360
  }
367
361
 
368
-
369
362
  // Checkbox Styles
370
363
  [type="checkbox"] {
371
364
 
@@ -404,7 +397,6 @@ form p:last-child {
404
397
  border: none;
405
398
  background-color: $input-disabled-color;
406
399
  }
407
-
408
400
  }
409
401
 
410
402
  [type="checkbox"]:checked {
@@ -425,7 +417,6 @@ form p:last-child {
425
417
  border-right: 2px solid $input-disabled-color;
426
418
  border-bottom: 2px solid $input-disabled-color;
427
419
  }
428
-
429
420
  }
430
421
 
431
422
  /* Indeterminate checkbox */
@@ -450,7 +441,6 @@ form p:last-child {
450
441
  }
451
442
  }
452
443
 
453
-
454
444
  // Filled in Style
455
445
  [type="checkbox"].filled-in {
456
446
  // General
@@ -466,6 +456,7 @@ form p:last-child {
466
456
  transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
467
457
  z-index: 1;
468
458
  }
459
+
469
460
  // Unchecked style
470
461
  &:not(:checked) + label:before {
471
462
  width: 0;
@@ -479,6 +470,7 @@ form p:last-child {
479
470
  -webkit-transform-origin: 20% 40%;
480
471
  transform-origin: 100% 100%;
481
472
  }
473
+
482
474
  &:not(:checked) + label:after {
483
475
  height: 20px;
484
476
  width: 20px;
@@ -487,6 +479,7 @@ form p:last-child {
487
479
  top: 0px;
488
480
  z-index: 0;
489
481
  }
482
+
490
483
  // Checked style
491
484
  &:checked {
492
485
  + label:before {
@@ -504,6 +497,7 @@ form p:last-child {
504
497
  -webkit-transform-origin: 100% 100%;
505
498
  transform-origin: 100% 100%;
506
499
  }
500
+
507
501
  + label:after {
508
502
  top: 0px;
509
503
  width: 20px;
@@ -515,23 +509,23 @@ form p:last-child {
515
509
  }
516
510
  // Disabled style
517
511
  &:disabled:not(:checked) + label:before {
518
-
519
512
  background-color: transparent;
520
513
  border: 2px solid transparent;
521
514
  }
515
+
522
516
  &:disabled:not(:checked) + label:after {
523
517
  border-color: transparent;
524
518
  background-color: $input-disabled-solid-color;
525
519
  }
520
+
526
521
  &:disabled:checked + label:before {
527
522
  background-color: transparent;
528
-
529
523
  }
524
+
530
525
  &:disabled:checked + label:after {
531
526
  background-color: $input-disabled-solid-color;
532
527
  border-color: $input-disabled-solid-color;
533
528
  }
534
-
535
529
  }
536
530
 
537
531
  /***************
@@ -544,20 +538,25 @@ form p:last-child {
544
538
  -khtml-user-select: none;
545
539
  -ms-user-select: none;
546
540
  }
541
+
547
542
  .switch label {
548
543
  cursor: pointer;
549
544
  }
545
+
550
546
  .switch label input[type=checkbox]{
551
547
  opacity: 0;
552
548
  width: 0;
553
549
  height: 0;
554
550
  }
551
+
555
552
  .switch label input[type=checkbox]:checked + .lever {
556
553
  background-color: $switch-checked-lever-bg;
557
554
  }
555
+
558
556
  .switch label input[type=checkbox]:checked + .lever:after {
559
557
  background-color: $switch-bg-color;
560
558
  }
559
+
561
560
  .switch label .lever {
562
561
  content: "";
563
562
  display: inline-block;
@@ -571,6 +570,7 @@ form p:last-child {
571
570
  vertical-align: middle;
572
571
  margin: 0 16px;
573
572
  }
573
+
574
574
  .switch label .lever:after {
575
575
  content: "";
576
576
  position: absolute;
@@ -584,19 +584,21 @@ form p:last-child {
584
584
  top: -3px;
585
585
  transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease;
586
586
  }
587
+
587
588
  // Switch active style
588
589
  input[type=checkbox]:checked:not(:disabled) ~ .lever:active:after {
589
590
  box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px transparentize($switch-bg-color, .9);
590
591
  }
592
+
591
593
  input[type=checkbox]:not(:disabled) ~ .lever:active:after {
592
594
  box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px rgba(0, 0, 0, .08);
593
595
  }
596
+
594
597
  .switch label input[type=checkbox]:checked + .lever:after {
595
598
  left: 24px;
596
599
  }
597
600
 
598
601
  // Disabled Styles
599
-
600
602
  .switch input[type=checkbox][disabled] + .lever{
601
603
  cursor: default;
602
604
  }
@@ -605,13 +607,9 @@ input[type=checkbox]:not(:disabled) ~ .lever:active:after {
605
607
  background-color: $input-disabled-solid-color;
606
608
  }
607
609
 
608
-
609
-
610
-
611
610
  /***************
612
611
  Select Field
613
612
  ***************/
614
-
615
613
  .select-label {
616
614
  position: absolute;
617
615
  }
@@ -635,6 +633,7 @@ input[type=checkbox]:not(:disabled) ~ .lever:active:after {
635
633
  padding: 0;
636
634
  display: block;
637
635
  }
636
+
638
637
  span.caret {
639
638
  color: initial;
640
639
  position: absolute;
@@ -645,6 +644,7 @@ input[type=checkbox]:not(:disabled) ~ .lever:active:after {
645
644
  color: $input-disabled-color;
646
645
  }
647
646
  }
647
+
648
648
  & + label {
649
649
  position: absolute;
650
650
  top: -14px;
@@ -655,11 +655,11 @@ input[type=checkbox]:not(:disabled) ~ .lever:active:after {
655
655
  select { display: none; }
656
656
  select.browser-default { display: block; }
657
657
 
658
-
659
658
  // Disabled styles
660
659
  select:disabled {
661
660
  color: rgba(0,0,0,.3);
662
661
  }
662
+
663
663
  .select-wrapper input.select-dropdown:disabled {
664
664
  color: rgba(0,0,0,.3);
665
665
  cursor: default;
@@ -668,14 +668,44 @@ select:disabled {
668
668
  -ms-user-select: none; /* IE10+ */
669
669
  border-bottom: 1px solid rgba(0,0,0,.3);
670
670
  }
671
+
671
672
  .select-wrapper i {
672
673
  color: rgba(0,0,0,.3);
673
674
  }
674
- .select-dropdown li.disabled {
675
+
676
+ .select-dropdown li.disabled,
677
+ .select-dropdown li.disabled > span,
678
+ .select-dropdown li.optgroup {
675
679
  color: rgba(0,0,0,.3);
676
680
  background-color: transparent;
677
681
  }
678
682
 
683
+ // Icons
684
+ .select-dropdown li {
685
+ img {
686
+ height: $dropdown-item-height - 10;
687
+ width: $dropdown-item-height - 10;
688
+ margin: 5px 15px;
689
+ float: right;
690
+ }
691
+ }
692
+
693
+ // Optgroup styles
694
+ .select-dropdown li.optgroup {
695
+ border-top: 1px solid $dropdown-hover-bg-color;
696
+
697
+ &.selected > span {
698
+ color: rgba(0,0,0, .7);
699
+ }
700
+
701
+ & > span {
702
+ color: rgba(0,0,0, .4);
703
+ }
704
+
705
+ & ~ li:not(.optgroup) {
706
+ padding-left: 1rem;
707
+ }
708
+ }
679
709
 
680
710
  /*********************
681
711
  File Input
@@ -687,6 +717,7 @@ select:disabled {
687
717
  overflow: hidden;
688
718
  padding-left: 10px;
689
719
  }
720
+
690
721
  input.file-path { width: 100%; }
691
722
 
692
723
  .btn {
@@ -715,8 +746,6 @@ select:disabled {
715
746
  }
716
747
  }
717
748
 
718
-
719
-
720
749
  /***************
721
750
  Range
722
751
  ***************/
@@ -778,8 +807,6 @@ input[type=range]:focus {
778
807
  outline: none;
779
808
  }
780
809
 
781
-
782
-
783
810
  // WebKit
784
811
  input[type=range]{
785
812
  -webkit-appearance: none;
@@ -854,12 +881,15 @@ input[type=range]::-ms-track {
854
881
  /*remove default tick marks*/
855
882
  color: transparent;
856
883
  }
884
+
857
885
  input[type=range]::-ms-fill-lower {
858
886
  background: #777;
859
887
  }
888
+
860
889
  input[type=range]::-ms-fill-upper {
861
890
  background: #ddd;
862
891
  }
892
+
863
893
  input[type=range]::-ms-thumb {
864
894
  border: none;
865
895
  height: 14px;
@@ -867,9 +897,11 @@ input[type=range]::-ms-thumb {
867
897
  border-radius: 50%;
868
898
  background: $radio-fill-color;
869
899
  }
900
+
870
901
  input[type=range]:focus::-ms-fill-lower {
871
902
  background: #888;
872
903
  }
904
+
873
905
  input[type=range]:focus::-ms-fill-upper {
874
906
  background: #ccc;
875
907
  }
@@ -877,7 +909,6 @@ input[type=range]:focus::-ms-fill-upper {
877
909
  /***************************
878
910
  Text Inputs + Textarea
879
911
  ****************************/
880
-
881
912
  select {
882
913
  background-color: rgba(255, 255, 255, 0.90);
883
914
  width: 100%;
@@ -885,4 +916,4 @@ select {
885
916
  border: 1px solid #f2f2f2;
886
917
  border-radius: 2px;
887
918
  height: 3rem;
888
- }
919
+ }
@@ -158,7 +158,8 @@ video.responsive-video {
158
158
  }
159
159
 
160
160
  i {
161
- font-size: 2rem;
161
+ font-size: 2.2rem;
162
+ vertical-align: middle;
162
163
  }
163
164
  }
164
165
 
@@ -185,6 +186,33 @@ video.responsive-video {
185
186
  }
186
187
  }
187
188
 
189
+ // Breadcrumbs
190
+ .breadcrumb {
191
+ font-size: 18px;
192
+ color: rgba(255,255,255, .7);
193
+
194
+ &:before {
195
+ content: '\E5CC';
196
+ color: rgba(255,255,255, .7);
197
+ vertical-align: top;
198
+ display: inline-block;
199
+ font-family: 'Material Icons';
200
+ font-weight: normal;
201
+ font-style: normal;
202
+ font-size: 25px;
203
+ margin: 0 10px 0 8px;
204
+ -webkit-font-smoothing: antialiased;
205
+ }
206
+
207
+ &:first-child:before {
208
+ display: none;
209
+ }
210
+
211
+ &:last-child {
212
+ color: #fff;
213
+ }
214
+ }
215
+
188
216
 
189
217
  // Parallax
190
218
  .parallax-container {
@@ -509,7 +537,7 @@ td, th{
509
537
  a.collection-item{
510
538
  display: block;
511
539
  @include transition(.25s);
512
- color: $secondary-color;
540
+ color: $collection-link-color;
513
541
  &:not(.active) {
514
542
  &:hover {
515
543
  background-color: $collection-hover-bg-color;
@@ -577,12 +605,8 @@ nav ul a span.badge {
577
605
  .video-container {
578
606
  position: relative;
579
607
  padding-bottom: 56.25%;
580
- padding-top: 30px;
581
608
  height: 0;
582
609
  overflow: hidden;
583
- &.no-controls {
584
- padding-top: 0;
585
- }
586
610
 
587
611
  iframe, object, embed {
588
612
  position: absolute;
@@ -51,6 +51,11 @@
51
51
  @include box-sizing(border-box);
52
52
  padding: 0 $gutter-width / 2;
53
53
 
54
+ &[class*="push-"],
55
+ &[class*="pull-"] {
56
+ position: relative;
57
+ }
58
+
54
59
  $i: 1;
55
60
  @while $i <= $num-cols {
56
61
  $perc: unquote((100 / ($num-cols / $i)) + "%");
@@ -58,14 +63,15 @@
58
63
  width: $perc;
59
64
  margin-left: 0;
60
65
  }
61
- $i: $i + 1;
62
- }
63
- $i: 1;
64
- @while $i <= $num-cols {
65
- $perc: unquote((100 / ($num-cols / $i)) + "%");
66
66
  &.offset-s#{$i} {
67
67
  margin-left: $perc;
68
68
  }
69
+ &.pull-s#{$i} {
70
+ right: $perc;
71
+ }
72
+ &.push-s#{$i} {
73
+ left: $perc;
74
+ }
69
75
  $i: $i + 1;
70
76
  }
71
77
 
@@ -78,17 +84,17 @@
78
84
  width: $perc;
79
85
  margin-left: 0;
80
86
  }
81
- $i: $i + 1;
82
- }
83
- $i: 1;
84
- @while $i <= $num-cols {
85
- $perc: unquote((100 / ($num-cols / $i)) + "%");
86
87
  &.offset-m#{$i} {
87
88
  margin-left: $perc;
88
89
  }
90
+ &.pull-m#{$i} {
91
+ right: $perc;
92
+ }
93
+ &.push-m#{$i} {
94
+ left: $perc;
95
+ }
89
96
  $i: $i + 1;
90
97
  }
91
-
92
98
  }
93
99
 
94
100
  @media #{$large-and-up} {
@@ -100,18 +106,17 @@
100
106
  width: $perc;
101
107
  margin-left: 0;
102
108
  }
103
- $i: $i + 1;
104
- }
105
- $i: 1;
106
- @while $i <= $num-cols {
107
- $perc: unquote((100 / ($num-cols / $i)) + "%");
108
109
  &.offset-l#{$i} {
109
110
  margin-left: $perc;
110
111
  }
112
+ &.pull-l#{$i} {
113
+ right: $perc;
114
+ }
115
+ &.push-l#{$i} {
116
+ left: $perc;
117
+ }
111
118
  $i: $i + 1;
112
119
  }
113
-
114
120
  }
115
-
116
121
  }
117
122
  }