@materializecss/materialize 2.0.3-alpha → 2.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.
Files changed (71) hide show
  1. package/README.md +1 -1
  2. package/dist/css/materialize.css +345 -236
  3. package/dist/css/materialize.min.css +2 -2
  4. package/dist/js/materialize.js +518 -1979
  5. package/dist/js/materialize.min.js +2 -2
  6. package/dist/js/materialize.min.js.map +1 -1
  7. package/dist/src/buttons.d.ts.map +1 -1
  8. package/dist/src/cards.d.ts.map +1 -1
  9. package/dist/src/collapsible.d.ts +1 -0
  10. package/dist/src/collapsible.d.ts.map +1 -1
  11. package/dist/src/dropdown.d.ts.map +1 -1
  12. package/dist/src/global.d.ts.map +1 -1
  13. package/dist/src/materialbox.d.ts +14 -10
  14. package/dist/src/materialbox.d.ts.map +1 -1
  15. package/dist/src/modal.d.ts.map +1 -1
  16. package/dist/src/range.d.ts.map +1 -1
  17. package/dist/src/scrollspy.d.ts.map +1 -1
  18. package/dist/src/sidenav.d.ts +25 -25
  19. package/dist/src/sidenav.d.ts.map +1 -1
  20. package/dist/src/slider.d.ts +12 -12
  21. package/dist/src/slider.d.ts.map +1 -1
  22. package/dist/src/tabs.d.ts +1 -1
  23. package/dist/src/tabs.d.ts.map +1 -1
  24. package/dist/src/toasts.d.ts +7 -2
  25. package/dist/src/toasts.d.ts.map +1 -1
  26. package/dist/src/tooltip.d.ts +8 -2
  27. package/dist/src/tooltip.d.ts.map +1 -1
  28. package/package.json +14 -13
  29. package/sass/components/_buttons.scss +158 -73
  30. package/sass/components/_chips.scss +75 -28
  31. package/sass/components/_collapsible.scss +14 -2
  32. package/sass/components/_global.scss +6 -94
  33. package/sass/components/_materialbox.scss +2 -2
  34. package/sass/components/_modal.scss +0 -1
  35. package/sass/components/_preloader.scss +85 -0
  36. package/sass/components/_tooltip.scss +18 -8
  37. package/sass/components/_variables.scss +5 -4
  38. package/sass/components/forms/_range.scss +1 -1
  39. package/sass/components/forms/_switches.scss +44 -14
  40. package/Gruntfile.js +0 -480
  41. package/src/autocomplete.ts +0 -553
  42. package/src/bounding.ts +0 -6
  43. package/src/buttons.ts +0 -260
  44. package/src/cards.ts +0 -53
  45. package/src/carousel.ts +0 -676
  46. package/src/characterCounter.ts +0 -117
  47. package/src/chips.ts +0 -439
  48. package/src/collapsible.ts +0 -249
  49. package/src/component.ts +0 -120
  50. package/src/datepicker.ts +0 -1076
  51. package/src/dropdown.ts +0 -644
  52. package/src/edges.ts +0 -6
  53. package/src/forms.ts +0 -132
  54. package/src/global.ts +0 -114
  55. package/src/index.ts +0 -26
  56. package/src/materialbox.ts +0 -404
  57. package/src/modal.ts +0 -341
  58. package/src/parallax.ts +0 -149
  59. package/src/pushpin.ts +0 -165
  60. package/src/range.ts +0 -198
  61. package/src/scrollspy.ts +0 -263
  62. package/src/select.ts +0 -484
  63. package/src/sidenav.ts +0 -543
  64. package/src/slider.ts +0 -474
  65. package/src/tabs.ts +0 -347
  66. package/src/tapTarget.ts +0 -273
  67. package/src/timepicker.ts +0 -832
  68. package/src/toasts.ts +0 -290
  69. package/src/tooltip.ts +0 -346
  70. package/src/utils.ts +0 -271
  71. package/src/waves.ts +0 -70
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Materialize v2.0.3-alpha (https://materializecss.github.io/materialize)
2
+ * Materialize v2.0.3 (https://materializecss.github.io/materialize)
3
3
  * Copyright 2014-2023 Materialize
4
4
  * MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
5
5
  */
@@ -421,7 +421,7 @@
421
421
  color: var(--md-sys-color-on-background);
422
422
  }
423
423
 
424
- .surface {
424
+ .surface, .switch label input[type=checkbox]:checked + .lever:after {
425
425
  background-color: var(--md-sys-color-surface);
426
426
  }
427
427
 
@@ -437,7 +437,7 @@
437
437
  color: var(--md-sys-color-on-surface);
438
438
  }
439
439
 
440
- .surface-variant {
440
+ .surface-variant, .progress, input[type=range]::-moz-range-track, input[type=range]::-webkit-slider-runnable-track, .switch label .lever {
441
441
  background-color: var(--md-sys-color-surface-variant);
442
442
  }
443
443
 
@@ -449,11 +449,11 @@
449
449
  background-color: var(--md-sys-color-on-surface-variant);
450
450
  }
451
451
 
452
- .on-surface-variant-text {
452
+ .on-surface-variant-text, .chip > .material-icons {
453
453
  color: var(--md-sys-color-on-surface-variant);
454
454
  }
455
455
 
456
- .outline {
456
+ .outline, .switch label .lever:after {
457
457
  background-color: var(--md-sys-color-outline);
458
458
  }
459
459
 
@@ -3331,7 +3331,7 @@ a {
3331
3331
  }
3332
3332
 
3333
3333
  /* 2dp elevation modified*/
3334
- .z-depth-1, .sidenav, .collapsible, .dropdown-content, .btn-floating, .btn, .btn-small, .btn-large, .toast, .card, .card-panel, nav {
3334
+ .z-depth-1, .sidenav, .collapsible, .dropdown-content, .btn-floating, .btn.elevated, .elevated.btn-small, .elevated.btn-large, .toast, .card, .card-panel, nav {
3335
3335
  -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
3336
3336
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
3337
3337
  }
@@ -3393,11 +3393,10 @@ i {
3393
3393
  }
3394
3394
  i.left {
3395
3395
  float: left;
3396
- margin-right: 15px;
3396
+ margin-left: -8px;
3397
3397
  }
3398
3398
  i.right {
3399
3399
  float: right;
3400
- margin-left: 15px;
3401
3400
  }
3402
3401
  i.tiny {
3403
3402
  font-size: 1rem;
@@ -3778,110 +3777,6 @@ table.responsive-table td {
3778
3777
  height: 100%;
3779
3778
  }
3780
3779
 
3781
- .progress {
3782
- position: relative;
3783
- height: 4px;
3784
- display: block;
3785
- width: 100%;
3786
- background-color: rgba(var(--primary-color-numeric), 40%);
3787
- border-radius: 2px;
3788
- margin: 0.5rem 0 1rem 0;
3789
- overflow: hidden;
3790
- }
3791
- .progress .determinate {
3792
- position: absolute;
3793
- top: 0;
3794
- left: 0;
3795
- bottom: 0;
3796
- background-color: var(--primary-color);
3797
- -webkit-transition: width 0.3s linear;
3798
- transition: width 0.3s linear;
3799
- }
3800
- .progress .indeterminate {
3801
- background-color: var(--primary-color);
3802
- }
3803
- .progress .indeterminate:before {
3804
- content: "";
3805
- position: absolute;
3806
- background-color: inherit;
3807
- top: 0;
3808
- left: 0;
3809
- bottom: 0;
3810
- will-change: left, right;
3811
- -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
3812
- animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
3813
- }
3814
- .progress .indeterminate:after {
3815
- content: "";
3816
- position: absolute;
3817
- background-color: inherit;
3818
- top: 0;
3819
- left: 0;
3820
- bottom: 0;
3821
- will-change: left, right;
3822
- -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
3823
- animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
3824
- -webkit-animation-delay: 1.15s;
3825
- animation-delay: 1.15s;
3826
- }
3827
-
3828
- @-webkit-keyframes indeterminate {
3829
- 0% {
3830
- left: -35%;
3831
- right: 100%;
3832
- }
3833
- 60% {
3834
- left: 100%;
3835
- right: -90%;
3836
- }
3837
- 100% {
3838
- left: 100%;
3839
- right: -90%;
3840
- }
3841
- }
3842
-
3843
- @keyframes indeterminate {
3844
- 0% {
3845
- left: -35%;
3846
- right: 100%;
3847
- }
3848
- 60% {
3849
- left: 100%;
3850
- right: -90%;
3851
- }
3852
- 100% {
3853
- left: 100%;
3854
- right: -90%;
3855
- }
3856
- }
3857
- @-webkit-keyframes indeterminate-short {
3858
- 0% {
3859
- left: -200%;
3860
- right: 100%;
3861
- }
3862
- 60% {
3863
- left: 107%;
3864
- right: -8%;
3865
- }
3866
- 100% {
3867
- left: 107%;
3868
- right: -8%;
3869
- }
3870
- }
3871
- @keyframes indeterminate-short {
3872
- 0% {
3873
- left: -200%;
3874
- right: 100%;
3875
- }
3876
- 60% {
3877
- left: 107%;
3878
- right: -8%;
3879
- }
3880
- 100% {
3881
- left: 107%;
3882
- right: -8%;
3883
- }
3884
- }
3885
3780
  /*******************
3886
3781
  Utility Classes
3887
3782
  *******************/
@@ -5669,23 +5564,33 @@ small {
5669
5564
  }
5670
5565
  }
5671
5566
  .material-tooltip {
5672
- padding: 10px 8px;
5673
- font-size: 1rem;
5674
- z-index: 2000;
5675
- border-radius: 2px;
5676
- color: var(--tooltip-font-color);
5677
- min-height: 36px;
5678
- line-height: 120%;
5567
+ padding: 0 8px;
5568
+ border-radius: 4px;
5569
+ background-color: var(--md-sys-color-inverse-surface);
5570
+ color: var(--md-sys-color-inverse-on-surface);
5571
+ font-family: var(--md-sys-typescale-body-small-font-family-name);
5572
+ font-size: var(--md-sys-typescale-body-small-font-size);
5573
+ line-height: var(--md-sys-typescale-body-small-line-height);
5574
+ font-weight: var(--md-sys-typescale-body-small-font-weight);
5575
+ min-height: 24px;
5679
5576
  opacity: 0;
5680
- position: absolute;
5681
5577
  text-align: center;
5578
+ position: absolute;
5682
5579
  max-width: calc(100% - 4px);
5683
5580
  overflow: hidden;
5684
5581
  left: 0;
5685
5582
  top: 0;
5686
5583
  pointer-events: none;
5584
+ display: -webkit-box;
5585
+ display: -webkit-flex;
5586
+ display: -ms-flexbox;
5587
+ display: flex;
5588
+ -webkit-box-align: center;
5589
+ -webkit-align-items: center;
5590
+ -ms-flex-align: center;
5591
+ align-items: center;
5687
5592
  visibility: hidden;
5688
- background-color: var(--tooltip-background-color);
5593
+ z-index: 2000;
5689
5594
  }
5690
5595
 
5691
5596
  .backdrop {
@@ -5694,28 +5599,70 @@ small {
5694
5599
  height: 7px;
5695
5600
  width: 14px;
5696
5601
  border-radius: 0 0 50% 50%;
5697
- background-color: var(--tooltip-background-color);
5602
+ background-color: var(--md-sys-color-inverse-surface);
5698
5603
  z-index: -1;
5699
5604
  -webkit-transform-origin: 50% 0;
5700
5605
  transform-origin: 50% 0;
5701
5606
  visibility: hidden;
5702
5607
  }
5703
5608
 
5704
- .btn, .btn-small, .btn-large,
5705
- .btn-flat {
5706
- font-weight: 500;
5609
+ .btn, .btn-small, .btn-large, .btn-floating, .btn-flat {
5610
+ --font-size-icon: 16px;
5611
+ --padding: 24px;
5612
+ --padding-icon: 16px;
5613
+ --gap-icon: 8px;
5614
+ height: 40px;
5707
5615
  border: none;
5708
5616
  border-radius: 4px;
5709
- display: inline-block;
5710
- height: 40px;
5711
- line-height: 40px;
5712
- padding: 0 16px;
5713
- vertical-align: middle;
5617
+ padding-left: var(--padding);
5618
+ padding-right: var(--padding);
5619
+ color: var(--font-on-primary-color-main);
5620
+ font-size: 14px;
5621
+ font-weight: 500;
5622
+ text-decoration: none;
5623
+ display: -webkit-inline-box;
5624
+ display: -webkit-inline-flex;
5625
+ display: -ms-inline-flexbox;
5626
+ display: inline-flex;
5627
+ -webkit-box-align: center;
5628
+ -webkit-align-items: center;
5629
+ -ms-flex-align: center;
5630
+ align-items: center;
5631
+ cursor: pointer;
5632
+ -webkit-tap-highlight-color: transparent;
5633
+ white-space: nowrap;
5634
+ outline: 0;
5714
5635
  -webkit-user-select: none;
5715
5636
  -moz-user-select: none;
5716
5637
  -ms-user-select: none;
5717
5638
  user-select: none;
5718
- -webkit-tap-highlight-color: transparent;
5639
+ -webkit-transition: background-color 0.2s ease-out;
5640
+ transition: background-color 0.2s ease-out;
5641
+ }
5642
+
5643
+ .btn.icon-left, .icon-left.btn-small, .icon-left.btn-large, .btn.icon-right, .icon-right.btn-small, .icon-right.btn-large {
5644
+ position: relative;
5645
+ }
5646
+
5647
+ .btn.icon-left, .icon-left.btn-small, .icon-left.btn-large {
5648
+ padding-left: calc(var(--padding-icon) + var(--font-size-icon) + var(--gap-icon));
5649
+ }
5650
+
5651
+ .btn.icon-right, .icon-right.btn-small, .icon-right.btn-large {
5652
+ padding-right: calc(var(--padding-icon) + var(--font-size-icon) + var(--gap-icon));
5653
+ }
5654
+
5655
+ .btn.icon-left i, .icon-left.btn-small i, .icon-left.btn-large i, .btn.icon-right i, .icon-right.btn-small i, .icon-right.btn-large i {
5656
+ position: absolute;
5657
+ font-size: var(--font-size-icon);
5658
+ }
5659
+
5660
+ .btn.icon-left i, .icon-left.btn-small i, .icon-left.btn-large i {
5661
+ left: var(--padding-icon);
5662
+ }
5663
+
5664
+ .btn.icon-right i, .icon-right.btn-small i, .icon-right.btn-large i {
5665
+ right: var(--padding-icon);
5719
5666
  }
5720
5667
 
5721
5668
  .btn.disabled,
@@ -5759,33 +5706,44 @@ small {
5759
5706
  color: var(--font-color-disabled) !important;
5760
5707
  }
5761
5708
 
5762
- .btn,
5763
- .btn-small,
5764
- .btn-large,
5765
- .btn-floating,
5766
- .btn-flat {
5767
- font-size: 14px;
5768
- outline: 0;
5709
+ .btn.filled, .btn, .btn-small, .btn-large {
5710
+ background-color: var(--md-sys-color-primary);
5769
5711
  }
5770
- .btn i,
5771
- .btn-floating i,
5772
- .btn-large i,
5773
- .btn-small i,
5774
- .btn-flat i {
5775
- font-size: 1.3rem;
5776
- line-height: inherit;
5712
+
5713
+ .btn.tonal, .tonal.btn-small, .tonal.btn-large, .btn.elevated, .elevated.btn-small, .elevated.btn-large {
5714
+ background-color: var(--md-sys-color-secondary-container);
5715
+ color: var(--md-sys-color-on-secondary-container);
5777
5716
  }
5778
5717
 
5779
- .btn, .btn-small, .btn-large {
5780
- text-decoration: none;
5781
- color: var(--font-on-primary-color-main);
5782
- background-color: var(--primary-color);
5783
- text-align: center;
5784
- letter-spacing: 0.5px;
5785
- -webkit-transition: background-color 0.2s ease-out;
5786
- transition: background-color 0.2s ease-out;
5718
+ .btn.text, .text.btn-small, .text.btn-large, .btn-flat {
5719
+ -webkit-box-shadow: none;
5720
+ box-shadow: none;
5721
+ background-color: transparent;
5722
+ color: var(--md-sys-color-primary);
5787
5723
  cursor: pointer;
5724
+ -webkit-transition: background-color 0.2s;
5725
+ transition: background-color 0.2s;
5726
+ }
5727
+ .btn.text:focus, .text.btn-small:focus, .text.btn-large:focus, .btn.text:hover, .text.btn-small:hover, .text.btn-large:hover, .btn-flat:focus, .btn-flat:hover {
5728
+ -webkit-box-shadow: none;
5729
+ box-shadow: none;
5730
+ background-color: var(--hover-color);
5731
+ }
5732
+ .btn.text:focus, .text.btn-small:focus, .text.btn-large:focus, .btn-flat:focus {
5733
+ background-color: var(--focus-color);
5734
+ }
5735
+ .btn.text.disabled, .text.disabled.btn-small, .text.disabled.btn-large, .btn.text.btn.text[disabled], .text.text[disabled].btn-small, .text.text[disabled].btn-large, .btn.text.btn-flat[disabled], .btn-flat.disabled, .btn-flat.btn.text[disabled], .btn-flat.btn-flat[disabled] {
5736
+ background-color: transparent !important;
5737
+ color: var(--font-color-disabled) !important;
5738
+ cursor: default;
5788
5739
  }
5740
+
5741
+ .btn.outlined, .outlined.btn-small, .outlined.btn-large {
5742
+ background-color: transparent;
5743
+ color: var(--primary-color);
5744
+ border: 1px solid var(--primary-color);
5745
+ }
5746
+
5789
5747
  .btn:hover, .btn-small:hover, .btn-large:hover {
5790
5748
  background-color: var(--primary-color-raised-hover-solid);
5791
5749
  }
@@ -5794,17 +5752,21 @@ small {
5794
5752
  }
5795
5753
 
5796
5754
  .btn-floating {
5797
- display: inline-block;
5798
5755
  color: var(--font-on-secondary-color-main);
5799
- position: relative;
5800
- overflow: hidden;
5801
- z-index: 1;
5802
5756
  width: 40px;
5803
5757
  height: 40px;
5804
- line-height: 40px;
5805
- padding: 0;
5806
5758
  background-color: var(--secondary-color);
5807
- border-radius: 50%;
5759
+ border-radius: 16px;
5760
+ padding: 0;
5761
+ display: grid;
5762
+ grid-auto-flow: column;
5763
+ -webkit-box-align: center;
5764
+ -webkit-align-items: center;
5765
+ -ms-flex-align: center;
5766
+ align-items: center;
5767
+ position: relative;
5768
+ overflow: hidden;
5769
+ z-index: 1;
5808
5770
  -webkit-transition: background-color 0.3s;
5809
5771
  transition: background-color 0.3s;
5810
5772
  cursor: pointer;
@@ -5827,9 +5789,6 @@ small {
5827
5789
  .btn-floating.btn-large.halfway-fab {
5828
5790
  bottom: -28px;
5829
5791
  }
5830
- .btn-floating.btn-large i {
5831
- line-height: 56px;
5832
- }
5833
5792
  .btn-floating.btn-small {
5834
5793
  width: 30px;
5835
5794
  height: 30px;
@@ -5837,9 +5796,6 @@ small {
5837
5796
  .btn-floating.btn-small.halfway-fab {
5838
5797
  bottom: -15px;
5839
5798
  }
5840
- .btn-floating.btn-small i {
5841
- line-height: 30px;
5842
- }
5843
5799
  .btn-floating.halfway-fab {
5844
5800
  position: absolute;
5845
5801
  right: 24px;
@@ -5850,12 +5806,11 @@ small {
5850
5806
  left: 24px;
5851
5807
  }
5852
5808
  .btn-floating i {
5809
+ color: var(--font-on-secondary-color-main);
5810
+ font-size: 1.6rem;
5853
5811
  width: inherit;
5854
5812
  display: inline-block;
5855
5813
  text-align: center;
5856
- color: var(--font-on-secondary-color-main);
5857
- font-size: 1.6rem;
5858
- line-height: 40px;
5859
5814
  }
5860
5815
 
5861
5816
  button.btn-floating {
@@ -5990,37 +5945,13 @@ button.btn-floating {
5990
5945
  width: 40px;
5991
5946
  height: 40px;
5992
5947
  background-color: var(--secondary-color);
5993
- border-radius: 50%;
5948
+ border-radius: 16px;
5994
5949
  -webkit-transform: scale(0);
5995
5950
  transform: scale(0);
5996
5951
  }
5997
5952
 
5998
- .btn-flat {
5999
- -webkit-box-shadow: none;
6000
- box-shadow: none;
6001
- background-color: transparent;
6002
- color: var(--font-color-medium);
6003
- cursor: pointer;
6004
- -webkit-transition: background-color 0.2s;
6005
- transition: background-color 0.2s;
6006
- }
6007
- .btn-flat:focus, .btn-flat:hover {
6008
- -webkit-box-shadow: none;
6009
- box-shadow: none;
6010
- background-color: var(--hover-color);
6011
- }
6012
- .btn-flat:focus {
6013
- background-color: var(--focus-color);
6014
- }
6015
- .btn-flat.disabled, .btn-flat.btn-flat[disabled] {
6016
- background-color: transparent !important;
6017
- color: var(--font-color-disabled) !important;
6018
- cursor: default;
6019
- }
6020
-
6021
5953
  .btn-large {
6022
5954
  height: 60px;
6023
- line-height: 60px;
6024
5955
  font-size: 18px;
6025
5956
  padding: 0 28px;
6026
5957
  }
@@ -6041,6 +5972,10 @@ button.btn-floating {
6041
5972
  display: block;
6042
5973
  }
6043
5974
 
5975
+ .btn.rounded, .rounded.btn-large, .rounded.btn-small {
5976
+ border-radius: 99999px;
5977
+ }
5978
+
6044
5979
  .dropdown-content {
6045
5980
  padding-left: 0;
6046
5981
  list-style-type: none;
@@ -6232,16 +6167,28 @@ body.keyboard-focused .dropdown-content li:focus {
6232
6167
  margin-right: 1rem;
6233
6168
  }
6234
6169
 
6170
+ .collapsible-header::after {
6171
+ content: "▾";
6172
+ text-align: right;
6173
+ margin-right: 0.25rem;
6174
+ width: 100%;
6175
+ }
6176
+
6177
+ .active .collapsible-header::after {
6178
+ content: "▴";
6179
+ }
6180
+
6235
6181
  .keyboard-focused .collapsible-header:focus {
6236
6182
  background-color: var(--focus-color);
6237
6183
  }
6238
6184
 
6239
6185
  .collapsible-body {
6240
- display: none;
6186
+ max-height: 0;
6241
6187
  border-bottom: 1px solid var(--separator-color);
6242
6188
  -webkit-box-sizing: border-box;
6243
6189
  box-sizing: border-box;
6244
- padding: 2rem;
6190
+ padding: 0 2rem;
6191
+ overflow: hidden;
6245
6192
  background-color: var(--surface-color);
6246
6193
  }
6247
6194
 
@@ -6264,45 +6211,95 @@ body.keyboard-focused .dropdown-content li:focus {
6264
6211
  }
6265
6212
 
6266
6213
  .chip {
6267
- display: inline-block;
6214
+ --font-size: 14px;
6215
+ --font-size-icon: 18px;
6216
+ --padding: 8px;
6217
+ background-color: var(--background-color-level-4dp);
6218
+ display: -webkit-inline-box;
6219
+ display: -webkit-inline-flex;
6220
+ display: -ms-inline-flexbox;
6221
+ display: inline-flex;
6222
+ white-space: nowrap;
6223
+ gap: 8px;
6224
+ margin: 0;
6268
6225
  height: 32px;
6269
- font-size: 13px;
6226
+ padding-left: var(--padding);
6227
+ padding-right: var(--padding);
6228
+ font-size: var(--font-size);
6270
6229
  font-weight: 500;
6271
6230
  color: var(--font-color-medium);
6272
- line-height: 32px;
6273
- padding: 0 12px;
6274
- border-radius: 16px;
6275
- background-color: var(--background-color-level-4dp);
6276
- margin-bottom: 5px;
6277
- margin-right: 5px;
6231
+ border-radius: 8px;
6232
+ -webkit-box-align: center;
6233
+ -webkit-align-items: center;
6234
+ -ms-flex-align: center;
6235
+ align-items: center;
6236
+ -webkit-user-select: none;
6237
+ -moz-user-select: none;
6238
+ -ms-user-select: none;
6239
+ user-select: none;
6240
+ vertical-align: top;
6278
6241
  }
6279
6242
  .chip:focus {
6280
6243
  outline: none;
6281
6244
  background-color: var(--primary-color);
6282
6245
  color: var(--font-on-primary-color-main);
6283
6246
  }
6247
+
6248
+ .chip.outlined {
6249
+ background-color: transparent;
6250
+ border-color: var(--md-sys-color-outline);
6251
+ border-width: 1px;
6252
+ border-style: solid;
6253
+ }
6254
+
6284
6255
  .chip > img {
6285
- float: left;
6286
- margin: 0 8px 0 -12px;
6287
- height: 32px;
6288
- width: 32px;
6289
- border-radius: 50%;
6256
+ margin: 0;
6257
+ width: 24px;
6258
+ height: 24px;
6259
+ -o-object-fit: cover;
6260
+ object-fit: cover;
6261
+ border-radius: 12px;
6262
+ }
6263
+
6264
+ .chip > .material-icons {
6265
+ font-size: var(--font-size-icon);
6290
6266
  }
6267
+
6291
6268
  .chip .close {
6269
+ border-radius: 50%;
6270
+ height: 24px;
6271
+ width: 24px;
6272
+ padding: 0;
6273
+ display: grid;
6274
+ -webkit-box-pack: center;
6275
+ -webkit-justify-content: center;
6276
+ -ms-flex-pack: center;
6277
+ justify-content: center;
6278
+ -webkit-align-content: center;
6279
+ -ms-flex-line-pack: center;
6280
+ align-content: center;
6292
6281
  cursor: pointer;
6293
- float: right;
6294
- font-size: 16px;
6295
- line-height: 32px;
6296
- padding-left: 8px;
6282
+ }
6283
+
6284
+ .chip .close:hover {
6285
+ background-color: rgba(136, 136, 136, 0.5333333333);
6297
6286
  }
6298
6287
 
6299
6288
  .chips {
6289
+ display: -webkit-box;
6290
+ display: -webkit-flex;
6291
+ display: -ms-flexbox;
6292
+ display: flex;
6293
+ gap: 4px;
6294
+ -webkit-flex-wrap: wrap;
6295
+ -ms-flex-wrap: wrap;
6296
+ flex-wrap: wrap;
6300
6297
  border: none;
6301
6298
  border-bottom: 1px solid var(--font-color-medium);
6302
6299
  -webkit-box-shadow: none;
6303
6300
  box-shadow: none;
6304
6301
  margin: 0 0 8px 0;
6305
- min-height: 45px;
6302
+ padding: 4px;
6306
6303
  outline: none;
6307
6304
  -webkit-transition: all 0.3s;
6308
6305
  transition: all 0.3s;
@@ -6321,8 +6318,7 @@ body.keyboard-focused .dropdown-content li:focus {
6321
6318
  color: var(--font-color-main);
6322
6319
  display: inline-block;
6323
6320
  font-size: 16px;
6324
- height: 3rem;
6325
- line-height: 32px;
6321
+ height: 32px;
6326
6322
  outline: 0;
6327
6323
  margin: 0;
6328
6324
  padding: 0;
@@ -6379,7 +6375,7 @@ body.keyboard-focused .dropdown-content li:focus {
6379
6375
  right: 0;
6380
6376
  bottom: 0;
6381
6377
  left: 0;
6382
- background-color: #292929;
6378
+ background-color: var(--md-sys-color-background);
6383
6379
  z-index: 1000;
6384
6380
  will-change: opacity;
6385
6381
  }
@@ -6387,7 +6383,7 @@ body.keyboard-focused .dropdown-content li:focus {
6387
6383
  .materialbox-caption {
6388
6384
  position: fixed;
6389
6385
  display: none;
6390
- color: #fff;
6386
+ color: var(--font-color-main);
6391
6387
  line-height: 50px;
6392
6388
  bottom: 0;
6393
6389
  left: 0;
@@ -7024,6 +7020,17 @@ textarea.materialize-textarea {
7024
7020
 
7025
7021
  /* Switch
7026
7022
  ========================================================================== */
7023
+ .switch {
7024
+ --track-height: 32px;
7025
+ --track-width: 52px;
7026
+ --border-width: 2px;
7027
+ --size-off: 16px;
7028
+ --size-on: 24px;
7029
+ --icon-size: 16px;
7030
+ --gap-on: calc(((var(--track-height) - var(--size-on)) / 2) - var(--border-width));
7031
+ --gap-off: calc(((var(--track-height) - var(--size-off)) / 2) - var(--border-width));
7032
+ }
7033
+
7027
7034
  .switch,
7028
7035
  .switch * {
7029
7036
  -webkit-tap-highlight-color: transparent;
@@ -7043,22 +7050,24 @@ textarea.materialize-textarea {
7043
7050
  height: 0;
7044
7051
  }
7045
7052
  .switch label input[type=checkbox]:checked + .lever {
7046
- background-color: rgba(var(--primary-color-numeric), 0.32);
7053
+ background-color: var(--primary-color);
7054
+ border-color: var(--primary-color);
7047
7055
  }
7048
7056
  .switch label input[type=checkbox]:checked + .lever:before, .switch label input[type=checkbox]:checked + .lever:after {
7049
- left: 18px;
7057
+ top: var(--gap-on);
7058
+ left: calc(var(--track-width) - var(--size-on) - var(--gap-on) - 2 * var(--border-width));
7059
+ width: var(--size-on);
7060
+ height: var(--size-on);
7050
7061
  }
7051
- .switch label input[type=checkbox]:checked + .lever:after {
7052
- background-color: var(--primary-color);
7053
- }
7054
-
7055
7062
  .switch label .lever {
7056
7063
  content: "";
7057
7064
  display: inline-block;
7058
7065
  position: relative;
7059
- width: 36px;
7060
- height: 14px;
7061
- background-color: var(--slider-track-color);
7066
+ width: var(--track-width);
7067
+ height: var(--track-height);
7068
+ border-style: solid;
7069
+ border-width: 2px;
7070
+ border-color: var(--md-sys-color-outline);
7062
7071
  border-radius: 15px;
7063
7072
  margin-right: 10px;
7064
7073
  -webkit-transition: background 0.3s ease;
@@ -7070,20 +7079,19 @@ textarea.materialize-textarea {
7070
7079
  content: "";
7071
7080
  position: absolute;
7072
7081
  display: inline-block;
7073
- width: 20px;
7074
- height: 20px;
7082
+ width: var(--size-off);
7083
+ height: var(--size-off);
7075
7084
  border-radius: 50%;
7076
- left: 0;
7077
- top: -3px;
7085
+ left: var(--gap-off);
7086
+ top: var(--gap-off);
7078
7087
  -webkit-transition: left 0.3s ease, background 0.3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform 0.1s ease;
7079
7088
  transition: left 0.3s ease, background 0.3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform 0.1s ease;
7080
7089
  transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease, transform 0.1s ease;
7081
7090
  transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease, transform 0.1s ease, -webkit-box-shadow 0.1s ease, -webkit-transform 0.1s ease;
7082
7091
  }
7083
7092
  .switch label .lever:after {
7084
- background-color: var(--switch-thumb-off-color);
7085
- -webkit-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);
7086
- 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);
7093
+ height: var(--size-off);
7094
+ width: var(--size-off);
7087
7095
  }
7088
7096
 
7089
7097
  input[type=checkbox]:not(:disabled) ~ .lever:active:before,
@@ -7399,7 +7407,6 @@ input[type=range] {
7399
7407
 
7400
7408
  input[type=range]::-webkit-slider-runnable-track {
7401
7409
  height: 3px;
7402
- background: var(--slider-track-color);
7403
7410
  border: none;
7404
7411
  }
7405
7412
 
@@ -7431,7 +7438,6 @@ input[type=range] {
7431
7438
 
7432
7439
  input[type=range]::-moz-range-track {
7433
7440
  height: 3px;
7434
- background: var(--slider-track-color);
7435
7441
  border: none;
7436
7442
  }
7437
7443
 
@@ -7743,6 +7749,109 @@ input[type=range]::-ms-thumb {
7743
7749
  border: none;
7744
7750
  }
7745
7751
 
7752
+ .progress {
7753
+ position: relative;
7754
+ height: 4px;
7755
+ display: block;
7756
+ width: 100%;
7757
+ border-radius: 2px;
7758
+ margin: 0.5rem 0 1rem 0;
7759
+ overflow: hidden;
7760
+ }
7761
+ .progress .determinate {
7762
+ position: absolute;
7763
+ top: 0;
7764
+ left: 0;
7765
+ bottom: 0;
7766
+ background-color: var(--primary-color);
7767
+ -webkit-transition: width 0.3s linear;
7768
+ transition: width 0.3s linear;
7769
+ }
7770
+ .progress .indeterminate {
7771
+ background-color: var(--primary-color);
7772
+ }
7773
+ .progress .indeterminate:before {
7774
+ content: "";
7775
+ position: absolute;
7776
+ background-color: inherit;
7777
+ top: 0;
7778
+ left: 0;
7779
+ bottom: 0;
7780
+ will-change: left, right;
7781
+ -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
7782
+ animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
7783
+ }
7784
+ .progress .indeterminate:after {
7785
+ content: "";
7786
+ position: absolute;
7787
+ background-color: inherit;
7788
+ top: 0;
7789
+ left: 0;
7790
+ bottom: 0;
7791
+ will-change: left, right;
7792
+ -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
7793
+ animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
7794
+ -webkit-animation-delay: 1.15s;
7795
+ animation-delay: 1.15s;
7796
+ }
7797
+
7798
+ @-webkit-keyframes indeterminate {
7799
+ 0% {
7800
+ left: -35%;
7801
+ right: 100%;
7802
+ }
7803
+ 60% {
7804
+ left: 100%;
7805
+ right: -90%;
7806
+ }
7807
+ 100% {
7808
+ left: 100%;
7809
+ right: -90%;
7810
+ }
7811
+ }
7812
+
7813
+ @keyframes indeterminate {
7814
+ 0% {
7815
+ left: -35%;
7816
+ right: 100%;
7817
+ }
7818
+ 60% {
7819
+ left: 100%;
7820
+ right: -90%;
7821
+ }
7822
+ 100% {
7823
+ left: 100%;
7824
+ right: -90%;
7825
+ }
7826
+ }
7827
+ @-webkit-keyframes indeterminate-short {
7828
+ 0% {
7829
+ left: -200%;
7830
+ right: 100%;
7831
+ }
7832
+ 60% {
7833
+ left: 107%;
7834
+ right: -8%;
7835
+ }
7836
+ 100% {
7837
+ left: 107%;
7838
+ right: -8%;
7839
+ }
7840
+ }
7841
+ @keyframes indeterminate-short {
7842
+ 0% {
7843
+ left: -200%;
7844
+ right: 100%;
7845
+ }
7846
+ 60% {
7847
+ left: 107%;
7848
+ right: -8%;
7849
+ }
7850
+ 100% {
7851
+ left: 107%;
7852
+ right: -8%;
7853
+ }
7854
+ }
7746
7855
  /*
7747
7856
  @license
7748
7857
  Copyright (c) 2014 The Polymer Project Authors. All rights reserved.