materialize-sass 0.95.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +50 -0
  6. data/Rakefile +1 -0
  7. data/app/assets/fonts/material-design-icons/LICENSE.txt +428 -0
  8. data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
  9. data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +751 -0
  10. data/app/assets/fonts/material-design-icons/Material-Design-Icons.ttf +0 -0
  11. data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff +0 -0
  12. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  13. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  14. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  15. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  16. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  17. data/app/assets/javascripts/materialize-sprokets.js +21 -0
  18. data/app/assets/javascripts/materialize.js +5327 -0
  19. data/app/assets/javascripts/materialize/cards.js +19 -0
  20. data/app/assets/javascripts/materialize/collapsible.js +87 -0
  21. data/app/assets/javascripts/materialize/date_picker/picker.date.js +1427 -0
  22. data/app/assets/javascripts/materialize/date_picker/picker.js +1123 -0
  23. data/app/assets/javascripts/materialize/dropdown.js +168 -0
  24. data/app/assets/javascripts/materialize/forms.js +245 -0
  25. data/app/assets/javascripts/materialize/hammer.min.js +1 -0
  26. data/app/assets/javascripts/materialize/init.js +152 -0
  27. data/app/assets/javascripts/materialize/jquery.easing.1.3.js +205 -0
  28. data/app/assets/javascripts/materialize/jquery.hammer.js +33 -0
  29. data/app/assets/javascripts/materialize/jquery.timeago.min.js +1 -0
  30. data/app/assets/javascripts/materialize/leanModal.js +96 -0
  31. data/app/assets/javascripts/materialize/materialbox.js +237 -0
  32. data/app/assets/javascripts/materialize/parallax.js +50 -0
  33. data/app/assets/javascripts/materialize/prism.js +8 -0
  34. data/app/assets/javascripts/materialize/pushpin.js +87 -0
  35. data/app/assets/javascripts/materialize/scrollspy.js +287 -0
  36. data/app/assets/javascripts/materialize/sideNav.js +278 -0
  37. data/app/assets/javascripts/materialize/slider.js +257 -0
  38. data/app/assets/javascripts/materialize/tabs.js +130 -0
  39. data/app/assets/javascripts/materialize/toasts.js +100 -0
  40. data/app/assets/javascripts/materialize/tooltip.js +167 -0
  41. data/app/assets/javascripts/materialize/velocity.min.js +4 -0
  42. data/app/assets/javascripts/materialize/waves.js +335 -0
  43. data/app/assets/stylesheets/components/_buttons.scss +111 -0
  44. data/app/assets/stylesheets/components/_cards.scss +121 -0
  45. data/app/assets/stylesheets/components/_collapsible.scss +78 -0
  46. data/app/assets/stylesheets/components/_color.scss +411 -0
  47. data/app/assets/stylesheets/components/_dropdown.scss +31 -0
  48. data/app/assets/stylesheets/components/_form.scss +641 -0
  49. data/app/assets/stylesheets/components/_global.scss +582 -0
  50. data/app/assets/stylesheets/components/_grid.scss +119 -0
  51. data/app/assets/stylesheets/components/_icons-material-design.scss +2247 -0
  52. data/app/assets/stylesheets/components/_materialbox.scss +42 -0
  53. data/app/assets/stylesheets/components/_mixins.scss +5 -0
  54. data/app/assets/stylesheets/components/_modal.scss +50 -0
  55. data/app/assets/stylesheets/components/_navbar.scss +129 -0
  56. data/app/assets/stylesheets/components/_normalize.scss +427 -0
  57. data/app/assets/stylesheets/components/_prefixer.scss +417 -0
  58. data/app/assets/stylesheets/components/_preloader.scss +320 -0
  59. data/app/assets/stylesheets/components/_roboto.scss +28 -0
  60. data/app/assets/stylesheets/components/_sideNav.scss +143 -0
  61. data/app/assets/stylesheets/components/_slider.scss +87 -0
  62. data/app/assets/stylesheets/components/_table_of_contents.scss +33 -0
  63. data/app/assets/stylesheets/components/_tabs.scss +43 -0
  64. data/app/assets/stylesheets/components/_toast.scss +64 -0
  65. data/app/assets/stylesheets/components/_tooltip.scss +34 -0
  66. data/app/assets/stylesheets/components/_typography.scss +55 -0
  67. data/app/assets/stylesheets/components/_variables.scss +128 -0
  68. data/app/assets/stylesheets/components/_waves.scss +167 -0
  69. data/app/assets/stylesheets/components/date_picker/_default.date.scss +431 -0
  70. data/app/assets/stylesheets/components/date_picker/_default.scss +201 -0
  71. data/app/assets/stylesheets/components/date_picker/_default.time.scss +125 -0
  72. data/app/assets/stylesheets/materialize.scss +38 -0
  73. data/lib/materialize-sass.rb +8 -0
  74. data/lib/materialize-sass/version.rb +6 -0
  75. data/materialize-sass.gemspec +23 -0
  76. metadata +146 -0
