materialize-sass 0.97.3 → 0.97.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  3. data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
  4. data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  5. data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  6. data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  7. data/app/assets/javascripts/materialize-sprockets.js +1 -0
  8. data/app/assets/javascripts/materialize.js +537 -192
  9. data/app/assets/javascripts/materialize.min.js +6 -6
  10. data/app/assets/javascripts/materialize/buttons.js +2 -3
  11. data/app/assets/javascripts/materialize/collapsible.js +1 -1
  12. data/app/assets/javascripts/materialize/dropdown.js +1 -1
  13. data/app/assets/javascripts/materialize/extras/nouislider.js +5 -0
  14. data/app/assets/javascripts/materialize/extras/nouislider.min.js +1 -1
  15. data/app/assets/javascripts/materialize/forms.js +56 -47
  16. data/app/assets/javascripts/materialize/global.js +3 -2
  17. data/app/assets/javascripts/materialize/initial.js +4 -0
  18. data/app/assets/javascripts/materialize/tooltip.js +120 -118
  19. data/app/assets/stylesheets/materialize/components/_buttons.scss +2 -1
  20. data/app/assets/stylesheets/materialize/components/_cards.scss +2 -2
  21. data/app/assets/stylesheets/materialize/components/_carousel.scss +1 -5
  22. data/app/assets/stylesheets/materialize/components/_collapsible.scss +1 -1
  23. data/app/assets/stylesheets/materialize/components/_form.scss +23 -24
  24. data/app/assets/stylesheets/materialize/components/_global.scss +40 -27
  25. data/app/assets/stylesheets/materialize/components/_grid.scss +30 -3
  26. data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +6 -0
  27. data/app/assets/stylesheets/materialize/components/_materialbox.scss +1 -1
  28. data/app/assets/stylesheets/materialize/components/_mixins.scss +5 -5
  29. data/app/assets/stylesheets/materialize/components/_navbar.scss +28 -12
  30. data/app/assets/stylesheets/materialize/components/_prefixer.scss +291 -291
  31. data/app/assets/stylesheets/materialize/components/_roboto.scss +17 -10
  32. data/app/assets/stylesheets/materialize/components/_sideNav.scss +3 -2
  33. data/app/assets/stylesheets/materialize/components/_slider.scss +1 -1
  34. data/app/assets/stylesheets/materialize/components/_tabs.scss +4 -4
  35. data/app/assets/stylesheets/materialize/components/_toast.scss +6 -8
  36. data/app/assets/stylesheets/materialize/components/_tooltip.scss +1 -1
  37. data/app/assets/stylesheets/materialize/components/_variables.scss +1 -0
  38. data/app/assets/stylesheets/materialize/components/_waves.scss +5 -8
  39. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +2 -2
  40. data/app/assets/stylesheets/materialize/extras/nouislider.css +5 -0
  41. data/lib/materialize-sass/version.rb +1 -1
  42. metadata +9 -3
@@ -44,7 +44,7 @@
44
44
  text-align: center;
45
45
  letter-spacing: .5px;
46
46
  @extend .z-depth-1;
47
- @include transition(.2s ease-out);
47
+ transition: .2s ease-out;
48
48
  cursor: pointer;
49
49
 
50
50
  &:hover {
@@ -81,6 +81,7 @@
81
81
  }
82
82
 
83
83
  &:hover {
84
+ background-color: $button-color;
84
85
  @extend .z-depth-1-half;
85
86
  }
