materialize-sass 0.97.8 → 1.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +5 -5
  2. data/.gitattributes +1 -0
  3. data/.gitignore +1 -0
  4. data/README.md +34 -32
  5. data/Rakefile +38 -21
  6. data/assets/javascripts/materialize/anime.min.js +417 -0
  7. data/assets/javascripts/materialize/autocomplete.js +504 -0
  8. data/assets/javascripts/materialize/buttons.js +409 -0
  9. data/assets/javascripts/materialize/cards.js +34 -0
  10. data/assets/javascripts/materialize/carousel.js +797 -0
  11. data/assets/javascripts/materialize/cash.js +990 -0
  12. data/assets/javascripts/materialize/characterCounter.js +180 -0
  13. data/assets/javascripts/materialize/chips.js +564 -0
  14. data/assets/javascripts/materialize/collapsible.js +337 -0
  15. data/assets/javascripts/materialize/component.js +57 -0
  16. data/assets/javascripts/materialize/datepicker.js +935 -0
  17. data/assets/javascripts/materialize/dropdown.js +659 -0
  18. data/assets/javascripts/materialize/extras/nouislider.js +2147 -0
  19. data/assets/javascripts/materialize/extras/nouislider.min.js +1 -0
  20. data/assets/javascripts/materialize/forms.js +244 -0
  21. data/assets/javascripts/materialize/global.js +408 -0
  22. data/assets/javascripts/materialize/materialbox.js +513 -0
  23. data/assets/javascripts/materialize/modal.js +449 -0
  24. data/assets/javascripts/materialize/parallax.js +173 -0
  25. data/assets/javascripts/materialize/pushpin.js +179 -0
  26. data/assets/javascripts/materialize/range.js +310 -0
  27. data/assets/javascripts/materialize/scrollspy.js +328 -0
  28. data/assets/javascripts/materialize/select.js +497 -0
  29. data/assets/javascripts/materialize/sidenav.js +655 -0
  30. data/assets/javascripts/materialize/slider.js +424 -0
  31. data/assets/javascripts/materialize/tabs.js +476 -0
  32. data/assets/javascripts/materialize/tapTarget.js +364 -0
  33. data/assets/javascripts/materialize/timepicker.js +647 -0
  34. data/assets/javascripts/materialize/toasts.js +355 -0
  35. data/assets/javascripts/materialize/tooltip.js +351 -0
  36. data/{app/assets → assets}/javascripts/materialize/waves.js +42 -47
  37. data/{app/assets → assets}/javascripts/materialize-sprockets.js +12 -13
  38. data/assets/javascripts/materialize.js +12374 -0
  39. data/assets/stylesheets/materialize/components/_badges.scss +55 -0
  40. data/{app/assets → assets}/stylesheets/materialize/components/_buttons.scss +99 -58
  41. data/{app/assets → assets}/stylesheets/materialize/components/_cards.scss +14 -6
  42. data/{app/assets → assets}/stylesheets/materialize/components/_carousel.scss +12 -7
  43. data/{app/assets → assets}/stylesheets/materialize/components/_chips.scss +13 -6
  44. data/{app/assets → assets}/stylesheets/materialize/components/_collapsible.scss +16 -15
  45. data/assets/stylesheets/materialize/components/_color-classes.scss +32 -0
  46. data/{app/assets/stylesheets/materialize/components/_color.scss → assets/stylesheets/materialize/components/_color-variables.scss} +2 -44
  47. data/assets/stylesheets/materialize/components/_datepicker.scss +191 -0
  48. data/{app/assets → assets}/stylesheets/materialize/components/_dropdown.scss +35 -15
  49. data/{app/assets → assets}/stylesheets/materialize/components/_global.scss +96 -125
  50. data/{app/assets → assets}/stylesheets/materialize/components/_grid.scss +45 -36
  51. data/{app/assets → assets}/stylesheets/materialize/components/_icons-material-design.scss +0 -0
  52. data/{app/assets → assets}/stylesheets/materialize/components/_materialbox.scss +13 -12
  53. data/{app/assets → assets}/stylesheets/materialize/components/_modal.scss +7 -3
  54. data/{app/assets → assets}/stylesheets/materialize/components/_navbar.scss +29 -11
  55. data/assets/stylesheets/materialize/components/_normalize.scss +447 -0
  56. data/{app/assets → assets}/stylesheets/materialize/components/_preloader.scss +2 -2
  57. data/assets/stylesheets/materialize/components/_pulse.scss +34 -0
  58. data/{app/assets/stylesheets/materialize/components/_sideNav.scss → assets/stylesheets/materialize/components/_sidenav.scss} +47 -47
  59. data/{app/assets → assets}/stylesheets/materialize/components/_slider.scss +0 -0
  60. data/{app/assets → assets}/stylesheets/materialize/components/_table_of_contents.scss +5 -5
  61. data/{app/assets → assets}/stylesheets/materialize/components/_tabs.scss +10 -10
  62. data/assets/stylesheets/materialize/components/_tapTarget.scss +103 -0
  63. data/assets/stylesheets/materialize/components/_timepicker.scss +183 -0
  64. data/{app/assets → assets}/stylesheets/materialize/components/_toast.scss +7 -14
  65. data/{app/assets → assets}/stylesheets/materialize/components/_tooltip.scss +3 -3
  66. data/assets/stylesheets/materialize/components/_transitions.scss +13 -0
  67. data/{app/assets → assets}/stylesheets/materialize/components/_typography.scss +8 -9
  68. data/{app/assets → assets}/stylesheets/materialize/components/_variables.scss +65 -29
  69. data/assets/stylesheets/materialize/components/_waves.scss +114 -0
  70. data/{app/assets → assets}/stylesheets/materialize/components/forms/_checkboxes.scss +26 -46
  71. data/{app/assets → assets}/stylesheets/materialize/components/forms/_file-input.scss +6 -0
  72. data/{app/assets → assets}/stylesheets/materialize/components/forms/_forms.scss +0 -0
  73. data/{app/assets → assets}/stylesheets/materialize/components/forms/_input-fields.scss +131 -63
  74. data/assets/stylesheets/materialize/components/forms/_radio-buttons.scss +115 -0
  75. data/{app/assets → assets}/stylesheets/materialize/components/forms/_range.scss +35 -33
  76. data/{app/assets → assets}/stylesheets/materialize/components/forms/_select.scss +88 -19
  77. data/{app/assets → assets}/stylesheets/materialize/components/forms/_switches.scss +32 -21
  78. data/assets/stylesheets/materialize/extras/nouislider.css +406 -0
  79. data/{app/assets → assets}/stylesheets/materialize.scss +10 -9
  80. data/lib/materialize-sass/engine.rb +9 -7
  81. data/lib/materialize-sass/helpers.rb +38 -0
  82. data/lib/materialize-sass/version.rb +1 -1
  83. data/lib/materialize-sass.rb +13 -28
  84. data/materialize-sass.gemspec +5 -5
  85. metadata +97 -119
  86. data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  87. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  88. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  89. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  90. data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
  91. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  92. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  93. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  94. data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  95. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  96. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  97. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  98. data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  99. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  100. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  101. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  102. data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  103. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  104. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  105. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  106. data/app/assets/javascripts/materialize/animation.js +0 -9
  107. data/app/assets/javascripts/materialize/buttons.js +0 -267
  108. data/app/assets/javascripts/materialize/cards.js +0 -26
  109. data/app/assets/javascripts/materialize/carousel.js +0 -454
  110. data/app/assets/javascripts/materialize/character_counter.js +0 -72
  111. data/app/assets/javascripts/materialize/chips.js +0 -289
  112. data/app/assets/javascripts/materialize/collapsible.js +0 -160
  113. data/app/assets/javascripts/materialize/date_picker/picker.date.js +0 -1430
  114. data/app/assets/javascripts/materialize/date_picker/picker.js +0 -1123
  115. data/app/assets/javascripts/materialize/dropdown.js +0 -265
  116. data/app/assets/javascripts/materialize/extras/nouislider.js +0 -1666
  117. data/app/assets/javascripts/materialize/extras/nouislider.min.js +0 -1
  118. data/app/assets/javascripts/materialize/forms.js +0 -682
  119. data/app/assets/javascripts/materialize/global.js +0 -98
  120. data/app/assets/javascripts/materialize/hammer.min.js +0 -1
  121. data/app/assets/javascripts/materialize/init.js +0 -174
  122. data/app/assets/javascripts/materialize/initial.js +0 -11
  123. data/app/assets/javascripts/materialize/jquery.easing.1.3.js +0 -205
  124. data/app/assets/javascripts/materialize/jquery.hammer.js +0 -33
  125. data/app/assets/javascripts/materialize/jquery.timeago.min.js +0 -1
  126. data/app/assets/javascripts/materialize/materialbox.js +0 -269
  127. data/app/assets/javascripts/materialize/modal.js +0 -184
  128. data/app/assets/javascripts/materialize/parallax.js +0 -58
  129. data/app/assets/javascripts/materialize/prism.js +0 -8
  130. data/app/assets/javascripts/materialize/pushpin.js +0 -71
  131. data/app/assets/javascripts/materialize/scrollFire.js +0 -48
  132. data/app/assets/javascripts/materialize/scrollspy.js +0 -284
  133. data/app/assets/javascripts/materialize/sideNav.js +0 -370
  134. data/app/assets/javascripts/materialize/slider.js +0 -321
  135. data/app/assets/javascripts/materialize/tabs.js +0 -164
  136. data/app/assets/javascripts/materialize/toasts.js +0 -137
  137. data/app/assets/javascripts/materialize/tooltip.js +0 -236
  138. data/app/assets/javascripts/materialize/transitions.js +0 -169
  139. data/app/assets/javascripts/materialize/velocity.min.js +0 -5
  140. data/app/assets/javascripts/materialize.js +0 -5
  141. data/app/assets/stylesheets/materialize/components/_mixins.scss +0 -5
  142. data/app/assets/stylesheets/materialize/components/_normalize.scss +0 -424
  143. data/app/assets/stylesheets/materialize/components/_prefixer.scss +0 -384
  144. data/app/assets/stylesheets/materialize/components/_roboto.scss +0 -49
  145. data/app/assets/stylesheets/materialize/components/_waves.scss +0 -177
  146. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +0 -435
  147. data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +0 -201
  148. data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +0 -125
  149. data/app/assets/stylesheets/materialize/components/forms/_radio-buttons.scss +0 -117
  150. data/app/assets/stylesheets/materialize/extras/nouislider.css +0 -259
