@materializecss/materialize 2.1.1 → 2.2.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.
- package/README.md +7 -14
- package/dist/css/materialize.css +213 -103
- package/dist/css/materialize.min.css +2 -2
- package/dist/css/materialize.min.css.map +1 -1
- package/dist/js/materialize.cjs.js +1399 -1066
- package/dist/js/materialize.d.ts +738 -580
- package/dist/js/materialize.js +1399 -1066
- package/dist/js/materialize.min.js +2 -2
- package/dist/js/materialize.mjs +1400 -1065
- package/package.json +11 -8
- package/sass/components/_badges.scss +5 -0
- package/sass/components/_buttons.scss +44 -12
- package/sass/components/_cards.scss +18 -6
- package/sass/components/_chips.scss +9 -3
- package/sass/components/_collapsible.scss +12 -6
- package/sass/components/_datepicker.scss +6 -0
- package/sass/components/_modal.scss +32 -65
- package/sass/components/_tabs.scss +31 -5
- package/sass/components/_timepicker.scss +95 -23
- package/sass/components/forms/_input-fields.scss +53 -23
- package/dist/materialize-src-v2.1.1.zip +0 -0
- package/dist/materialize-v2.1.1.zip +0 -0
|
@@ -17,77 +17,116 @@
|
|
|
17
17
|
|
|
18
18
|
/* Clock Digital Display */
|
|
19
19
|
.timepicker-digital-display {
|
|
20
|
-
width:
|
|
20
|
+
width: auto;
|
|
21
21
|
flex: 1 auto;
|
|
22
22
|
background-color: var(--md-sys-color-primary);;
|
|
23
|
-
padding:
|
|
23
|
+
padding: 2rem .67rem .67rem .67rem;
|
|
24
24
|
font-weight: 300;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.timepicker-text-container {
|
|
28
28
|
font-size: 4rem;
|
|
29
|
-
|
|
30
|
-
text-align: center;
|
|
29
|
+
text-align: left;
|
|
31
30
|
color: var(--font-on-primary-color-medium);
|
|
32
31
|
font-weight: 400;
|
|
33
32
|
position: relative;
|
|
34
33
|
user-select: none;
|
|
34
|
+
padding: 1rem 1rem 1.5rem 1rem;
|
|
35
35
|
|
|
36
36
|
input[type=text]{
|
|
37
37
|
height: 4rem;
|
|
38
|
-
color:
|
|
38
|
+
color: var(--md-sys-color-secondary);
|
|
39
39
|
border-bottom: 0px;
|
|
40
40
|
font-size: 4rem;
|
|
41
41
|
direction: ltr;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
.timepicker-display-column {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.timepicker-input-hours-wrapper,
|
|
50
|
+
.timepicker-input-minutes-wrapper {
|
|
51
|
+
width: 6.9rem;
|
|
52
|
+
height: 5.2rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
45
55
|
.timepicker-input-hours,
|
|
46
56
|
.timepicker-input-minutes,
|
|
47
57
|
.timepicker-span-am-pm div {
|
|
48
58
|
cursor: pointer;
|
|
49
59
|
}
|
|
50
60
|
|
|
51
|
-
input[type=text].timepicker-input-hours
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
input[type=text].timepicker-input-hours,
|
|
62
|
+
input[type=text].timepicker-input-minutes {
|
|
63
|
+
height: 100%;
|
|
64
|
+
padding: .8rem;
|
|
65
|
+
border: 0;
|
|
66
|
+
text-align: center;
|
|
55
67
|
}
|
|
56
68
|
|
|
57
|
-
|
|
58
|
-
width:
|
|
59
|
-
|
|
69
|
+
.timepicker-input-divider-wrapper {
|
|
70
|
+
width: 1.6rem;
|
|
71
|
+
text-align: center;
|
|
60
72
|
}
|
|
61
73
|
|
|
62
74
|
input[type=text].text-primary {
|
|
63
|
-
color:
|
|
75
|
+
color: var(--md-sys-color-on-background);
|
|
64
76
|
}
|
|
65
77
|
|
|
66
78
|
.timepicker-display-am-pm {
|
|
67
79
|
font-size: 1.3rem;
|
|
68
80
|
position: absolute;
|
|
81
|
+
top: 1rem;
|
|
69
82
|
right: 1rem;
|
|
70
|
-
bottom: 1rem;
|
|
71
83
|
font-weight: 400;
|
|
72
84
|
}
|
|
73
85
|
|
|
86
|
+
.timepicker-span-am-pm {
|
|
87
|
+
height: 5.2rem;
|
|
88
|
+
max-width: 3.5rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.timepicker-modal .am-btn,
|
|
92
|
+
.timepicker-modal .pm-btn {
|
|
93
|
+
width: 3.6rem;
|
|
94
|
+
height: 50%;
|
|
95
|
+
padding-left: calc(var(--btn-padding) / 1.6);
|
|
96
|
+
padding-right: calc(var(--btn-padding) / 1.6);
|
|
97
|
+
line-height: 2rem;
|
|
98
|
+
vertical-align: middle;
|
|
99
|
+
text-align: center;
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.timepicker-modal .am-btn {
|
|
105
|
+
border-bottom-right-radius: 0;
|
|
106
|
+
border-bottom-left-radius: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.timepicker-modal .pm-btn {
|
|
110
|
+
border-top: 0;
|
|
111
|
+
border-top-left-radius: 0;
|
|
112
|
+
border-top-right-radius: 0;
|
|
113
|
+
}
|
|
74
114
|
|
|
75
115
|
/* Analog Clock Display */
|
|
76
116
|
.timepicker-analog-display {
|
|
77
117
|
flex: 2.5 auto;
|
|
118
|
+
padding: .67rem;
|
|
78
119
|
background-color: var(--md-sys-color-surface);
|
|
79
120
|
}
|
|
80
121
|
|
|
81
122
|
.timepicker-plate {
|
|
82
123
|
background-color: rgba(0, 0, 0, 0.09);
|
|
83
124
|
border-radius: 50%;
|
|
84
|
-
width:
|
|
85
|
-
height:
|
|
125
|
+
width: 260px;
|
|
126
|
+
height: 260px;
|
|
86
127
|
overflow: visible;
|
|
87
128
|
position: relative;
|
|
88
|
-
margin:
|
|
89
|
-
margin-top: 25px;
|
|
90
|
-
margin-bottom: 5px;
|
|
129
|
+
margin: 2rem 1.6rem 1.6rem 1.6rem;
|
|
91
130
|
user-select: none;
|
|
92
131
|
}
|
|
93
132
|
|
|
@@ -184,24 +223,57 @@ input[type=text].text-primary {
|
|
|
184
223
|
}
|
|
185
224
|
|
|
186
225
|
/* Media Queries */
|
|
187
|
-
@media #{$
|
|
226
|
+
@media #{$large-and-up} {
|
|
188
227
|
.timepicker-modal {
|
|
189
|
-
|
|
228
|
+
width: auto;
|
|
229
|
+
max-width: 620px;
|
|
190
230
|
}
|
|
191
231
|
|
|
192
232
|
.timepicker-container.modal-content {
|
|
193
233
|
flex-direction: row;
|
|
194
234
|
}
|
|
195
235
|
|
|
236
|
+
.timepicker-digital-display {
|
|
237
|
+
padding: .67rem;
|
|
238
|
+
}
|
|
239
|
+
|
|
196
240
|
.timepicker-text-container {
|
|
197
|
-
top:
|
|
241
|
+
top: 31%;
|
|
242
|
+
text-align: center;
|
|
198
243
|
}
|
|
199
244
|
|
|
200
245
|
.timepicker-display-am-pm {
|
|
201
246
|
position: relative;
|
|
247
|
+
top: auto;
|
|
202
248
|
right: auto;
|
|
203
|
-
bottom: auto;
|
|
204
249
|
text-align: center;
|
|
205
250
|
margin-top: 1.2rem;
|
|
206
251
|
}
|
|
252
|
+
|
|
253
|
+
.timepicker-span-am-pm {
|
|
254
|
+
max-width: unset;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.timepicker-modal .am-btn,
|
|
258
|
+
.timepicker-modal .pm-btn {
|
|
259
|
+
width: auto;
|
|
260
|
+
padding-left: var(--btn-padding);
|
|
261
|
+
padding-right: var(--btn-padding);
|
|
262
|
+
border-radius: var(--btn-border-radius);
|
|
263
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
264
|
+
line-height: inherit;
|
|
265
|
+
vertical-align: top;
|
|
266
|
+
text-align: inherit;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.timepicker-modal .am-btn {
|
|
270
|
+
border-top-right-radius: 0;
|
|
271
|
+
border-bottom-right-radius: 0;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.timepicker-modal .pm-btn {
|
|
275
|
+
border-left: 0;
|
|
276
|
+
border-bottom-left-radius: 0;
|
|
277
|
+
border-top-left-radius: 0;
|
|
278
|
+
}
|
|
207
279
|
}
|
|
@@ -17,45 +17,32 @@ input[type=month]:not(.browser-default),
|
|
|
17
17
|
input[type=tel]:not(.browser-default),
|
|
18
18
|
input[type=number]:not(.browser-default),
|
|
19
19
|
input[type=search]:not(.browser-default),
|
|
20
|
-
textarea.materialize-textarea {
|
|
20
|
+
textarea.materialize-textarea {
|
|
21
21
|
outline: none;
|
|
22
22
|
color: var(--md-sys-color-on-background);
|
|
23
|
-
width: 100%;
|
|
23
|
+
width: 100%;
|
|
24
24
|
font-size: $md_sys_typescale_body-large_size; //16px; // => 16 dp
|
|
25
25
|
height: 56px; // 56dp
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
/* Validation Sass Placeholders */
|
|
29
|
-
%valid-input-style {
|
|
30
|
-
border-bottom: 1px solid $success-color;
|
|
31
|
-
box-shadow: 0 1px 0 0 $success-color;
|
|
32
|
-
}
|
|
33
28
|
%invalid-input-style {
|
|
34
29
|
border-bottom: 2px solid var(--md-sys-color-error);
|
|
35
30
|
box-shadow: 0 1px 0 0 var(--md-sys-color-error);
|
|
36
31
|
}
|
|
37
|
-
%hidden-text {
|
|
38
|
-
|
|
39
|
-
user-select: none;
|
|
40
|
-
pointer-events: none;
|
|
41
|
-
}
|
|
42
|
-
/*
|
|
43
|
-
%custom-success-message {
|
|
44
|
-
content: attr(data-success);
|
|
45
|
-
color: $success-color;
|
|
32
|
+
%hidden-text > span {
|
|
33
|
+
display: none
|
|
46
34
|
}
|
|
47
35
|
%custom-error-message {
|
|
48
36
|
content: attr(data-error);
|
|
49
37
|
color: var(--md-sys-color-error);
|
|
50
38
|
}
|
|
51
|
-
*/
|
|
52
39
|
|
|
53
40
|
.input-field {
|
|
54
41
|
--input-color: var(--md-sys-color-primary);
|
|
55
42
|
|
|
56
43
|
position: relative;
|
|
57
44
|
clear: both;
|
|
58
|
-
|
|
45
|
+
|
|
59
46
|
// Default
|
|
60
47
|
|
|
61
48
|
input, textarea {
|
|
@@ -71,7 +58,7 @@ textarea.materialize-textarea {
|
|
|
71
58
|
border-bottom: 1px solid var(--md-sys-color-on-surface-variant);
|
|
72
59
|
border-bottom-left-radius: 0;
|
|
73
60
|
border-bottom-right-radius: 0;
|
|
74
|
-
|
|
61
|
+
|
|
75
62
|
&:focus:not([readonly]) {
|
|
76
63
|
border-bottom: 2px solid var(--input-color);
|
|
77
64
|
padding-top: 20px + 1px; // add border-width
|
|
@@ -99,6 +86,26 @@ textarea.materialize-textarea {
|
|
|
99
86
|
&:disabled + label, &[readonly="readonly"] + label {
|
|
100
87
|
color: rgba(var(--md_sys_color_on-surface), 0.38);
|
|
101
88
|
}
|
|
89
|
+
|
|
90
|
+
// Hide helper text on data message
|
|
91
|
+
&.invalid ~ .supporting-text[data-error] {
|
|
92
|
+
@extend %hidden-text;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Invalid Input Style
|
|
96
|
+
&.invalid {
|
|
97
|
+
@extend %invalid-input-style;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Custom Error message
|
|
101
|
+
&.invalid ~ .supporting-text:after {
|
|
102
|
+
@extend %custom-error-message;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.invalid ~ label,
|
|
106
|
+
&:focus.invalid ~ label {
|
|
107
|
+
color: var(--md-sys-color-error);
|
|
108
|
+
}
|
|
102
109
|
}
|
|
103
110
|
|
|
104
111
|
input::placeholder {
|
|
@@ -150,7 +157,7 @@ textarea.materialize-textarea {
|
|
|
150
157
|
.suffix {
|
|
151
158
|
position: absolute;
|
|
152
159
|
right: 12px;
|
|
153
|
-
top: 16px;
|
|
160
|
+
top: 16px;
|
|
154
161
|
user-select: none;
|
|
155
162
|
}
|
|
156
163
|
|
|
@@ -200,7 +207,7 @@ textarea.materialize-textarea {
|
|
|
200
207
|
color: rgba(var(--md_sys_color_on-surface), 0.38);
|
|
201
208
|
border-color: rgba(var(--md_sys_color_on-surface), 0.12);
|
|
202
209
|
}
|
|
203
|
-
|
|
210
|
+
|
|
204
211
|
}
|
|
205
212
|
}
|
|
206
213
|
|
|
@@ -228,7 +235,7 @@ textarea.materialize-textarea {
|
|
|
228
235
|
}
|
|
229
236
|
|
|
230
237
|
/* Search Field */
|
|
231
|
-
.searchbar {
|
|
238
|
+
.searchbar {
|
|
232
239
|
.prefix {
|
|
233
240
|
position: absolute;
|
|
234
241
|
//left: 12px;
|
|
@@ -317,4 +324,27 @@ textarea {
|
|
|
317
324
|
margin: 5px 15px;
|
|
318
325
|
}
|
|
319
326
|
}
|
|
320
|
-
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* Datepicker date input fields */
|
|
330
|
+
.datepicker-date-input {
|
|
331
|
+
position: relative;
|
|
332
|
+
text-indent: -9999px;
|
|
333
|
+
|
|
334
|
+
&::after {
|
|
335
|
+
display: block;
|
|
336
|
+
position: absolute;
|
|
337
|
+
top: 1.10rem;
|
|
338
|
+
content: attr(data-date);
|
|
339
|
+
color: var(--input-color);
|
|
340
|
+
text-indent: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
&:focus-visible {
|
|
344
|
+
text-indent: 0;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
&:focus-visible:after {
|
|
348
|
+
text-indent: -9999px;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
Binary file
|
|
Binary file
|