mithril-materialized 2.0.0-beta.5 → 2.0.0-beta.6
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.
- package/dist/advanced.css +1888 -0
- package/dist/breadcrumb.d.ts +53 -0
- package/dist/components.css +2310 -0
- package/dist/core.css +3402 -0
- package/dist/file-upload.d.ts +34 -0
- package/dist/forms.css +2284 -0
- package/dist/index.css +1262 -83
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.js +864 -17
- package/dist/index.js +875 -16
- package/dist/index.min.css +2 -2
- package/dist/index.umd.js +875 -16
- package/dist/pickers.css +487 -0
- package/dist/sidenav.d.ts +76 -0
- package/dist/theme-switcher.d.ts +49 -0
- package/dist/utilities.css +3197 -0
- package/dist/wizard.d.ts +58 -0
- package/package.json +11 -5
- package/sass/components/_breadcrumb.scss +248 -0
- package/sass/components/_buttons.scss +3 -3
- package/sass/components/_collapsible.scss +8 -8
- package/sass/components/_datepicker.scss +17 -15
- package/sass/components/_file-upload.scss +228 -0
- package/sass/components/_global.scss +7 -5
- package/sass/components/_modal.scss +5 -2
- package/sass/components/_navbar.scss +13 -5
- package/sass/components/_sidenav.scss +164 -7
- package/sass/components/_tabs.scss +5 -4
- package/sass/components/_theme-switcher.scss +120 -0
- package/sass/components/_theme-variables.scss +187 -0
- package/sass/components/_timepicker.scss +5 -5
- package/sass/components/_wizard.scss +416 -0
- package/sass/components/forms/_input-fields.scss +34 -12
- package/sass/components/forms/_radio-buttons.scss +10 -10
- package/sass/components/forms/_switches.scss +6 -6
- package/sass/materialize.scss +7 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/* Style Placeholders */
|
|
9
9
|
|
|
10
10
|
::placeholder {
|
|
11
|
-
color: variables.$placeholder-text-color;
|
|
11
|
+
color: var(--mm-text-hint, variables.$placeholder-text-color);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/* Text inputs */
|
|
@@ -30,7 +30,7 @@ textarea.materialize-textarea {
|
|
|
30
30
|
// General Styles
|
|
31
31
|
background-color: transparent;
|
|
32
32
|
border: none;
|
|
33
|
-
border-bottom: variables.$input-border;
|
|
33
|
+
border-bottom: 1px solid var(--mm-input-border, variables.$input-border);
|
|
34
34
|
border-radius: 0;
|
|
35
35
|
outline: none;
|
|
36
36
|
height: variables.$input-height;
|
|
@@ -41,29 +41,30 @@ textarea.materialize-textarea {
|
|
|
41
41
|
box-shadow: none;
|
|
42
42
|
box-sizing: content-box;
|
|
43
43
|
transition: box-shadow .3s, border .3s;
|
|
44
|
+
color: var(--mm-input-text, inherit);
|
|
44
45
|
|
|
45
46
|
// Disabled input style
|
|
46
47
|
&:disabled,
|
|
47
48
|
&[readonly="readonly"] {
|
|
48
|
-
color: variables.$input-disabled-color;
|
|
49
|
-
border-bottom: variables.$input-disabled-border;
|
|
49
|
+
color: var(--mm-text-disabled, variables.$input-disabled-color);
|
|
50
|
+
border-bottom: 1px dotted var(--mm-input-border, variables.$input-disabled-border);
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
// Disabled label style
|
|
53
54
|
&:disabled+label,
|
|
54
55
|
&[readonly="readonly"]+label {
|
|
55
|
-
color: variables.$input-disabled-color;
|
|
56
|
+
color: var(--mm-text-disabled, variables.$input-disabled-color);
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
// Focused input style
|
|
59
60
|
&:focus:not([readonly]) {
|
|
60
|
-
border-bottom: 1px solid variables.$input-focus-color;
|
|
61
|
-
box-shadow: 0 1px 0 0 variables.$input-focus-color;
|
|
61
|
+
border-bottom: 1px solid var(--mm-input-border-focus, variables.$input-focus-color);
|
|
62
|
+
box-shadow: 0 1px 0 0 var(--mm-input-border-focus, variables.$input-focus-color);
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
// Focused label style
|
|
65
66
|
&:focus:not([readonly])+label {
|
|
66
|
-
color: variables.$input-focus-color;
|
|
67
|
+
color: var(--mm-input-border-focus, variables.$input-focus-color);
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
// Hide helper text on data message
|
|
@@ -113,6 +114,27 @@ textarea.materialize-textarea {
|
|
|
113
114
|
& + label:after {
|
|
114
115
|
@extend %input-after-style !optional;
|
|
115
116
|
}
|
|
117
|
+
|
|
118
|
+
// Enhanced autofill prevention for all browsers including Edge
|
|
119
|
+
&:-webkit-autofill,
|
|
120
|
+
&:-webkit-autofill:hover,
|
|
121
|
+
&:-webkit-autofill:focus,
|
|
122
|
+
&:-webkit-autofill:active {
|
|
123
|
+
-webkit-box-shadow: 0 0 0 30px var(--mm-input-background, transparent) inset !important;
|
|
124
|
+
-webkit-text-fill-color: var(--mm-input-text, inherit) !important;
|
|
125
|
+
background-color: transparent !important;
|
|
126
|
+
color: var(--mm-input-text, inherit) !important;
|
|
127
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Edge specific autofill styles
|
|
131
|
+
&:-ms-input-placeholder {
|
|
132
|
+
color: var(--mm-text-hint, variables.$placeholder-text-color) !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&::-ms-input-placeholder {
|
|
136
|
+
color: var(--mm-text-hint, variables.$placeholder-text-color) !important;
|
|
137
|
+
}
|
|
116
138
|
}
|
|
117
139
|
|
|
118
140
|
|
|
@@ -217,7 +239,7 @@ textarea.materialize-textarea {
|
|
|
217
239
|
min-height: 18px;
|
|
218
240
|
display: block;
|
|
219
241
|
font-size: 12px;
|
|
220
|
-
color: rgba(0,0,0,.54);
|
|
242
|
+
color: var(--mm-text-secondary, rgba(0,0,0,.54));
|
|
221
243
|
}
|
|
222
244
|
|
|
223
245
|
// Prefix Icons
|
|
@@ -279,15 +301,15 @@ textarea.materialize-textarea {
|
|
|
279
301
|
}
|
|
280
302
|
|
|
281
303
|
&:focus:not(.browser-default) {
|
|
282
|
-
background-color: variables.$input-background;
|
|
304
|
+
background-color: var(--mm-input-background, variables.$input-background);
|
|
283
305
|
border: 0;
|
|
284
306
|
box-shadow: none;
|
|
285
|
-
color: #444;
|
|
307
|
+
color: var(--mm-input-text, #444);
|
|
286
308
|
|
|
287
309
|
& + label i,
|
|
288
310
|
& ~ .mdi-navigation-close,
|
|
289
311
|
& ~ .material-icons {
|
|
290
|
-
color: #444;
|
|
312
|
+
color: var(--mm-input-text, #444);
|
|
291
313
|
}
|
|
292
314
|
}
|
|
293
315
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
[type="radio"]:not(:checked) + span:before,
|
|
51
51
|
[type="radio"]:not(:checked) + span:after {
|
|
52
|
-
border: 2px solid variables.$radio-empty-color;
|
|
52
|
+
border: 2px solid var(--mm-text-secondary, variables.$radio-empty-color);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
[type="radio"]:not(:checked) + span:after {
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
[type="radio"]:checked + span:after,
|
|
65
65
|
[type="radio"].with-gap:checked + span:before,
|
|
66
66
|
[type="radio"].with-gap:checked + span:after {
|
|
67
|
-
border: variables.$radio-
|
|
67
|
+
border: 2px solid var(--mm-primary-color, variables.$radio-fill-color);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
[type="radio"]:checked + span:after,
|
|
71
71
|
[type="radio"].with-gap:checked + span:after {
|
|
72
|
-
background-color: variables.$radio-fill-color;
|
|
72
|
+
background-color: var(--mm-primary-color, variables.$radio-fill-color);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
[type="radio"]:checked + span:after {
|
|
@@ -88,31 +88,31 @@
|
|
|
88
88
|
|
|
89
89
|
/* Disabled Radio With gap */
|
|
90
90
|
[type="radio"].with-gap:disabled:checked + span:before {
|
|
91
|
-
border: 2px solid variables.$input-disabled-color;
|
|
91
|
+
border: 2px solid var(--mm-text-disabled, variables.$input-disabled-color);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
[type="radio"].with-gap:disabled:checked + span:after {
|
|
95
95
|
border: none;
|
|
96
|
-
background-color: variables.$input-disabled-color;
|
|
96
|
+
background-color: var(--mm-text-disabled, variables.$input-disabled-color);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/* Disabled style */
|
|
100
100
|
[type="radio"]:disabled:not(:checked) + span:before,
|
|
101
101
|
[type="radio"]:disabled:checked + span:before {
|
|
102
102
|
background-color: transparent;
|
|
103
|
-
border-color: variables.$input-disabled-color;
|
|
103
|
+
border-color: var(--mm-text-disabled, variables.$input-disabled-color);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
[type="radio"]:disabled + span {
|
|
107
|
-
color: variables.$input-disabled-color;
|
|
107
|
+
color: var(--mm-text-disabled, variables.$input-disabled-color);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
[type="radio"]:disabled:not(:checked) + span:before {
|
|
111
|
-
border-color: variables.$input-disabled-color;
|
|
111
|
+
border-color: var(--mm-text-disabled, variables.$input-disabled-color);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
[type="radio"]:disabled:checked + span:after {
|
|
115
|
-
background-color: variables.$input-disabled-color;
|
|
116
|
-
border-color: variables.$input-disabled-solid-color;
|
|
115
|
+
background-color: var(--mm-text-disabled, variables.$input-disabled-color);
|
|
116
|
+
border-color: var(--mm-text-disabled, variables.$input-disabled-solid-color);
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
height: 0;
|
|
21
21
|
|
|
22
22
|
&:checked + .lever {
|
|
23
|
-
background-color: variables.$switch-checked-lever-bg;
|
|
23
|
+
background-color: var(--mm-switch-checked-track, variables.$switch-checked-lever-bg);
|
|
24
24
|
|
|
25
25
|
&:before, &:after {
|
|
26
26
|
left: 18px;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&:after {
|
|
30
|
-
background-color: variables.$switch-bg-color;
|
|
30
|
+
background-color: var(--mm-switch-checked-thumb, variables.$switch-bg-color);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
position: relative;
|
|
39
39
|
width: 36px;
|
|
40
40
|
height: 14px;
|
|
41
|
-
background-color: variables.$switch-unchecked-lever-bg;
|
|
41
|
+
background-color: var(--mm-switch-unchecked-track, variables.$switch-unchecked-lever-bg);
|
|
42
42
|
border-radius: variables.$switch-radius;
|
|
43
43
|
margin-right: 10px;
|
|
44
44
|
transition: background 0.3s ease;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&:after {
|
|
65
|
-
background-color: variables.$switch-unchecked-bg;
|
|
65
|
+
background-color: var(--mm-switch-unchecked-thumb, variables.$switch-unchecked-bg);
|
|
66
66
|
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -83,10 +83,10 @@ input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before {
|
|
|
83
83
|
// Disabled Styles
|
|
84
84
|
.switch input[type=checkbox][disabled] + .lever {
|
|
85
85
|
cursor: default;
|
|
86
|
-
background-color: rgba(0,0,0,.12);
|
|
86
|
+
background-color: var(--mm-switch-disabled-track, rgba(0,0,0,.12));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.switch label input[type=checkbox][disabled] + .lever:after,
|
|
90
90
|
.switch label input[type=checkbox][disabled]:checked + .lever:after {
|
|
91
|
-
background-color: variables.$input-disabled-solid-color;
|
|
91
|
+
background-color: var(--mm-switch-disabled-thumb, variables.$input-disabled-solid-color);
|
|
92
92
|
}
|
package/sass/materialize.scss
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
|
|
3
|
+
// Theme Variables (must be first for CSS custom properties)
|
|
4
|
+
@use "components/theme-variables";
|
|
5
|
+
|
|
3
6
|
// Color
|
|
4
7
|
@use "components/color-variables";
|
|
5
8
|
@use "components/color-classes";
|
|
@@ -39,3 +42,7 @@
|
|
|
39
42
|
@use "components/pulse";
|
|
40
43
|
@use "components/datepicker";
|
|
41
44
|
@use "components/timepicker";
|
|
45
|
+
@use "components/theme-switcher";
|
|
46
|
+
@use "components/file-upload";
|
|
47
|
+
@use "components/breadcrumb";
|
|
48
|
+
@use "components/wizard";
|