@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
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
</a>
|
|
30
30
|
</p>
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## Getting started
|
|
33
33
|
Read the [getting started guide](https://materializeweb.com/getting-started.html) for more information on how to use materialize.
|
|
34
34
|
|
|
35
35
|
- [Download the latest release](https://github.com/materializecss/materialize/releases/latest) of materialize directly from GitHub. ([Beta](https://github.com/materializecss/materialize/releases/))
|
|
@@ -37,28 +37,21 @@ Read the [getting started guide](https://materializeweb.com/getting-started.html
|
|
|
37
37
|
- Include the files via [jsDelivr](https://www.jsdelivr.com/package/npm/@materializecss/materialize).
|
|
38
38
|
- Install with [npm](https://www.npmjs.com): `npm install @materializecss/materialize` (Beta: `npm install @materializecss/materialize@next`)
|
|
39
39
|
|
|
40
|
+
## Testing
|
|
41
|
+
To run tests locally you first have to build the files and then run the tests. This can be done with the command `npm test`;
|
|
42
|
+
To get more info and debug information you can do the following:
|
|
43
|
+
run `npx jasmine-browser-runner` then go to the url via browser `http://localhost:8888`. The tests will then run and show detailed feedback.
|
|
44
|
+
|
|
40
45
|
## Development
|
|
41
46
|
The documentation can be found at <https://materializeweb.com>. To run the documentation locally on your machine, you need [Node.js](https://nodejs.org) installed on your computer.
|
|
42
|
-
|
|
43
47
|
This is the core project with all the components. To see how they are used we recommend using an example project or go to the documentation.
|
|
44
|
-
Otherwise, if you want to develop the components itself, the dev process of this core-repo works like this:
|
|
45
|
-
```sh
|
|
46
|
-
npm install
|
|
47
|
-
npm run dev
|
|
48
|
-
```
|
|
49
48
|
|
|
50
49
|
### Running documentation locally
|
|
51
50
|
See [Materialize Docs Repo](https://github.com/materializecss/materialize-docs) to see Materialize in Action.
|
|
52
51
|
|
|
53
|
-
###
|
|
52
|
+
### Releases
|
|
54
53
|
Previous releases are available [here](https://github.com/materializecss/materialize/releases).
|
|
55
54
|
|
|
56
|
-
## Release
|
|
57
|
-
If you want to release `materialize.css` or `materialize.js` from the latest commit, you can build the files with the following command after `npm install`. See `package.json` to check the current version like `1.0.0`.
|
|
58
|
-
```sh
|
|
59
|
-
npm run release -- --oldver=<current_version> --newver=<new_version>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
55
|
## Supported Browsers:
|
|
63
56
|
Materialize is compatible with:
|
|
64
57
|
|
package/dist/css/materialize.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Materialize v2.
|
|
2
|
+
* Materialize v2.2.1 (https://materializeweb.com)
|
|
3
3
|
* Copyright 2014-2024 Materialize
|
|
4
4
|
* MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
|
|
5
5
|
*/
|
|
@@ -4414,6 +4414,10 @@ nav ul a span.badge {
|
|
|
4414
4414
|
.collapsible span.badge {
|
|
4415
4415
|
margin-left: auto;
|
|
4416
4416
|
}
|
|
4417
|
+
.collapsible span.badge.leading {
|
|
4418
|
+
margin-right: 7px;
|
|
4419
|
+
order: -1;
|
|
4420
|
+
}
|
|
4417
4421
|
|
|
4418
4422
|
.collapsible .active span.badge:not(.new) {
|
|
4419
4423
|
color: var(--md-sys-color-on-surface-variant);
|
|
@@ -5190,9 +5194,6 @@ small {
|
|
|
5190
5194
|
font-size: 24px;
|
|
5191
5195
|
font-weight: 300;
|
|
5192
5196
|
}
|
|
5193
|
-
.card .card-title.activator {
|
|
5194
|
-
cursor: pointer;
|
|
5195
|
-
}
|
|
5196
5197
|
.card.small, .card.medium, .card.large {
|
|
5197
5198
|
position: relative;
|
|
5198
5199
|
}
|
|
@@ -5278,6 +5279,14 @@ small {
|
|
|
5278
5279
|
max-width: 100%;
|
|
5279
5280
|
padding: 24px;
|
|
5280
5281
|
}
|
|
5282
|
+
.card .card-image .activator {
|
|
5283
|
+
position: absolute;
|
|
5284
|
+
left: 0;
|
|
5285
|
+
right: 0;
|
|
5286
|
+
top: 0;
|
|
5287
|
+
bottom: 0;
|
|
5288
|
+
cursor: pointer;
|
|
5289
|
+
}
|
|
5281
5290
|
.card .card-content {
|
|
5282
5291
|
padding: 24px;
|
|
5283
5292
|
border-radius: 0 0 2px 2px;
|
|
@@ -5293,6 +5302,9 @@ small {
|
|
|
5293
5302
|
.card .card-content .card-title i {
|
|
5294
5303
|
line-height: 32px;
|
|
5295
5304
|
}
|
|
5305
|
+
.card .card-content .card-title.activator {
|
|
5306
|
+
cursor: pointer;
|
|
5307
|
+
}
|
|
5296
5308
|
.card .card-action {
|
|
5297
5309
|
border-top: 1px solid var(--md-sys-color-outline-variant);
|
|
5298
5310
|
position: relative;
|
|
@@ -5398,7 +5410,6 @@ small {
|
|
|
5398
5410
|
position: relative;
|
|
5399
5411
|
overflow-x: auto;
|
|
5400
5412
|
overflow-y: hidden;
|
|
5401
|
-
height: 48px;
|
|
5402
5413
|
width: 100%;
|
|
5403
5414
|
background-color: var(--md-sys-color-surface);
|
|
5404
5415
|
margin: 0 auto;
|
|
@@ -5442,15 +5453,25 @@ small {
|
|
|
5442
5453
|
display: inline-block;
|
|
5443
5454
|
text-align: center;
|
|
5444
5455
|
line-height: 48px;
|
|
5445
|
-
height: 48px;
|
|
5446
5456
|
padding: 0;
|
|
5447
5457
|
margin: 0;
|
|
5448
5458
|
}
|
|
5459
|
+
.tabs .tab i.material-icons {
|
|
5460
|
+
position: relative;
|
|
5461
|
+
top: 8px;
|
|
5462
|
+
vertical-align: middle;
|
|
5463
|
+
}
|
|
5464
|
+
.tabs .tab span {
|
|
5465
|
+
height: 24px;
|
|
5466
|
+
line-height: 20px;
|
|
5467
|
+
}
|
|
5449
5468
|
.tabs .tab a {
|
|
5450
5469
|
color: var(--md-sys-color-on-surface-variant);
|
|
5451
|
-
display:
|
|
5470
|
+
display: flex;
|
|
5471
|
+
flex-direction: column;
|
|
5452
5472
|
width: 100%;
|
|
5453
5473
|
height: 100%;
|
|
5474
|
+
min-height: 48px;
|
|
5454
5475
|
padding: 0 24px;
|
|
5455
5476
|
font-size: 14px;
|
|
5456
5477
|
text-overflow: ellipsis;
|
|
@@ -5486,6 +5507,18 @@ small {
|
|
|
5486
5507
|
will-change: left, right;
|
|
5487
5508
|
border-radius: 3px 3px 0 0;
|
|
5488
5509
|
}
|
|
5510
|
+
.tabs.tabs-horizontal .tab {
|
|
5511
|
+
height: 48px;
|
|
5512
|
+
}
|
|
5513
|
+
.tabs.tabs-horizontal .tab a {
|
|
5514
|
+
display: block;
|
|
5515
|
+
}
|
|
5516
|
+
.tabs.tabs-horizontal .tab i.material-icons {
|
|
5517
|
+
padding: 0 4px;
|
|
5518
|
+
position: relative;
|
|
5519
|
+
top: -2px;
|
|
5520
|
+
vertical-align: middle;
|
|
5521
|
+
}
|
|
5489
5522
|
|
|
5490
5523
|
/* Fixed Sidenav hide on smaller */
|
|
5491
5524
|
@media only screen and (max-width : 992.99px) {
|
|
@@ -5553,7 +5586,7 @@ small {
|
|
|
5553
5586
|
border-radius: var(--btn-border-radius);
|
|
5554
5587
|
padding-left: var(--btn-padding);
|
|
5555
5588
|
padding-right: var(--btn-padding);
|
|
5556
|
-
font-size:
|
|
5589
|
+
font-size: var(--btn-font-size);
|
|
5557
5590
|
font-weight: 500;
|
|
5558
5591
|
text-decoration: none;
|
|
5559
5592
|
display: inline-flex;
|
|
@@ -5719,7 +5752,7 @@ small {
|
|
|
5719
5752
|
}
|
|
5720
5753
|
.btn-floating.btn-small {
|
|
5721
5754
|
--btn-small-height: calc(0.75 * var(--btn-height));
|
|
5722
|
-
width: var(--btn-small-height)
|
|
5755
|
+
width: var(--btn-small-height);
|
|
5723
5756
|
height: var(--btn-small-height);
|
|
5724
5757
|
}
|
|
5725
5758
|
.btn-floating.btn-small.halfway-fab {
|
|
@@ -5961,91 +5994,58 @@ body.keyboard-focused .dropdown-content li:focus {
|
|
|
5961
5994
|
}
|
|
5962
5995
|
|
|
5963
5996
|
.modal {
|
|
5964
|
-
--modal-footer-height: 56px;
|
|
5965
5997
|
--modal-footer-divider-height: 1px;
|
|
5966
5998
|
--modal-border-radius: 28px;
|
|
5967
5999
|
--modal-padding: 24px;
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
right: 0;
|
|
5972
|
-
background-color: var(--md-sys-color-surface);
|
|
6000
|
+
--modal-padding-bottom: 16px;
|
|
6001
|
+
border: none;
|
|
6002
|
+
outline: none;
|
|
5973
6003
|
padding: 0;
|
|
5974
6004
|
max-height: 70%;
|
|
5975
6005
|
width: 55%;
|
|
5976
|
-
margin: auto;
|
|
5977
|
-
overflow-y: auto;
|
|
5978
6006
|
border-radius: var(--modal-border-radius);
|
|
5979
6007
|
will-change: top, opacity;
|
|
6008
|
+
background-color: color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-surface-tint) 17%);
|
|
5980
6009
|
}
|
|
5981
|
-
.modal
|
|
5982
|
-
|
|
6010
|
+
.modal[open] {
|
|
6011
|
+
display: flex;
|
|
6012
|
+
flex-direction: column;
|
|
5983
6013
|
}
|
|
5984
6014
|
@media only screen and (max-width : 992.99px) {
|
|
5985
6015
|
.modal {
|
|
5986
6016
|
width: 80%;
|
|
5987
6017
|
}
|
|
5988
6018
|
}
|
|
5989
|
-
.modal
|
|
5990
|
-
|
|
6019
|
+
.modal::backdrop {
|
|
6020
|
+
backdrop-filter: blur(1px);
|
|
5991
6021
|
}
|
|
5992
|
-
.modal .modal-
|
|
6022
|
+
.modal .modal-header {
|
|
5993
6023
|
padding: var(--modal-padding);
|
|
5994
|
-
|
|
6024
|
+
padding-bottom: var(--modal-padding-bottom);
|
|
6025
|
+
flex-shrink: 0;
|
|
5995
6026
|
}
|
|
5996
|
-
.modal .modal-
|
|
5997
|
-
|
|
6027
|
+
.modal .modal-content {
|
|
6028
|
+
padding: 0 var(--modal-padding);
|
|
6029
|
+
overflow-y: auto;
|
|
5998
6030
|
}
|
|
5999
6031
|
.modal .modal-footer {
|
|
6000
6032
|
border-radius: 0 0 var(--modal-border-radius) var(--modal-border-radius);
|
|
6001
|
-
|
|
6002
|
-
padding: 4px 6px;
|
|
6003
|
-
height: var(--modal-footer-height);
|
|
6004
|
-
width: 100%;
|
|
6033
|
+
padding: var(--modal-padding);
|
|
6005
6034
|
text-align: right;
|
|
6035
|
+
flex-shrink: 0;
|
|
6006
6036
|
}
|
|
6007
|
-
.modal .modal-
|
|
6008
|
-
|
|
6009
|
-
}
|
|
6010
|
-
|
|
6011
|
-
.modal-overlay {
|
|
6012
|
-
position: fixed;
|
|
6013
|
-
z-index: 999;
|
|
6014
|
-
top: -25%;
|
|
6015
|
-
left: 0;
|
|
6016
|
-
bottom: 0;
|
|
6017
|
-
right: 0;
|
|
6018
|
-
height: 125%;
|
|
6019
|
-
width: 100%;
|
|
6020
|
-
background: #000;
|
|
6021
|
-
display: none;
|
|
6022
|
-
will-change: opacity;
|
|
6023
|
-
}
|
|
6024
|
-
|
|
6025
|
-
.modal.modal-fixed-footer {
|
|
6026
|
-
padding: 0;
|
|
6027
|
-
height: 70%;
|
|
6028
|
-
}
|
|
6029
|
-
.modal.modal-fixed-footer .modal-content {
|
|
6030
|
-
position: absolute;
|
|
6031
|
-
height: calc(100% - var(--modal-footer-height));
|
|
6032
|
-
max-height: 100%;
|
|
6033
|
-
width: 100%;
|
|
6034
|
-
overflow-y: auto;
|
|
6037
|
+
.modal .modal-close {
|
|
6038
|
+
cursor: pointer;
|
|
6035
6039
|
}
|
|
6036
|
-
.modal.modal
|
|
6037
|
-
|
|
6038
|
-
position: absolute;
|
|
6039
|
-
bottom: var(--modal-footer-divider-height);
|
|
6040
|
+
.modal h1, .modal h2, .modal h3, .modal h4, .modal h5, .modal h6 {
|
|
6041
|
+
margin: 0;
|
|
6040
6042
|
}
|
|
6041
6043
|
|
|
6042
6044
|
.modal.bottom-sheet {
|
|
6043
|
-
|
|
6044
|
-
bottom: -100%;
|
|
6045
|
-
margin: 0;
|
|
6046
|
-
width: 100%;
|
|
6045
|
+
margin-bottom: 0;
|
|
6047
6046
|
max-height: 45%;
|
|
6048
|
-
border-radius: 0;
|
|
6047
|
+
border-bottom-left-radius: 0;
|
|
6048
|
+
border-bottom-right-radius: 0;
|
|
6049
6049
|
will-change: bottom, opacity;
|
|
6050
6050
|
}
|
|
6051
6051
|
|
|
@@ -6078,20 +6078,26 @@ body.keyboard-focused .dropdown-content li:focus {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
|
|
6080
6080
|
.collapsible-header::after {
|
|
6081
|
-
content: "
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6081
|
+
content: "\e5cf";
|
|
6082
|
+
margin-left: 0.5rem;
|
|
6083
|
+
font-family: "Material Symbols Outlined", "Material Symbols Rounded", "Material Symbols Sharp", "Material Icons";
|
|
6084
|
+
font-size: 25px;
|
|
6085
|
+
line-height: 0.9;
|
|
6086
|
+
-webkit-font-smoothing: antialiased;
|
|
6085
6087
|
}
|
|
6086
6088
|
|
|
6087
6089
|
.active .collapsible-header::after {
|
|
6088
|
-
content: "
|
|
6090
|
+
content: "\e5ce";
|
|
6089
6091
|
}
|
|
6090
6092
|
|
|
6091
6093
|
.keyboard-focused .collapsible-header:focus {
|
|
6092
6094
|
background-color: rgba(0, 0, 0, 0.12);
|
|
6093
6095
|
}
|
|
6094
6096
|
|
|
6097
|
+
.collapsible-header-content {
|
|
6098
|
+
flex-grow: 1;
|
|
6099
|
+
}
|
|
6100
|
+
|
|
6095
6101
|
.collapsible-body {
|
|
6096
6102
|
max-height: 0;
|
|
6097
6103
|
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
@@ -6179,7 +6185,6 @@ body.keyboard-focused .dropdown-content li:focus {
|
|
|
6179
6185
|
gap: 4px;
|
|
6180
6186
|
flex-wrap: wrap;
|
|
6181
6187
|
border: none;
|
|
6182
|
-
border-bottom: 1px solid var(--md-sys-color-on-surface-variant);
|
|
6183
6188
|
box-shadow: none;
|
|
6184
6189
|
margin: 0 0 8px 0;
|
|
6185
6190
|
padding: 4px;
|
|
@@ -6190,7 +6195,10 @@ body.keyboard-focused .dropdown-content li:focus {
|
|
|
6190
6195
|
border-bottom: 1px solid var(--md-sys-color-primary);
|
|
6191
6196
|
box-shadow: 0 1px 0 0 var(--md-sys-color-primary);
|
|
6192
6197
|
}
|
|
6193
|
-
.chips
|
|
6198
|
+
.chips.input-field {
|
|
6199
|
+
border-bottom: 1px solid var(--md-sys-color-on-surface-variant);
|
|
6200
|
+
}
|
|
6201
|
+
.chips.input-field:hover {
|
|
6194
6202
|
cursor: text;
|
|
6195
6203
|
}
|
|
6196
6204
|
.chips input:not([type]):not(.browser-default).input {
|
|
@@ -6204,6 +6212,9 @@ body.keyboard-focused .dropdown-content li:focus {
|
|
|
6204
6212
|
margin: 0;
|
|
6205
6213
|
padding: 0;
|
|
6206
6214
|
width: 120px;
|
|
6215
|
+
width: fit-content;
|
|
6216
|
+
min-width: 100px;
|
|
6217
|
+
max-width: 200px;
|
|
6207
6218
|
}
|
|
6208
6219
|
.chips input:not([type]):not(.browser-default).input:focus {
|
|
6209
6220
|
border: 0;
|
|
@@ -6313,17 +6324,20 @@ textarea.materialize-textarea {
|
|
|
6313
6324
|
height: 56px;
|
|
6314
6325
|
}
|
|
6315
6326
|
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
content: attr(data-success);
|
|
6320
|
-
color: $success-color;
|
|
6327
|
+
.input-field input.invalid, .input-field textarea.invalid {
|
|
6328
|
+
border-bottom: 2px solid var(--md-sys-color-error);
|
|
6329
|
+
box-shadow: 0 1px 0 0 var(--md-sys-color-error);
|
|
6321
6330
|
}
|
|
6322
|
-
|
|
6331
|
+
|
|
6332
|
+
.input-field input.invalid ~ .supporting-text[data-error] > span, .input-field textarea.invalid ~ .supporting-text[data-error] > span {
|
|
6333
|
+
display: none;
|
|
6334
|
+
}
|
|
6335
|
+
|
|
6336
|
+
.input-field input.invalid ~ .supporting-text:after, .input-field textarea.invalid ~ .supporting-text:after {
|
|
6323
6337
|
content: attr(data-error);
|
|
6324
6338
|
color: var(--md-sys-color-error);
|
|
6325
6339
|
}
|
|
6326
|
-
|
|
6340
|
+
|
|
6327
6341
|
.input-field {
|
|
6328
6342
|
--input-color: var(--md-sys-color-primary);
|
|
6329
6343
|
position: relative;
|
|
@@ -6359,6 +6373,9 @@ textarea.materialize-textarea {
|
|
|
6359
6373
|
.input-field input:disabled + label, .input-field input[readonly=readonly] + label, .input-field textarea:disabled + label, .input-field textarea[readonly=readonly] + label {
|
|
6360
6374
|
color: rgba(var(--md_sys_color_on-surface), 0.38);
|
|
6361
6375
|
}
|
|
6376
|
+
.input-field input.invalid ~ label, .input-field input:focus.invalid ~ label, .input-field textarea.invalid ~ label, .input-field textarea:focus.invalid ~ label {
|
|
6377
|
+
color: var(--md-sys-color-error);
|
|
6378
|
+
}
|
|
6362
6379
|
.input-field input::placeholder {
|
|
6363
6380
|
user-select: none;
|
|
6364
6381
|
}
|
|
@@ -6536,6 +6553,26 @@ textarea.materialize-textarea {
|
|
|
6536
6553
|
margin: 5px 15px;
|
|
6537
6554
|
}
|
|
6538
6555
|
|
|
6556
|
+
/* Datepicker date input fields */
|
|
6557
|
+
.datepicker-date-input {
|
|
6558
|
+
position: relative;
|
|
6559
|
+
text-indent: -9999px;
|
|
6560
|
+
}
|
|
6561
|
+
.datepicker-date-input::after {
|
|
6562
|
+
display: block;
|
|
6563
|
+
position: absolute;
|
|
6564
|
+
top: 1.1rem;
|
|
6565
|
+
content: attr(data-date);
|
|
6566
|
+
color: var(--input-color);
|
|
6567
|
+
text-indent: 0;
|
|
6568
|
+
}
|
|
6569
|
+
.datepicker-date-input:focus-visible {
|
|
6570
|
+
text-indent: 0;
|
|
6571
|
+
}
|
|
6572
|
+
.datepicker-date-input:focus-visible:after {
|
|
6573
|
+
text-indent: -9999px;
|
|
6574
|
+
}
|
|
6575
|
+
|
|
6539
6576
|
[type=radio]:not(:checked),
|
|
6540
6577
|
[type=radio]:checked {
|
|
6541
6578
|
position: absolute;
|
|
@@ -8368,6 +8405,10 @@ input[type=range]::-ms-thumb {
|
|
|
8368
8405
|
.datepicker-controls .select-wrapper .caret {
|
|
8369
8406
|
display: none;
|
|
8370
8407
|
}
|
|
8408
|
+
.datepicker-controls .select-dropdown {
|
|
8409
|
+
padding: 0;
|
|
8410
|
+
vertical-align: middle;
|
|
8411
|
+
}
|
|
8371
8412
|
.datepicker-controls .select-year input {
|
|
8372
8413
|
width: 50px;
|
|
8373
8414
|
}
|
|
@@ -8385,6 +8426,7 @@ input[type=range]::-ms-thumb {
|
|
|
8385
8426
|
}
|
|
8386
8427
|
|
|
8387
8428
|
.month-prev, .month-next {
|
|
8429
|
+
height: 49px;
|
|
8388
8430
|
margin-top: 4px;
|
|
8389
8431
|
cursor: pointer;
|
|
8390
8432
|
background-color: transparent;
|
|
@@ -8530,75 +8572,115 @@ input[type=range]::-ms-thumb {
|
|
|
8530
8572
|
|
|
8531
8573
|
/* Clock Digital Display */
|
|
8532
8574
|
.timepicker-digital-display {
|
|
8533
|
-
width:
|
|
8575
|
+
width: auto;
|
|
8534
8576
|
flex: 1 auto;
|
|
8535
8577
|
background-color: var(--md-sys-color-primary);
|
|
8536
|
-
padding:
|
|
8578
|
+
padding: 2rem 0.67rem 0.67rem 0.67rem;
|
|
8537
8579
|
font-weight: 300;
|
|
8538
8580
|
}
|
|
8539
8581
|
|
|
8540
8582
|
.timepicker-text-container {
|
|
8541
8583
|
font-size: 4rem;
|
|
8542
|
-
|
|
8543
|
-
text-align: center;
|
|
8584
|
+
text-align: left;
|
|
8544
8585
|
color: var(--font-on-primary-color-medium);
|
|
8545
8586
|
font-weight: 400;
|
|
8546
8587
|
position: relative;
|
|
8547
8588
|
user-select: none;
|
|
8589
|
+
padding: 1rem 1rem 1.5rem 1rem;
|
|
8548
8590
|
}
|
|
8549
8591
|
.timepicker-text-container input[type=text] {
|
|
8550
8592
|
height: 4rem;
|
|
8551
|
-
color:
|
|
8593
|
+
color: var(--md-sys-color-secondary);
|
|
8552
8594
|
border-bottom: 0px;
|
|
8553
8595
|
font-size: 4rem;
|
|
8554
8596
|
direction: ltr;
|
|
8555
8597
|
}
|
|
8556
8598
|
|
|
8599
|
+
.timepicker-display-column {
|
|
8600
|
+
display: inline-flex;
|
|
8601
|
+
}
|
|
8602
|
+
|
|
8603
|
+
.timepicker-input-hours-wrapper,
|
|
8604
|
+
.timepicker-input-minutes-wrapper {
|
|
8605
|
+
width: 6.9rem;
|
|
8606
|
+
height: 5.2rem;
|
|
8607
|
+
}
|
|
8608
|
+
|
|
8557
8609
|
.timepicker-input-hours,
|
|
8558
8610
|
.timepicker-input-minutes,
|
|
8559
8611
|
.timepicker-span-am-pm div {
|
|
8560
8612
|
cursor: pointer;
|
|
8561
8613
|
}
|
|
8562
8614
|
|
|
8563
|
-
input[type=text].timepicker-input-hours
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8615
|
+
input[type=text].timepicker-input-hours,
|
|
8616
|
+
input[type=text].timepicker-input-minutes {
|
|
8617
|
+
height: 100%;
|
|
8618
|
+
padding: 0.8rem;
|
|
8619
|
+
border: 0;
|
|
8620
|
+
text-align: center;
|
|
8567
8621
|
}
|
|
8568
8622
|
|
|
8569
|
-
|
|
8570
|
-
width:
|
|
8571
|
-
|
|
8623
|
+
.timepicker-input-divider-wrapper {
|
|
8624
|
+
width: 1.6rem;
|
|
8625
|
+
text-align: center;
|
|
8572
8626
|
}
|
|
8573
8627
|
|
|
8574
8628
|
input[type=text].text-primary {
|
|
8575
|
-
color:
|
|
8629
|
+
color: var(--md-sys-color-on-background);
|
|
8576
8630
|
}
|
|
8577
8631
|
|
|
8578
8632
|
.timepicker-display-am-pm {
|
|
8579
8633
|
font-size: 1.3rem;
|
|
8580
8634
|
position: absolute;
|
|
8635
|
+
top: 1rem;
|
|
8581
8636
|
right: 1rem;
|
|
8582
|
-
bottom: 1rem;
|
|
8583
8637
|
font-weight: 400;
|
|
8584
8638
|
}
|
|
8585
8639
|
|
|
8640
|
+
.timepicker-span-am-pm {
|
|
8641
|
+
height: 5.2rem;
|
|
8642
|
+
max-width: 3.5rem;
|
|
8643
|
+
}
|
|
8644
|
+
|
|
8645
|
+
.timepicker-modal .am-btn,
|
|
8646
|
+
.timepicker-modal .pm-btn {
|
|
8647
|
+
width: 3.6rem;
|
|
8648
|
+
height: 50%;
|
|
8649
|
+
padding-left: calc(var(--btn-padding) / 1.6);
|
|
8650
|
+
padding-right: calc(var(--btn-padding) / 1.6);
|
|
8651
|
+
line-height: 2rem;
|
|
8652
|
+
vertical-align: middle;
|
|
8653
|
+
text-align: center;
|
|
8654
|
+
background-color: transparent;
|
|
8655
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
8656
|
+
}
|
|
8657
|
+
|
|
8658
|
+
.timepicker-modal .am-btn {
|
|
8659
|
+
border-bottom-right-radius: 0;
|
|
8660
|
+
border-bottom-left-radius: 0;
|
|
8661
|
+
}
|
|
8662
|
+
|
|
8663
|
+
.timepicker-modal .pm-btn {
|
|
8664
|
+
border-top: 0;
|
|
8665
|
+
border-top-left-radius: 0;
|
|
8666
|
+
border-top-right-radius: 0;
|
|
8667
|
+
}
|
|
8668
|
+
|
|
8586
8669
|
/* Analog Clock Display */
|
|
8587
8670
|
.timepicker-analog-display {
|
|
8588
8671
|
flex: 2.5 auto;
|
|
8672
|
+
padding: 0.67rem;
|
|
8589
8673
|
background-color: var(--md-sys-color-surface);
|
|
8590
8674
|
}
|
|
8591
8675
|
|
|
8592
8676
|
.timepicker-plate {
|
|
8593
8677
|
background-color: rgba(0, 0, 0, 0.09);
|
|
8594
8678
|
border-radius: 50%;
|
|
8595
|
-
width:
|
|
8596
|
-
height:
|
|
8679
|
+
width: 260px;
|
|
8680
|
+
height: 260px;
|
|
8597
8681
|
overflow: visible;
|
|
8598
8682
|
position: relative;
|
|
8599
|
-
margin:
|
|
8600
|
-
margin-top: 25px;
|
|
8601
|
-
margin-bottom: 5px;
|
|
8683
|
+
margin: 2rem 1.6rem 1.6rem 1.6rem;
|
|
8602
8684
|
user-select: none;
|
|
8603
8685
|
}
|
|
8604
8686
|
|
|
@@ -8691,21 +8773,49 @@ input[type=text].text-primary {
|
|
|
8691
8773
|
}
|
|
8692
8774
|
|
|
8693
8775
|
/* Media Queries */
|
|
8694
|
-
@media only screen and (min-width :
|
|
8776
|
+
@media only screen and (min-width : 993px) {
|
|
8695
8777
|
.timepicker-modal {
|
|
8696
|
-
|
|
8778
|
+
width: auto;
|
|
8779
|
+
max-width: 620px;
|
|
8697
8780
|
}
|
|
8698
8781
|
.timepicker-container.modal-content {
|
|
8699
8782
|
flex-direction: row;
|
|
8700
8783
|
}
|
|
8784
|
+
.timepicker-digital-display {
|
|
8785
|
+
padding: 0.67rem;
|
|
8786
|
+
}
|
|
8701
8787
|
.timepicker-text-container {
|
|
8702
|
-
top:
|
|
8788
|
+
top: 31%;
|
|
8789
|
+
text-align: center;
|
|
8703
8790
|
}
|
|
8704
8791
|
.timepicker-display-am-pm {
|
|
8705
8792
|
position: relative;
|
|
8793
|
+
top: auto;
|
|
8706
8794
|
right: auto;
|
|
8707
|
-
bottom: auto;
|
|
8708
8795
|
text-align: center;
|
|
8709
8796
|
margin-top: 1.2rem;
|
|
8710
8797
|
}
|
|
8798
|
+
.timepicker-span-am-pm {
|
|
8799
|
+
max-width: unset;
|
|
8800
|
+
}
|
|
8801
|
+
.timepicker-modal .am-btn,
|
|
8802
|
+
.timepicker-modal .pm-btn {
|
|
8803
|
+
width: auto;
|
|
8804
|
+
padding-left: var(--btn-padding);
|
|
8805
|
+
padding-right: var(--btn-padding);
|
|
8806
|
+
border-radius: var(--btn-border-radius);
|
|
8807
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
8808
|
+
line-height: inherit;
|
|
8809
|
+
vertical-align: top;
|
|
8810
|
+
text-align: inherit;
|
|
8811
|
+
}
|
|
8812
|
+
.timepicker-modal .am-btn {
|
|
8813
|
+
border-top-right-radius: 0;
|
|
8814
|
+
border-bottom-right-radius: 0;
|
|
8815
|
+
}
|
|
8816
|
+
.timepicker-modal .pm-btn {
|
|
8817
|
+
border-left: 0;
|
|
8818
|
+
border-bottom-left-radius: 0;
|
|
8819
|
+
border-top-left-radius: 0;
|
|
8820
|
+
}
|
|
8711
8821
|
}
|