@@ -0,0 +1,582 @@
1
+ @charset "UTF-8";
2
+
3
+
4
+ //Default styles
5
+
6
+ html {
7
+ box-sizing: border-box;
8
+ }
9
+ *, *:before, *:after {
10
+ box-sizing: inherit;
11
+ }
12
+
13
+ body {
14
+ // display: flex;
15
+ // min-height: 100vh;
16
+ // flex-direction: column;
17
+ }
18
+
19
+ main {
20
+ // flex: 1 0 auto;
21
+ }
22
+
23
+ ul {
24
+ list-style-type: none;
25
+ }
26
+
27
+ a {
28
+ color: $link-color;
29
+ text-decoration: none;
30
+ }
31
+
32
+
33
+ // Positioning
34
+ .valign-wrapper {
35
+ @include flexbox();
36
+ @include align(center);
37
+ @include justify-content(center);
38
+
39
+ .valign {
40
+ display: block;
41
+ }
42
+ }
43
+
44
+
45
+ ul {
46
+ padding: 0;
47
+ li {
48
+ list-style-type: none;
49
+ }
50
+ }
51
+
52
+
53
+ // Z-levels
54
+
55
+ .z-depth-1{
56
+ @include box-shadow-2(0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12));
57
+ }
58
+ .z-depth-1-half{
59
+ @include box-shadow-2(0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15));
60
+ }
61
+ .z-depth-2{
62
+ @include box-shadow-2(0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19));
63
+ }
64
+ .z-depth-3{
65
+ @include box-shadow-2(0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19));
66
+ }
67
+ .z-depth-4{
68
+ @include box-shadow-2(0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21));
69
+ }
70
+ .z-depth-5{
71
+ @include box-shadow-2(0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22));
72
+ }
73
+
74
+ // Dividers
75
+
76
+ .divider {
77
+ height: 1px;
78
+ overflow: hidden;
79
+ background-color: color("grey", "lighten-2");
80
+ }
81
+
82
+
83
+ // Blockquote
84
+
85
+ blockquote {
86
+ margin: 20px 0;
87
+ padding-left: 1.5rem;
88
+ border-left: 5px solid color("red", "lighten-3");
89
+ }
90
+
91
+ // Icon Styles
92
+
93
+ i {
94
+ line-height: inherit;
95
+
96
+ &.left {
97
+ float: left;
98
+ margin-right: 15px;
99
+ }
100
+ &.right {
101
+ float: right;
102
+ margin-left: 15px;
103
+ }
104
+ &.tiny {
105
+ font-size: 1rem;
106
+ }
107
+ &.small {
108
+ font-size: 2rem;
109
+ }
110
+ &.medium {
111
+ font-size: 4rem;
112
+ }
113
+ &.large {
114
+ font-size: 6rem;
115
+ }
116
+ }
117
+
118
+ // Images
119
+ img.responsive-img {
120
+ max-width: 100%;
121
+ height: auto;
122
+ }
123
+
124
+
125
+ // parallax
126
+ .parallax-container {
127
+ position: relative;
128
+ overflow: hidden;
129
+ height: 500px;
130
+ }
131
+
132
+ .parallax {
133
+ position: absolute;
134
+ top: 0;
135
+ left: 0;
136
+ right: 0;
137
+ bottom: 0;
138
+ z-index: -1;
139
+
140
+ img {
141
+ display: none;
142
+ position: absolute;
143
+ bottom: 0;
144
+ width: 100%;
145
+ }
146
+ }
147
+ @media #{$medium-and-down} {
148
+ .parallax-container {
149
+ height: auto;
150
+ }
151
+ .parallax {
152
+ position: relative;
153
+ width: 100%;
154
+
155
+ img {
156
+ position: relative;
157
+ }
158
+ }
159
+ }
160
+
161
+
162
+ // Pushpin
163
+ .pin-top, .pin-bottom {
164
+ position: relative;
165
+ }
166
+ .pinned {
167
+ position: fixed;
168
+ }
169
+
170
+
171
+
172
+ // Browser Size Dependent Visibility
173
+ .hide-on-small-only, .hide-on-small-and-down {
174
+ @media #{$small-and-down} {
175
+ display: none !important;
176
+ }
177
+ }
178
+
179
+ .hide-on-med-and-down {
180
+ @media #{$medium-and-down} {
181
+ display: none !important;
182
+ }
183
+ }
184
+
185
+ .hide-on-med-and-up {
186
+ @media #{$medium-and-up} {
187
+ display: none !important;
188
+ }
189
+ }
190
+
191
+ .hide-on-med-only {
192
+ @media only screen and (min-width: $small-screen) and (max-width: $medium-screen) {
193
+ display: none !important;
194
+ }
195
+ }
196
+
197
+ .hide-on-large-only {
198
+ @media #{$large-and-up} {
199
+ display: none !important;
200
+ }
201
+ }
202
+
203
+ // Center text on mobile
204
+ .center-on-small-only {
205
+ @media #{$small-and-down} {
206
+ text-align: center;
207
+ }
208
+ }
209
+
210
+
211
+ // Footer
212
+
213
+ footer.page-footer {
214
+ margin-top: 20px;
215
+ padding-top: 20px;
216
+ background-color: color("materialize-red", "lighten-2");
217
+
218
+ .footer-copyright {
219
+ overflow: hidden;
220
+ height: 50px;
221
+ line-height: 50px;
222
+ color: rgba(255,255,255,.8);
223
+ background-color: rgba(51,51,51,.08);;
224
+ @extend .light;
225
+ }
226
+ }
227
+
228
+ // Tables
229
+ table, th, td {
230
+ border: none;
231
+ }
232
+
233
+ table {
234
+ width:100%;
235
+ display: table;
236
+
237
+ &.bordered tr {
238
+ border-bottom: 1px solid $table-border-color;
239
+ }
240
+
241
+ &.striped {
242
+ tbody tr:nth-child(odd) {
243
+ background-color: $table-striped-color;
244
+ }
245
+ }
246
+
247
+ &.hoverable {
248
+
249
+ tbody tr {
250
+ @include transition(background-color .25s ease);
251
+ &:hover {
252
+ background-color: $table-striped-color;
253
+ }
254
+ }
255
+ }
256
+
257
+ &.centered {
258
+ thead tr th, tbody tr td {
259
+ text-align: center;
260
+
261
+ }
262
+ }
263
+
264
+ }
265
+
266
+ thead {
267
+ border-bottom: 1px solid $table-border-color;
268
+ }
269
+
270
+ td, th{
271
+ padding: 15px 5px;
272
+ display: table-cell;
273
+ text-align: left;
274
+ vertical-align: middle;
275
+ border-radius: 2px;
276
+ }
277
+
278
+ // Responsive Table
279
+ @media #{$medium-and-down} {
280
+
281
+ table.responsive-table {
282
+ width: 100%;
283
+ border-collapse: collapse;
284
+ border-spacing: 0;
285
+ display: block;
286
+ position: relative;
287
+
288
+ th,
289
+ td {
290
+ margin: 0;
291
+ vertical-align: top;
292
+ }
293
+
294
+ th { text-align: left; }
295
+ thead {
296
+ display: block;
297
+ float: left;
298
+
299
+ tr {
300
+ display: block;
301
+ padding: 0 10px 0 0;
302
+ }
303
+ }
304
+ tbody {
305
+ display: block;
306
+ width: auto;
307
+ position: relative;
308
+ overflow-x: auto;
309
+ white-space: nowrap;
310
+
311
+ tr {
312
+ display: inline-block;
313
+ vertical-align: top;
314
+ }
315
+ }
316
+ th {
317
+ display: block;
318
+ text-align: right;
319
+ }
320
+ td {
321
+ display: block;
322
+ min-height: 1.25em;
323
+ text-align: left;
324
+ }
325
+ tr { padding: 0 10px; }
326
+
327
+ /* sort out borders */
328
+ thead {
329
+ border: 0;
330
+ border-right: 1px solid $table-border-color;
331
+ }
332
+
333
+ &.bordered {
334
+ th { border-bottom: 0; border-left: 0; }
335
+ td { border-left: 0; border-right: 0; border-bottom: 0; }
336
+ tr { border: 0; }
337
+ tbody tr { border-right: 1px solid $table-border-color; }
338
+ }
339
+
340
+ }
341
+
342
+ }
343
+
344
+
345
+ // Collections
346
+ .collection {
347
+ background-color: $collection-bg-color;
348
+ margin: $element-top-margin 0 $element-bottom-margin 0;
349
+ border: 1px solid $collection-border-color;
350
+ border-radius: 2px;
351
+
352
+ .collection-item {
353
+ line-height: 1.5rem;
354
+ padding: 10px 20px;
355
+ margin: 0px;
356
+ border-bottom: 1px solid $collection-border-color;
357
+ &:last-child {
358
+ border-bottom: none;
359
+ }
360
+
361
+ &.active {
362
+ background-color: $collection-active-bg-color;
363
+ color: $collection-active-color;
364
+ }
365
+ }
366
+ a.collection-item{
367
+ display: block;
368
+ @include transition(.25s);
369
+ color: $secondary-color;
370
+ &:not(.active) {
371
+ &:hover {
372
+ background-color: $collection-hover-bg-color;
373
+ }
374
+ }
375
+ }
376
+
377
+ &.with-header {
378
+ .collection-header {
379
+ border-bottom: 1px solid $collection-border-color;
380
+ padding: 10px 20px;
381
+ }
382
+ .collection-item {
383
+ padding-left: 30px;
384
+ }
385
+ }
386
+
387
+
388
+
389
+ //Pagination
390
+ &.pagination {
391
+ display: inline-block;
392
+
393
+ ul{
394
+ background-color: transparent;
395
+ font-size: 0;
396
+ display: inline-block;
397
+ }
398
+ li {
399
+ display: inline;
400
+ font-weight: 500;
401
+ margin: 0px;
402
+ padding: 0px;
403
+ font-size: 1rem;
404
+
405
+ a {
406
+ padding: 0px 5px;
407
+ }
408
+ &.active {
409
+ background-color: color('light-blue', 'base');
410
+ color: #FFF;
411
+ }
412
+ &:hover {
413
+ background-color: color('light-blue', 'lighten-5');
414
+ }
415
+ }
416
+ }
417
+
418
+ }
419
+ // Made less specific to allow easier overriding
420
+ .secondary-content {
421
+ float: right;
422
+ color: $secondary-color;
423
+ }
424
+
425
+
426
+ // Badges
427
+ span.badge {
428
+ min-width: 3rem;
429
+ padding: 0 6px;
430
+ text-align: center;
431
+ font-size: 1rem;
432
+ line-height: inherit;
433
+ color: color('grey', 'darken-1');
434
+ float: right;
435
+ @include box-sizing(border-box);
436
+
437
+ &.new {
438
+ font-weight: 300;
439
+ font-size: 0.8rem;
440
+ color: #fff;
441
+ background-color: $badge-bg-color;
442
+ @include border-radius(2px);
443
+ }
444
+ &.new:after {
445
+ content: " new";
446
+ }
447
+ }
448
+
449
+ // Responsive Videos
450
+ .video-container {
451
+ position: relative;
452
+ padding-bottom: 56.25%;
453
+ padding-top: 30px;
454
+ height: 0;
455
+ overflow: hidden;
456
+
457
+ iframe, object, embed {
458
+ position: absolute;
459
+ top: 0;
460
+ left: 0;
461
+ width: 100%;
462
+ height: 100%;
463
+ }
464
+ }
465
+
466
+ // Progress Bar
467
+ .progress {
468
+ position: relative;
469
+ height: 4px;
470
+ display: block;
471
+ width: 100%;
472
+ background-color: lighten($progress-bar-color, 40%);
473
+ @include border-radius(2px);
474
+ margin: $element-top-margin 0 $element-bottom-margin 0;
475
+ overflow: hidden;
476
+ .determinate {
477
+ position: absolute;
478
+ background-color: inherit;
479
+ top: 0;
480
+ bottom: 0;
481
+ background-color: $progress-bar-color;
482
+ @include transition(width .3s linear);
483
+ }
484
+ .indeterminate {
485
+ background-color: $progress-bar-color;
486
+ &:before {
487
+ content: '';
488
+ position: absolute;
489
+ background-color: inherit;
490
+ top: 0;
491
+ left:0;
492
+ bottom: 0;
493
+ will-change: left, right;
494
+ // Custom bezier
495
+ @include animation(indeterminate 2.1s cubic-bezier(0.650, 0.815, 0.735, 0.395) infinite);
496
+
497
+ }
498
+ &:after {
499
+ content: '';
500
+ position: absolute;
501
+ background-color: inherit;
502
+ top: 0;
503
+ left:0;
504
+ bottom: 0;
505
+ will-change: left, right;
506
+ // Custom bezier
507
+ @include animation(indeterminate-short 2.1s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite);
508
+ @include animation-delay(1.15s);
509
+ }
510
+ }
511
+ }
512
+ @include keyframes(indeterminate) {
513
+ 0% {
514
+ left: -35%;
515
+ right:100%;
516
+ }
517
+ 60% {
518
+ left: 100%;
519
+ right: -90%;
520
+ }
521
+ 100% {
522
+ left: 100%;
523
+ right: -90%;
524
+ }
525
+ }
526
+
527
+ @include keyframes(indeterminate-short) {
528
+ 0% {
529
+ left: -200%;
530
+ right: 100%;
531
+ }
532
+ 60% {
533
+ left: 107%;
534
+ right: -8%;
535
+ }
536
+ 100% {
537
+ left: 107%;
538
+ right: -8%;
539
+ }
540
+ }
541
+ /*******************
542
+ Utility Classes
543
+ *******************/
544
+
545
+ // Text Align
546
+ .left-align {
547
+ text-align: left;
548
+ }
549
+ .right-align {
550
+ text-align: right
551
+ }
552
+ .center, .center-align {
553
+ text-align: center;
554
+ }
555
+
556
+ .left {
557
+ float: left !important;
558
+ }
559
+ .right {
560
+ float: right !important;
561
+ }
562
+
563
+ // No Text Select
564
+ .no-select {
565
+ -webkit-touch-callout: none;
566
+ -webkit-user-select: none;
567
+ -khtml-user-select: none;
568
+ -moz-user-select: none;
569
+ -ms-user-select: none;
570
+ user-select: none;
571
+ }
572
+
573
+ // Circle
574
+ .circle {
575
+ @include border-radius(50%);
576
+ }
577
+
578
+ .center-block {
579
+ display: block;
580
+ margin-left: auto;
581
+ margin-right: auto;
582
+ }