@@ -0,0 +1,55 @@
1
+ // Badges
2
+ span.badge {
3
+ min-width: 3rem;
4
+ padding: 0 6px;
5
+ margin-left: 14px;
6
+ text-align: center;
7
+ font-size: 1rem;
8
+ line-height: $badge-height;
9
+ height: $badge-height;
10
+ color: color('grey', 'darken-1');
11
+ float: right;
12
+ box-sizing: border-box;
13
+
14
+ &.new {
15
+ font-weight: 300;
16
+ font-size: 0.8rem;
17
+ color: #fff;
18
+ background-color: $badge-bg-color;
19
+ border-radius: 2px;
20
+ }
21
+ &.new:after {
22
+ content: " new";
23
+ }
24
+
25
+ &[data-badge-caption]::after {
26
+ content: " " attr(data-badge-caption);
27
+ }
28
+ }
29
+
30
+ // Special cases
31
+ nav ul a span.badge {
32
+ display: inline-block;
33
+ float: none;
34
+ margin-left: 4px;
35
+ line-height: $badge-height;
36
+ height: $badge-height;
37
+ -webkit-font-smoothing: auto;
38
+ }
39
+
40
+ // Line height centering
41
+ .collection-item span.badge {
42
+ margin-top: calc(#{$collection-line-height / 2} - #{$badge-height / 2});
43
+ }
44
+ .collapsible span.badge {
45
+ margin-left: auto;
46
+ }
47
+ .sidenav span.badge {
48
+ margin-top: calc(#{$sidenav-line-height / 2} - #{$badge-height / 2});
49
+ }
50
+
51
+ table span.badge {
52
+ display: inline-block;
53
+ float: none;
54
+ margin-left: auto;
55
+ }
@@ -9,29 +9,30 @@
9
9
  padding: $button-padding;
10
10
  text-transform: uppercase;
11
11
  vertical-align: middle;
12
- // Gets rid of tap active state
13
- -webkit-tap-highlight-color: transparent;
12
+ -webkit-tap-highlight-color: transparent; // Gets rid of tap active state
14
13
  }
15
14
 
16
15
  // Disabled shared style
17
16
  .btn.disabled,
18
17
  .btn-floating.disabled,
19
18
  .btn-large.disabled,
19
+ .btn-small.disabled,
20
20
  .btn-flat.disabled,
21
21
  .btn:disabled,
22
22
  .btn-floating:disabled,
23
23
  .btn-large:disabled,
24
+ .btn-small:disabled,
24
25
  .btn-flat:disabled,
25
26
  .btn[disabled],
26
27
  .btn-floating[disabled],
27
28
  .btn-large[disabled],
29
+ .btn-small[disabled],
28
30
  .btn-flat[disabled] {
29
31
  pointer-events: none;
30
32
  background-color: $button-disabled-background !important;
31
33
  box-shadow: none;
32
34
  color: $button-disabled-color !important;
33
35
  cursor: default;
34
-
35
36
  &:hover {
36
37
  background-color: $button-disabled-background !important;
37
38
  color: $button-disabled-color !important;
@@ -42,12 +43,12 @@
42
43
  .btn,
43
44
  .btn-floating,
44
45
  .btn-large,
46
+ .btn-small,
45
47
  .btn-flat {
46
-
48
+ font-size: $button-font-size;
47
49
  outline: 0;
48
-
49
50
  i {
50
- font-size: $button-font-size;
51
+ font-size: $button-icon-font-size;
51
52
  line-height: inherit;
52
53
  }
53
54
  }
@@ -68,9 +69,8 @@
68
69
  text-align: center;
69
70
  letter-spacing: .5px;
70
71
  @extend .z-depth-1;
71
- transition: .2s ease-out;
72
+ transition: background-color .2s ease-out;
72
73
  cursor: pointer;
73
-
74
74
  &:hover {
75
75
  background-color: $button-raised-background-hover;
76
76
  @extend .z-depth-1-half;
@@ -79,6 +79,45 @@
79
79
 
80
80
  // Floating button
81
81
  .btn-floating {
82
+ &:hover {
83
+ background-color: $button-floating-background-hover;
84
+ @extend .z-depth-1-half;
85
+ }
86
+ &:before {
87
+ border-radius: 0;
88
+ }
89
+ &.btn-large {
90
+ &.halfway-fab {
91
+ bottom: -$button-floating-large-size / 2;
92
+ }
93
+ width: $button-floating-large-size;
94
+ height: $button-floating-large-size;
95
+ padding: 0;
96
+ i {
97
+ line-height: $button-floating-large-size;
98
+ }
99
+ }
100
+
101
+ &.btn-small {
102
+ &.halfway-fab {
103
+ bottom: -$button-floating-small-size / 2;
104
+ }
105
+ width: $button-floating-small-size;
106
+ height: $button-floating-small-size;
107
+ i {
108
+ line-height: $button-floating-small-size;
109
+ }
110
+ }
111
+
112
+ &.halfway-fab {
113
+ &.left {
114
+ right: auto;
115
+ left: 24px;
116
+ }
117
+ position: absolute;
118
+ right: 24px;
119
+ bottom: -$button-floating-size / 2;
120
+ }
82
121
  display: inline-block;
83
122
  color: $button-floating-color;
84
123
  position: relative;
@@ -91,10 +130,9 @@
91
130
  background-color: $button-floating-background;
92
131
  border-radius: $button-floating-radius;
93
132
  @extend .z-depth-1;
94
- transition: .3s;
133
+ transition: background-color .3s;
95
134
  cursor: pointer;
96
135
  vertical-align: middle;
97
-
98
136
  i {
99
137
  width: inherit;
100
138
  display: inline-block;
@@ -103,23 +141,6 @@
103
141
  font-size: $button-large-icon-font-size;
104
142
  line-height: $button-floating-size;
105
143
  }
106
-
107
- &:hover {
108
- background-color: $button-floating-background-hover;
109
- @extend .z-depth-1-half;
110
- }
111
-
112
- &:before {
113
- border-radius: 0;
114
- }
115
-
116
- &.btn-large {
117
- width: $button-floating-large-size;
118
- height: $button-floating-large-size;
119
- i {
120
- line-height: $button-floating-large-size;
121
- }
122
- }
123
144
  }
124
145
 
125
146
  // button fix
@@ -131,13 +152,14 @@ button.btn-floating {
131
152
  .fixed-action-btn {
132
153
  &.active {
133
154
  ul {
134
- visibility: visible;
155
+ visibility: visible;
135
156
  }
136
157
  }
137
158
 
138
- &.horizontal {
159
+ // Directions
160
+ &.direction-left,
161
+ &.direction-right {
139
162
  padding: 0 0 0 15px;
140
-
141
163
  ul {
142
164
  text-align: right;
143
165
  right: 64px;
@@ -145,37 +167,57 @@ button.btn-floating {
145
167
  transform: translateY(-50%);
146
168
  height: 100%;
147
169
  left: auto;
148
- width: 500px; /*width 100% only goes to width of button container */
149
-
170
+ /*width 100% only goes to width of button container */
171
+ width: 500px;
150
172
  li {
151
173
  display: inline-block;
152
- margin: 15px 15px 0 0;
174
+ margin: 7.5px 15px 0 0;
175
+ }
176
+ }
177
+ }
178
+ &.direction-right {
179
+ padding: 0 15px 0 0;
180
+ ul {
181
+ text-align: left;
182
+ direction: rtl;
183
+ left: 64px;
184
+ right: auto;
185
+ li {
186
+ margin: 7.5px 0 0 15px;
187
+ }
188
+ }
189
+ }
190
+ &.direction-bottom {
191
+ padding: 0 0 15px 0;
192
+ ul {
193
+ top: 64px;
194
+ bottom: auto;
195
+ display: flex;
196
+ flex-direction: column-reverse;
197
+ li {
198
+ margin: 15px 0 0 0;
153
199
  }
154
200
  }
155
201
  }
156
-
157
202
  &.toolbar {
158
203
  &.active {
159
- & > a i {
204
+ &>a i {
160
205
  opacity: 0;
161
206
  }
162
207
  }
163
-
164
208
  padding: 0;
165
209
  height: $button-floating-large-size;
166
-
167
210
  ul {
168
211
  display: flex;
169
212
  top: 0;
170
213
  bottom: 0;
171
-
214
+ z-index: 1;
172
215
  li {
173
216
  flex: 1;
174
217
  display: inline-block;
175
218
  margin: 0;
176
219
  height: 100%;
177
220
  transition: none;
178
-
179
221
  a {
180
222
  display: block;
181
223
  overflow: hidden;
@@ -187,7 +229,6 @@ button.btn-floating {
187
229
  color: #fff;
188
230
  line-height: $button-floating-large-size;
189
231
  z-index: 1;
190
-
191
232
  i {
192
233
  line-height: inherit;
193
234
  }
@@ -195,14 +236,12 @@ button.btn-floating {
195
236
  }
196
237
  }
197
238
  }
198
-
199
239
  position: fixed;
200
240
  right: 23px;
201
241
  bottom: 23px;
202
242
  padding-top: 15px;
203
243
  margin-bottom: 0;
204
- z-index: 998;
205
-
244
+ z-index: 997;
206
245
  ul {
207
246
  left: 0;
208
247
  right: 0;
@@ -211,16 +250,13 @@ button.btn-floating {
211
250
  bottom: 64px;
212
251
  margin: 0;
213
252
  visibility: hidden;
214
-
215
253
  li {
216
254
  margin-bottom: 15px;
217
255
  }
218
-
219
256
  a.btn-floating {
220
257
  opacity: 0;
221
258
  }
222
259
  }
223
-
224
260
  .fab-backdrop {
225
261
  position: absolute;
226
262
  top: 0;
@@ -241,23 +277,15 @@ button.btn-floating {
241
277
  color: $button-flat-color;
242
278
  cursor: pointer;
243
279
  transition: background-color .2s;
244
-
245
- &:focus,
246
- &:active {
247
- background-color: transparent;
248
- }
249
-
250
280
  &:focus,
251
281
  &:hover {
252
- background-color: rgba(0,0,0,.1);
253
282
  box-shadow: none;
254
283
  }
255
-
256
- &:active {
257
- background-color: rgba(0,0,0,.2);
284
+ &:focus {
285
+ background-color: rgba(0, 0, 0, .1);
258
286
  }
259
-
260
- &.disabled {
287
+ &.disabled,
288
+ &.btn-flat[disabled] {
261
289
  background-color: transparent !important;
262
290
  color: $button-flat-disabled-color !important;
263
291
  cursor: default;
@@ -269,12 +297,25 @@ button.btn-floating {
269
297
  @extend .btn;
270
298
  height: $button-large-height;
271
299
  line-height: $button-large-height;
300
+ font-size: $button-large-font-size;
301
+ padding: 0 28px;
272
302
 
273
303
  i {
274
304
  font-size: $button-large-icon-font-size;
275
305
  }
276
306
  }
277
307
 
308
+ // Small button
309
+ .btn-small {
310
+ @extend .btn;
311
+ height: $button-small-height;
312
+ line-height: $button-small-height;
313
+ font-size: $button-small-font-size;
314
+ i {
315
+ font-size: $button-small-icon-font-size;
316
+ }
317
+ }
318
+
278
319
  // Block button
279
320
  .btn-block {
280
321
  display: block;
@@ -133,9 +133,9 @@
133
133
  position: absolute;
134
134
  bottom: 0;
135
135
  left: 0;
136
+ max-width: 100%;
136
137
  padding: $card-padding;
137
138
  }
138
-
139
139
  }
140
140
 
141
141
  .card-content {
@@ -144,18 +144,26 @@
144
144
 
145
145
  p {
146
146
  margin: 0;
147
- color: inherit;
148
147
  }
149
148
  .card-title {
150
- line-height: 48px;
149
+ display: block;
150
+ line-height: 32px;
151
+ margin-bottom: 8px;
152
+
153
+ i {
154
+ line-height: 32px;
155
+ }
151
156
  }
152
157
  }
153
158
 
154
159
  .card-action {
155
- position: relative;
156
- background-color: inherit;
160
+ &:last-child {
161
+ border-radius: 0 0 2px 2px;
162
+ }
163
+ background-color: inherit; // Use inherit to inherit color classes
157
164
  border-top: 1px solid rgba(160,160,160,.2);
158
- padding: $card-padding;
165
+ position: relative;
166
+ padding: 16px $card-padding;
159
167
 
160
168
  a:not(.btn):not(.btn-large):not(.btn-floating) {
161
169
  color: $card-link-color;
@@ -2,7 +2,6 @@
2
2
  &.carousel-slider {
3
3
  top: 0;
4
4
  left: 0;
5
- height: 0;
6
5
 
7
6
  .carousel-fixed-item {
8
7
  &.with-indicators {
@@ -19,7 +18,7 @@
19
18
  .carousel-item {
20
19
  width: 100%;
21
20
  height: 100%;
22
- min-height: 400px;
21
+ min-height: $carousel-height;
23
22
  position: absolute;
24
23
  top: 0;
25
24
  left: 0;
@@ -39,20 +38,20 @@
39
38
  overflow: hidden;
40
39
  position: relative;
41
40
  width: 100%;
42
- height: 400px;
41
+ height: $carousel-height;
43
42
  perspective: 500px;
44
43
  transform-style: preserve-3d;
45
44
  transform-origin: 0% 50%;
46
45
 
47
46
  .carousel-item {
48
- display: none;
49
- width: 200px;
50
- height: 400px;
47
+ visibility: hidden;
48
+ width: $carousel-item-width;
49
+ height: $carousel-item-height;
51
50
  position: absolute;
52
51
  top: 0;
53
52
  left: 0;
54
53
 
55
- img {
54
+ & > img {
56
55
  width: 100%;
57
56
  }
58
57
  }
@@ -82,4 +81,10 @@
82
81
  border-radius: 50%;
83
82
  }
84
83
  }
84
+
85
+ // Materialbox compatibility
86
+ &.scrolling .carousel-item .materialboxed,
87
+ .carousel-item:not(.active) .materialboxed {
88
+ pointer-events: none;
89
+ }
85
90
  }
@@ -1,4 +1,10 @@
1
1
  .chip {
2
+ &:focus {
3
+ outline: none;
4
+ background-color: $chip-selected-color;
5
+ color: #fff;
6
+ }
7
+
2
8
  display: inline-block;
3
9
  height: 32px;
4
10
  font-size: 13px;
@@ -11,7 +17,7 @@
11
17
  margin-bottom: $chip-margin;
12
18
  margin-right: $chip-margin;
13
19
 
14
- img {
20
+ > img {
15
21
  float: left;
16
22
  margin: 0 8px 0 -12px;
17
23
  height: 32px;
@@ -46,11 +52,6 @@
46
52
  cursor: text;
47
53
  }
48
54
 
49
- .chip.selected {
50
- background-color: $chip-selected-color;
51
- color: #fff;
52
- }
53
-
54
55
  .input {
55
56
  background: none;
56
57
  border: 0;
@@ -69,6 +70,12 @@
69
70
  border: 0 !important;
70
71
  box-shadow: none !important;
71
72
  }
73
+
74
+ // Autocomplete
75
+ .autocomplete-content {
76
+ margin-top: 0;
77
+ margin-bottom: 0;
78
+ }
72
79
  }
73
80
 
74
81
  // Form prefix
@@ -7,39 +7,40 @@
7
7
  }
8
8
 
9
9
  .collapsible-header {
10
- display: block;
10
+ &:focus {
11
+ outline: 0
12
+ }
13
+
14
+ display: flex;
11
15
  cursor: pointer;
12
- min-height: $collapsible-height;
13
- line-height: $collapsible-height;
14
- padding: 0 1rem;
16
+ -webkit-tap-highlight-color: transparent;
17
+ line-height: 1.5;
18
+ padding: 1rem;
15
19
  background-color: $collapsible-header-color;
16
20
  border-bottom: 1px solid $collapsible-border-color;
17
21
 
18
22
  i {
19
23
  width: 2rem;
20
24
  font-size: 1.6rem;
21
- line-height: $collapsible-height;
22
- display: block;
23
- float: left;
25
+ display: inline-block;
24
26
  text-align: center;
25
27
  margin-right: 1rem;
26
28
  }
27
29
  }
30
+ .keyboard-focused .collapsible-header:focus {
31
+ background-color: #eee;
32
+ }
28
33
 
29
34
  .collapsible-body {
30
35
  display: none;
31
36
  border-bottom: 1px solid $collapsible-border-color;
32
37
  box-sizing: border-box;
33
-
34
- p {
35
- margin: 0;
36
- padding: 2rem;
37
- }
38
+ padding: 2rem;
38
39
  }
39
40
 
40
- // sideNav collapsible styling
41
- .side-nav,
42
- .side-nav.fixed {
41
+ // Sidenav collapsible styling
42
+ .sidenav,
43
+ .sidenav.sidenav-fixed {
43
44
 
44
45
  .collapsible {
45
46
  border: none;
@@ -0,0 +1,32 @@
1
+ // Color Classes
2
+
3
+ @each $color_name, $color in $colors {
4
+ @each $color_type, $color_value in $color {
5
+ @if $color_type == "base" {
6
+ .#{$color_name} {
7
+ background-color: $color_value !important;
8
+ }
9
+ .#{$color_name}-text {
10
+ color: $color_value !important;
11
+ }
12
+ }
13
+ @else if $color_name != "shades" {
14
+ .#{$color_name}.#{$color_type} {
15
+ background-color: $color_value !important;
16
+ }
17
+ .#{$color_name}-text.text-#{$color_type} {
18
+ color: $color_value !important;
19
+ }
20
+ }
21
+ }
22
+ }
23
+
24
+ // Shade classes
25
+ @each $color, $color_value in $shades {
26
+ .#{$color} {
27
+ background-color: $color_value !important;
28
+ }
29
+ .#{$color}-text {
30
+ color: $color_value !important;
31
+ }
32
+ }
@@ -1,12 +1,5 @@
1
- // Utility Color Classes
2
-
3
- //.success {
4
- //
5
- //}
6
-
7
1
  // Google Color Palette defined: http://www.google.com/design/spec/style/color.html
8
2
 
9
-
10
3
  $materialize-red: (
11
4
  "base": #e51c23,
12
5
  "lighten-5": #fdeaeb,
@@ -359,41 +352,7 @@ $colors: (
359
352
  "blue-grey": $blue-grey,
360
353
  "grey": $grey,
361
354
  "shades": $shades
362
- );
363
-
364
-
365
- // Color Classes
366
-
367
- @each $color_name, $color in $colors {
368
- @each $color_type, $color_value in $color {
369
- @if $color_type == "base" {
370
- .#{$color_name} {
371
- background-color: $color_value !important;
372
- }
373
- .#{$color_name}-text {
374
- color: $color_value !important;
375
- }
376
- }
377
- @else if $color_name != "shades" {
378
- .#{$color_name}.#{$color_type} {
379
- background-color: $color_value !important;
380
- }
381
- .#{$color_name}-text.text-#{$color_type} {
382
- color: $color_value !important;
383
- }
384
- }
385
- }
386
- }
387
-
388
- // Shade classes
389
- @each $color, $color_value in $shades {
390
- .#{$color} {
391
- background-color: $color_value !important;
392
- }
393
- .#{$color}-text {
394
- color: $color_value !important;
395
- }
396
- }
355
+ ) !default;
397
356
 
398
357
 
399
358
  // usage: color("name_of_color", "type_of_color")
@@ -406,7 +365,6 @@ $colors: (
406
365
  @return map-get($curr_color, $type);
407
366
  }
408
367
  }
409
- @warn "Unknown `#{name}` in $colors.";
368
+ @warn "Unknown `#{$color}` - `#{$type}` in $colors.";
410
369
  @return null;
411
370
  }
412
-