materialize-sass 0.100.2.1 → 1.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +18 -42
  3. data/Rakefile +17 -17
  4. data/{app/assets → assets}/javascripts/materialize-sprockets.js +8 -12
  5. data/assets/javascripts/materialize.js +11877 -0
  6. data/assets/javascripts/materialize/autocomplete.js +420 -0
  7. data/assets/javascripts/materialize/buttons.js +388 -0
  8. data/assets/javascripts/materialize/cards.js +28 -0
  9. data/assets/javascripts/materialize/carousel.js +791 -0
  10. data/assets/javascripts/materialize/cash.js +992 -0
  11. data/assets/javascripts/materialize/characterCounter.js +180 -0
  12. data/assets/javascripts/materialize/chips.js +555 -0
  13. data/assets/javascripts/materialize/collapsible.js +275 -0
  14. data/assets/javascripts/materialize/datepicker.js +898 -0
  15. data/assets/javascripts/materialize/dropdown.js +530 -0
  16. data/{app/assets → assets}/javascripts/materialize/extras/nouislider.js +1 -1
  17. data/{app/assets → assets}/javascripts/materialize/extras/nouislider.min.js +1 -1
  18. data/assets/javascripts/materialize/forms.js +223 -0
  19. data/assets/javascripts/materialize/global.js +353 -0
  20. data/assets/javascripts/materialize/materialbox.js +432 -0
  21. data/{app/assets → assets}/javascripts/materialize/modal.js +82 -113
  22. data/assets/javascripts/materialize/parallax.js +135 -0
  23. data/assets/javascripts/materialize/pushpin.js +158 -0
  24. data/assets/javascripts/materialize/range.js +305 -0
  25. data/assets/javascripts/materialize/scrollspy.js +322 -0
  26. data/assets/javascripts/materialize/select.js +426 -0
  27. data/assets/javascripts/materialize/sidenav.js +584 -0
  28. data/assets/javascripts/materialize/slider.js +383 -0
  29. data/assets/javascripts/materialize/tabs.js +460 -0
  30. data/assets/javascripts/materialize/tapTarget.js +347 -0
  31. data/assets/javascripts/materialize/timepicker.js +616 -0
  32. data/{app/assets → assets}/javascripts/materialize/toasts.js +42 -46
  33. data/assets/javascripts/materialize/tooltip.js +325 -0
  34. data/assets/javascripts/materialize/velocity.min.js +782 -0
  35. data/{app/assets → assets}/javascripts/materialize/waves.js +0 -0
  36. data/{app/assets → assets}/stylesheets/materialize.scss +5 -6
  37. data/{app/assets → assets}/stylesheets/materialize/components/_badges.scss +1 -1
  38. data/{app/assets → assets}/stylesheets/materialize/components/_buttons.scss +34 -2
  39. data/{app/assets → assets}/stylesheets/materialize/components/_cards.scss +0 -0
  40. data/{app/assets → assets}/stylesheets/materialize/components/_carousel.scss +1 -1
  41. data/{app/assets → assets}/stylesheets/materialize/components/_chips.scss +6 -5
  42. data/{app/assets → assets}/stylesheets/materialize/components/_collapsible.scss +3 -3
  43. data/{app/assets → assets}/stylesheets/materialize/components/_color.scss +0 -0
  44. data/assets/stylesheets/materialize/components/_datepicker.scss +180 -0
  45. data/{app/assets → assets}/stylesheets/materialize/components/_dropdown.scss +16 -15
  46. data/{app/assets → assets}/stylesheets/materialize/components/_global.scss +49 -14
  47. data/{app/assets → assets}/stylesheets/materialize/components/_grid.scss +1 -1
  48. data/{app/assets → assets}/stylesheets/materialize/components/_icons-material-design.scss +0 -0
  49. data/{app/assets → assets}/stylesheets/materialize/components/_materialbox.scss +0 -0
  50. data/assets/stylesheets/materialize/components/_mixins.scss +5 -0
  51. data/{app/assets → assets}/stylesheets/materialize/components/_modal.scss +1 -1
  52. data/{app/assets → assets}/stylesheets/materialize/components/_navbar.scss +0 -0
  53. data/assets/stylesheets/materialize/components/_normalize.scss +447 -0
  54. data/{app/assets → assets}/stylesheets/materialize/components/_preloader.scss +0 -0
  55. data/{app/assets → assets}/stylesheets/materialize/components/_pulse.scss +0 -0
  56. data/{app/assets/stylesheets/materialize/components/_sideNav.scss → assets/stylesheets/materialize/components/_sidenav.scss} +23 -21
  57. data/{app/assets → assets}/stylesheets/materialize/components/_slider.scss +0 -0
  58. data/{app/assets → assets}/stylesheets/materialize/components/_table_of_contents.scss +3 -3
  59. data/{app/assets → assets}/stylesheets/materialize/components/_tabs.scss +2 -2
  60. data/{app/assets → assets}/stylesheets/materialize/components/_tapTarget.scss +0 -0
  61. data/assets/stylesheets/materialize/components/_timepicker.scss +182 -0
  62. data/{app/assets → assets}/stylesheets/materialize/components/_toast.scss +0 -0
  63. data/{app/assets → assets}/stylesheets/materialize/components/_tooltip.scss +1 -0
  64. data/{app/assets → assets}/stylesheets/materialize/components/_transitions.scss +0 -0
  65. data/{app/assets → assets}/stylesheets/materialize/components/_typography.scss +8 -8
  66. data/{app/assets → assets}/stylesheets/materialize/components/_variables.scss +42 -44
  67. data/{app/assets → assets}/stylesheets/materialize/components/_waves.scss +0 -0
  68. data/{app/assets → assets}/stylesheets/materialize/components/forms/_checkboxes.scss +24 -24
  69. data/{app/assets → assets}/stylesheets/materialize/components/forms/_file-input.scss +0 -0
  70. data/{app/assets → assets}/stylesheets/materialize/components/forms/_forms.scss +0 -0
  71. data/{app/assets → assets}/stylesheets/materialize/components/forms/_input-fields.scss +49 -35
  72. data/{app/assets → assets}/stylesheets/materialize/components/forms/_radio-buttons.scss +29 -29
  73. data/{app/assets → assets}/stylesheets/materialize/components/forms/_range.scss +32 -31
  74. data/{app/assets → assets}/stylesheets/materialize/components/forms/_select.scss +20 -11
  75. data/{app/assets → assets}/stylesheets/materialize/components/forms/_switches.scss +0 -0
  76. data/{app/assets → assets}/stylesheets/materialize/extras/nouislider.css +1 -1
  77. data/lib/materialize-sass.rb +13 -23
  78. data/lib/materialize-sass/engine.rb +6 -9
  79. data/lib/materialize-sass/version.rb +1 -1
  80. data/materialize-sass.gemspec +2 -1
  81. metadata +97 -97
  82. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  83. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  84. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  85. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  86. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  87. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  88. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  89. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  90. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  91. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  92. data/app/assets/javascripts/materialize.js +0 -10021
  93. data/app/assets/javascripts/materialize/animation.js +0 -7
  94. data/app/assets/javascripts/materialize/buttons.js +0 -253
  95. data/app/assets/javascripts/materialize/cards.js +0 -28
  96. data/app/assets/javascripts/materialize/carousel.js +0 -543
  97. data/app/assets/javascripts/materialize/character_counter.js +0 -64
  98. data/app/assets/javascripts/materialize/chips.js +0 -315
  99. data/app/assets/javascripts/materialize/collapsible.js +0 -178
  100. data/app/assets/javascripts/materialize/date_picker/picker.date.js +0 -1399
  101. data/app/assets/javascripts/materialize/date_picker/picker.js +0 -1196
  102. data/app/assets/javascripts/materialize/date_picker/picker.time.js +0 -646
  103. data/app/assets/javascripts/materialize/dropdown.js +0 -257
  104. data/app/assets/javascripts/materialize/forms.js +0 -806
  105. data/app/assets/javascripts/materialize/global.js +0 -170
  106. data/app/assets/javascripts/materialize/hammer.min.js +0 -424
  107. data/app/assets/javascripts/materialize/initial.js +0 -10
  108. data/app/assets/javascripts/materialize/jquery.easing.1.4.js +0 -144
  109. data/app/assets/javascripts/materialize/jquery.hammer.js +0 -33
  110. data/app/assets/javascripts/materialize/materialbox.js +0 -263
  111. data/app/assets/javascripts/materialize/parallax.js +0 -54
  112. data/app/assets/javascripts/materialize/pushpin.js +0 -68
  113. data/app/assets/javascripts/materialize/scrollFire.js +0 -49
  114. data/app/assets/javascripts/materialize/scrollspy.js +0 -230
  115. data/app/assets/javascripts/materialize/sideNav.js +0 -395
  116. data/app/assets/javascripts/materialize/slider.js +0 -295
  117. data/app/assets/javascripts/materialize/tabs.js +0 -244
  118. data/app/assets/javascripts/materialize/tapTarget.js +0 -184
  119. data/app/assets/javascripts/materialize/tooltip.js +0 -227
  120. data/app/assets/javascripts/materialize/transitions.js +0 -163
  121. data/app/assets/javascripts/materialize/velocity.min.js +0 -626
  122. data/app/assets/stylesheets/materialize/components/_normalize.scss +0 -424
  123. data/app/assets/stylesheets/materialize/components/_roboto.scss +0 -39
  124. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +0 -469
  125. data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +0 -216
  126. data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +0 -267
