minimaterialize 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,350 @@
1
+ // ==========================================================================
2
+ // Materialize variables
3
+ // ==========================================================================
4
+ //
5
+ // Table of Contents:
6
+ //
7
+ // 1. Colors
8
+ // 2. Badges
9
+ // 3. Buttons
10
+ // 4. Cards
11
+ // 5. Carousel
12
+ // 6. Collapsible
13
+ // 7. Chips
14
+ // 8. Date + Time Picker
15
+ // 9. Dropdown
16
+ // 10. Forms
17
+ // 11. Global
18
+ // 12. Grid
19
+ // 13. Navigation Bar
20
+ // 14. Side Navigation
21
+ // 15. Photo Slider
22
+ // 16. Spinners | Loaders
23
+ // 17. Tabs
24
+ // 18. Tables
25
+ // 19. Toasts
26
+ // 20. Typography
27
+ // 21. Footer
28
+ // 22. Flow Text
29
+ // 23. Collections
30
+ // 24. Progress Bar
31
+
32
+
33
+
34
+ // 1. Colors
35
+ // ==========================================================================
36
+ // https://materializecss.com/color.html
37
+
38
+ $primary-color: color("blue-grey", "darken-1");
39
+ $primary-color-light: lighten($primary-color, 15%);
40
+ $primary-color-dark: darken($primary-color, 15%);
41
+
42
+ $secondary-color: color("teal", "lighten-1");
43
+ $success-color: color("green", "base");
44
+ $error-color: color("red", "base");
45
+ $link-color: color("light-blue", "darken-1");
46
+
47
+
48
+ // 2. Badges
49
+ // ==========================================================================
50
+
51
+ $badge-bg-color: $secondary-color;
52
+ $badge-height: 22px;
53
+
54
+
55
+ // 3. Buttons
56
+ // ==========================================================================
57
+
58
+ // Shared styles
59
+ $button-border: none;
60
+ $button-background-focus: lighten($secondary-color, 4%);
61
+ $button-font-size: 14px;
62
+ $button-icon-font-size: 1.3rem;
63
+ $button-height: 36px;
64
+ $button-padding: 0 16px;
65
+ $button-radius: 2px;
66
+
67
+ // Disabled styles
68
+ $button-disabled-background: #DFDFDF;
69
+ $button-disabled-color: #9F9F9F;
70
+
71
+ // Raised buttons
72
+ $button-raised-background: $secondary-color;
73
+ $button-raised-background-hover: lighten($button-raised-background, 5%);
74
+ $button-raised-color: #fff;
75
+
76
+ // Large buttons
77
+ $button-large-font-size: 15px;
78
+ $button-large-icon-font-size: 1.6rem;
79
+ $button-large-height: $button-height * 1.5;
80
+ $button-floating-large-size: 56px;
81
+
82
+ // Small buttons
83
+ $button-small-font-size: 13px;
84
+ $button-small-icon-font-size: 1.2rem;
85
+ $button-small-height: $button-height * .9;
86
+ $button-floating-small-size: $button-height * .9;
87
+
88
+ // Flat buttons
89
+ $button-flat-color: #343434;
90
+ $button-flat-disabled-color: lighten(#999, 10%);
91
+
92
+ // Floating buttons
93
+ $button-floating-background: $secondary-color;
94
+ $button-floating-background-hover: $button-floating-background;
95
+ $button-floating-color: #fff;
96
+ $button-floating-size: 40px;
97
+ $button-floating-radius: 50%;
98
+
99
+
100
+ // 4. Cards
101
+ // ==========================================================================
102
+
103
+ $card-padding: 24px;
104
+ $card-bg-color: #fff;
105
+ $card-link-color: color("orange", "accent-2");
106
+ $card-link-color-light: lighten($card-link-color, 20%);
107
+
108
+
109
+ // 5. Carousel
110
+ // ==========================================================================
111
+
112
+ $carousel-height: 400px;
113
+ $carousel-item-height: $carousel-height / 2;
114
+ $carousel-item-width: $carousel-item-height;
115
+
116
+
117
+ // 6. Collapsible
118
+ // ==========================================================================
119
+
120
+ $collapsible-height: 3rem;
121
+ $collapsible-line-height: $collapsible-height;
122
+ $collapsible-header-color: #fff;
123
+ $collapsible-border-color: #ddd;
124
+
125
+
126
+ // 7. Chips
127
+ // ==========================================================================
128
+
129
+ $chip-bg-color: #e4e4e4;
130
+ $chip-border-color: #9e9e9e;
131
+ $chip-selected-color: #26a69a;
132
+ $chip-margin: 5px;
133
+
134
+
135
+ // 8. Date + Time Picker
136
+ // ==========================================================================
137
+
138
+ $datepicker-display-font-size: 2.8rem;
139
+ $datepicker-calendar-header-color: #999;
140
+ $datepicker-weekday-color: rgba(0, 0, 0, .87);
141
+ $datepicker-weekday-bg: darken($secondary-color, 7%);
142
+ $datepicker-date-bg: $secondary-color;
143
+ $datepicker-year: rgba(255, 255, 255, .7);
144
+ $datepicker-focus: rgba(0,0,0, .05);
145
+ $datepicker-selected: $secondary-color;
146
+ $datepicker-selected-outfocus: desaturate(lighten($secondary-color, 35%), 15%);
147
+ $datepicker-day-focus: transparentize(desaturate($secondary-color, 5%), .75);
148
+ $datepicker-disabled-day-color: rgba(0, 0, 0, .3);
149
+
150
+ $timepicker-clock-color: rgba(0, 0, 0, .87);
151
+ $timepicker-clock-plate-bg: #eee;
152
+
153
+
154
+ // 9. Dropdown
155
+ // ==========================================================================
156
+
157
+ $dropdown-bg-color: #fff;
158
+ $dropdown-hover-bg-color: #eee;
159
+ $dropdown-color: $secondary-color;
160
+ $dropdown-item-height: 50px;
161
+
162
+
163
+ // 10. Forms
164
+ // ==========================================================================
165
+
166
+ // Text Inputs + Textarea
167
+ $input-height: 3rem;
168
+ $input-border-color: color("grey", "base");
169
+ $input-border: 1px solid $input-border-color;
170
+ $input-background: #fff;
171
+ $input-error-color: $error-color;
172
+ $input-success-color: $success-color;
173
+ $input-focus-color: $secondary-color;
174
+ $input-font-size: 16px;
175
+ $input-margin-bottom: 8px;
176
+ $input-margin: 0 0 $input-margin-bottom 0;
177
+ $input-padding: 0;
178
+ $label-font-size: .8rem;
179
+ $input-disabled-color: rgba(0,0,0, .42);
180
+ $input-disabled-solid-color: #949494;
181
+ $input-disabled-border: 1px dotted $input-disabled-color;
182
+ $input-invalid-border: 1px solid $input-error-color;
183
+ $input-icon-size: 2rem;
184
+ $placeholder-text-color: lighten($input-border-color, 20%);
185
+
186
+ // Radio Buttons
187
+ $radio-fill-color: $secondary-color;
188
+ $radio-empty-color: #5a5a5a;
189
+ $radio-border: 2px solid $radio-fill-color;
190
+
191
+ // Range
192
+ $range-height: 14px;
193
+ $range-width: 14px;
194
+ $track-height: 3px;
195
+
196
+ // Select
197
+ $select-border: 1px solid #f2f2f2;
198
+ $select-background: rgba(255, 255, 255, 0.90);
199
+ $select-focus: 1px solid lighten($secondary-color, 47%);
200
+ $select-option-hover: rgba(0,0,0,.08);
201
+ $select-option-focus: rgba(0,0,0,.08);
202
+ $select-option-selected: rgba(0,0,0,.03);
203
+ $select-padding: 5px;
204
+ $select-radius: 2px;
205
+ $select-disabled-color: rgba(0,0,0,.3);
206
+
207
+ // Switches
208
+ $switch-bg-color: $secondary-color;
209
+ $switch-checked-lever-bg: desaturate(lighten($switch-bg-color, 25%), 25%);
210
+ $switch-unchecked-bg: #F1F1F1;
211
+ $switch-unchecked-lever-bg: rgba(0,0,0,.38);
212
+ $switch-radius: 15px;
213
+
214
+
215
+ // 11. Global
216
+ // ==========================================================================
217
+
218
+ // Media Query Ranges
219
+ $small-screen-up: 601px;
220
+ $medium-screen-up: 993px;
221
+ $large-screen-up: 1201px;
222
+ $small-screen: 600px;
223
+ $medium-screen: 992px;
224
+ $large-screen: 1200px;
225
+
226
+ $medium-and-up: "only screen and (min-width : #{$small-screen-up})";
227
+ $large-and-up: "only screen and (min-width : #{$medium-screen-up})";
228
+ $extra-large-and-up: "only screen and (min-width : #{$large-screen-up})";
229
+ $small-and-down: "only screen and (max-width : #{$small-screen})";
230
+ $medium-and-down: "only screen and (max-width : #{$medium-screen})";
231
+ $medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})";
232
+
233
+
234
+ // 12. Grid
235
+ // ==========================================================================
236
+
237
+ $num-cols: 12;
238
+ $gutter-width: 1.5rem;
239
+ $element-top-margin: $gutter-width/3;
240
+ $element-bottom-margin: ($gutter-width*2)/3;
241
+
242
+
243
+ // 13. Navigation Bar
244
+ // ==========================================================================
245
+
246
+ $navbar-height: 64px;
247
+ $navbar-line-height: $navbar-height;
248
+ $navbar-height-mobile: 56px;
249
+ $navbar-line-height-mobile: $navbar-height-mobile;
250
+ $navbar-font-size: 1rem;
251
+ $navbar-font-color: #fff;
252
+ $navbar-brand-font-size: 2.1rem;
253
+
254
+ // 14. Side Navigation
255
+ // ==========================================================================
256
+
257
+ $sidenav-width: 300px;
258
+ $sidenav-font-size: 14px;
259
+ $sidenav-font-color: rgba(0,0,0,.87);
260
+ $sidenav-bg-color: #fff;
261
+ $sidenav-padding: 16px;
262
+ $sidenav-item-height: 48px;
263
+ $sidenav-line-height: $sidenav-item-height;
264
+
265
+
266
+ // 15. Photo Slider
267
+ // ==========================================================================
268
+
269
+ $slider-bg-color: color('grey', 'base');
270
+ $slider-bg-color-light: color('grey', 'lighten-2');
271
+ $slider-indicator-color: color('green', 'base');
272
+
273
+
274
+ // 16. Spinners | Loaders
275
+ // ==========================================================================
276
+
277
+ $spinner-default-color: $secondary-color;
278
+
279
+
280
+ // 17. Tabs
281
+ // ==========================================================================
282
+
283
+ $tabs-underline-color: $primary-color-light;
284
+ $tabs-text-color: $primary-color;
285
+ $tabs-bg-color: #fff;
286
+
287
+
288
+ // 18. Tables
289
+ // ==========================================================================
290
+
291
+ $table-border-color: rgba(0,0,0,.12);
292
+ $table-striped-color: rgba(242, 242, 242, 0.5);
293
+
294
+
295
+ // 19. Toasts
296
+ // ==========================================================================
297
+
298
+ $toast-height: 48px;
299
+ $toast-color: #323232;
300
+ $toast-text-color: #fff;
301
+ $toast-action-color: #eeff41;
302
+
303
+
304
+ // 20. Typography
305
+ // ==========================================================================
306
+
307
+ $font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
308
+ $off-black: rgba(0, 0, 0, 0.87);
309
+ // Header Styles
310
+ $h1-fontsize: 4.2rem;
311
+ $h2-fontsize: 3.56rem;
312
+ $h3-fontsize: 2.92rem;
313
+ $h4-fontsize: 2.28rem;
314
+ $h5-fontsize: 1.64rem;
315
+ $h6-fontsize: 1.15rem;
316
+
317
+
318
+ // 21. Footer
319
+ // ==========================================================================
320
+
321
+ $footer-font-color: #fff;
322
+ $footer-bg-color: $primary-color;
323
+ $footer-copyright-font-color: rgba(255,255,255,.8);
324
+ $footer-copyright-bg-color: rgba(51,51,51,.08);
325
+
326
+
327
+ // 22. Flow Text
328
+ // ==========================================================================
329
+
330
+ $range : $large-screen - $small-screen;
331
+ $intervals: 20;
332
+ $interval-size: $range / $intervals;
333
+
334
+
335
+ // 23. Collections
336
+ // ==========================================================================
337
+
338
+ $collection-border-color: #e0e0e0;
339
+ $collection-bg-color: #fff;
340
+ $collection-active-bg-color: $secondary-color;
341
+ $collection-active-color: lighten($secondary-color, 55%);
342
+ $collection-hover-bg-color: #ddd;
343
+ $collection-link-color: $secondary-color;
344
+ $collection-line-height: 1.5rem;
345
+
346
+
347
+ // 24. Progress Bar
348
+ // ==========================================================================
349
+
350
+ $progress-bar-color: $secondary-color;
@@ -0,0 +1,41 @@
1
+ @charset "UTF-8";
2
+
3
+ // Color
4
+ @import "components/color-variables";
5
+ @import "components/color-classes";
6
+
7
+ // Variables;
8
+ @import "components/variables";
9
+
10
+ // Reset
11
+ @import "components/normalize";
12
+
13
+ // components
14
+ @import "components/global";
15
+ @import "components/badges";
16
+ @import "components/icons-material-design";
17
+ @import "components/grid";
18
+ @import "components/navbar";
19
+ @import "components/typography";
20
+ @import "components/transitions";
21
+ @import "components/cards";
22
+ @import "components/toast";
23
+ @import "components/tabs";
24
+ @import "components/tooltip";
25
+ @import "components/buttons";
26
+ @import "components/dropdown";
27
+ @import "components/waves";
28
+ @import "components/modal";
29
+ @import "components/collapsible";
30
+ @import "components/chips";
31
+ @import "components/materialbox";
32
+ @import "components/forms/forms";
33
+ @import "components/table_of_contents";
34
+ @import "components/sidenav";
35
+ @import "components/preloader";
36
+ @import "components/slider";
37
+ @import "components/carousel";
38
+ @import "components/tapTarget";
39
+ @import "components/pulse";
40
+ @import "components/datepicker";
41
+ @import "components/timepicker";
@@ -0,0 +1,51 @@
1
+ @charset "utf-8";
2
+
3
+ // Define defaults for each variable.
4
+
5
+ $base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
6
+ $base-font-size: 16px !default;
7
+ $base-font-weight: 400 !default;
8
+ $small-font-size: $base-font-size * 0.875 !default;
9
+ $base-line-height: 1.5 !default;
10
+
11
+ $spacing-unit: 30px !default;
12
+
13
+ $text-color: #111 !default;
14
+ $background-color: #fdfdfd !default;
15
+ $brand-color: #2a7ae2 !default;
16
+
17
+ $grey-color: #828282 !default;
18
+ $grey-color-light: lighten($grey-color, 40%) !default;
19
+ $grey-color-dark: darken($grey-color, 25%) !default;
20
+
21
+ $table-text-align: left !default;
22
+
23
+ // Width of the content area
24
+ $content-width: 800px !default;
25
+
26
+ $on-palm: 600px !default;
27
+ $on-laptop: 800px !default;
28
+
29
+ // Use media queries like this:
30
+ // @include media-query($on-palm) {
31
+ // .wrapper {
32
+ // padding-right: $spacing-unit / 2;
33
+ // padding-left: $spacing-unit / 2;
34
+ // }
35
+ // }
36
+ @mixin media-query($device) {
37
+ @media screen and (max-width: $device) {
38
+ @content;
39
+ }
40
+ }
41
+
42
+ @mixin relative-font-size($ratio) {
43
+ font-size: $base-font-size * $ratio;
44
+ }
45
+
46
+ // Import partials.
47
+ @import
48
+ "minima/base",
49
+ "minima/layout",
50
+ "minima/syntax-highlighting"
51
+ ;
@@ -0,0 +1,6 @@
1
+ M.AutoInit();
2
+
3
+ document.addEventListener('DOMContentLoaded', function() {
4
+ var elems = document.querySelectorAll('.sidenav');
5
+ var instances = M.Sidenav.init();
6
+ });