mithril-materialized 1.4.2 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/autocomplete.d.ts +12 -4
  2. package/dist/button.d.ts +10 -10
  3. package/dist/carousel.d.ts +26 -7
  4. package/dist/chip.d.ts +2 -2
  5. package/dist/code-block.d.ts +2 -3
  6. package/dist/collapsible.d.ts +12 -7
  7. package/dist/collection.d.ts +8 -8
  8. package/dist/dropdown.d.ts +5 -5
  9. package/dist/floating-action-button.d.ts +9 -5
  10. package/dist/icon.d.ts +2 -2
  11. package/dist/index.css +7968 -2
  12. package/dist/index.d.ts +1 -2
  13. package/dist/index.esm.js +4211 -2
  14. package/dist/index.js +4265 -2
  15. package/dist/index.umd.js +4269 -2
  16. package/dist/input-options.d.ts +3 -1
  17. package/dist/input.d.ts +17 -12
  18. package/dist/label.d.ts +4 -5
  19. package/dist/material-box.d.ts +22 -4
  20. package/dist/material-icon.d.ts +14 -0
  21. package/dist/modal.d.ts +23 -7
  22. package/dist/option.d.ts +12 -11
  23. package/dist/pagination.d.ts +5 -9
  24. package/dist/parallax.d.ts +8 -6
  25. package/dist/pickers.d.ts +129 -5
  26. package/dist/radio.d.ts +10 -6
  27. package/dist/search-select.d.ts +2 -2
  28. package/dist/select.d.ts +5 -5
  29. package/dist/switch.d.ts +4 -5
  30. package/dist/tabs.d.ts +18 -5
  31. package/dist/utils.d.ts +17 -0
  32. package/package.json +35 -10
  33. package/sass/components/_badges.scss +59 -0
  34. package/sass/components/_buttons.scss +327 -0
  35. package/sass/components/_cards.scss +197 -0
  36. package/sass/components/_carousel.scss +92 -0
  37. package/sass/components/_chips.scss +92 -0
  38. package/sass/components/_collapsible.scss +94 -0
  39. package/sass/components/_color-classes.scss +34 -0
  40. package/sass/components/_color-variables.scss +371 -0
  41. package/sass/components/_datepicker.scss +251 -0
  42. package/sass/components/_dropdown.scss +90 -0
  43. package/sass/components/_global.scss +775 -0
  44. package/sass/components/_grid.scss +160 -0
  45. package/sass/components/_icons-material-design.scss +5 -0
  46. package/sass/components/_materialbox.scss +43 -0
  47. package/sass/components/_modal.scss +97 -0
  48. package/sass/components/_navbar.scss +211 -0
  49. package/sass/components/_normalize.scss +447 -0
  50. package/sass/components/_preloader.scss +336 -0
  51. package/sass/components/_pulse.scss +34 -0
  52. package/sass/components/_sidenav.scss +213 -0
  53. package/sass/components/_slider.scss +94 -0
  54. package/sass/components/_table_of_contents.scss +36 -0
  55. package/sass/components/_tabs.scss +102 -0
  56. package/sass/components/_tapTarget.scss +105 -0
  57. package/sass/components/_timepicker.scss +170 -0
  58. package/sass/components/_toast.scss +61 -0
  59. package/sass/components/_tooltip.scss +32 -0
  60. package/sass/components/_transitions.scss +13 -0
  61. package/sass/components/_typography.scss +61 -0
  62. package/sass/components/_variables.scss +352 -0
  63. package/sass/components/_waves.scss +114 -0
  64. package/sass/components/forms/_checkboxes.scss +203 -0
  65. package/sass/components/forms/_file-input.scss +50 -0
  66. package/sass/components/forms/_form-groups.scss +28 -0
  67. package/sass/components/forms/_forms.scss +24 -0
  68. package/sass/components/forms/_input-fields.scss +361 -0
  69. package/sass/components/forms/_radio-buttons.scss +118 -0
  70. package/sass/components/forms/_range.scss +164 -0
  71. package/sass/components/forms/_select.scss +193 -0
  72. package/sass/components/forms/_switches.scss +92 -0
  73. package/sass/materialize.scss +41 -0
  74. package/dist/index.css.map +0 -1
  75. package/dist/index.esm.js.map +0 -1
  76. package/dist/index.js.map +0 -1
  77. package/dist/index.modern.js +0 -2
  78. package/dist/index.modern.js.map +0 -1
  79. package/dist/index.umd.js.map +0 -1
  80. package/dist/map-editor.d.ts +0 -63
  81. package/dist/timeline.d.ts +0 -24
