materialize-sass 0.95.3.3 → 0.95.3.4

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.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +1 -1
  3. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  4. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  5. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  6. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  7. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  8. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  9. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  10. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  11. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  12. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  13. data/app/assets/javascripts/materialize-sprockets.js +2 -1
  14. data/app/assets/javascripts/materialize/buttons.js +4 -4
  15. data/app/assets/javascripts/materialize/collapsible.js +11 -14
  16. data/app/assets/javascripts/materialize/dropdown.js +5 -1
  17. data/app/assets/javascripts/materialize/forms.js +157 -151
  18. data/app/assets/javascripts/materialize/global.js +18 -0
  19. data/app/assets/javascripts/materialize/init.js +5 -1
  20. data/app/assets/javascripts/materialize/leanModal.js +0 -1
  21. data/app/assets/javascripts/materialize/pushpin.js +1 -14
  22. data/app/assets/javascripts/materialize/scrollFire.js +60 -21
  23. data/app/assets/javascripts/materialize/scrollspy.js +4 -7
  24. data/app/assets/javascripts/materialize/sideNav.js +58 -21
  25. data/app/assets/javascripts/materialize/slider.js +1 -1
  26. data/app/assets/javascripts/materialize/toasts.js +90 -73
  27. data/app/assets/javascripts/materialize/transitions.js +57 -61
  28. data/app/assets/javascripts/materialize/waves.js +6 -3
  29. data/app/assets/stylesheets/materialize/components/_buttons.scss +3 -3
  30. data/app/assets/stylesheets/materialize/components/_cards.scss +5 -7
  31. data/app/assets/stylesheets/materialize/components/_collapsible.scss +3 -11
  32. data/app/assets/stylesheets/materialize/components/_dropdown.scss +1 -1
  33. data/app/assets/stylesheets/materialize/components/_form.scss +178 -162
  34. data/app/assets/stylesheets/materialize/components/_global.scss +11 -10
  35. data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +766 -2230
  36. data/app/assets/stylesheets/materialize/components/_materialbox.scss +2 -3
  37. data/app/assets/stylesheets/materialize/components/_modal.scss +3 -3
  38. data/app/assets/stylesheets/materialize/components/_navbar.scss +4 -7
  39. data/app/assets/stylesheets/materialize/components/_prefixer.scss +0 -40
  40. data/app/assets/stylesheets/materialize/components/_preloader.scss +2 -4
  41. data/app/assets/stylesheets/materialize/components/_sideNav.scss +9 -9
  42. data/app/assets/stylesheets/materialize/components/_slider.scss +6 -6
  43. data/app/assets/stylesheets/materialize/components/_table_of_contents.scss +1 -1
  44. data/app/assets/stylesheets/materialize/components/_tabs.scss +2 -2
  45. data/app/assets/stylesheets/materialize/components/_toast.scss +4 -5
  46. data/app/assets/stylesheets/materialize/components/_tooltip.scss +2 -2
  47. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +20 -47
  48. data/lib/materialize-sass.rb +75 -6
  49. data/lib/materialize-sass/engine.rb +13 -0
  50. data/lib/materialize-sass/version.rb +1 -1
  51. metadata +9 -15
@@ -5,7 +5,7 @@
5
5
 
6
6
  &:hover {
7
7
  &:not(.active) {
8
- @include opacity(0.8);
8
+ opacity: .8;
9
9
  }
10
10
  will-change: left, top, width, height;
11
11
  }
@@ -31,9 +31,8 @@
31
31
  display: none;
32
32
  color: #fff;
33
33
  line-height: 50px;
34
- bottom: 0px;
34
+ bottom: 0;
35
35
  width: 100%;
36
- box-sizing: border-box;
37
36
  text-align: center;
38
37
  padding: 0% 15%;
39
38
  height: 50px;
@@ -13,7 +13,7 @@
13
13
  overflow-y: auto;
14
14
  z-index: 1000;
15
15
 
16
- @include border-radius(2px);
16
+ border-radius: 2px;
17
17
  @include transform(translate(0));
18
18
  will-change: top, opacity;
19
19
 
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  .modal-footer {
33
- @include border-radius(0 0 2px 2px);
33
+ border-radius: 0 0 2px 2px;
34
34
  background-color: #eee;
35
35
  padding: 4px 6px;
36
36
  height: 56px;
@@ -84,6 +84,6 @@
84
84
  margin: 0;
85
85
  width: 100%;
86
86
  max-height: 45%;
87
- @include border-radius(0);
87
+ border-radius: 0;
88
88
  will-change: bottom, opacity;
89
89
  }
