materialize-rails 0.97.5.custom1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/Gemfile +3 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +63 -0
  6. data/Rakefile +1 -0
  7. data/lib/materialize-rails.rb +25 -0
  8. data/lib/materialize-rails/engine.rb +14 -0
  9. data/lib/materialize-rails/version.rb +3 -0
  10. data/materialize-rails.gemspec +25 -0
  11. data/vendor/assets/fonts/materialize/material-design-icons/LICENSE.txt +428 -0
  12. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.eot +0 -0
  13. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.svg +769 -0
  14. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.ttf +0 -0
  15. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.woff +0 -0
  16. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.woff2 +0 -0
  17. data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.eot +0 -0
  18. data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.ttf +0 -0
  19. data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.woff +0 -0
  20. data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.woff2 +0 -0
  21. data/vendor/assets/fonts/materialize/roboto/Roboto-Light.eot +0 -0
  22. data/vendor/assets/fonts/materialize/roboto/Roboto-Light.ttf +0 -0
  23. data/vendor/assets/fonts/materialize/roboto/Roboto-Light.woff +0 -0
  24. data/vendor/assets/fonts/materialize/roboto/Roboto-Light.woff2 +0 -0
  25. data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.eot +0 -0
  26. data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.ttf +0 -0
  27. data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.woff +0 -0
  28. data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.woff2 +0 -0
  29. data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.eot +0 -0
  30. data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.ttf +0 -0
  31. data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.woff +0 -0
  32. data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.woff2 +0 -0
  33. data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.eot +0 -0
  34. data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.ttf +0 -0
  35. data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.woff +0 -0
  36. data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.woff2 +0 -0
  37. data/vendor/assets/javascripts/materialize.js +30 -0
  38. data/vendor/assets/javascripts/materialize/animation.js +9 -0
  39. data/vendor/assets/javascripts/materialize/buttons.js +91 -0
  40. data/vendor/assets/javascripts/materialize/cards.js +29 -0
  41. data/vendor/assets/javascripts/materialize/carousel.js +350 -0
  42. data/vendor/assets/javascripts/materialize/character_counter.js +59 -0
  43. data/vendor/assets/javascripts/materialize/chips.js +9 -0
  44. data/vendor/assets/javascripts/materialize/collapsible.js +137 -0
  45. data/vendor/assets/javascripts/materialize/date_picker/picker.date.js +1430 -0
  46. data/vendor/assets/javascripts/materialize/date_picker/picker.js +1123 -0
  47. data/vendor/assets/javascripts/materialize/dropdown.js +228 -0
  48. data/vendor/assets/javascripts/materialize/forms.js +581 -0
  49. data/vendor/assets/javascripts/materialize/global.js +45 -0
  50. data/vendor/assets/javascripts/materialize/hammer.min.js +1 -0
  51. data/vendor/assets/javascripts/materialize/initial.js +11 -0
  52. data/vendor/assets/javascripts/materialize/jquery.easing.1.3.js +205 -0
  53. data/vendor/assets/javascripts/materialize/jquery.hammer.js +33 -0
  54. data/vendor/assets/javascripts/materialize/leanModal.js +178 -0
  55. data/vendor/assets/javascripts/materialize/materialbox.js +269 -0
  56. data/vendor/assets/javascripts/materialize/parallax.js +58 -0
  57. data/vendor/assets/javascripts/materialize/pushpin.js +62 -0
  58. data/vendor/assets/javascripts/materialize/scrollFire.js +44 -0
  59. data/vendor/assets/javascripts/materialize/scrollspy.js +285 -0
  60. data/vendor/assets/javascripts/materialize/sideNav.js +315 -0
  61. data/vendor/assets/javascripts/materialize/slider.js +321 -0
  62. data/vendor/assets/javascripts/materialize/tabs.js +129 -0
  63. data/vendor/assets/javascripts/materialize/toasts.js +136 -0
  64. data/vendor/assets/javascripts/materialize/tooltip.js +203 -0
  65. data/vendor/assets/javascripts/materialize/transitions.js +154 -0
  66. data/vendor/assets/javascripts/materialize/velocity.min.js +5 -0
  67. data/vendor/assets/javascripts/materialize/waves.js +338 -0
  68. data/vendor/assets/stylesheets/components/_buttons.scss +181 -0
  69. data/vendor/assets/stylesheets/components/_cards.scss +134 -0
  70. data/vendor/assets/stylesheets/components/_carousel.scss +34 -0
  71. data/vendor/assets/stylesheets/components/_chips.scss +27 -0
  72. data/vendor/assets/stylesheets/components/_collapsible.scss +85 -0
  73. data/vendor/assets/stylesheets/components/_color.scss +412 -0
  74. data/vendor/assets/stylesheets/components/_dropdown.scss +57 -0
  75. data/vendor/assets/stylesheets/components/_form.scss +918 -0
  76. data/vendor/assets/stylesheets/components/_global.scss +766 -0
  77. data/vendor/assets/stylesheets/components/_grid.scss +146 -0
  78. data/vendor/assets/stylesheets/components/_icons-material-design.scss +3263 -0
  79. data/vendor/assets/stylesheets/components/_materialbox.scss +42 -0
  80. data/vendor/assets/stylesheets/components/_mixins.scss +5 -0
  81. data/vendor/assets/stylesheets/components/_modal.scss +90 -0
  82. data/vendor/assets/stylesheets/components/_navbar.scss +171 -0
  83. data/vendor/assets/stylesheets/components/_normalize.scss +427 -0
  84. data/vendor/assets/stylesheets/components/_prefixer.scss +384 -0
  85. data/vendor/assets/stylesheets/components/_preloader.scss +334 -0
  86. data/vendor/assets/stylesheets/components/_roboto.scss +49 -0
  87. data/vendor/assets/stylesheets/components/_sideNav.scss +112 -0
  88. data/vendor/assets/stylesheets/components/_slider.scss +92 -0
  89. data/vendor/assets/stylesheets/components/_table_of_contents.scss +33 -0
  90. data/vendor/assets/stylesheets/components/_tabs.scss +56 -0
  91. data/vendor/assets/stylesheets/components/_toast.scss +65 -0
  92. data/vendor/assets/stylesheets/components/_tooltip.scss +33 -0
  93. data/vendor/assets/stylesheets/components/_typography.scss +61 -0
  94. data/vendor/assets/stylesheets/components/_variables.scss +161 -0
  95. data/vendor/assets/stylesheets/components/_waves.scss +173 -0
  96. data/vendor/assets/stylesheets/components/date_picker/_default.date.scss +435 -0
  97. data/vendor/assets/stylesheets/components/date_picker/_default.scss +201 -0
  98. data/vendor/assets/stylesheets/components/date_picker/_default.time.scss +125 -0
  99. data/vendor/assets/stylesheets/materialize.scss +40 -0
  100. metadata +199 -0
