materialize-rails 0.97.5.custom1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +63 -0
- data/Rakefile +1 -0
- data/lib/materialize-rails.rb +25 -0
- data/lib/materialize-rails/engine.rb +14 -0
- data/lib/materialize-rails/version.rb +3 -0
- data/materialize-rails.gemspec +25 -0
- data/vendor/assets/fonts/materialize/material-design-icons/LICENSE.txt +428 -0
- data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.eot +0 -0
- data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.svg +769 -0
- data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.ttf +0 -0
- data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.woff +0 -0
- data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.woff2 +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.eot +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.ttf +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.woff +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.woff2 +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Light.eot +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Light.ttf +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Light.woff +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Light.woff2 +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.eot +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.ttf +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.woff +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.woff2 +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.eot +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.ttf +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.woff +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.woff2 +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.eot +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.ttf +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.woff +0 -0
- data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.woff2 +0 -0
- data/vendor/assets/javascripts/materialize.js +30 -0
- data/vendor/assets/javascripts/materialize/animation.js +9 -0
- data/vendor/assets/javascripts/materialize/buttons.js +91 -0
- data/vendor/assets/javascripts/materialize/cards.js +29 -0
- data/vendor/assets/javascripts/materialize/carousel.js +350 -0
- data/vendor/assets/javascripts/materialize/character_counter.js +59 -0
- data/vendor/assets/javascripts/materialize/chips.js +9 -0
- data/vendor/assets/javascripts/materialize/collapsible.js +137 -0
- data/vendor/assets/javascripts/materialize/date_picker/picker.date.js +1430 -0
- data/vendor/assets/javascripts/materialize/date_picker/picker.js +1123 -0
- data/vendor/assets/javascripts/materialize/dropdown.js +228 -0
- data/vendor/assets/javascripts/materialize/forms.js +581 -0
- data/vendor/assets/javascripts/materialize/global.js +45 -0
- data/vendor/assets/javascripts/materialize/hammer.min.js +1 -0
- data/vendor/assets/javascripts/materialize/initial.js +11 -0
- data/vendor/assets/javascripts/materialize/jquery.easing.1.3.js +205 -0
- data/vendor/assets/javascripts/materialize/jquery.hammer.js +33 -0
- data/vendor/assets/javascripts/materialize/leanModal.js +178 -0
- data/vendor/assets/javascripts/materialize/materialbox.js +269 -0
- data/vendor/assets/javascripts/materialize/parallax.js +58 -0
- data/vendor/assets/javascripts/materialize/pushpin.js +62 -0
- data/vendor/assets/javascripts/materialize/scrollFire.js +44 -0
- data/vendor/assets/javascripts/materialize/scrollspy.js +285 -0
- data/vendor/assets/javascripts/materialize/sideNav.js +315 -0
- data/vendor/assets/javascripts/materialize/slider.js +321 -0
- data/vendor/assets/javascripts/materialize/tabs.js +129 -0
- data/vendor/assets/javascripts/materialize/toasts.js +136 -0
- data/vendor/assets/javascripts/materialize/tooltip.js +203 -0
- data/vendor/assets/javascripts/materialize/transitions.js +154 -0
- data/vendor/assets/javascripts/materialize/velocity.min.js +5 -0
- data/vendor/assets/javascripts/materialize/waves.js +338 -0
- data/vendor/assets/stylesheets/components/_buttons.scss +181 -0
- data/vendor/assets/stylesheets/components/_cards.scss +134 -0
- data/vendor/assets/stylesheets/components/_carousel.scss +34 -0
- data/vendor/assets/stylesheets/components/_chips.scss +27 -0
- data/vendor/assets/stylesheets/components/_collapsible.scss +85 -0
- data/vendor/assets/stylesheets/components/_color.scss +412 -0
- data/vendor/assets/stylesheets/components/_dropdown.scss +57 -0
- data/vendor/assets/stylesheets/components/_form.scss +918 -0
- data/vendor/assets/stylesheets/components/_global.scss +766 -0
- data/vendor/assets/stylesheets/components/_grid.scss +146 -0
- data/vendor/assets/stylesheets/components/_icons-material-design.scss +3263 -0
- data/vendor/assets/stylesheets/components/_materialbox.scss +42 -0
- data/vendor/assets/stylesheets/components/_mixins.scss +5 -0
- data/vendor/assets/stylesheets/components/_modal.scss +90 -0
- data/vendor/assets/stylesheets/components/_navbar.scss +171 -0
- data/vendor/assets/stylesheets/components/_normalize.scss +427 -0
- data/vendor/assets/stylesheets/components/_prefixer.scss +384 -0
- data/vendor/assets/stylesheets/components/_preloader.scss +334 -0
- data/vendor/assets/stylesheets/components/_roboto.scss +49 -0
- data/vendor/assets/stylesheets/components/_sideNav.scss +112 -0
- data/vendor/assets/stylesheets/components/_slider.scss +92 -0
- data/vendor/assets/stylesheets/components/_table_of_contents.scss +33 -0
- data/vendor/assets/stylesheets/components/_tabs.scss +56 -0
- data/vendor/assets/stylesheets/components/_toast.scss +65 -0
- data/vendor/assets/stylesheets/components/_tooltip.scss +33 -0
- data/vendor/assets/stylesheets/components/_typography.scss +61 -0
- data/vendor/assets/stylesheets/components/_variables.scss +161 -0
- data/vendor/assets/stylesheets/components/_waves.scss +173 -0
- data/vendor/assets/stylesheets/components/date_picker/_default.date.scss +435 -0
- data/vendor/assets/stylesheets/components/date_picker/_default.scss +201 -0
- data/vendor/assets/stylesheets/components/date_picker/_default.time.scss +125 -0
- data/vendor/assets/stylesheets/materialize.scss +40 -0
- metadata +199 -0
@@ -0,0 +1,412 @@
|
|
1
|
+
// Utility Color Classes
|
2
|
+
|
3
|
+
//.success {
|
4
|
+
//
|
5
|
+
//}
|
6
|
+
|
7
|
+
// Google Color Palette defined: http://www.google.com/design/spec/style/color.html
|
8
|
+
|
9
|
+
|
10
|
+
$materialize-red: (
|
11
|
+
"lighten-5": #fdeaeb,
|
12
|
+
"lighten-4": #f8c1c3,
|
13
|
+
"lighten-3": #f3989b,
|
14
|
+
"lighten-2": #ee6e73,
|
15
|
+
"lighten-1": #ea454b,
|
16
|
+
"base": #e51c23,
|
17
|
+
"darken-1": #d0181e,
|
18
|
+
"darken-2": #b9151b,
|
19
|
+
"darken-3": #a21318,
|
20
|
+
"darken-4": #8b1014,
|
21
|
+
);
|
22
|
+
|
23
|
+
$red: (
|
24
|
+
"lighten-5": #FFEBEE,
|
25
|
+
"lighten-4": #FFCDD2,
|
26
|
+
"lighten-3": #EF9A9A,
|
27
|
+
"lighten-2": #E57373,
|
28
|
+
"lighten-1": #EF5350,
|
29
|
+
"base": #F44336,
|
30
|
+
"darken-1": #E53935,
|
31
|
+
"darken-2": #D32F2F,
|
32
|
+
"darken-3": #C62828,
|
33
|
+
"darken-4": #B71C1C,
|
34
|
+
"accent-1": #FF8A80,
|
35
|
+
"accent-2": #FF5252,
|
36
|
+
"accent-3": #FF1744,
|
37
|
+
"accent-4": #D50000
|
38
|
+
);
|
39
|
+
|
40
|
+
$pink: (
|
41
|
+
"lighten-5": #fce4ec,
|
42
|
+
"lighten-4": #f8bbd0,
|
43
|
+
"lighten-3": #f48fb1,
|
44
|
+
"lighten-2": #f06292,
|
45
|
+
"lighten-1": #ec407a,
|
46
|
+
"base": #e91e63,
|
47
|
+
"darken-1": #d81b60,
|
48
|
+
"darken-2": #c2185b,
|
49
|
+
"darken-3": #ad1457,
|
50
|
+
"darken-4": #880e4f,
|
51
|
+
"accent-1": #ff80ab,
|
52
|
+
"accent-2": #ff4081,
|
53
|
+
"accent-3": #f50057,
|
54
|
+
"accent-4": #c51162
|
55
|
+
);
|
56
|
+
|
57
|
+
$purple: (
|
58
|
+
"lighten-5": #f3e5f5,
|
59
|
+
"lighten-4": #e1bee7,
|
60
|
+
"lighten-3": #ce93d8,
|
61
|
+
"lighten-2": #ba68c8,
|
62
|
+
"lighten-1": #ab47bc,
|
63
|
+
"base": #9c27b0,
|
64
|
+
"darken-1": #8e24aa,
|
65
|
+
"darken-2": #7b1fa2,
|
66
|
+
"darken-3": #6a1b9a,
|
67
|
+
"darken-4": #4a148c,
|
68
|
+
"accent-1": #ea80fc,
|
69
|
+
"accent-2": #e040fb,
|
70
|
+
"accent-3": #d500f9,
|
71
|
+
"accent-4": #aa00ff
|
72
|
+
);
|
73
|
+
|
74
|
+
$deep-purple: (
|
75
|
+
"lighten-5": #ede7f6,
|
76
|
+
"lighten-4": #d1c4e9,
|
77
|
+
"lighten-3": #b39ddb,
|
78
|
+
"lighten-2": #9575cd,
|
79
|
+
"lighten-1": #7e57c2,
|
80
|
+
"base": #673ab7,
|
81
|
+
"darken-1": #5e35b1,
|
82
|
+
"darken-2": #512da8,
|
83
|
+
"darken-3": #4527a0,
|
84
|
+
"darken-4": #311b92,
|
85
|
+
"accent-1": #b388ff,
|
86
|
+
"accent-2": #7c4dff,
|
87
|
+
"accent-3": #651fff,
|
88
|
+
"accent-4": #6200ea
|
89
|
+
);
|
90
|
+
|
91
|
+
$indigo: (
|
92
|
+
"lighten-5": #e8eaf6,
|
93
|
+
"lighten-4": #c5cae9,
|
94
|
+
"lighten-3": #9fa8da,
|
95
|
+
"lighten-2": #7986cb,
|
96
|
+
"lighten-1": #5c6bc0,
|
97
|
+
"base": #3f51b5,
|
98
|
+
"darken-1": #3949ab,
|
99
|
+
"darken-2": #303f9f,
|
100
|
+
"darken-3": #283593,
|
101
|
+
"darken-4": #1a237e,
|
102
|
+
"accent-1": #8c9eff,
|
103
|
+
"accent-2": #536dfe,
|
104
|
+
"accent-3": #3d5afe,
|
105
|
+
"accent-4": #304ffe
|
106
|
+
);
|
107
|
+
|
108
|
+
$blue: (
|
109
|
+
"lighten-5": #E3F2FD,
|
110
|
+
"lighten-4": #BBDEFB,
|
111
|
+
"lighten-3": #90CAF9,
|
112
|
+
"lighten-2": #64B5F6,
|
113
|
+
"lighten-1": #42A5F5,
|
114
|
+
"base": #2196F3,
|
115
|
+
"darken-1": #1E88E5,
|
116
|
+
"darken-2": #1976D2,
|
117
|
+
"darken-3": #1565C0,
|
118
|
+
"darken-4": #0D47A1,
|
119
|
+
"accent-1": #82B1FF,
|
120
|
+
"accent-2": #448AFF,
|
121
|
+
"accent-3": #2979FF,
|
122
|
+
"accent-4": #2962FF
|
123
|
+
);
|
124
|
+
|
125
|
+
$light-blue: (
|
126
|
+
"lighten-5": #e1f5fe,
|
127
|
+
"lighten-4": #b3e5fc,
|
128
|
+
"lighten-3": #81d4fa,
|
129
|
+
"lighten-2": #4fc3f7,
|
130
|
+
"lighten-1": #29b6f6,
|
131
|
+
"base": #03a9f4,
|
132
|
+
"darken-1": #039be5,
|
133
|
+
"darken-2": #0288d1,
|
134
|
+
"darken-3": #0277bd,
|
135
|
+
"darken-4": #01579b,
|
136
|
+
"accent-1": #80d8ff,
|
137
|
+
"accent-2": #40c4ff,
|
138
|
+
"accent-3": #00b0ff,
|
139
|
+
"accent-4": #0091ea
|
140
|
+
);
|
141
|
+
|
142
|
+
$cyan: (
|
143
|
+
"lighten-5": #e0f7fa,
|
144
|
+
"lighten-4": #b2ebf2,
|
145
|
+
"lighten-3": #80deea,
|
146
|
+
"lighten-2": #4dd0e1,
|
147
|
+
"lighten-1": #26c6da,
|
148
|
+
"base": #00bcd4,
|
149
|
+
"darken-1": #00acc1,
|
150
|
+
"darken-2": #0097a7,
|
151
|
+
"darken-3": #00838f,
|
152
|
+
"darken-4": #006064,
|
153
|
+
"accent-1": #84ffff,
|
154
|
+
"accent-2": #18ffff,
|
155
|
+
"accent-3": #00e5ff,
|
156
|
+
"accent-4": #00b8d4
|
157
|
+
);
|
158
|
+
|
159
|
+
$teal: (
|
160
|
+
"lighten-5": #e0f2f1,
|
161
|
+
"lighten-4": #b2dfdb,
|
162
|
+
"lighten-3": #80cbc4,
|
163
|
+
"lighten-2": #4db6ac,
|
164
|
+
"lighten-1": #26a69a,
|
165
|
+
"base": #009688,
|
166
|
+
"darken-1": #00897b,
|
167
|
+
"darken-2": #00796b,
|
168
|
+
"darken-3": #00695c,
|
169
|
+
"darken-4": #004d40,
|
170
|
+
"accent-1": #a7ffeb,
|
171
|
+
"accent-2": #64ffda,
|
172
|
+
"accent-3": #1de9b6,
|
173
|
+
"accent-4": #00bfa5
|
174
|
+
);
|
175
|
+
|
176
|
+
$green: (
|
177
|
+
"lighten-5": #E8F5E9,
|
178
|
+
"lighten-4": #C8E6C9,
|
179
|
+
"lighten-3": #A5D6A7,
|
180
|
+
"lighten-2": #81C784,
|
181
|
+
"lighten-1": #66BB6A,
|
182
|
+
"base": #4CAF50,
|
183
|
+
"darken-1": #43A047,
|
184
|
+
"darken-2": #388E3C,
|
185
|
+
"darken-3": #2E7D32,
|
186
|
+
"darken-4": #1B5E20,
|
187
|
+
"accent-1": #B9F6CA,
|
188
|
+
"accent-2": #69F0AE,
|
189
|
+
"accent-3": #00E676,
|
190
|
+
"accent-4": #00C853
|
191
|
+
);
|
192
|
+
|
193
|
+
$light-green: (
|
194
|
+
"lighten-5": #f1f8e9,
|
195
|
+
"lighten-4": #dcedc8,
|
196
|
+
"lighten-3": #c5e1a5,
|
197
|
+
"lighten-2": #aed581,
|
198
|
+
"lighten-1": #9ccc65,
|
199
|
+
"base": #8bc34a,
|
200
|
+
"darken-1": #7cb342,
|
201
|
+
"darken-2": #689f38,
|
202
|
+
"darken-3": #558b2f,
|
203
|
+
"darken-4": #33691e,
|
204
|
+
"accent-1": #ccff90,
|
205
|
+
"accent-2": #b2ff59,
|
206
|
+
"accent-3": #76ff03,
|
207
|
+
"accent-4": #64dd17
|
208
|
+
);
|
209
|
+
|
210
|
+
$lime: (
|
211
|
+
"lighten-5": #f9fbe7,
|
212
|
+
"lighten-4": #f0f4c3,
|
213
|
+
"lighten-3": #e6ee9c,
|
214
|
+
"lighten-2": #dce775,
|
215
|
+
"lighten-1": #d4e157,
|
216
|
+
"base": #cddc39,
|
217
|
+
"darken-1": #c0ca33,
|
218
|
+
"darken-2": #afb42b,
|
219
|
+
"darken-3": #9e9d24,
|
220
|
+
"darken-4": #827717,
|
221
|
+
"accent-1": #f4ff81,
|
222
|
+
"accent-2": #eeff41,
|
223
|
+
"accent-3": #c6ff00,
|
224
|
+
"accent-4": #aeea00
|
225
|
+
);
|
226
|
+
|
227
|
+
$yellow: (
|
228
|
+
"lighten-5": #fffde7,
|
229
|
+
"lighten-4": #fff9c4,
|
230
|
+
"lighten-3": #fff59d,
|
231
|
+
"lighten-2": #fff176,
|
232
|
+
"lighten-1": #ffee58,
|
233
|
+
"base": #ffeb3b,
|
234
|
+
"darken-1": #fdd835,
|
235
|
+
"darken-2": #fbc02d,
|
236
|
+
"darken-3": #f9a825,
|
237
|
+
"darken-4": #f57f17,
|
238
|
+
"accent-1": #ffff8d,
|
239
|
+
"accent-2": #ffff00,
|
240
|
+
"accent-3": #ffea00,
|
241
|
+
"accent-4": #ffd600
|
242
|
+
);
|
243
|
+
|
244
|
+
$amber: (
|
245
|
+
"lighten-5": #fff8e1,
|
246
|
+
"lighten-4": #ffecb3,
|
247
|
+
"lighten-3": #ffe082,
|
248
|
+
"lighten-2": #ffd54f,
|
249
|
+
"lighten-1": #ffca28,
|
250
|
+
"base": #ffc107,
|
251
|
+
"darken-1": #ffb300,
|
252
|
+
"darken-2": #ffa000,
|
253
|
+
"darken-3": #ff8f00,
|
254
|
+
"darken-4": #ff6f00,
|
255
|
+
"accent-1": #ffe57f,
|
256
|
+
"accent-2": #ffd740,
|
257
|
+
"accent-3": #ffc400,
|
258
|
+
"accent-4": #ffab00
|
259
|
+
);
|
260
|
+
|
261
|
+
$orange: (
|
262
|
+
"lighten-5": #fff3e0,
|
263
|
+
"lighten-4": #ffe0b2,
|
264
|
+
"lighten-3": #ffcc80,
|
265
|
+
"lighten-2": #ffb74d,
|
266
|
+
"lighten-1": #ffa726,
|
267
|
+
"base": #ff9800,
|
268
|
+
"darken-1": #fb8c00,
|
269
|
+
"darken-2": #f57c00,
|
270
|
+
"darken-3": #ef6c00,
|
271
|
+
"darken-4": #e65100,
|
272
|
+
"accent-1": #ffd180,
|
273
|
+
"accent-2": #ffab40,
|
274
|
+
"accent-3": #ff9100,
|
275
|
+
"accent-4": #ff6d00
|
276
|
+
);
|
277
|
+
|
278
|
+
$deep-orange: (
|
279
|
+
"lighten-5": #fbe9e7,
|
280
|
+
"lighten-4": #ffccbc,
|
281
|
+
"lighten-3": #ffab91,
|
282
|
+
"lighten-2": #ff8a65,
|
283
|
+
"lighten-1": #ff7043,
|
284
|
+
"base": #ff5722,
|
285
|
+
"darken-1": #f4511e,
|
286
|
+
"darken-2": #e64a19,
|
287
|
+
"darken-3": #d84315,
|
288
|
+
"darken-4": #bf360c,
|
289
|
+
"accent-1": #ff9e80,
|
290
|
+
"accent-2": #ff6e40,
|
291
|
+
"accent-3": #ff3d00,
|
292
|
+
"accent-4": #dd2c00
|
293
|
+
);
|
294
|
+
|
295
|
+
$brown: (
|
296
|
+
"lighten-5": #efebe9,
|
297
|
+
"lighten-4": #d7ccc8,
|
298
|
+
"lighten-3": #bcaaa4,
|
299
|
+
"lighten-2": #a1887f,
|
300
|
+
"lighten-1": #8d6e63,
|
301
|
+
"base": #795548,
|
302
|
+
"darken-1": #6d4c41,
|
303
|
+
"darken-2": #5d4037,
|
304
|
+
"darken-3": #4e342e,
|
305
|
+
"darken-4": #3e2723
|
306
|
+
);
|
307
|
+
|
308
|
+
$blue-grey: (
|
309
|
+
"lighten-5": #eceff1,
|
310
|
+
"lighten-4": #cfd8dc,
|
311
|
+
"lighten-3": #b0bec5,
|
312
|
+
"lighten-2": #90a4ae,
|
313
|
+
"lighten-1": #78909c,
|
314
|
+
"base": #607d8b,
|
315
|
+
"darken-1": #546e7a,
|
316
|
+
"darken-2": #455a64,
|
317
|
+
"darken-3": #37474f,
|
318
|
+
"darken-4": #263238
|
319
|
+
);
|
320
|
+
|
321
|
+
$grey: (
|
322
|
+
"lighten-5": #fafafa,
|
323
|
+
"lighten-4": #f5f5f5,
|
324
|
+
"lighten-3": #eeeeee,
|
325
|
+
"lighten-2": #e0e0e0,
|
326
|
+
"lighten-1": #bdbdbd,
|
327
|
+
"base": #9e9e9e,
|
328
|
+
"darken-1": #757575,
|
329
|
+
"darken-2": #616161,
|
330
|
+
"darken-3": #424242,
|
331
|
+
"darken-4": #212121
|
332
|
+
);
|
333
|
+
|
334
|
+
$shades: (
|
335
|
+
"black": #000000,
|
336
|
+
"white": #FFFFFF,
|
337
|
+
"transparent": transparent
|
338
|
+
);
|
339
|
+
|
340
|
+
$colors: (
|
341
|
+
"materialize-red": $materialize-red,
|
342
|
+
"red": $red,
|
343
|
+
"pink": $pink,
|
344
|
+
"purple": $purple,
|
345
|
+
"deep-purple": $deep-purple,
|
346
|
+
"indigo": $indigo,
|
347
|
+
"blue": $blue,
|
348
|
+
"light-blue": $light-blue,
|
349
|
+
"cyan": $cyan,
|
350
|
+
"teal": $teal,
|
351
|
+
"green": $green,
|
352
|
+
"light-green": $light-green,
|
353
|
+
"lime": $lime,
|
354
|
+
"yellow": $yellow,
|
355
|
+
"amber": $amber,
|
356
|
+
"orange": $orange,
|
357
|
+
"deep-orange": $deep-orange,
|
358
|
+
"brown": $brown,
|
359
|
+
"blue-grey": $blue-grey,
|
360
|
+
"grey": $grey,
|
361
|
+
"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 {
|
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
|
+
}
|
397
|
+
|
398
|
+
|
399
|
+
// usage: color("name_of_color", "type_of_color")
|
400
|
+
// to avoid to repeating map-get($colors, ...)
|
401
|
+
|
402
|
+
@function color($color, $type) {
|
403
|
+
@if map-has-key($colors, $color) {
|
404
|
+
$curr_color: map-get($colors, $color);
|
405
|
+
@if map-has-key($curr_color, $type) {
|
406
|
+
@return map-get($curr_color, $type);
|
407
|
+
}
|
408
|
+
}
|
409
|
+
@warn "Unknown `#{name}` in $colors.";
|
410
|
+
@return null;
|
411
|
+
}
|
412
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
.dropdown-content {
|
2
|
+
@extend .z-depth-1;
|
3
|
+
background-color: $dropdown-bg-color;
|
4
|
+
margin: 0;
|
5
|
+
display: none;
|
6
|
+
min-width: 100px;
|
7
|
+
max-height: 650px;
|
8
|
+
overflow-y: auto;
|
9
|
+
opacity: 0;
|
10
|
+
position: absolute;
|
11
|
+
z-index: 999;
|
12
|
+
will-change: width, height;
|
13
|
+
|
14
|
+
li {
|
15
|
+
clear: both;
|
16
|
+
color: $off-black;
|
17
|
+
cursor: pointer;
|
18
|
+
min-height: $dropdown-item-height;
|
19
|
+
line-height: 1.5rem;
|
20
|
+
width: 100%;
|
21
|
+
text-align: left;
|
22
|
+
text-transform: none;
|
23
|
+
|
24
|
+
&:hover, &.active, &.selected {
|
25
|
+
background-color: $dropdown-hover-bg-color;
|
26
|
+
}
|
27
|
+
|
28
|
+
&.active.selected {
|
29
|
+
background-color: darken($dropdown-hover-bg-color, 5%);
|
30
|
+
}
|
31
|
+
|
32
|
+
&.divider {
|
33
|
+
min-height: 0;
|
34
|
+
height: 1px;
|
35
|
+
}
|
36
|
+
|
37
|
+
& > a, & > span {
|
38
|
+
font-size: 16px;
|
39
|
+
color: $dropdown-color;
|
40
|
+
display: block;
|
41
|
+
line-height: 22px;
|
42
|
+
padding: (($dropdown-item-height - 22) / 2) 16px;
|
43
|
+
}
|
44
|
+
|
45
|
+
& > span > label {
|
46
|
+
top: 1px;
|
47
|
+
left: 3px;
|
48
|
+
height: 18px;
|
49
|
+
}
|
50
|
+
|
51
|
+
// Icon alignment override
|
52
|
+
& > a > i {
|
53
|
+
height: inherit;
|
54
|
+
line-height: inherit;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|