@@ -5,7 +5,6 @@ nav {
5
5
  width: 100%;
6
6
  height: $navbar-height-mobile;
7
7
  line-height: $navbar-height-mobile;
8
- overflow: hidden;
9
8
 
10
9
  a { color: #fff; }
11
10
 
@@ -24,12 +23,11 @@ nav {
24
23
 
25
24
 
26
25
  // Collapse button
27
- a.button-collapse {
26
+ .button-collapse {
28
27
  float: left;
29
28
  position: relative;
30
29
  z-index: 1;
31
30
  height: $navbar-height-mobile;
32
- color: #fff;
33
31
 
34
32
  i {
35
33
 
@@ -74,7 +72,7 @@ nav {
74
72
  li {
75
73
  @include transition(background-color .3s);
76
74
  float: left;
77
- padding: 0px;
75
+ padding: 0;
78
76
 
79
77
  &:hover, &.active {
80
78
  background-color: rgba(0,0,0,.1);
@@ -84,7 +82,7 @@ nav {
84
82
  font-size: 1rem;
85
83
  color: #fff;
86
84
  display: inline-block;
87
- padding: 0px 15px;
85
+ padding: 0 15px;
88
86
  }
89
87
 
90
88
  &.left {
@@ -101,12 +99,11 @@ nav {
101
99
  font-size: 1.2rem;
102
100
  border: none;
103
101
  padding-left: 2rem;
104
- @include box-sizing(border-box);
105
102
 
106
103
  &:focus, &[type=text]:valid, &[type=password]:valid,
107
104
  &[type=email]:valid, &[type=url]:valid, &[type=date]:valid {
108
105
  border: none;
109
- @include box-shadow(none);
106
+ box-shadow: none;
110
107
  }
111
108
  }
112
109
  label {
@@ -15,8 +15,6 @@
15
15
  // animation-play-state($state)
16
16
  // animation-timing-function($function)
17
17
  // background-size($args)
18
- // border-radius($args)
19
- // box-shadow($args)
20
18
  // inner-shadow($args) *
21
19
  // box-sizing($args)
22
20
  // border-box() *
@@ -34,7 +32,6 @@
34
32
  // gradient($default,$start,$stop) *
35
33
  // linear-gradient-top($default,$color1,$stop1,$color2,$stop2,[$color3,$stop3,$color4,$stop4])*
36
34
  // linear-gradient-left($default,$color1,$stop1,$color2,$stop2,[$color3,$stop3,$color4,$stop4])*
37
- // opacity($factor)
38
35
  // transform($args)
39
36
  // transform-origin($args)
40
37
  // transform-style($style)
@@ -145,30 +142,6 @@
145
142
  background-size: $args;
146
143
  }
147
144
 
148
-
149
- // Border Radius
150
-
151
- @mixin border-radius($args) {
152
- -webkit-border-radius: $args;
153
- -moz-border-radius: $args;
154
- border-radius: $args;
155
-
156
- background-clip: padding-box;
157
- }
158
-
159
-
160
- // Box Shadows
161
-
162
- @mixin box-shadow($args) {
163
- -webkit-box-shadow: $args;
164
- -moz-box-shadow: $args;
165
- box-shadow: $args;
166
- }
167
- @mixin inner-shadow($args) {
168
- @include box-shadow(inset $args);
169
- }
170
-
171
-
172
145
  // Box Sizing
173
146
 
174
147
  @mixin box-sizing($args) {
@@ -312,19 +285,6 @@
312
285
  background-image: linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
313
286
  }
314
287
 
315
-
316
- // Opacity
317
-
318
- @mixin opacity($factor) {
319
- $iefactor: $factor*100;
320
- -ms-filter: "progid:DXImageTransform@mixin Microsoft@mixin Alpha(Opacity=${iefactor})";
321
- filter: "alpha(opacity=(${iefactor}))";
322
- -moz-opacity: $factor;
323
- -khtml-opacity: $factor;
324
- opacity: $factor;
325
- }
326
-
327
-
328
288
  // Text Shadow
329
289
 
330
290
  @mixin text-shadow($args) {
@@ -62,7 +62,7 @@
62
62
  position: absolute;
63
63
  width: 100%;
64
64
  height: 100%;
65
- @include opacity(0);
65
+ opacity: 0;
66
66
  }
67
67
 
68
68
  .spinner-blue,
@@ -127,7 +127,7 @@
127
127
  .active .spinner-layer.spinner-yellow-only,
128
128
  .active .spinner-layer.spinner-green-only {
129
129
  /* durations: 4 * ARCTIME */
130
- @include opacity(1);
130
+ opacity: 1;
131
131
  -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
132
132
  animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
133
133
  }
@@ -226,7 +226,6 @@
226
226
  */
227
227
  .gap-patch {
228
228
  position: absolute;
229
- box-sizing: border-box;
230
229
  top: 0;
231
230
  left: 45%;
232
231
  width: 10%;
@@ -250,7 +249,6 @@
250
249
 
251
250
  .circle {
252
251
  width: 200%;
253
- box-sizing: border-box;
254
252
  height: 100%;
255
253
  border-width: 3px; /* STROKEWIDTH */
256
254
  border-style: solid;
@@ -1,4 +1,4 @@
1
- ul.side-nav {
1
+ .side-nav {
2
2
  position: fixed;
3
3
  width: 240px;
4
4
  left: -105%;
@@ -48,7 +48,7 @@ ul.side-nav {
48
48
 
49
49
 
50
50
  // Hidden side-nav for all sizes
51
- ul.side-nav.fixed {
51
+ .side-nav.fixed {
52
52
  a {
53
53
  display: block;
54
54
  padding: 0 15px;
@@ -58,7 +58,7 @@ ul.side-nav.fixed {
58
58
 
59
59
 
60
60
  // Fixed side-nav shown
61
- ul.side-nav.fixed {
61
+ .side-nav.fixed {
62
62
  left: 0;
63
63
  position: fixed;
64
64
 
@@ -71,7 +71,7 @@ ul.side-nav.fixed {
71
71
 
72
72
  // Fixed sideNav hide on smaller
73
73
  @media #{$medium-and-down} {
74
- ul.side-nav.fixed {
74
+ .side-nav.fixed {
75
75
  left: -105%;
76
76
 
77
77
  &.right-aligned {
@@ -82,8 +82,8 @@ ul.side-nav.fixed {
82
82
  }
83
83
 
84
84
 
85
- ul.side-nav .collapsible-body li.active,
86
- ul.side-nav.fixed .collapsible-body li.active {
85
+ .side-nav .collapsible-body li.active,
86
+ .side-nav.fixed .collapsible-body li.active {
87
87
  background-color: $primary-color;
88
88
  a {
89
89
  color: #fff;
@@ -93,9 +93,9 @@ ul.side-nav.fixed .collapsible-body li.active {
93
93
 
94
94
  #sidenav-overlay {
95
95
  position: fixed;
96
- top: 0px;
97
- left: 0px;
98
- right: 0px;
96
+ top: 0;
97
+ left: 0;
98
+ right: 0;
99
99
 
100
100
  height: 120vh;
101
101
  background-color: rgba(0,0,0,.5);
@@ -23,13 +23,13 @@
23
23
  }
24
24
  }
25
25
 
26
- ul.slides {
26
+ .slides {
27
27
  background-color: color('grey', 'base');
28
28
  margin: 0;
29
29
  height: 400px;
30
30
 
31
31
  li {
32
- @include opacity(0);
32
+ opacity: 0;
33
33
  position: absolute;
34
34
  top: 0;
35
35
  left: 0;
@@ -51,7 +51,7 @@
51
51
  top: 15%;
52
52
  left: 15%;
53
53
  width: 70%;
54
- @include opacity(0);
54
+ opacity: 0;
55
55
 
56
56
  p { color: color('grey', 'lighten-2'); }
57
57
  }
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
 
66
- ul.indicators {
66
+ .indicators {
67
67
  position: absolute;
68
68
  text-align: center;
69
69
  left: 0;
@@ -71,7 +71,7 @@
71
71
  bottom: 0;
72
72
  margin: 0;
73
73
 
74
- li.indicator-item {
74
+ .indicator-item {
75
75
  display: inline-block;
76
76
  position: relative;
77
77
  cursor: pointer;
@@ -81,7 +81,7 @@
81
81
  background-color: color('grey', 'lighten-2');
82
82
 
83
83
  @include transition(background-color .3s);
84
- @include border-radius(50%);
84
+ border-radius: 50%;
85
85
 
86
86
  &.active {
87
87
  background-color: color('green', 'base');
@@ -1,7 +1,7 @@
1
1
  /***************
2
2
  Nav List
3
3
  ***************/
4
- ul.table-of-contents {
4
+ .table-of-contents {
5
5
  &.fixed {
6
6
  position: fixed;
7
7
  }
@@ -6,7 +6,7 @@
6
6
  width: 100%;
7
7
  white-space: nowrap;
8
8
 
9
- li.tab {
9
+ .tab {
10
10
  display: block;
11
11
  float: left;
12
12
  text-align: center;
@@ -39,5 +39,5 @@
39
39
  }
40
40
  }
41
41
 
42
- ul.tabs li.tab { padding: 0; }
42
+ .tabs .tab { padding: 0; }
43
43
 
@@ -21,9 +21,8 @@
21
21
 
22
22
  .toast {
23
23
  @extend .z-depth-1;
24
- @include border-radius(2px);
25
- @include box-sizing(border-box);
26
- top: 0px;
24
+ border-radius: 2px;
25
+ top: 0;
27
26
  width: auto;
28
27
  clear: both;
29
28
  margin-top: 10px;
@@ -32,7 +31,7 @@
32
31
  height: $toast-height;
33
32
  line-height: $toast-height;
34
33
  background-color: $toast-color;
35
- padding: 0px 25px;
34
+ padding: 0 25px;
36
35
  font-size: 1.1rem;
37
36
  font-weight: 300;
38
37
  color: $toast-text-color;
@@ -52,7 +51,7 @@
52
51
 
53
52
  @media #{$small-and-down} {
54
53
  width:100%;
55
- @include border-radius(0px);
54
+ border-radius: 0;
56
55
  }
57
56
  @media #{$medium-only} {
58
57
  float: left;
@@ -3,7 +3,7 @@
3
3
  font-size: 1rem;
4
4
  z-index: 1000;
5
5
  background-color: transparent;
6
- @include border-radius(2px);
6
+ border-radius: 2px;
7
7
  color: #fff;
8
8
  min-height: 36px;
9
9
  line-height: 1rem;
@@ -25,7 +25,7 @@
25
25
  display: none;
26
26
  height: 7px;
27
27
  width: 14px;
28
- @include border-radius(0 0 14px 14px);
28
+ border-radius: 0 0 14px 14px;
29
29
  background-color: #323232;
30
30
  z-index: -1;
31
31
  @include transform-origin( 50% 10%);
@@ -31,37 +31,26 @@
31
31
  .picker__select--month,
32
32
  .picker__select--year {
33
33
 
34
-
35
- // border: 1px solid #b7b7b7;
36
-
37
34
  height: 2em;
38
- padding: .5em;
35
+ padding: 0;
39
36
  margin-left: .25em;
40
37
  margin-right: .25em;
41
38
  }
42
- @media (min-width: 24.5em) {
43
- .picker__select--month,
44
- .picker__select--year {
45
- margin-top: -0.5em;
46
- }
47
- }
48
39
 
40
+ // Modified
49
41
  .picker__select--month.browser-default {
50
42
  display: inline;
51
43
  background-color: #FFFFFF;
52
44
  width: 40%;
53
45
  }
54
-
55
46
  .picker__select--year.browser-default {
56
47
  display: inline;
57
48
  background-color: #FFFFFF;
58
49
  width: 25%;
59
50
  }
60
-
61
51
  .picker__select--month:focus,
62
52
  .picker__select--year:focus {
63
- // border-color: #0089ec;
64
- border-color: rgba(0, 0, 0, 0.05);
53
+ border-color: $datepicker-focus;
65
54
  }
66
55
  /**
67
56
  * The month navigation buttons.
@@ -100,13 +89,6 @@
100
89
  // }
101
90
  //}
102
91
 
103
- // .picker__nav--prev:hover,
104
- // .picker__nav--next:hover {
105
- // cursor: pointer;
106
- // color: #000000;
107
- // background: #b1dcfb;
108
- // }
109
-
110
92
  .picker__nav--disabled,
111
93
  .picker__nav--disabled:hover,
112
94
  .picker__nav--disabled:before,
@@ -190,7 +172,6 @@
190
172
  }
191
173
 
192
174
 
193
-
194
175
  .picker__day--infocus:hover{
195
176
  cursor: pointer;
196
177
  color: #000;
@@ -198,7 +179,7 @@
198
179
  }
199
180
 
200
181
  .picker__day--outfocus {
201
-
182
+ display: none;
202
183
  padding: .75rem 0;
203
184
  color: #fff;
204
185
 
@@ -217,7 +198,7 @@
217
198
  .picker__day--highlighted:hover,
218
199
  .picker--focused .picker__day--highlighted {
219
200
  cursor: pointer;
220
- // color: #000000;
201
+ // color: #000000;
221
202
  // background: #b1dcfb;
222
203
  // font-weight: 500;
223
204
  }
@@ -229,8 +210,6 @@
229
210
  // Circle background
230
211
  border-radius: 50%;
231
212
  @include transform(scale(.75));
232
-
233
-
234
213
  background: #0089ec;
235
214
  color: #ffffff;
236
215
  }
@@ -279,7 +258,7 @@
279
258
  .picker__button--clear:focus,
280
259
  .picker__button--close:focus {
281
260
  background: #b1dcfb;
282
- border-color: rgba(0, 0, 0, 0.05);
261
+ border-color: $datepicker-focus;
283
262
  outline: none;
284
263
  }
285
264
  .picker__button--today:before,
@@ -334,21 +313,21 @@
334
313
 
335
314
  .picker__date-display {
336
315
  text-align: center;
337
- background-color: color("teal", "lighten-1");
316
+ background-color: $datepicker-date-bg;
338
317
  color: #fff;
339
318
  padding-bottom: 15px;
340
319
  font-weight: 300;
341
320
  }
342
321
 
343
- .picker__nav--prev:hover, .picker__nav--next:hover {
322
+ .picker__nav--prev:hover,
323
+ .picker__nav--next:hover {
344
324
  cursor: pointer;
345
325
  color: #000000;
346
- background: #a1ded8;
326
+ background: $datepicker-selected-outfocus;
347
327
  }
348
328
 
349
329
  .picker__weekday-display {
350
- // background-color: color("teal", "darken-1");
351
- background-color: #1f897f;
330
+ background-color: $datepicker-weekday-bg;
352
331
  padding: 10px;
353
332
  font-weight: 200;
354
333
  letter-spacing: .5;
@@ -367,8 +346,7 @@
367
346
  }
368
347
  .picker__year-display {
369
348
  font-size: 1.8rem;
370
- // color: color("teal", "lighten-3");
371
- color: rgba(255, 255, 255, 0.4);
349
+ color: $datepicker-year;
372
350
  }
373
351
 
374
352
  .picker__box {
@@ -398,7 +376,7 @@
398
376
 
399
377
  //Today style
400
378
  .picker__day.picker__day--today {
401
- color: color("teal", "lighten-1");
379
+ color: $datepicker-selected;
402
380
  }
403
381
 
404
382
  .picker__day.picker__day--today.picker__day--selected {
@@ -411,17 +389,15 @@
411
389
  }
412
390
 
413
391
 
414
- .picker__day--selected, .picker__day--selected:hover,
392
+ .picker__day--selected,
393
+ .picker__day--selected:hover,
415
394
  .picker--focused .picker__day--selected {
416
395
  // Circle background
417
396
  border-radius: 50%;
418
397
  @include transform(scale(.9));
419
- // background-color: color("teal", "base");
420
- background-color: #26a69a;
421
- &.picker__day--outfocus,
422
- &:hover.picker__day--outfocus,
398
+ background-color: $datepicker-selected;
423
399
  &.picker__day--outfocus {
424
- background-color: #a1ded8;
400
+ background-color: $datepicker-selected-outfocus;
425
401
  }
426
402
  color: #ffffff;
427
403
  }
@@ -435,7 +411,7 @@
435
411
  .picker__close, .picker__today {
436
412
  font-size: 1.1rem;
437
413
  padding: 0 1rem;
438
- color: color("teal", "lighten-1");
414
+ color: $datepicker-selected;
439
415
  }
440
416
 
441
417
  //month nav buttons
@@ -454,9 +430,6 @@
454
430
  border-right: 0;
455
431
  border-left: 0.75em solid #676767;
456
432
  }
457
-
458
- button.picker__today:focus,
459
- button.picker__clear:focus,
460
- button.picker__close:focus {
461
- background-color: #a1ded8;
433
+ button.picker__today:focus, button.picker__clear:focus, button.picker__close:focus {
434
+ background-color: $datepicker-selected-outfocus;
462
435
  }