@@ -0,0 +1,49 @@
1
+ @font-face {
2
+ font-family: "Roboto";
3
+ src: local(Roboto Thin), url('#{$roboto-font-path}Roboto-Thin.eot');
4
+ src: font-url("#{$roboto-font-path}Roboto-Thin.eot?#iefix") format('embedded-opentype'),
5
+ font-url("#{$roboto-font-path}Roboto-Thin.woff2") format("woff2"),
6
+ font-url("#{$roboto-font-path}Roboto-Thin.woff") format("woff"),
7
+ font-url("#{$roboto-font-path}Roboto-Thin.ttf") format("truetype");
8
+
9
+ font-weight: 200;
10
+ }
11
+ @font-face {
12
+ font-family: "Roboto";
13
+ src: local(Roboto Light), url('#{$roboto-font-path}Roboto-Light.eot');
14
+ src: font-url("#{$roboto-font-path}Roboto-Light.eot?#iefix") format('embedded-opentype'),
15
+ font-url("#{$roboto-font-path}Roboto-Light.woff2") format("woff2"),
16
+ font-url("#{$roboto-font-path}Roboto-Light.woff") format("woff"),
17
+ font-url("#{$roboto-font-path}Roboto-Light.ttf") format("truetype");
18
+ font-weight: 300;
19
+ }
20
+
21
+ @font-face {
22
+ font-family: "Roboto";
23
+ src: local(Roboto Regular), url('#{$roboto-font-path}Roboto-Regular.eot');
24
+ src: font-url("#{$roboto-font-path}Roboto-Regular.eot?#iefix") format('embedded-opentype'),
25
+ font-url("#{$roboto-font-path}Roboto-Regular.woff2") format("woff2"),
26
+ font-url("#{$roboto-font-path}Roboto-Regular.woff") format("woff"),
27
+ font-url("#{$roboto-font-path}Roboto-Regular.ttf") format("truetype");
28
+ font-weight: 400;
29
+ }
30
+
31
+ @font-face {
32
+ font-family: "Roboto";
33
+ src: url('#{$roboto-font-path}Roboto-Medium.eot');
34
+ src: font-url("#{$roboto-font-path}Roboto-Medium.eot?#iefix") format('embedded-opentype'),
35
+ font-url("#{$roboto-font-path}Roboto-Medium.woff2") format("woff2"),
36
+ font-url("#{$roboto-font-path}Roboto-Medium.woff") format("woff"),
37
+ font-url("#{$roboto-font-path}Roboto-Medium.ttf") format("truetype");
38
+ font-weight: 500;
39
+ }
40
+
41
+ @font-face {
42
+ font-family: "Roboto";
43
+ src: url('#{$roboto-font-path}Roboto-Bold.eot');
44
+ src: font-url("#{$roboto-font-path}Roboto-Bold.eot?#iefix") format('embedded-opentype'),
45
+ font-url("#{$roboto-font-path}Roboto-Bold.woff2") format("woff2"),
46
+ font-url("#{$roboto-font-path}Roboto-Bold.woff") format("woff"),
47
+ font-url("#{$roboto-font-path}Roboto-Bold.ttf") format("truetype");
48
+ font-weight: 700;
49
+ }
@@ -0,0 +1,112 @@
1
+ .side-nav {
2
+ position: fixed;
3
+ width: 240px;
4
+ left: -105%;
5
+ top: 0;
6
+ margin: 0;
7
+ height: 100%;
8
+ height: calc(100% + 60px);
9
+ height: -moz-calc(100%); //Temporary Firefox Fix
10
+ padding-bottom: 60px;
11
+ background-color: $sidenav-bg-color;
12
+ z-index: 999;
13
+ overflow-y: auto;
14
+
15
+ @extend .z-depth-1;
16
+ will-change: left;
17
+
18
+ // Right Align
19
+ &.right-aligned {
20
+ will-change: right;
21
+ right: -105%;
22
+ left: auto;
23
+ }
24
+
25
+ .collapsible{
26
+ margin: 0;
27
+ }
28
+
29
+
30
+ li {
31
+ float: none;
32
+ padding: 0 $sidenav-padding-right;
33
+ line-height: $sidenav-item-height;
34
+ &:hover, &.active { background-color: #ddd; }
35
+ }
36
+ a {
37
+ color: #444;
38
+ display: block;
39
+ font-size: 1rem;
40
+ height: $sidenav-item-height;
41
+ line-height: $sidenav-item-height;
42
+ padding: 0 $sidenav-padding-right;
43
+ }
44
+ }
45
+
46
+
47
+ // Touch interaction
48
+ .drag-target {
49
+ height: 100%;
50
+ width: 10px;
51
+ position: fixed;
52
+ top: 0;
53
+ z-index: 998;
54
+ }
55
+
56
+
57
+ // Hidden side-nav for all sizes
58
+ .side-nav.fixed {
59
+ a {
60
+ display: block;
61
+ padding: 0 $sidenav-padding-right;
62
+ color: #444;
63
+ }
64
+ }
65
+
66
+
67
+ // Fixed side-nav shown
68
+ .side-nav.fixed {
69
+ left: 0;
70
+ position: fixed;
71
+
72
+ // Right Align
73
+ &.right-aligned {
74
+ right: 0;
75
+ left: auto;
76
+ }
77
+ }
78
+
79
+ // Fixed sideNav hide on smaller
80
+ @media #{$medium-and-down} {
81
+ .side-nav.fixed {
82
+ left: -105%;
83
+
84
+ &.right-aligned {
85
+ right: -105%;
86
+ left: auto;
87
+ }
88
+ }
89
+ }
90
+
91
+
92
+ .side-nav .collapsible-body li.active,
93
+ .side-nav.fixed .collapsible-body li.active {
94
+ background-color: $primary-color;
95
+ a {
96
+ color: $sidenav-bg-color;
97
+ }
98
+ }
99
+
100
+
101
+ #sidenav-overlay {
102
+ position: fixed;
103
+ top: 0;
104
+ left: 0;
105
+ right: 0;
106
+
107
+ height: 120vh;
108
+ background-color: rgba(0,0,0,.5);
109
+ z-index: 997;
110
+
111
+ will-change: opacity;
112
+ }
@@ -0,0 +1,92 @@
1
+ .slider {
2
+ position: relative;
3
+ height: 400px;
4
+ width: 100%;
5
+
6
+ // Fullscreen slider
7
+ &.fullscreen {
8
+ height: 100%;
9
+ width: 100%;
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ right: 0;
14
+ bottom: 0;
15
+
16
+ ul.slides {
17
+ height: 100%;
18
+ }
19
+
20
+ ul.indicators {
21
+ z-index: 2;
22
+ bottom: 30px;
23
+ }
24
+ }
25
+
26
+ .slides {
27
+ background-color: $slider-bg-color;
28
+ margin: 0;
29
+ height: 400px;
30
+
31
+ li {
32
+ opacity: 0;
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ z-index: 1;
37
+ width: 100%;
38
+ height: inherit;
39
+ overflow: hidden;
40
+
41
+ img {
42
+ height: 100%;
43
+ width: 100%;
44
+ background-size: cover;
45
+ background-position: center;
46
+ }
47
+
48
+ .caption {
49
+ color: #fff;
50
+ position: absolute;
51
+ top: 15%;
52
+ left: 15%;
53
+ width: 70%;
54
+ opacity: 0;
55
+
56
+ p { color: $slider-bg-color-light; }
57
+ }
58
+
59
+ &.active {
60
+ z-index: 2;
61
+ }
62
+ }
63
+ }
64
+
65
+
66
+ .indicators {
67
+ position: absolute;
68
+ text-align: center;
69
+ left: 0;
70
+ right: 0;
71
+ bottom: 0;
72
+ margin: 0;
73
+
74
+ .indicator-item {
75
+ display: inline-block;
76
+ position: relative;
77
+ cursor: pointer;
78
+ height: 16px;
79
+ width: 16px;
80
+ margin: 0 12px;
81
+ background-color: $slider-bg-color-light;
82
+
83
+ transition: background-color .3s;
84
+ border-radius: 50%;
85
+
86
+ &.active {
87
+ background-color: $slider-indicator-color;
88
+ }
89
+ }
90
+ }
91
+
92
+ }
@@ -0,0 +1,33 @@
1
+ /***************
2
+ Nav List
3
+ ***************/
4
+ .table-of-contents {
5
+ &.fixed {
6
+ position: fixed;
7
+ }
8
+
9
+ li {
10
+ padding: 2px 0;
11
+ }
12
+ a {
13
+ display: inline-block;
14
+ font-weight: 300;
15
+ color: #757575;
16
+ padding-left: 20px;
17
+ height: 1.5rem;
18
+ line-height: 1.5rem;
19
+ letter-spacing: .4;
20
+ display: inline-block;
21
+
22
+ &:hover {
23
+ color: lighten(#757575, 20%);
24
+ padding-left: 19px;
25
+ border-left: 1px solid lighten(color("materialize-red", "base"),10%);
26
+ }
27
+ &.active {
28
+ font-weight: 500;
29
+ padding-left: 18px;
30
+ border-left: 2px solid lighten(color("materialize-red", "base"),10%);
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,56 @@
1
+ .tabs {
2
+ display: flex;
3
+ position: relative;
4
+ overflow-x: auto;
5
+ overflow-y: hidden;
6
+ height: 48px;
7
+ background-color: $tabs-bg-color;
8
+ margin: 0 auto;
9
+ width: 100%;
10
+ white-space: nowrap;
11
+
12
+ .tab {
13
+ -webkit-box-flex: 1;
14
+ -webkit-flex-grow: 1;
15
+ -ms-flex-positive: 1;
16
+ flex-grow: 1;
17
+ display: block;
18
+ float: left;
19
+ text-align: center;
20
+ line-height: 48px;
21
+ height: 48px;
22
+ padding: 0;
23
+ margin: 0;
24
+ text-transform: uppercase;
25
+ text-overflow: ellipsis;
26
+ overflow: hidden;
27
+ letter-spacing: .8px;
28
+ width: 15%;
29
+ min-width: 80px;
30
+
31
+ a {
32
+ color: $tabs-text-color;
33
+ display: block;
34
+ width: 100%;
35
+ height: 100%;
36
+ text-overflow: ellipsis;
37
+ overflow: hidden;
38
+ transition: color .28s ease;
39
+ &:hover {
40
+ color: lighten($tabs-text-color, 20%);
41
+ }
42
+ }
43
+
44
+ &.disabled a {
45
+ color: lighten($tabs-text-color, 20%);
46
+ cursor: default;
47
+ }
48
+ }
49
+ .indicator {
50
+ position: absolute;
51
+ bottom: 0;
52
+ height: 2px;
53
+ background-color: $tabs-underline-color;
54
+ will-change: left, right;
55
+ }
56
+ }
@@ -0,0 +1,65 @@
1
+ #toast-container {
2
+ display:block;
3
+ position: fixed;
4
+ z-index: 10000;
5
+
6
+ @media #{$small-and-down} {
7
+ min-width: 100%;
8
+ bottom: 0%;
9
+ }
10
+ @media #{$medium-only} {
11
+ left: 5%;
12
+ bottom: 7%;
13
+ max-width: 90%;
14
+ }
15
+ @media #{$large-and-up} {
16
+ top: 10%;
17
+ right: 7%;
18
+ max-width: 86%;
19
+ }
20
+ }
21
+
22
+ .toast {
23
+ @extend .z-depth-1;
24
+ border-radius: 2px;
25
+ top: 0;
26
+ width: auto;
27
+ clear: both;
28
+ margin-top: 10px;
29
+ position: relative;
30
+ max-width:100%;
31
+ height: auto;
32
+ min-height: $toast-height;
33
+ line-height: 1.5em;
34
+ word-break: break-all;
35
+ background-color: $toast-color;
36
+ padding: 10px 25px;
37
+ font-size: 1.1rem;
38
+ font-weight: 300;
39
+ color: $toast-text-color;
40
+
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: space-between;
44
+
45
+ .btn, .btn-flat {
46
+ margin: 0;
47
+ margin-left: 3rem;
48
+ }
49
+
50
+ &.rounded{
51
+ border-radius: 24px;
52
+ }
53
+
54
+ @media #{$small-and-down} {
55
+ width:100%;
56
+ border-radius: 0;
57
+ }
58
+ @media #{$medium-only} {
59
+ float: left;
60
+ }
61
+ @media #{$large-and-up} {
62
+ float: right;
63
+ }
64
+
65
+ }
@@ -0,0 +1,33 @@
1
+ .material-tooltip {
2
+ padding: 10px 8px;
3
+ font-size: 1rem;
4
+ z-index: 2000;
5
+ background-color: transparent;
6
+ border-radius: 2px;
7
+ color: #fff;
8
+ min-height: 36px;
9
+ line-height: 120%;
10
+ opacity: 0;
11
+ display: none;
12
+ position: absolute;
13
+ text-align: center;
14
+ max-width: calc(100% - 4px);
15
+ overflow: hidden;
16
+ left:0;
17
+ top:0;
18
+ will-change: top, left;
19
+ }
20
+
21
+ .backdrop {
22
+ position: absolute;
23
+ opacity: 0;
24
+ display: none;
25
+ height: 7px;
26
+ width: 14px;
27
+ border-radius: 0 0 14px 14px;
28
+ background-color: #323232;
29
+ z-index: -1;
30
+ transform-origin: 50% 10%;
31
+
32
+ will-change: transform, opacity;
33
+ }