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,181 @@
1
+ // shared styles
2
+ .btn, .btn-flat {
3
+ border: none;
4
+ border-radius: 2px;
5
+ display: inline-block;
6
+ height: $button-height;
7
+ line-height: $button-line-height;
8
+ // margin-bottom: 15px;
9
+ outline: 0;
10
+ padding: 0 2rem;
11
+ text-transform: uppercase;
12
+ vertical-align: middle;
13
+ // Gets rid of tap active state
14
+ -webkit-tap-highlight-color: transparent;
15
+ }
16
+ // Disabled shared style
17
+ .btn.disabled, .btn-floating.disabled, .btn-large.disabled, .btn:disabled, .btn-large:disabled, .btn-floating:disabled {
18
+ background-color: $button-bg-color-disabled !important;
19
+ box-shadow: none;
20
+ color: $button-color-disabled !important;
21
+ cursor: default;
22
+ * {
23
+ pointer-events: none;
24
+ }
25
+
26
+ &:hover {
27
+ background-color: $button-bg-color-disabled;
28
+ color: $button-color-disabled;
29
+ }
30
+ }
31
+ // Shared icon styles
32
+ .btn, .btn-floating, .btn-large, .btn-flat {
33
+ i {
34
+ font-size: $button-font-size-shared;
35
+ line-height: inherit;
36
+ }
37
+ }
38
+
39
+ // Raised Button
40
+ .btn {
41
+ text-decoration:none;
42
+ color: $button-color-raised;
43
+ background-color: $button-color;
44
+ text-align: center;
45
+ letter-spacing: .5px;
46
+ @extend .z-depth-1;
47
+ transition: .2s ease-out;
48
+ cursor: pointer;
49
+
50
+ &:hover {
51
+ background-color: lighten($button-color, 5%);
52
+ @extend .z-depth-1-half;
53
+ }
54
+ }
55
+
56
+ // Floating button
57
+ .btn-floating {
58
+ display: inline-block;
59
+ color: $button-color-raised;
60
+ position: relative;
61
+ overflow: hidden;
62
+ z-index: 1;
63
+ width: $button-floating-size;
64
+ height: $button-floating-size;
65
+ line-height: $button-floating-size;
66
+ padding: 0;
67
+ background-color: $button-color;
68
+ border-radius: 50%;
69
+ @extend .z-depth-1;
70
+ transition: .3s;
71
+ cursor: pointer;
72
+ vertical-align: middle;
73
+
74
+ i {
75
+ width: inherit;
76
+ display: inline-block;
77
+ text-align: center;
78
+ color: $button-color-raised;
79
+ font-size: $button-large-icon-font-size;
80
+ line-height: $button-floating-size;
81
+ }
82
+
83
+ &:hover {
84
+ background-color: $button-color;
85
+ @extend .z-depth-1-half;
86
+ }
87
+ &:before {
88
+ border-radius: 0;
89
+ }
90
+ &.btn-large {
91
+ width: $button-floating-size * 1.5;
92
+ height: $button-floating-size * 1.5;
93
+ i{
94
+ line-height: $button-floating-size * 1.5;
95
+ }
96
+ }
97
+
98
+ }
99
+ // button fix
100
+ button.btn-floating {
101
+ border: none;
102
+ }
103
+
104
+ // Fixed Action Button
105
+ .fixed-action-btn {
106
+ &.active {
107
+ ul {
108
+ visibility: visible;
109
+ }
110
+ }
111
+ &.horizontal {
112
+ padding: 0 0 0 15px;
113
+ ul {
114
+ text-align: right;
115
+ right: 64px;
116
+ top: 50%;
117
+ transform: translateY(-50%);
118
+ height: 100%;
119
+ left: initial;
120
+ width: 500px; /*width 100% only goes to width of button container */
121
+
122
+ li {
123
+ display: inline-block;
124
+ margin: 15px 15px 0 0;
125
+ }
126
+ }
127
+ }
128
+ position: fixed;
129
+ right: 23px;
130
+ bottom: 23px;
131
+ padding-top: 15px;
132
+ margin-bottom: 0;
133
+ z-index: 998;
134
+
135
+ ul {
136
+ left: 0;
137
+ right: 0;
138
+ text-align: center;
139
+ position: absolute;
140
+ bottom: 64px;
141
+ margin: 0;
142
+ visibility: hidden;
143
+
144
+ li {
145
+ margin-bottom: 15px;
146
+ }
147
+
148
+ a.btn-floating {
149
+ opacity: 0;
150
+ }
151
+ }
152
+ }
153
+
154
+ // Flat button
155
+ .btn-flat {
156
+ box-shadow: none;
157
+ background-color: transparent;
158
+ color: $button-color-flat;
159
+ cursor: pointer;
160
+
161
+ &.disabled {
162
+ color: lighten(#999, 10%);
163
+ cursor: default;
164
+ }
165
+ }
166
+
167
+ // Large button
168
+ .btn-large {
169
+ @extend .btn;
170
+ height: $button-height * 1.5;
171
+ line-height: 56px;
172
+
173
+ i {
174
+ font-size: $button-large-icon-font-size;
175
+ }
176
+ }
177
+
178
+ // Block button
179
+ .btn-block {
180
+ display: block;
181
+ }
@@ -0,0 +1,134 @@
1
+
2
+
3
+ .card-panel {
4
+ transition: box-shadow .25s;
5
+ padding: $card-padding;
6
+ margin: $element-top-margin 0 $element-bottom-margin 0;
7
+ border-radius: 2px;
8
+ @extend .z-depth-1;
9
+ background-color: $card-bg-color;
10
+ }
11
+
12
+ .card {
13
+ position: relative;
14
+ margin: $element-top-margin 0 $element-bottom-margin 0;
15
+ background-color: $card-bg-color;
16
+ transition: box-shadow .25s;
17
+ border-radius: 2px;
18
+ @extend .z-depth-1;
19
+
20
+
21
+ .card-title {
22
+ font-size: 24px;
23
+ font-weight: 300;
24
+ &.activator {
25
+ cursor: pointer;
26
+ }
27
+ }
28
+
29
+ // Card Sizes
30
+ &.small, &.medium, &.large {
31
+ position: relative;
32
+
33
+ .card-image {
34
+ max-height: 60%;
35
+ overflow: hidden;
36
+ }
37
+ .card-content {
38
+ max-height: 40%;
39
+ overflow: hidden;
40
+ }
41
+ .card-action {
42
+ position: absolute;
43
+ bottom: 0;
44
+ left: 0;
45
+ right: 0;
46
+ z-index: 1;
47
+ background-color: inherit;
48
+ }
49
+ }
50
+
51
+ &.small {
52
+ height: 300px;
53
+ }
54
+
55
+ &.medium {
56
+ height: 400px;
57
+ }
58
+
59
+ &.large {
60
+ height: 500px;
61
+ }
62
+
63
+
64
+ .card-image {
65
+ position: relative;
66
+
67
+ // Image background for content
68
+ img {
69
+ display: block;
70
+ border-radius: 2px 2px 0 0;
71
+ position: relative;
72
+ left: 0;
73
+ right: 0;
74
+ top: 0;
75
+ bottom: 0;
76
+ width: 100%;
77
+ }
78
+
79
+ .card-title {
80
+ color: $card-bg-color;
81
+ position: absolute;
82
+ bottom: 0;
83
+ left: 0;
84
+ padding: $card-padding;
85
+ }
86
+
87
+ }
88
+
89
+ .card-content {
90
+ padding: $card-padding;
91
+ border-radius: 0 0 2px 2px;
92
+
93
+
94
+ p {
95
+ margin: 0;
96
+ color: inherit;
97
+ }
98
+ .card-title {
99
+ line-height: 48px;
100
+ }
101
+ }
102
+
103
+ .card-action {
104
+ border-top: 1px solid rgba(160,160,160,.2);
105
+ padding: $card-padding;
106
+
107
+ a:not(.btn):not(.btn-large):not(.btn-floating) {
108
+ color: $card-link-color;
109
+ margin-right: $card-padding;
110
+ transition: color .3s ease;
111
+ text-transform: uppercase;
112
+
113
+ &:hover { color: $card-link-color-light; }
114
+ }
115
+ }
116
+
117
+ .card-reveal {
118
+ padding: $card-padding;
119
+ position: absolute;
120
+ background-color: $card-bg-color;
121
+ width: 100%;
122
+ overflow-y: auto;
123
+ top: 100%;
124
+ height: 100%;
125
+ z-index: 1;
126
+ display: none;
127
+
128
+ .card-title {
129
+ cursor: pointer;
130
+ display: block;
131
+ }
132
+
133
+ }
134
+ }
@@ -0,0 +1,34 @@
1
+ .carousel {
2
+ overflow: hidden;
3
+ position: relative;
4
+ width: 100%;
5
+ height: 400px;
6
+ perspective: 500px;
7
+ transform-style: preserve-3d;
8
+ transform-origin: 0% 50%;
9
+
10
+ .carousel-item {
11
+ width: 200px;
12
+ position: absolute;
13
+ top: 0;
14
+ left: 0;
15
+
16
+ img {
17
+ width: 100%;
18
+ }
19
+ }
20
+
21
+ &.carousel-slider {
22
+ top: 0;
23
+ left: 0;
24
+ height: 0;
25
+
26
+ .carousel-item {
27
+ width: 100%;
28
+ height: 100%;
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,27 @@
1
+ .chip {
2
+ display: inline-block;
3
+ height: 32px;
4
+ font-size: 13px;
5
+ font-weight: 500;
6
+ color: rgba(0,0,0,.6);
7
+ line-height: 32px;
8
+ padding: 0 12px;
9
+ border-radius: 16px;
10
+ background-color: $chip-bg-color;
11
+
12
+ img {
13
+ float: left;
14
+ margin: 0 8px 0 -12px;
15
+ height: 32px;
16
+ width: 32px;
17
+ border-radius: 50%;
18
+ }
19
+
20
+ i.material-icons {
21
+ cursor: pointer;
22
+ float: right;
23
+ font-size: 16px;
24
+ line-height: 32px;
25
+ padding-left: 8px;
26
+ }
27
+ }
@@ -0,0 +1,85 @@
1
+ .collapsible {
2
+ border-top: 1px solid $collapsible-border-color;
3
+ border-right: 1px solid $collapsible-border-color;
4
+ border-left: 1px solid $collapsible-border-color;
5
+ margin: $element-top-margin 0 $element-bottom-margin 0;
6
+ @extend .z-depth-1;
7
+ }
8
+
9
+ .collapsible-header {
10
+ display: block;
11
+ cursor: pointer;
12
+ min-height: $collapsible-height;
13
+ line-height: $collapsible-height;
14
+ padding: 0 1rem;
15
+ background-color: $collapsible-header-color;
16
+ border-bottom: 1px solid $collapsible-border-color;
17
+
18
+ i {
19
+ width: 2rem;
20
+ font-size: 1.6rem;
21
+ line-height: $collapsible-height;
22
+ display: block;
23
+ float: left;
24
+ text-align: center;
25
+ margin-right: 1rem;
26
+ }
27
+ }
28
+
29
+ .collapsible-body {
30
+ display: none;
31
+ border-bottom: 1px solid $collapsible-border-color;
32
+ box-sizing: border-box;
33
+
34
+ p {
35
+ margin: 0;
36
+ padding: 2rem;
37
+ }
38
+ }
39
+
40
+ // sideNav collapsible styling
41
+ .side-nav {
42
+
43
+ .collapsible {
44
+ border: none;
45
+ box-shadow: none;
46
+
47
+ li { padding: 0; }
48
+ }
49
+
50
+ .collapsible-header {
51
+ background-color: transparent;
52
+ border: none;
53
+ line-height: inherit;
54
+ height: inherit;
55
+ margin: 0 1rem;
56
+
57
+ i { line-height: inherit; }
58
+ }
59
+
60
+ .collapsible-body {
61
+ border: 0;
62
+ background-color: $collapsible-header-color;
63
+
64
+ li a { margin: 0 1rem 0 2rem; }
65
+ }
66
+
67
+ }
68
+
69
+ // Popout Collapsible
70
+
71
+ .collapsible.popout {
72
+ border: none;
73
+ box-shadow: none;
74
+ > li {
75
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
76
+ // transform: scaleX(.92);
77
+ margin: 0 24px;
78
+ transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
79
+ }
80
+ > li.active {
81
+ box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
82
+ margin: 16px 0;
83
+ // transform: scaleX(1);
84
+ }
85
+ }