@@ -0,0 +1,352 @@
1
+ @use "sass:color";
2
+ @use 'sass:math';
3
+ @use "color-variables";
4
+
5
+ // ==========================================================================
6
+ // Materialize variables
7
+ // ==========================================================================
8
+ //
9
+ // Table of Contents:
10
+ //
11
+ // 1. Colors
12
+ // 2. Badges
13
+ // 3. Buttons
14
+ // 4. Cards
15
+ // 5. Carousel
16
+ // 6. Collapsible
17
+ // 7. Chips
18
+ // 8. Date + Time Picker
19
+ // 9. Dropdown
20
+ // 10. Forms
21
+ // 11. Global
22
+ // 12. Grid
23
+ // 13. Navigation Bar
24
+ // 14. Side Navigation
25
+ // 15. Photo Slider
26
+ // 16. Spinners | Loaders
27
+ // 17. Tabs
28
+ // 18. Tables
29
+ // 19. Toasts
30
+ // 20. Typography
31
+ // 21. Footer
32
+ // 22. Flow Text
33
+ // 23. Collections
34
+ // 24. Progress Bar
35
+
36
+
37
+ // 1. Colors
38
+ // ==========================================================================
39
+
40
+ $primary-color: color-variables.color("materialize-red", "lighten-2") !default;
41
+ $primary-color-light: color.adjust($primary-color, $lightness: 15%) !default;
42
+ $primary-color-dark: color.adjust($primary-color, $lightness: -15%) !default;
43
+
44
+ $secondary-color: color-variables.color("teal", "lighten-1") !default;
45
+ $success-color: color-variables.color("green", "base") !default;
46
+ $error-color: color-variables.color("red", "base") !default;
47
+ $link-color: color-variables.color("light-blue", "darken-1") !default;
48
+
49
+
50
+ // 2. Badges
51
+ // ==========================================================================
52
+
53
+ $badge-bg-color: $secondary-color !default;
54
+ $badge-height: 22px !default;
55
+
56
+
57
+ // 3. Buttons
58
+ // ==========================================================================
59
+
60
+ // Shared styles
61
+ $button-border: none !default;
62
+ $button-background-focus: color.adjust($secondary-color, $lightness: 4%) !default;
63
+ $button-font-size: 14px !default;
64
+ $button-icon-font-size: 1.3rem !default;
65
+ $button-height: 36px !default;
66
+ $button-padding: 0 16px !default;
67
+ $button-radius: 2px !default;
68
+
69
+ // Disabled styles
70
+ $button-disabled-background: #DFDFDF !default;
71
+ $button-disabled-color: #9F9F9F !default;
72
+
73
+ // Raised buttons
74
+ $button-raised-background: $secondary-color !default;
75
+ $button-raised-background-hover: color.adjust($button-raised-background, $lightness: 5%) !default;
76
+ $button-raised-color: #fff !default;
77
+
78
+ // Large buttons
79
+ $button-large-font-size: 15px !default;
80
+ $button-large-icon-font-size: 1.6rem !default;
81
+ $button-large-height: $button-height * 1.5 !default;
82
+ $button-floating-large-size: 56px !default;
83
+
84
+ // Small buttons
85
+ $button-small-font-size: 13px !default;
86
+ $button-small-icon-font-size: 1.2rem !default;
87
+ $button-small-height: $button-height * .9 !default;
88
+ $button-floating-small-size: $button-height * .9 !default;
89
+
90
+ // Flat buttons
91
+ $button-flat-color: #343434 !default;
92
+ $button-flat-disabled-color: color.adjust(#999, $lightness: 10%) !default;
93
+
94
+ // Floating buttons
95
+ $button-floating-background: $secondary-color !default;
96
+ $button-floating-background-hover: $button-floating-background !default;
97
+ $button-floating-color: #fff !default;
98
+ $button-floating-size: 40px !default;
99
+ $button-floating-radius: 50% !default;
100
+
101
+
102
+ // 4. Cards
103
+ // ==========================================================================
104
+
105
+ $card-padding: 24px !default;
106
+ $card-bg-color: #fff !default;
107
+ $card-link-color: color-variables.color("orange", "accent-2") !default;
108
+ $card-link-color-light: color.adjust($card-link-color, $lightness: 20%) !default;
109
+
110
+
111
+ // 5. Carousel
112
+ // ==========================================================================
113
+
114
+ $carousel-height: 400px !default;
115
+ $carousel-item-height: math.div($carousel-height, 2) !default;
116
+ $carousel-item-width: $carousel-item-height !default;
117
+
118
+
119
+ // 6. Collapsible
120
+ // ==========================================================================
121
+
122
+ $collapsible-height: 3rem !default;
123
+ $collapsible-line-height: $collapsible-height !default;
124
+ $collapsible-header-color: #fff !default;
125
+ $collapsible-border-color: #ddd !default;
126
+
127
+
128
+ // 7. Chips
129
+ // ==========================================================================
130
+
131
+ $chip-bg-color: #e4e4e4 !default;
132
+ $chip-border-color: #9e9e9e !default;
133
+ $chip-selected-color: #26a69a !default;
134
+ $chip-margin: 5px !default;
135
+
136
+
137
+ // 8. Date + Time Picker
138
+ // ==========================================================================
139
+
140
+ $datepicker-display-font-size: 2.8rem;
141
+ $datepicker-calendar-header-color: #999;
142
+ $datepicker-weekday-color: rgba(0, 0, 0, .87) !default;
143
+ $datepicker-weekday-bg: color.adjust($secondary-color, $lightness: -7%) !default;
144
+ $datepicker-date-bg: $secondary-color !default;
145
+ $datepicker-year: rgba(255, 255, 255, .7) !default;
146
+ $datepicker-focus: rgba(0,0,0, .05) !default;
147
+ $datepicker-selected: $secondary-color !default;
148
+ $datepicker-selected-outfocus: color.adjust(color.adjust($secondary-color, $lightness: 35%), $saturation: -15%) !default;
149
+ $datepicker-day-focus: color.adjust(color.adjust($secondary-color, $saturation: -5%), $alpha: -.75) !default;
150
+ $datepicker-disabled-day-color: rgba(0, 0, 0, .3) !default;
151
+
152
+ $timepicker-clock-color: rgba(0, 0, 0, .87) !default;
153
+ $timepicker-clock-plate-bg: #eee !default;
154
+
155
+
156
+ // 9. Dropdown
157
+ // ==========================================================================
158
+
159
+ $dropdown-bg-color: #fff !default;
160
+ $dropdown-hover-bg-color: #eee !default;
161
+ $dropdown-color: $secondary-color !default;
162
+ $dropdown-item-height: 50px !default;
163
+
164
+
165
+ // 10. Forms
166
+ // ==========================================================================
167
+
168
+ // Text Inputs + Textarea
169
+ $input-height: 3rem !default;
170
+ $input-border-color: color-variables.color("grey", "base") !default;
171
+ $input-border: 1px solid $input-border-color !default;
172
+ $input-background: #fff !default;
173
+ $input-error-color: $error-color !default;
174
+ $input-success-color: $success-color !default;
175
+ $input-focus-color: $secondary-color !default;
176
+ $input-font-size: 16px !default;
177
+ $input-margin-bottom: 8px;
178
+ $input-margin: 0 0 $input-margin-bottom 0 !default;
179
+ $input-padding: 0 !default;
180
+ $label-font-size: .8rem !default;
181
+ $input-disabled-color: rgba(0,0,0, .42) !default;
182
+ $input-disabled-solid-color: #949494 !default;
183
+ $input-disabled-border: 1px dotted $input-disabled-color !default;
184
+ $input-invalid-border: 1px solid $input-error-color !default;
185
+ $input-icon-size: 2rem;
186
+ $placeholder-text-color: color.adjust($input-border-color, $lightness: 20%) !default;
187
+
188
+ // Radio Buttons
189
+ $radio-fill-color: $secondary-color !default;
190
+ $radio-empty-color: #5a5a5a !default;
191
+ $radio-border: 2px solid $radio-fill-color !default;
192
+
193
+ // Range
194
+ $range-height: 14px !default;
195
+ $range-width: 14px !default;
196
+ $track-height: 3px !default;
197
+
198
+ // Select
199
+ $select-border: 1px solid #f2f2f2 !default;
200
+ $select-background: rgba(255, 255, 255, 0.90) !default;
201
+ $select-focus: 1px solid color.adjust($secondary-color, $lightness: 47%) !default;
202
+ $select-option-hover: rgba(0,0,0,.08) !default;
203
+ $select-option-focus: rgba(0,0,0,.08) !default;
204
+ $select-option-selected: rgba(0,0,0,.03) !default;
205
+ $select-padding: 5px !default;
206
+ $select-radius: 2px !default;
207
+ $select-disabled-color: rgba(0,0,0,.3) !default;
208
+
209
+ // Switches
210
+ $switch-bg-color: $secondary-color !default;
211
+ $switch-checked-lever-bg: color.adjust(color.adjust($switch-bg-color, $lightness: 25%), $saturation: -25%) !default;
212
+ $switch-unchecked-bg: #F1F1F1 !default;
213
+ $switch-unchecked-lever-bg: rgba(0,0,0,.38) !default;
214
+ $switch-radius: 15px !default;
215
+
216
+
217
+ // 11. Global
218
+ // ==========================================================================
219
+
220
+ // Media Query Ranges
221
+ $small-screen-up: 601px !default;
222
+ $medium-screen-up: 993px !default;
223
+ $large-screen-up: 1201px !default;
224
+ $small-screen: 600px !default;
225
+ $medium-screen: 992px !default;
226
+ $large-screen: 1200px !default;
227
+
228
+ $medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
229
+ $large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
230
+ $extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
231
+ $small-and-down: "only screen and (max-width : #{$small-screen})" !default;
232
+ $medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
233
+ $medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
234
+
235
+
236
+ // 12. Grid
237
+ // ==========================================================================
238
+
239
+ $num-cols: 12 !default;
240
+ $gutter-width: 1.5rem !default;
241
+ $element-top-margin: math.div($gutter-width, 3) !default;
242
+ $element-bottom-margin: math.div(($gutter-width*2), 3) !default;
243
+
244
+
245
+ // 13. Navigation Bar
246
+ // ==========================================================================
247
+
248
+ $navbar-height: 64px !default;
249
+ $navbar-line-height: $navbar-height !default;
250
+ $navbar-height-mobile: 56px !default;
251
+ $navbar-line-height-mobile: $navbar-height-mobile !default;
252
+ $navbar-font-size: 1rem !default;
253
+ $navbar-font-color: #fff !default;
254
+ $navbar-brand-font-size: 2.1rem !default;
255
+
256
+ // 14. Side Navigation
257
+ // ==========================================================================
258
+
259
+ $sidenav-width: 300px !default;
260
+ $sidenav-font-size: 14px !default;
261
+ $sidenav-font-color: rgba(0,0,0,.87) !default;
262
+ $sidenav-bg-color: #fff !default;
263
+ $sidenav-padding: 16px !default;
264
+ $sidenav-item-height: 48px !default;
265
+ $sidenav-line-height: $sidenav-item-height !default;
266
+
267
+
268
+ // 15. Photo Slider
269
+ // ==========================================================================
270
+
271
+ $slider-bg-color: color-variables.color('grey', 'base') !default;
272
+ $slider-bg-color-light: color-variables.color('grey', 'lighten-2') !default;
273
+ $slider-indicator-color: color-variables.color('green', 'base') !default;
274
+
275
+
276
+ // 16. Spinners | Loaders
277
+ // ==========================================================================
278
+
279
+ $spinner-default-color: $secondary-color !default;
280
+
281
+
282
+ // 17. Tabs
283
+ // ==========================================================================
284
+
285
+ $tabs-underline-color: $primary-color-light !default;
286
+ $tabs-text-color: $primary-color !default;
287
+ $tabs-bg-color: #fff !default;
288
+
289
+
290
+ // 18. Tables
291
+ // ==========================================================================
292
+
293
+ $table-border-color: rgba(0,0,0,.12) !default;
294
+ $table-striped-color: rgba(242, 242, 242, 0.5) !default;
295
+
296
+
297
+ // 19. Toasts
298
+ // ==========================================================================
299
+
300
+ $toast-height: 48px !default;
301
+ $toast-color: #323232 !default;
302
+ $toast-text-color: #fff !default;
303
+ $toast-action-color: #eeff41;
304
+
305
+
306
+ // 20. Typography
307
+ // ==========================================================================
308
+
309
+ $font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default;
310
+ $off-black: rgba(0, 0, 0, 0.87) !default;
311
+ // Header Styles
312
+ $h1-fontsize: 4.2rem !default;
313
+ $h2-fontsize: 3.56rem !default;
314
+ $h3-fontsize: 2.92rem !default;
315
+ $h4-fontsize: 2.28rem !default;
316
+ $h5-fontsize: 1.64rem !default;
317
+ $h6-fontsize: 1.15rem !default;
318
+
319
+
320
+ // 21. Footer
321
+ // ==========================================================================
322
+
323
+ $footer-font-color: #fff !default;
324
+ $footer-bg-color: $primary-color !default;
325
+ $footer-copyright-font-color: rgba(255,255,255,.8) !default;
326
+ $footer-copyright-bg-color: rgba(51,51,51,.08) !default;
327
+
328
+
329
+ // 22. Flow Text
330
+ // ==========================================================================
331
+
332
+ $range : $large-screen - $small-screen !default;
333
+ $intervals: 20 !default;
334
+ $interval-size: calc($range / $intervals) !default;
335
+
336
+
337
+ // 23. Collections
338
+ // ==========================================================================
339
+
340
+ $collection-border-color: #e0e0e0 !default;
341
+ $collection-bg-color: #fff !default;
342
+ $collection-active-bg-color: $secondary-color !default;
343
+ $collection-active-color: color.adjust($secondary-color, $lightness: 55%) !default;
344
+ $collection-hover-bg-color: #ddd !default;
345
+ $collection-link-color: $secondary-color !default;
346
+ $collection-line-height: 1.5rem !default;
347
+
348
+
349
+ // 24. Progress Bar
350
+ // ==========================================================================
351
+
352
+ $progress-bar-color: $secondary-color !default;
@@ -0,0 +1,114 @@
1
+
2
+ /*!
3
+ * Waves v0.6.0
4
+ * http://fian.my.id/Waves
5
+ *
6
+ * Copyright 2014 Alfiana E. Sibuea and other contributors
7
+ * Released under the MIT license
8
+ * https://github.com/fians/Waves/blob/master/LICENSE
9
+ */
10
+
11
+
12
+ .waves-effect {
13
+ position: relative;
14
+ cursor: pointer;
15
+ display: inline-block;
16
+ overflow: hidden;
17
+ user-select: none;
18
+ -webkit-tap-highlight-color: transparent;
19
+ vertical-align: middle;
20
+ z-index: 1;
21
+ transition: .3s ease-out;
22
+
23
+ .waves-ripple {
24
+ position: absolute;
25
+ border-radius: 50%;
26
+ width: 20px;
27
+ height: 20px;
28
+ margin-top:-10px;
29
+ margin-left:-10px;
30
+ opacity: 0;
31
+
32
+ background: rgba(0,0,0,0.2);
33
+ transition: all 0.7s ease-out;
34
+ transition-property: transform, opacity;
35
+ transform: scale(0);
36
+ pointer-events: none;
37
+ }
38
+
39
+ // Waves Colors
40
+ &.waves-light .waves-ripple {
41
+ background-color: rgba(255, 255, 255, 0.45);
42
+ }
43
+ &.waves-red .waves-ripple {
44
+ background-color: rgba(244, 67, 54, .70);
45
+ }
46
+ &.waves-yellow .waves-ripple {
47
+ background-color: rgba(255, 235, 59, .70);
48
+ }
49
+ &.waves-orange .waves-ripple {
50
+ background-color: rgba(255, 152, 0, .70);
51
+ }
52
+ &.waves-purple .waves-ripple {
53
+ background-color: rgba(156, 39, 176, 0.70);
54
+ }
55
+ &.waves-green .waves-ripple {
56
+ background-color: rgba(76, 175, 80, 0.70);
57
+ }
58
+ &.waves-teal .waves-ripple {
59
+ background-color: rgba(0, 150, 136, 0.70);
60
+ }
61
+
62
+ // Style input button bug.
63
+ input[type="button"], input[type="reset"], input[type="submit"] {
64
+ border: 0;
65
+ font-style: normal;
66
+ font-size: inherit;
67
+ text-transform: inherit;
68
+ background: none;
69
+ }
70
+
71
+ img {
72
+ position: relative;
73
+ z-index: -1;
74
+ }
75
+ }
76
+
77
+ .waves-notransition {
78
+ transition: none #{"!important"};
79
+ }
80
+
81
+ .waves-circle {
82
+ transform: translateZ(0);
83
+ -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
84
+ }
85
+
86
+ .waves-input-wrapper {
87
+ border-radius: 0.2em;
88
+ vertical-align: bottom;
89
+
90
+ .waves-button-input {
91
+ position: relative;
92
+ top: 0;
93
+ left: 0;
94
+ z-index: 1;
95
+ }
96
+ }
97
+
98
+ .waves-circle {
99
+ text-align: center;
100
+ width: 2.5em;
101
+ height: 2.5em;
102
+ line-height: 2.5em;
103
+ border-radius: 50%;
104
+ -webkit-mask-image: none;
105
+ }
106
+
107
+ .waves-block {
108
+ display: block;
109
+ }
110
+
111
+ /* Firefox Bug: link not triggered */
112
+ .waves-effect .waves-ripple {
113
+ z-index: -1;
114
+ }
@@ -0,0 +1,203 @@
1
+ @use "../variables";
2
+
3
+ /* Checkboxes
4
+ ========================================================================== */
5
+
6
+ /* Remove default checkbox */
7
+ [type="checkbox"]:not(:checked),
8
+ [type="checkbox"]:checked {
9
+ position: absolute;
10
+ opacity: 0;
11
+ pointer-events: none;
12
+ }
13
+
14
+ // Checkbox Styles
15
+ [type="checkbox"] {
16
+ // Text Label Style
17
+ + span:not(.lever) {
18
+ position: relative;
19
+ padding-left: 35px;
20
+ cursor: pointer;
21
+ display: inline-block;
22
+ height: 25px;
23
+ line-height: 25px;
24
+ font-size: 1rem;
25
+ user-select: none;
26
+ }
27
+
28
+ /* checkbox aspect */
29
+ + span:not(.lever):before,
30
+ &:not(.filled-in) + span:not(.lever):after {
31
+ content: '';
32
+ position: absolute;
33
+ top: 0;
34
+ left: 0;
35
+ width: 18px;
36
+ height: 18px;
37
+ z-index: 0;
38
+ border: 2px solid variables.$radio-empty-color;
39
+ border-radius: 1px;
40
+ margin-top: 3px;
41
+ transition: .2s;
42
+ }
43
+
44
+ &:not(.filled-in) + span:not(.lever):after {
45
+ border: 0;
46
+ transform: scale(0);
47
+ }
48
+
49
+ &:not(:checked):disabled + span:not(.lever):before {
50
+ border: none;
51
+ background-color: variables.$input-disabled-color;
52
+ }
53
+
54
+ // Focused styles
55
+ &.tabbed:focus + span:not(.lever):after {
56
+ transform: scale(1);
57
+ border: 0;
58
+ border-radius: 50%;
59
+ box-shadow: 0 0 0 10px rgba(0,0,0,.1);
60
+ background-color: rgba(0,0,0,.1);
61
+ }
62
+ }
63
+
64
+ [type="checkbox"]:checked {
65
+ + span:not(.lever):before {
66
+ top: -4px;
67
+ left: -5px;
68
+ width: 12px;
69
+ height: 22px;
70
+ border-top: 2px solid transparent;
71
+ border-left: 2px solid transparent;
72
+ border-right: variables.$radio-border;
73
+ border-bottom: variables.$radio-border;
74
+ transform: rotate(40deg);
75
+ backface-visibility: hidden;
76
+ transform-origin: 100% 100%;
77
+ }
78
+
79
+ &:disabled + span:before {
80
+ border-right: 2px solid variables.$input-disabled-color;
81
+ border-bottom: 2px solid variables.$input-disabled-color;
82
+ }
83
+ }
84
+
85
+ /* Indeterminate checkbox */
86
+ [type="checkbox"]:indeterminate {
87
+ + span:not(.lever):before {
88
+ top: -11px;
89
+ left: -12px;
90
+ width: 10px;
91
+ height: 22px;
92
+ border-top: none;
93
+ border-left: none;
94
+ border-right: variables.$radio-border;
95
+ border-bottom: none;
96
+ transform: rotate(90deg);
97
+ backface-visibility: hidden;
98
+ transform-origin: 100% 100%;
99
+ }
100
+
101
+ // Disabled indeterminate
102
+ &:disabled + span:not(.lever):before {
103
+ border-right: 2px solid variables.$input-disabled-color;
104
+ background-color: transparent;
105
+ }
106
+ }
107
+
108
+ // Filled in Style
109
+ [type="checkbox"].filled-in {
110
+ // General
111
+ + span:not(.lever):after {
112
+ border-radius: 2px;
113
+ }
114
+
115
+ + span:not(.lever):before,
116
+ + span:not(.lever):after {
117
+ content: '';
118
+ left: 0;
119
+ position: absolute;
120
+ /* .1s delay is for check animation */
121
+ transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
122
+ z-index: 1;
123
+ }
124
+
125
+ // Unchecked style
126
+ &:not(:checked) + span:not(.lever):before {
127
+ width: 0;
128
+ height: 0;
129
+ border: 3px solid transparent;
130
+ left: 6px;
131
+ top: 10px;
132
+ transform: rotateZ(37deg);
133
+ transform-origin: 100% 100%;
134
+ }
135
+
136
+ &:not(:checked) + span:not(.lever):after {
137
+ height: 20px;
138
+ width: 20px;
139
+ background-color: transparent;
140
+ border: 2px solid variables.$radio-empty-color;
141
+ top: 0px;
142
+ z-index: 0;
143
+ }
144
+
145
+ // Checked style
146
+ &:checked {
147
+ + span:not(.lever):before {
148
+ top: 0;
149
+ left: 1px;
150
+ width: 8px;
151
+ height: 13px;
152
+ border-top: 2px solid transparent;
153
+ border-left: 2px solid transparent;
154
+ border-right: 2px solid variables.$input-background;
155
+ border-bottom: 2px solid variables.$input-background;
156
+ transform: rotateZ(37deg);
157
+ transform-origin: 100% 100%;
158
+ }
159
+
160
+ + span:not(.lever):after {
161
+ top: 0;
162
+ width: 20px;
163
+ height: 20px;
164
+ border: 2px solid variables.$secondary-color;
165
+ background-color: variables.$secondary-color;
166
+ z-index: 0;
167
+ }
168
+ }
169
+
170
+ // Focused styles
171
+ &.tabbed:focus + span:not(.lever):after {
172
+ border-radius: 2px;
173
+ border-color: variables.$radio-empty-color;
174
+ background-color: rgba(0,0,0,.1);
175
+ }
176
+
177
+ &.tabbed:checked:focus + span:not(.lever):after {
178
+ border-radius: 2px;
179
+ background-color: variables.$secondary-color;
180
+ border-color: variables.$secondary-color;
181
+ }
182
+
183
+ // Disabled style
184
+ &:disabled:not(:checked) + span:not(.lever):before {
185
+ background-color: transparent;
186
+ border: 2px solid transparent;
187
+ }
188
+
189
+ &:disabled:not(:checked) + span:not(.lever):after {
190
+ border-color: transparent;
191
+ background-color: variables.$input-disabled-solid-color;
192
+ }
193
+
194
+ &:disabled:checked + span:not(.lever):before {
195
+ background-color: transparent;
196
+ }
197
+
198
+ &:disabled:checked + span:not(.lever):after {
199
+ background-color: variables.$input-disabled-solid-color;
200
+ border-color: variables.$input-disabled-solid-color;
201
+ }
202
+ }
203
+
@@ -0,0 +1,50 @@
1
+ @use "../variables";
2
+
3
+ /* File Input
4
+ ========================================================================== */
5
+
6
+ .file-field {
7
+ position: relative;
8
+
9
+ .file-path-wrapper {
10
+ overflow: hidden;
11
+ padding-left: 10px;
12
+ }
13
+
14
+ input.file-path { width: 100%; }
15
+
16
+ .btn {
17
+ float: left;
18
+ height: variables.$input-height;
19
+ line-height: variables.$input-height;
20
+ }
21
+
22
+ span {
23
+ cursor: pointer;
24
+ }
25
+
26
+ input[type=file] {
27
+
28
+ // Needed to override webkit button
29
+ &::-webkit-file-upload-button {
30
+ display: none;
31
+ }
32
+
33
+ position: absolute;
34
+ top: 0;
35
+ right: 0;
36
+ left: 0;
37
+ bottom: 0;
38
+ width: 100%;
39
+ margin: 0;
40
+ padding: 0;
41
+ font-size: 20px;
42
+ cursor: pointer;
43
+ opacity: 0;
44
+ filter: alpha(opacity=0);
45
+ }
46
+
47
+ & .close {
48
+ height: 20px;
49
+ }
50
+ }