86
87
  &:before {
@@ -104,10 +104,10 @@
104
104
  border-top: 1px solid rgba(160,160,160,.2);
105
105
  padding: $card-padding;
106
106
 
107
- a {
107
+ a:not(.btn):not(.btn-large):not(.btn-floating) {
108
108
  color: $card-link-color;
109
109
  margin-right: $card-padding;
110
- @include transition(color .3s ease);
110
+ transition: color .3s ease;
111
111
  text-transform: uppercase;
112
112
 
113
113
  &:hover { color: $card-link-color-light; }
@@ -3,11 +3,8 @@
3
3
  position: relative;
4
4
  width: 100%;
5
5
  height: 400px;
6
-
7
-
8
- @include perspective(500px);
6
+ perspective: 500px;
9
7
  transform-style: preserve-3d;
10
- -webkit-transform-style: preserve-3d;
11
8
  transform-origin: 0% 50%;
12
9
 
13
10
  .carousel-item {
@@ -35,4 +32,3 @@
35
32
  }
36
33
  }
37
34
  }
38
-
@@ -29,7 +29,7 @@
29
29
  .collapsible-body {
30
30
  display: none;
31
31
  border-bottom: 1px solid $collapsible-border-color;
32
- @include box-sizing(border-box);
32
+ box-sizing: border-box;
33
33
 
34
34
  p {
35
35
  margin: 0;
@@ -34,6 +34,7 @@ label {
34
34
  }
35
35
 
36
36
  // Text inputs
37
+ input:not([type]),
37
38
  input[type=text],
38
39
  input[type=password],
39
40
  input[type=email],
@@ -59,7 +60,7 @@ textarea.materialize-textarea {
59
60
  margin: 0 0 15px 0;
60
61
  padding: 0;
61
62
  box-shadow: none;
62
- @include box-sizing(content-box);
63
+ box-sizing: content-box;
63
64
  transition: all .3s;
64
65
 
65
66
 
@@ -131,11 +132,11 @@ textarea.materialize-textarea {
131
132
  left: $gutter-width / 2;
132
133
  font-size: 1rem;
133
134
  cursor: text;
134
- @include transition(.2s ease-out);
135
+ transition: .2s ease-out;
135
136
  }
136
137
  label.active {
137
138
  font-size: $label-font-size;
138
- @include transform(translateY(-140%));
139
+ transform: translateY(-140%);
139
140
  }
140
141
 
141
142
  // Prefix Icons
@@ -143,7 +144,7 @@ textarea.materialize-textarea {
143
144
  position: absolute;
144
145
  width: 3rem;
145
146
  font-size: 2rem;
146
- @include transition(color .2s);
147
+ transition: color .2s;
147
148
 
148
149
  &.active { color: $input-focus-color; }
149
150
  }
@@ -252,12 +253,10 @@ textarea {
252
253
  height: 25px;
253
254
  line-height: 25px;
254
255
  font-size: 1rem;
255
- @include transition(.28s ease);
256
+ transition: .28s ease;
256
257
 
257
- -webkit-user-select: none; /* webkit (safari, chrome) browsers */
258
- -moz-user-select: none; /* mozilla browsers */
259
258
  -khtml-user-select: none; /* webkit (konqueror) browsers */
260
- -ms-user-select: none; /* IE10+ */
259
+ user-select: none;
261
260
  }
262
261
 
263
262
  [type="radio"] + label:before,
@@ -270,7 +269,7 @@ textarea {
270
269
  width: 16px;
271
270
  height: 16px;
272
271
  z-index: 0;
273
- @include transition(.28s ease);
272
+ transition: .28s ease;
274
273
  }
275
274
 
276
275
  /* Unchecked styles */
@@ -283,7 +282,7 @@ textarea {
283
282
  border: 2px solid $radio-empty-color;
284
283
  z-index: -1;
285
284
 
286
- @include transform(scale(0));
285
+ transform: scale(0);
287
286
  }
288
287
 
289
288
  /* Checked styles */
@@ -296,7 +295,7 @@ textarea {
296
295
  border: 2px solid $radio-fill-color;
297
296
  background-color: $radio-fill-color;
298
297
  z-index: 0;
299
- @include transform(scale(1.02));
298
+ transform: scale(1.02);
300
299
  }
301
300
 
302
301
  /* Radio With gap */
@@ -309,7 +308,7 @@ textarea {
309
308
  border: 2px solid $radio-fill-color;
310
309
  background-color: $radio-fill-color;
311
310
  z-index: 0;
312
- @include transform(scale(.5));
311
+ transform: scale(.5);
313
312
  }
314
313
 
315
314
  /* Disabled Radio With gap */
@@ -390,7 +389,7 @@ form p:last-child {
390
389
  border: 2px solid $radio-empty-color;
391
390
  border-radius: 1px;
392
391
  margin-top: 2px;
393
- @include transition(.2s);
392
+ transition: .2s;
394
393
  }
395
394
 
396
395
  &:not(:checked):disabled + label:before {
@@ -408,9 +407,9 @@ form p:last-child {
408
407
  border-left: 2px solid transparent;
409
408
  border-right: 2px solid $radio-fill-color;
410
409
  border-bottom: 2px solid $radio-fill-color;
411
- @include transform(rotate(40deg));
412
- -webkit-backface-visibility: hidden;
413
- @include transform-origin(100% 100%);
410
+ transform: rotate(40deg);
411
+ backface-visibility: hidden;
412
+ transform-origin: 100% 100%;
414
413
  }
415
414
 
416
415
  &:disabled + label:before {
@@ -429,9 +428,9 @@ form p:last-child {
429
428
  border-left: none;
430
429
  border-right: 2px solid $radio-fill-color;
431
430
  border-bottom: none;
432
- @include transform(rotate(90deg));
433
- -webkit-backface-visibility: hidden;
434
- @include transform-origin(100% 100%);
431
+ transform: rotate(90deg);
432
+ backface-visibility: hidden;
433
+ transform-origin: 100% 100%;
435
434
  }
436
435
 
437
436
  // Disabled indeterminate
@@ -778,8 +777,8 @@ input[type=range] + .thumb {
778
777
  top: 10px;
779
778
  margin-left: -6px;
780
779
 
781
- @include transform-origin(50% 50%);
782
- @include transform(rotate(-45deg));
780
+ transform-origin: 50% 50%;
781
+ transform: rotate(-45deg);
783
782
 
784
783
  .value {
785
784
  display: block;
@@ -787,7 +786,7 @@ input[type=range] + .thumb {
787
786
  text-align: center;
788
787
  color: $radio-fill-color;
789
788
  font-size: 0;
790
- @include transform(rotate(45deg));
789
+ transform: rotate(45deg);
791
790
  }
792
791
 
793
792
  &.active {
@@ -827,7 +826,7 @@ input[type=range]::-webkit-slider-thumb {
827
826
  background-color: $radio-fill-color;
828
827
  transform-origin: 50% 50%;
829
828
  margin: -5px 0 0 0;
830
- @include transition(.3s);
829
+ transition: .3s;
831
830
  }
832
831
 
833
832
  input[type=range]:focus::-webkit-slider-runnable-track {
@@ -916,4 +915,4 @@ select {
916
915
  border: 1px solid #f2f2f2;
917
916
  border-radius: 2px;
918
917
  height: 3rem;
919
- }
918
+ }
@@ -32,8 +32,8 @@ a {
32
32
 
33
33
  // Positioning
34
34
  .valign-wrapper {
35
- @include flexbox();
36
- @include align(center);
35
+ display: flex;
36
+ align-items: center;
37
37
 
38
38
  .valign {
39
39
  display: block;
@@ -77,6 +77,11 @@ ul {
77
77
  box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22);
78
78
  }
79
79
 
80
+ .hoverable {
81
+ transition: box-shadow .25s;
82
+ box-shadow: 0;
83
+ }
84
+
80
85
  .hoverable:hover {
81
86
  transition: box-shadow .25s;
82
87
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
@@ -191,6 +196,14 @@ video.responsive-video {
191
196
  font-size: 18px;
192
197
  color: rgba(255,255,255, .7);
193
198
 
199
+ i,
200
+ [class^="mdi-"], [class*="mdi-"],
201
+ i.material-icons {
202
+ display: inline-block;
203
+ float: left;
204
+ font-size: 24px;
205
+ }
206
+
194
207
  &:before {
195
208
  content: '\E5CC';
196
209
  color: rgba(255,255,255, .7);
@@ -294,27 +307,27 @@ ul.staggered-list li {
294
307
  }
295
308
  .show-on-large {
296
309
  @media #{$large-and-up} {
297
- display: initial !important;
310
+ display: block !important;
298
311
  }
299
312
  }
300
313
  .show-on-medium {
301
314
  @media only screen and (min-width: $small-screen) and (max-width: $medium-screen) {
302
- display: initial !important;
315
+ display: block !important;
303
316
  }
304
317
  }
305
318
  .show-on-small {
306
319
  @media #{$small-and-down} {
307
- display: initial !important;
320
+ display: block !important;
308
321
  }
309
322
  }
310
323
  .show-on-medium-and-up {
311
324
  @media #{$medium-and-up} {
312
- display: initial !important;
325
+ display: block !important;
313
326
  }
314
327
  }
315
328
  .show-on-medium-and-down {
316
329
  @media #{$medium-and-down} {
317
- display: initial !important;
330
+ display: block !important;
318
331
  }
319
332
  }
320
333
 
@@ -367,7 +380,7 @@ table {
367
380
  }
368
381
 
369
382
  &.highlight > tbody > tr {
370
- @include transition(background-color .25s ease);
383
+ transition: background-color .25s ease;
371
384
  &:hover {
372
385
  background-color: $table-striped-color;
373
386
  }
@@ -536,7 +549,7 @@ td, th{
536
549
  }
537
550
  a.collection-item{
538
551
  display: block;
539
- @include transition(.25s);
552
+ transition: .25s;
540
553
  color: $collection-link-color;
541
554
  &:not(.active) {
542
555
  &:hover {
@@ -582,7 +595,7 @@ span.badge {
582
595
  color: color('grey', 'darken-1');
583
596
  position: absolute;
584
597
  right: 15px;
585
- @include box-sizing(border-box);
598
+ box-sizing: border-box;
586
599
 
587
600
  &.new {
588
601
  font-weight: 300;
@@ -634,7 +647,7 @@ nav ul a span.badge {
634
647
  left: 0;
635
648
  bottom: 0;
636
649
  background-color: $progress-bar-color;
637
- @include transition(width .3s linear);
650
+ transition: width .3s linear;
638
651
  }
639
652
  .indeterminate {
640
653
  background-color: $progress-bar-color;
@@ -647,7 +660,7 @@ nav ul a span.badge {
647
660
  bottom: 0;
648
661
  will-change: left, right;
649
662
  // Custom bezier
650
- @include animation(indeterminate 2.1s cubic-bezier(0.650, 0.815, 0.735, 0.395) infinite);
663
+ animation: indeterminate 2.1s cubic-bezier(0.650, 0.815, 0.735, 0.395) infinite;
651
664
 
652
665
  }
653
666
  &:after {
@@ -659,34 +672,34 @@ nav ul a span.badge {
659
672
  bottom: 0;
660
673
  will-change: left, right;
661
674
  // Custom bezier
662
- @include animation(indeterminate-short 2.1s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite);
663
- @include animation-delay(1.15s);
675
+ animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite;
676
+ animation-delay: 1.15s;
664
677
  }
665
678
  }
666
679
  }
667
- @include keyframes(indeterminate) {
680
+ @keyframes indeterminate {
668
681
  0% {
669
- left: -35%;
670
- right:100%;
671
- }
682
+ left: -35%;
683
+ right:100%;
684
+ }
672
685
  60% {
673
- left: 100%;
674
- right: -90%;
686
+ left: 100%;
687
+ right: -90%;
675
688
  }
676
689
  100% {
677
- left: 100%;
678
- right: -90%;
690
+ left: 100%;
691
+ right: -90%;
679
692
  }
680
693
  }
681
694
 
682
- @include keyframes(indeterminate-short) {
695
+ @keyframes indeterminate-short {
683
696
  0% {
684
- left: -200%;
685
- right: 100%;
697
+ left: -200%;
698
+ right: 100%;
686
699
  }
687
700
  60% {
688
- left: 107%;
689
- right: -8%;
701
+ left: 107%;
702
+ right: -8%;
690
703
  }
691
704
  100% {
692
705
  left: 107%;
@@ -19,8 +19,8 @@
19
19
  }
20
20
 
21
21
  .section {
22
- padding-top: 1rem;
23
- padding-bottom: 1rem;
22
+ padding-top: 1rem;
23
+ padding-bottom: 1rem;
24
24
 
25
25
  &.no-pad {
26
26
  padding: 0;
@@ -48,7 +48,7 @@
48
48
 
49
49
  .col {
50
50
  float: left;
51
- @include box-sizing(border-box);
51
+ box-sizing: border-box;
52
52
  padding: 0 $gutter-width / 2;
53
53
 
54
54
  &[class*="push-"],
@@ -61,7 +61,16 @@
61
61
  $perc: unquote((100 / ($num-cols / $i)) + "%");
62
62
  &.s#{$i} {
63
63
  width: $perc;
64
+ margin-left: auto;
65
+ left: auto;
66
+ right: auto;
64
67
  }
68
+ $i: $i + 1;
69
+ }
70
+
71
+ $i: 1;
72
+ @while $i <= $num-cols {
73
+ $perc: unquote((100 / ($num-cols / $i)) + "%");
65
74
  &.offset-s#{$i} {
66
75
  margin-left: $perc;
67
76
  }
@@ -81,7 +90,16 @@
81
90
  $perc: unquote((100 / ($num-cols / $i)) + "%");
82
91
  &.m#{$i} {
83
92
  width: $perc;
93
+ margin-left: auto;
94
+ left: auto;
95
+ right: auto;
84
96
  }
97
+ $i: $i + 1
98
+ }
99
+
100
+ $i: 1;
101
+ @while $i <= $num-cols {
102
+ $perc: unquote((100 / ($num-cols / $i)) + "%");
85
103
  &.offset-m#{$i} {
86
104
  margin-left: $perc;
87
105
  }
@@ -102,7 +120,16 @@
102
120
  $perc: unquote((100 / ($num-cols / $i)) + "%");
103
121
  &.l#{$i} {
104
122
  width: $perc;
123
+ margin-left: auto;
124
+ left: auto;
125
+ right: auto;
105
126
  }
127
+ $i: $i + 1;
128
+ }
129
+
130
+ $i: 1;
131
+ @while $i <= $num-cols {
132
+ $perc: unquote((100 / ($num-cols / $i)) + "%");
106
133
  &.offset-l#{$i} {
107
134
  margin-left: $perc;
108
135
  }
@@ -1,3 +1,9 @@
1
+ /* This is needed for some mobile phones to display the Google Icon font properly */
2
+ .material-icons {
3
+ text-rendering: optimizeLegibility;
4
+ font-feature-settings: 'liga';
5
+ }
6
+
1
7
  $font-mdi : 'Material-Design-Icons';
2
8
  $mdi-prefix : 'mdi-';
3
9