@@ -1,469 +0,0 @@
1
- /* ==========================================================================
2
- $BASE-DATE-PICKER
3
- ========================================================================== */
4
- /**
5
- * The picker box.
6
- */
7
- .picker__box {
8
- padding: 0;
9
- border-radius: 2px;
10
- overflow: hidden;
11
- }
12
- /**
13
- * The header containing the month and year stuff.
14
- */
15
- .picker__header {
16
- text-align: center;
17
- position: relative;
18
- margin-top: .75em;
19
- }
20
- /**
21
- * The month and year labels.
22
- */
23
- .picker__month,
24
- .picker__year {
25
- // font-weight: 500;
26
- display: inline-block;
27
- margin-left: .25em;
28
- margin-right: .25em;
29
- }
30
- /**
31
- * The month and year selectors.
32
- */
33
- .picker__select--month,
34
- .picker__select--year {
35
-
36
- height: 2em;
37
- padding: 0;
38
- margin-left: .25em;
39
- margin-right: .25em;
40
- }
41
-
42
- // Modified
43
- .picker__select--month.browser-default {
44
- display: inline;
45
- background-color: #FFFFFF;
46
- width: 40%;
47
- }
48
- .picker__select--year.browser-default {
49
- display: inline;
50
- background-color: #FFFFFF;
51
- width: 26%;
52
- }
53
- .picker__select--month:focus,
54
- .picker__select--year:focus {
55
- border-color: $datepicker-focus;
56
- }
57
- /**
58
- * The month navigation buttons.
59
- */
60
- .picker__nav--prev,
61
- .picker__nav--next {
62
- position: absolute;
63
- padding: .5em 1.25em;
64
- width: 1em;
65
- height: 1em;
66
- box-sizing: content-box;
67
- top: -0.25em;
68
- }
69
- //@media (min-width: 24.5em) {
70
- // .picker__nav--prev,
71
- // .picker__nav--next {
72
- // top: -0.33em;
73
- // }
74
- //}
75
- .picker__nav--prev {
76
- left: -1em;
77
- padding-right: 1.25em;
78
- }
79
- //@media (min-width: 24.5em) {
80
- // .picker__nav--prev {
81
- // padding-right: 1.5em;
82
- // }
83
- //}
84
- .picker__nav--next {
85
- right: -1em;
86
- padding-left: 1.25em;
87
- }
88
- //@media (min-width: 24.5em) {
89
- // .picker__nav--next {
90
- // padding-left: 1.5em;
91
- // }
92
- //}
93
-
94
- //.picker__nav--prev:before,
95
- //.picker__nav--next:before {
96
- // content: " ";
97
- // border-top: .5em solid transparent;
98
- // border-bottom: .5em solid transparent;
99
- // border-right: 0.75em solid #000;
100
- // width: 0;
101
- // height: 0;
102
- // display: block;
103
- // margin: 0 auto;
104
- //}
105
- //.picker__nav--next:before {
106
- // border-right: 0;
107
- // border-left: 0.75em solid #000;
108
- //}
109
- //.picker__nav--prev:hover,
110
- //.picker__nav--next:hover {
111
- // cursor: pointer;
112
- // color: #000;
113
- // background: #b1dcfb;
114
- //}
115
- .picker__nav--disabled,
116
- .picker__nav--disabled:hover,
117
- .picker__nav--disabled:before,
118
- .picker__nav--disabled:before:hover {
119
- cursor: default;
120
- background: none;
121
- border-right-color: #f5f5f5;
122
- border-left-color: #f5f5f5;
123
- }
124
- /**
125
- * The calendar table of dates
126
- */
127
- .picker__table {
128
- text-align: center;
129
- border-collapse: collapse;
130
- border-spacing: 0;
131
- table-layout: fixed;
132
- font-size: 1rem;
133
- width: 100%;
134
- margin-top: .75em;
135
- margin-bottom: .5em;
136
- }
137
- //@media (min-height: 33.875em) {
138
- // .picker__table {
139
- // margin-bottom: .75em;
140
- // }
141
- //}
142
- .picker__table th, .picker__table td {
143
- text-align: center;
144
- }
145
- .picker__table td {
146
- margin: 0;
147
- padding: 0;
148
- }
149
- /**
150
- * The weekday labels
151
- */
152
- .picker__weekday {
153
- width: 14.285714286%;
154
- font-size: .75em;
155
- padding-bottom: .25em;
156
- color: #999999;
157
- font-weight: 500;
158
- /* Increase the spacing a tad */
159
- }
160
- @media (min-height: 33.875em) {
161
- .picker__weekday {
162
- padding-bottom: .5em;
163
- }
164
- }
165
- /**
166
- * The days on the calendar
167
- */
168
- //.picker__day {
169
- // padding: .3125em 0;
170
- // font-weight: 200;
171
- // border: 1px solid transparent;
172
- //}
173
- .picker__day--today {
174
- position: relative;
175
- color: #595959;
176
- letter-spacing: -.3;
177
- padding: .75rem 0;
178
- font-weight: 400;
179
- border: 1px solid transparent;
180
-
181
- }
182
-
183
- //.picker__day--today:before {
184
- // content: " ";
185
- // position: absolute;
186
- // top: 2px;
187
- // right: 2px;
188
- // width: 0;
189
- // height: 0;
190
- // border-top: 0.5em solid #0059bc;
191
- // border-left: .5em solid transparent;
192
- //}
193
- .picker__day--disabled:before {
194
- border-top-color: #aaaaaa;
195
- }
196
- .picker__day--outfocus {
197
- display: none;
198
- padding: .75rem 0;
199
- color: #fff;
200
- }
201
- .picker__day--infocus:hover{
202
- cursor: pointer;
203
- color: #000;
204
- font-weight: 500;
205
- }
206
- //.picker__day--infocus:hover,
207
- .picker__day--outfocus:hover {
208
- cursor: pointer;
209
- color: #dddddd;
210
- // background: #b1dcfb;
211
- font-weight: 500;
212
- }
213
- .picker__day--highlighted {
214
- //border-color: #0089ec;
215
- }
216
- .picker__day--highlighted:hover,
217
- .picker--focused .picker__day--highlighted {
218
- cursor: pointer;
219
- //color: #000;
220
- //background: #b1dcfb;
221
- }
222
- .picker__day--selected,
223
- .picker__day--selected:hover,
224
- .picker--focused .picker__day--selected {
225
- // Circle background
226
- border-radius: 50%;
227
- transform: scale(.75);
228
- background: #0089ec;
229
- color: #ffffff;
230
- }
231
- .picker__day--disabled,
232
- .picker__day--disabled:hover,
233
- .picker--focused .picker__day--disabled {
234
- background: #f5f5f5;
235
- border-color: #f5f5f5;
236
- color: #dddddd;
237
- cursor: default;
238
- }
239
- .picker__day--highlighted.picker__day--disabled,
240
- .picker__day--highlighted.picker__day--disabled:hover {
241
- background: #bbbbbb;
242
- }
243
- /**
244
- * The footer containing the "today", "clear", and "close" buttons.
245
- */
246
- .picker__footer {
247
- text-align: right;
248
- }
249
- .picker__button--today,
250
- .picker__button--clear,
251
- .picker__button--close {
252
- border: 1px solid #ffffff;
253
- background: #ffffff;
254
- font-size: .8em;
255
- padding: .66em 0;
256
- font-weight: bold;
257
- width: 33%;
258
- display: inline-block;
259
- vertical-align: bottom;
260
- }
261
- .picker__button--today:hover,
262
- .picker__button--clear:hover,
263
- .picker__button--close:hover {
264
- cursor: pointer;
265
- color: #000000;
266
- background: #b1dcfb;
267
- border-bottom-color: #b1dcfb;
268
- }
269
- .picker__button--today:focus,
270
- .picker__button--clear:focus,
271
- .picker__button--close:focus {
272
- background: #b1dcfb;
273
- border-color: $datepicker-focus;
274
- outline: none;
275
- }
276
- .picker__button--today:before,
277
- .picker__button--clear:before,
278
- .picker__button--close:before {
279
- position: relative;
280
- display: inline-block;
281
- height: 0;
282
- }
283
- .picker__button--today:before,
284
- .picker__button--clear:before {
285
- content: " ";
286
- margin-right: .45em;
287
- }
288
- .picker__button--today:before {
289
- top: -0.05em;
290
- width: 0;
291
- border-top: 0.66em solid #0059bc;
292
- border-left: .66em solid transparent;
293
- }
294
- .picker__button--clear:before {
295
- top: -0.25em;
296
- width: .66em;
297
- border-top: 3px solid #ee2200;
298
- }
299
- .picker__button--close:before {
300
- content: "\D7";
301
- top: -0.1em;
302
- vertical-align: top;
303
- font-size: 1.1em;
304
- margin-right: .35em;
305
- color: #777777;
306
- }
307
- .picker__button--today[disabled],
308
- .picker__button--today[disabled]:hover {
309
- background: #f5f5f5;
310
- border-color: #f5f5f5;
311
- color: #dddddd;
312
- cursor: default;
313
- }
314
- .picker__button--today[disabled]:before {
315
- border-top-color: #aaaaaa;
316
- }
317
-
318
- /* ==========================================================================
319
- $DEFAULT-DATE-PICKER
320
- ========================================================================== */
321
- /*.picker__box {
322
- border-radius: 2px;
323
- overflow: hidden;
324
- }*/
325
-
326
- .picker__date-display {
327
- text-align: left;
328
- background-color: $datepicker-date-bg;
329
- color: #fff;
330
- padding: 18px;
331
- font-weight: 300;
332
- }
333
-
334
- @media only screen and (min-width: 601px) {
335
- .picker__date-display {
336
- flex:1;
337
- }
338
- .picker__weekday-display {
339
- display:block;
340
- }
341
- .picker__container__wrapper {
342
- flex:2
343
- }
344
- }
345
-
346
- .picker__nav--prev:hover,
347
- .picker__nav--next:hover {
348
- cursor: pointer;
349
- color: #000000;
350
- background: $datepicker-selected-outfocus;
351
- }
352
-
353
- .picker__weekday-display {
354
- font-weight: 500;
355
- font-size: $datepicker-display-font-size;
356
- margin-right: 5px;
357
- margin-top: 4px;
358
- }
359
-
360
- .picker__month-display {
361
- //text-transform: uppercase;
362
- font-size: $datepicker-display-font-size;
363
- font-weight: 500;
364
- }
365
- .picker__day-display {
366
- font-size: $datepicker-display-font-size;
367
- font-weight: 500;
368
- margin-right: 5px;
369
- }
370
- .picker__year-display {
371
- font-size: 1.5rem;
372
- font-weight: 500;
373
- color: $datepicker-year;
374
- }
375
-
376
- /*.picker__box {
377
- padding: 0;
378
- }*/
379
- .picker__calendar-container {
380
- padding: 0 1rem;
381
-
382
- thead {
383
- border: none;
384
- }
385
- }
386
-
387
- // Calendar
388
- .picker__table {
389
- margin-top: 0;
390
- margin-bottom: .5em;
391
- }
392
-
393
- .picker__day--infocus {
394
- color: $datepicker-weekday-color;
395
- letter-spacing: -.3px;
396
- padding: 0.75rem 0;
397
- font-weight: 400;
398
- border: 1px solid transparent;
399
- }
400
- @media only screen and (min-width: 601px) {
401
- .picker__day--infocus {
402
- padding: 1.1rem 0;
403
- }
404
- }
405
-
406
-
407
- //Today style
408
- .picker__day.picker__day--today {
409
- color: $datepicker-selected;
410
- }
411
-
412
- .picker__day.picker__day--today.picker__day--selected {
413
- color: #fff;
414
- }
415
-
416
- // Table Header
417
- .picker__weekday {
418
- font-size: .9rem;
419
- }
420
-
421
-
422
- .picker__day--selected,
423
- .picker__day--selected:hover,
424
- .picker--focused .picker__day--selected {
425
- // Circle background
426
- border-radius: 50%;
427
- transform: scale(.9);
428
- background-color: $datepicker-selected;
429
- &.picker__day--outfocus {
430
- background-color: $datepicker-selected-outfocus;
431
- }
432
- color: #ffffff;
433
- }
434
-
435
- .picker__footer {
436
- text-align: right;
437
- padding: 5px 10px;
438
- }
439
-
440
- // Materialize modified
441
- .picker__close, .picker__today, .picker__clear {
442
- font-size: 1.1rem;
443
- padding: 0 1rem;
444
- color: $datepicker-selected;
445
- }
446
- .picker__clear {
447
- color:#f44336;
448
- float:left;
449
- }
450
-
451
- //month nav buttons
452
- .picker__nav--prev:before,
453
- .picker__nav--next:before {
454
- content: " ";
455
- border-top: .5em solid transparent;
456
- border-bottom: .5em solid transparent;
457
- border-right: 0.75em solid #676767;
458
- width: 0;
459
- height: 0;
460
- display: block;
461
- margin: 0 auto;
462
- }
463
- .picker__nav--next:before {
464
- border-right: 0;
465
- border-left: 0.75em solid #676767;
466
- }
467
- button.picker__today:focus, button.picker__clear:focus, button.picker__close:focus {
468
- background-color: $datepicker-selected-outfocus;
469
- }