kmaterialize 2.3.3-1.0.2 → 2.3.3-1.0.3
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/components/textfield/_input-fields.scss +3 -3
- package/dist/css/materialize.colors.min.css +1 -1
- package/dist/css/materialize.css +81 -80
- package/dist/css/materialize.min.css +2 -2
- package/dist/js/materialize.cjs.js +2 -2
- package/dist/js/materialize.d.ts +1 -1
- package/dist/js/materialize.js +2 -2
- package/dist/js/materialize.min.js +2 -2
- package/dist/js/materialize.mjs +2 -2
- package/package.json +1 -1
- package/sass/materialize.scss +7 -1
|
@@ -50,7 +50,7 @@ textarea.materialize-textarea {
|
|
|
50
50
|
|
|
51
51
|
// Default
|
|
52
52
|
|
|
53
|
-
input, textarea {
|
|
53
|
+
input:not([type=checkbox]):not([type=radio]), textarea {
|
|
54
54
|
box-sizing: border-box; /* https://stackoverflow.com/questions/1377719/padding-within-inputs-breaks-width-100*/
|
|
55
55
|
padding: 0 16px;
|
|
56
56
|
padding-top: 20px;
|
|
@@ -180,7 +180,7 @@ textarea.materialize-textarea {
|
|
|
180
180
|
|
|
181
181
|
&.outlined {
|
|
182
182
|
|
|
183
|
-
input, textarea {
|
|
183
|
+
input:not([type=checkbox]):not([type=radio]), textarea {
|
|
184
184
|
padding-top: 0;
|
|
185
185
|
background-color: transparent; //(--md-sys-color-background);
|
|
186
186
|
border: 1px solid var(--md-sys-color-on-surface-variant);
|
|
@@ -225,7 +225,7 @@ textarea.materialize-textarea {
|
|
|
225
225
|
// border/label/text below should pick up the error color.
|
|
226
226
|
background-color: transparent;
|
|
227
227
|
|
|
228
|
-
input, textarea {
|
|
228
|
+
input:not([type=checkbox]):not([type=radio]), textarea {
|
|
229
229
|
border-color: var(--md-sys-color-error);
|
|
230
230
|
}
|
|
231
231
|
input:focus:not([readonly]), textarea:focus:not([readonly]) {
|
package/dist/css/materialize.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Materialize v2.3.3-1.0.
|
|
2
|
+
* Materialize v2.3.3-1.0.3 (https://materializeweb.com)
|
|
3
3
|
* Copyright 2014-2026 Materialize
|
|
4
4
|
* MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
|
|
5
5
|
*/
|
|
@@ -4920,65 +4920,6 @@ body {
|
|
|
4920
4920
|
transform: scale(1);
|
|
4921
4921
|
}
|
|
4922
4922
|
|
|
4923
|
-
.pulse {
|
|
4924
|
-
overflow: visible;
|
|
4925
|
-
position: relative;
|
|
4926
|
-
&::before {
|
|
4927
|
-
content: "";
|
|
4928
|
-
display: block;
|
|
4929
|
-
position: absolute;
|
|
4930
|
-
pointer-events: none;
|
|
4931
|
-
width: 100%;
|
|
4932
|
-
height: 100%;
|
|
4933
|
-
top: 0;
|
|
4934
|
-
left: 0;
|
|
4935
|
-
background-color: inherit;
|
|
4936
|
-
border-radius: inherit;
|
|
4937
|
-
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
|
4938
|
-
transition: opacity 0.3s, -webkit-transform 0.3s;
|
|
4939
|
-
transition: opacity 0.3s, transform 0.3s;
|
|
4940
|
-
transition: opacity 0.3s, transform 0.3s, -webkit-transform 0.3s;
|
|
4941
|
-
-webkit-animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
|
|
4942
|
-
animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
|
|
4943
|
-
z-index: -1;
|
|
4944
|
-
}
|
|
4945
|
-
}
|
|
4946
|
-
|
|
4947
|
-
@-webkit-keyframes pulse-animation {
|
|
4948
|
-
0% {
|
|
4949
|
-
opacity: 1;
|
|
4950
|
-
-webkit-transform: scale(1);
|
|
4951
|
-
transform: scale(1);
|
|
4952
|
-
}
|
|
4953
|
-
50% {
|
|
4954
|
-
opacity: 0;
|
|
4955
|
-
-webkit-transform: scale(1.5);
|
|
4956
|
-
transform: scale(1.5);
|
|
4957
|
-
}
|
|
4958
|
-
100% {
|
|
4959
|
-
opacity: 0;
|
|
4960
|
-
-webkit-transform: scale(1.5);
|
|
4961
|
-
transform: scale(1.5);
|
|
4962
|
-
}
|
|
4963
|
-
}
|
|
4964
|
-
|
|
4965
|
-
@keyframes pulse-animation {
|
|
4966
|
-
0% {
|
|
4967
|
-
opacity: 1;
|
|
4968
|
-
-webkit-transform: scale(1);
|
|
4969
|
-
transform: scale(1);
|
|
4970
|
-
}
|
|
4971
|
-
50% {
|
|
4972
|
-
opacity: 0;
|
|
4973
|
-
-webkit-transform: scale(1.5);
|
|
4974
|
-
transform: scale(1.5);
|
|
4975
|
-
}
|
|
4976
|
-
100% {
|
|
4977
|
-
opacity: 0;
|
|
4978
|
-
-webkit-transform: scale(1.5);
|
|
4979
|
-
transform: scale(1.5);
|
|
4980
|
-
}
|
|
4981
|
-
}
|
|
4982
4923
|
.table-of-contents {
|
|
4983
4924
|
list-style: none;
|
|
4984
4925
|
}
|
|
@@ -9365,17 +9306,17 @@ textarea.materialize-textarea {
|
|
|
9365
9306
|
background-color: transparent;
|
|
9366
9307
|
}
|
|
9367
9308
|
|
|
9368
|
-
.input-field input.invalid, .input-field textarea.invalid {
|
|
9309
|
+
.input-field input:not([type=checkbox]):not([type=radio]).invalid, .input-field textarea.invalid {
|
|
9369
9310
|
border-bottom: 2px solid var(--md-sys-color-error);
|
|
9370
9311
|
-webkit-box-shadow: 0 1px 0 0 var(--md-sys-color-error);
|
|
9371
9312
|
box-shadow: 0 1px 0 0 var(--md-sys-color-error);
|
|
9372
9313
|
}
|
|
9373
9314
|
|
|
9374
|
-
.input-field input.invalid ~ .supporting-text[data-error] > span, .input-field textarea.invalid ~ .supporting-text[data-error] > span {
|
|
9315
|
+
.input-field input:not([type=checkbox]):not([type=radio]).invalid ~ .supporting-text[data-error] > span, .input-field textarea.invalid ~ .supporting-text[data-error] > span {
|
|
9375
9316
|
display: none;
|
|
9376
9317
|
}
|
|
9377
9318
|
|
|
9378
|
-
.input-field input.invalid ~ .supporting-text:after, .input-field textarea.invalid ~ .supporting-text:after {
|
|
9319
|
+
.input-field input:not([type=checkbox]):not([type=radio]).invalid ~ .supporting-text:after, .input-field textarea.invalid ~ .supporting-text:after {
|
|
9379
9320
|
content: attr(data-error);
|
|
9380
9321
|
color: var(--md-sys-color-error);
|
|
9381
9322
|
}
|
|
@@ -9385,7 +9326,7 @@ textarea.materialize-textarea {
|
|
|
9385
9326
|
position: relative;
|
|
9386
9327
|
clear: both;
|
|
9387
9328
|
}
|
|
9388
|
-
.input-field input, .input-field textarea {
|
|
9329
|
+
.input-field input:not([type=checkbox]):not([type=radio]), .input-field textarea {
|
|
9389
9330
|
-webkit-box-sizing: border-box;
|
|
9390
9331
|
box-sizing: border-box; /* https://stackoverflow.com/questions/1377719/padding-within-inputs-breaks-width-100*/
|
|
9391
9332
|
padding: 0 16px;
|
|
@@ -9396,35 +9337,35 @@ textarea.materialize-textarea {
|
|
|
9396
9337
|
border-bottom-left-radius: 0;
|
|
9397
9338
|
border-bottom-right-radius: 0;
|
|
9398
9339
|
}
|
|
9399
|
-
.input-field input:focus:not([readonly]), .input-field textarea:focus:not([readonly]) {
|
|
9340
|
+
.input-field input:not([type=checkbox]):not([type=radio]):focus:not([readonly]), .input-field textarea:focus:not([readonly]) {
|
|
9400
9341
|
border-bottom: 2px solid var(--input-color);
|
|
9401
9342
|
padding-top: 21px;
|
|
9402
9343
|
}
|
|
9403
|
-
.input-field input:disabled, .input-field input[readonly=readonly], .input-field textarea:disabled, .input-field textarea[readonly=readonly] {
|
|
9344
|
+
.input-field input:not([type=checkbox]):not([type=radio]):disabled, .input-field input:not([type=checkbox]):not([type=radio])[readonly=readonly], .input-field textarea:disabled, .input-field textarea[readonly=readonly] {
|
|
9404
9345
|
color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
|
|
9405
9346
|
border-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 12%);
|
|
9406
9347
|
background-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 4%);
|
|
9407
9348
|
}
|
|
9408
|
-
.input-field input:focus:not([readonly]) + label, .input-field textarea:focus:not([readonly]) + label {
|
|
9349
|
+
.input-field input:not([type=checkbox]):not([type=radio]):focus:not([readonly]) + label, .input-field textarea:focus:not([readonly]) + label {
|
|
9409
9350
|
color: var(--input-color);
|
|
9410
9351
|
}
|
|
9411
|
-
.input-field input:not(:-moz-placeholder) + label, .input-field textarea:not(:-moz-placeholder) + label {
|
|
9352
|
+
.input-field input:not([type=checkbox]):not([type=radio]):not(:-moz-placeholder) + label, .input-field textarea:not(:-moz-placeholder) + label {
|
|
9412
9353
|
transform: scale(0.75);
|
|
9413
9354
|
top: 8px;
|
|
9414
9355
|
}
|
|
9415
|
-
.input-field input:not(:-ms-input-placeholder) + label, .input-field textarea:not(:-ms-input-placeholder) + label {
|
|
9356
|
+
.input-field input:not([type=checkbox]):not([type=radio]):not(:-ms-input-placeholder) + label, .input-field textarea:not(:-ms-input-placeholder) + label {
|
|
9416
9357
|
transform: scale(0.75);
|
|
9417
9358
|
top: 8px;
|
|
9418
9359
|
}
|
|
9419
|
-
.input-field input:focus:not([readonly]) + label, .input-field input:not([placeholder=" "]) + label, .input-field input:not(:placeholder-shown) + label, .input-field textarea:focus:not([readonly]) + label, .input-field textarea:not([placeholder=" "]) + label, .input-field textarea:not(:placeholder-shown) + label {
|
|
9360
|
+
.input-field input:not([type=checkbox]):not([type=radio]):focus:not([readonly]) + label, .input-field input:not([type=checkbox]):not([type=radio]):not([placeholder=" "]) + label, .input-field input:not([type=checkbox]):not([type=radio]):not(:placeholder-shown) + label, .input-field textarea:focus:not([readonly]) + label, .input-field textarea:not([placeholder=" "]) + label, .input-field textarea:not(:placeholder-shown) + label {
|
|
9420
9361
|
-webkit-transform: scale(0.75);
|
|
9421
9362
|
transform: scale(0.75);
|
|
9422
9363
|
top: 8px;
|
|
9423
9364
|
}
|
|
9424
|
-
.input-field input:disabled + label, .input-field input[readonly=readonly] + label, .input-field textarea:disabled + label, .input-field textarea[readonly=readonly] + label {
|
|
9365
|
+
.input-field input:not([type=checkbox]):not([type=radio]):disabled + label, .input-field input:not([type=checkbox]):not([type=radio])[readonly=readonly] + label, .input-field textarea:disabled + label, .input-field textarea[readonly=readonly] + label {
|
|
9425
9366
|
color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
|
|
9426
9367
|
}
|
|
9427
|
-
.input-field input.invalid ~ label, .input-field input:focus.invalid ~ label, .input-field textarea.invalid ~ label, .input-field textarea:focus.invalid ~ label {
|
|
9368
|
+
.input-field input:not([type=checkbox]):not([type=radio]).invalid ~ label, .input-field input:not([type=checkbox]):not([type=radio]):focus.invalid ~ label, .input-field textarea.invalid ~ label, .input-field textarea:focus.invalid ~ label {
|
|
9428
9369
|
color: var(--md-sys-color-error);
|
|
9429
9370
|
}
|
|
9430
9371
|
.input-field input::-webkit-input-placeholder {
|
|
@@ -9514,49 +9455,49 @@ textarea.materialize-textarea {
|
|
|
9514
9455
|
.input-field .prefix ~ label {
|
|
9515
9456
|
left: 52px;
|
|
9516
9457
|
}
|
|
9517
|
-
.input-field.outlined input, .input-field.outlined textarea {
|
|
9458
|
+
.input-field.outlined input:not([type=checkbox]):not([type=radio]), .input-field.outlined textarea {
|
|
9518
9459
|
padding-top: 0;
|
|
9519
9460
|
background-color: transparent;
|
|
9520
9461
|
border: 1px solid var(--md-sys-color-on-surface-variant);
|
|
9521
9462
|
border-radius: 4px;
|
|
9522
9463
|
}
|
|
9523
|
-
.input-field.outlined input:focus:not([readonly]), .input-field.outlined textarea:focus:not([readonly]) {
|
|
9464
|
+
.input-field.outlined input:not([type=checkbox]):not([type=radio]):focus:not([readonly]), .input-field.outlined textarea:focus:not([readonly]) {
|
|
9524
9465
|
border: 2px solid var(--input-color);
|
|
9525
9466
|
padding-top: 0;
|
|
9526
9467
|
margin-left: -1px;
|
|
9527
9468
|
}
|
|
9528
|
-
.input-field.outlined input:focus:not([readonly]) + label, .input-field.outlined textarea:focus:not([readonly]) + label {
|
|
9469
|
+
.input-field.outlined input:not([type=checkbox]):not([type=radio]):focus:not([readonly]) + label, .input-field.outlined textarea:focus:not([readonly]) + label {
|
|
9529
9470
|
color: var(--input-color);
|
|
9530
9471
|
}
|
|
9531
|
-
.input-field.outlined input:not(:-moz-placeholder) + label, .input-field.outlined textarea:not(:-moz-placeholder) + label {
|
|
9472
|
+
.input-field.outlined input:not([type=checkbox]):not([type=radio]):not(:-moz-placeholder) + label, .input-field.outlined textarea:not(:-moz-placeholder) + label {
|
|
9532
9473
|
top: -8px;
|
|
9533
9474
|
left: 16px;
|
|
9534
9475
|
margin-left: -4px;
|
|
9535
9476
|
padding: 0 4px;
|
|
9536
9477
|
background-color: var(--md-sys-color-surface);
|
|
9537
9478
|
}
|
|
9538
|
-
.input-field.outlined input:not(:-ms-input-placeholder) + label, .input-field.outlined textarea:not(:-ms-input-placeholder) + label {
|
|
9479
|
+
.input-field.outlined input:not([type=checkbox]):not([type=radio]):not(:-ms-input-placeholder) + label, .input-field.outlined textarea:not(:-ms-input-placeholder) + label {
|
|
9539
9480
|
top: -8px;
|
|
9540
9481
|
left: 16px;
|
|
9541
9482
|
margin-left: -4px;
|
|
9542
9483
|
padding: 0 4px;
|
|
9543
9484
|
background-color: var(--md-sys-color-surface);
|
|
9544
9485
|
}
|
|
9545
|
-
.input-field.outlined input:focus:not([readonly]) + label, .input-field.outlined input:not([placeholder=" "]) + label, .input-field.outlined input:not(:placeholder-shown) + label, .input-field.outlined textarea:focus:not([readonly]) + label, .input-field.outlined textarea:not([placeholder=" "]) + label, .input-field.outlined textarea:not(:placeholder-shown) + label {
|
|
9486
|
+
.input-field.outlined input:not([type=checkbox]):not([type=radio]):focus:not([readonly]) + label, .input-field.outlined input:not([type=checkbox]):not([type=radio]):not([placeholder=" "]) + label, .input-field.outlined input:not([type=checkbox]):not([type=radio]):not(:placeholder-shown) + label, .input-field.outlined textarea:focus:not([readonly]) + label, .input-field.outlined textarea:not([placeholder=" "]) + label, .input-field.outlined textarea:not(:placeholder-shown) + label {
|
|
9546
9487
|
top: -8px;
|
|
9547
9488
|
left: 16px;
|
|
9548
9489
|
margin-left: -4px;
|
|
9549
9490
|
padding: 0 4px;
|
|
9550
9491
|
background-color: var(--md-sys-color-surface);
|
|
9551
9492
|
}
|
|
9552
|
-
.input-field.outlined input:disabled, .input-field.outlined input[readonly=readonly], .input-field.outlined textarea:disabled, .input-field.outlined textarea[readonly=readonly] {
|
|
9493
|
+
.input-field.outlined input:not([type=checkbox]):not([type=radio]):disabled, .input-field.outlined input:not([type=checkbox]):not([type=radio])[readonly=readonly], .input-field.outlined textarea:disabled, .input-field.outlined textarea[readonly=readonly] {
|
|
9553
9494
|
color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
|
|
9554
9495
|
border-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 12%);
|
|
9555
9496
|
}
|
|
9556
9497
|
.input-field.error {
|
|
9557
9498
|
background-color: transparent;
|
|
9558
9499
|
}
|
|
9559
|
-
.input-field.error input, .input-field.error textarea {
|
|
9500
|
+
.input-field.error input:not([type=checkbox]):not([type=radio]), .input-field.error textarea {
|
|
9560
9501
|
border-color: var(--md-sys-color-error);
|
|
9561
9502
|
}
|
|
9562
9503
|
.input-field.error input:focus:not([readonly]), .input-field.error textarea:focus:not([readonly]) {
|
|
@@ -10323,4 +10264,64 @@ fieldset.form-field:has([required]) legend::after {
|
|
|
10323
10264
|
|
|
10324
10265
|
fieldset.form-field:has([required]) label::after {
|
|
10325
10266
|
content: " *";
|
|
10267
|
+
}
|
|
10268
|
+
|
|
10269
|
+
.pulse {
|
|
10270
|
+
overflow: visible;
|
|
10271
|
+
position: relative;
|
|
10272
|
+
&::before {
|
|
10273
|
+
content: "";
|
|
10274
|
+
display: block;
|
|
10275
|
+
position: absolute;
|
|
10276
|
+
pointer-events: none;
|
|
10277
|
+
width: 100%;
|
|
10278
|
+
height: 100%;
|
|
10279
|
+
top: 0;
|
|
10280
|
+
left: 0;
|
|
10281
|
+
background-color: inherit;
|
|
10282
|
+
border-radius: inherit;
|
|
10283
|
+
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
|
10284
|
+
transition: opacity 0.3s, -webkit-transform 0.3s;
|
|
10285
|
+
transition: opacity 0.3s, transform 0.3s;
|
|
10286
|
+
transition: opacity 0.3s, transform 0.3s, -webkit-transform 0.3s;
|
|
10287
|
+
-webkit-animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
|
|
10288
|
+
animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
|
|
10289
|
+
z-index: -1;
|
|
10290
|
+
}
|
|
10291
|
+
}
|
|
10292
|
+
|
|
10293
|
+
@-webkit-keyframes pulse-animation {
|
|
10294
|
+
0% {
|
|
10295
|
+
opacity: 1;
|
|
10296
|
+
-webkit-transform: scale(1);
|
|
10297
|
+
transform: scale(1);
|
|
10298
|
+
}
|
|
10299
|
+
50% {
|
|
10300
|
+
opacity: 0;
|
|
10301
|
+
-webkit-transform: scale(1.5);
|
|
10302
|
+
transform: scale(1.5);
|
|
10303
|
+
}
|
|
10304
|
+
100% {
|
|
10305
|
+
opacity: 0;
|
|
10306
|
+
-webkit-transform: scale(1.5);
|
|
10307
|
+
transform: scale(1.5);
|
|
10308
|
+
}
|
|
10309
|
+
}
|
|
10310
|
+
|
|
10311
|
+
@keyframes pulse-animation {
|
|
10312
|
+
0% {
|
|
10313
|
+
opacity: 1;
|
|
10314
|
+
-webkit-transform: scale(1);
|
|
10315
|
+
transform: scale(1);
|
|
10316
|
+
}
|
|
10317
|
+
50% {
|
|
10318
|
+
opacity: 0;
|
|
10319
|
+
-webkit-transform: scale(1.5);
|
|
10320
|
+
transform: scale(1.5);
|
|
10321
|
+
}
|
|
10322
|
+
100% {
|
|
10323
|
+
opacity: 0;
|
|
10324
|
+
-webkit-transform: scale(1.5);
|
|
10325
|
+
transform: scale(1.5);
|
|
10326
|
+
}
|
|
10326
10327
|
}
|