@shortfuse/materialdesignweb 0.7.0 → 0.7.1-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.
Files changed (141) hide show
  1. package/bin/generate-css.js +1 -2
  2. package/components/Badge.js +40 -3
  3. package/components/Body.js +16 -2
  4. package/components/BottomAppBar.js +25 -2
  5. package/components/Box.js +33 -3
  6. package/components/Button.js +146 -9
  7. package/components/Card.js +111 -3
  8. package/components/Checkbox.js +91 -3
  9. package/components/CheckboxIcon.js +92 -4
  10. package/components/Chip.js +38 -2
  11. package/components/Dialog.js +237 -3
  12. package/components/DialogActions.js +3 -2
  13. package/components/Divider.js +44 -3
  14. package/components/ExtendedFab.js +27 -2
  15. package/components/Fab.js +26 -2
  16. package/components/FilterChip.js +83 -2
  17. package/components/Headline.js +16 -2
  18. package/components/Icon.js +80 -4
  19. package/components/IconButton.js +153 -2
  20. package/components/Label.js +16 -2
  21. package/components/Layout.js +21 -3
  22. package/components/List.js +15 -2
  23. package/components/ListItem.js +229 -3
  24. package/components/ListOption.js +37 -3
  25. package/components/ListSelect.js +12 -2
  26. package/components/Menu.js +173 -3
  27. package/components/MenuItem.js +55 -2
  28. package/components/Nav.js +19 -2
  29. package/components/NavBar.js +37 -2
  30. package/components/NavBarItem.js +44 -2
  31. package/components/NavDrawer.js +34 -2
  32. package/components/NavDrawerItem.js +44 -2
  33. package/components/NavItem.js +183 -3
  34. package/components/NavRail.js +50 -2
  35. package/components/NavRailItem.js +25 -2
  36. package/components/Pane.js +263 -3
  37. package/components/Progress.js +469 -10
  38. package/components/Radio.js +97 -3
  39. package/components/RadioIcon.js +77 -5
  40. package/components/Ripple.js +76 -3
  41. package/components/SegmentedButton.js +97 -2
  42. package/components/SegmentedButtonGroup.js +15 -2
  43. package/components/Select.js +54 -2
  44. package/components/Shape.js +55 -18
  45. package/components/Slider.js +309 -3
  46. package/components/Snackbar.js +82 -2
  47. package/components/Surface.js +13 -4
  48. package/components/Switch.js +67 -4
  49. package/components/SwitchIcon.js +272 -5
  50. package/components/Tab.js +87 -3
  51. package/components/TabContent.js +21 -21
  52. package/components/TabList.js +131 -2
  53. package/components/TextArea.js +97 -3
  54. package/components/Title.js +16 -2
  55. package/components/Tooltip.js +42 -2
  56. package/components/TopAppBar.js +212 -3
  57. package/core/template.js +36 -9
  58. package/index.js +77 -0
  59. package/mixins/ControlMixin.js +65 -2
  60. package/mixins/DensityMixin.js +17 -3
  61. package/mixins/FlexableMixin.js +81 -3
  62. package/mixins/RippleMixin.js +15 -4
  63. package/mixins/ShapeMixin.js +279 -8
  64. package/mixins/StateMixin.js +87 -5
  65. package/mixins/SurfaceMixin.js +152 -3
  66. package/mixins/TextFieldMixin.js +661 -2
  67. package/mixins/ThemableMixin.js +206 -3
  68. package/mixins/TooltipTriggerMixin.js +30 -4
  69. package/mixins/TouchTargetMixin.js +29 -4
  70. package/package.json +3 -1
  71. package/theming/index.js +0 -121
  72. package/theming/loader.js +0 -2
  73. package/utils/svg.js +0 -117
  74. package/components/Badge.css +0 -30
  75. package/components/Body.css +0 -14
  76. package/components/BottomAppBar.css +0 -23
  77. package/components/Box.css +0 -31
  78. package/components/Button.css +0 -146
  79. package/components/Card.css +0 -109
  80. package/components/Checkbox.css +0 -77
  81. package/components/CheckboxIcon.css +0 -89
  82. package/components/Chip.css +0 -35
  83. package/components/Dialog.css +0 -235
  84. package/components/Divider.css +0 -41
  85. package/components/ExtendedFab.css +0 -24
  86. package/components/Fab.css +0 -23
  87. package/components/FilterChip.css +0 -80
  88. package/components/Headline.css +0 -14
  89. package/components/Icon.css +0 -76
  90. package/components/IconButton.css +0 -151
  91. package/components/Label.css +0 -14
  92. package/components/Layout.css +0 -19
  93. package/components/List.css +0 -12
  94. package/components/ListItem.css +0 -224
  95. package/components/ListOption.css +0 -34
  96. package/components/ListSelect.css +0 -9
  97. package/components/Menu.css +0 -171
  98. package/components/MenuItem.css +0 -53
  99. package/components/Nav.css +0 -17
  100. package/components/NavBar.css +0 -34
  101. package/components/NavBarItem.css +0 -41
  102. package/components/NavDrawer.css +0 -31
  103. package/components/NavDrawerItem.css +0 -42
  104. package/components/NavItem.css +0 -181
  105. package/components/NavRail.css +0 -47
  106. package/components/NavRailItem.css +0 -25
  107. package/components/Outline.css +0 -138
  108. package/components/Pane.css +0 -261
  109. package/components/Progress.css +0 -74
  110. package/components/ProgressCircle.css +0 -226
  111. package/components/ProgressLine.css +0 -155
  112. package/components/Radio.css +0 -83
  113. package/components/RadioIcon.css +0 -73
  114. package/components/Ripple.css +0 -74
  115. package/components/SegmentedButton.css +0 -94
  116. package/components/SegmentedButtonGroup.css +0 -12
  117. package/components/Select.css +0 -52
  118. package/components/Shape.css +0 -132
  119. package/components/Slider.css +0 -306
  120. package/components/Snackbar.css +0 -80
  121. package/components/Surface.css +0 -10
  122. package/components/Switch.css +0 -63
  123. package/components/SwitchIcon.css +0 -177
  124. package/components/SwitchIconAnimations.css +0 -89
  125. package/components/Tab.css +0 -85
  126. package/components/TabList.css +0 -129
  127. package/components/TextArea.css +0 -93
  128. package/components/Title.css +0 -14
  129. package/components/Tooltip.css +0 -40
  130. package/components/TopAppBar.css +0 -209
  131. package/mixins/ControlMixin.css +0 -57
  132. package/mixins/DensityMixin.css +0 -40
  133. package/mixins/FlexableMixin.css +0 -79
  134. package/mixins/RippleMixin.css +0 -12
  135. package/mixins/ShapeMixin.css +0 -135
  136. package/mixins/StateMixin.css +0 -82
  137. package/mixins/SurfaceMixin.css +0 -150
  138. package/mixins/TextFieldMixin.css +0 -657
  139. package/mixins/ThemableMixin.css +0 -204
  140. package/mixins/TooltipTriggerMixin.css +0 -27
  141. package/mixins/TouchTargetMixin.css +0 -26
@@ -1,31 +0,0 @@
1
- :host {
2
- display: block;
3
- }
4
-
5
- :host([inline]) {
6
- display: inline-block;
7
- }
8
-
9
- :host([flex]:where([inline])) {
10
- display: inline-flex;
11
- }
12
-
13
- :host([color]) {
14
- background-color: rgb(var(--mdw-bg));
15
- color: rgb(var(--mdw-ink));
16
- }
17
-
18
- :host([ink]) {
19
- color: rgb(var(--mdw-ink));
20
- }
21
-
22
- :host([type-style]) {
23
- font: var(--mdw-type__font);
24
- letter-spacing: var(--mdw-type__letter-spacing);
25
- }
26
-
27
- #slot {
28
- /* Passthrough from parent */
29
- block-size: inherit;
30
- inline-size: inherit;
31
- }
@@ -1,146 +0,0 @@
1
- /* https://m3.material.io/components/buttons/specs */
2
-
3
- :host {
4
- --mdw-shape__size: var(--mdw-shape__full);
5
- --mdw-ink: var(--mdw-color__primary);
6
-
7
- --mdw-type__font: var(--mdw-typescale__label-large__font);
8
- --mdw-type__letter-spacing: var(--mdw-typescale__label-large__letter-spacing);
9
-
10
- display: inline-flex;
11
-
12
- align-items: center;
13
- gap: 0;
14
- justify-content: center;
15
-
16
- /* box-sizing: border-box; */
17
- min-block-size: 24px;
18
- min-inline-size: 24px;
19
-
20
- padding-block: calc(8px + (var(--mdw-density) * 2px));
21
- padding-inline: calc(12px + (var(--mdw-density) * 2px));
22
-
23
- -webkit-tap-highlight-color: transparent;
24
- -webkit-user-select: none;
25
- user-select: none;
26
-
27
- color: rgb(var(--mdw-ink));
28
-
29
- font: var(--mdw-type__font);
30
- letter-spacing: var(--mdw-type__letter-spacing);
31
- }
32
-
33
- :host(:where([elevated],[filled])) {
34
- will-change: filter;
35
- }
36
-
37
- /** Elevated Color Defaults */
38
- :host(:where([elevated])) {
39
- --mdw-bg: var(--mdw-color__surface);
40
- --mdw-ink: var(--mdw-color__primary);
41
- --mdw-surface__shadow__resting: var(--mdw-surface__shadow__1);
42
- --mdw-surface__shadow__raised: var(--mdw-surface__shadow__2);
43
- --mdw-surface__tint: var(--mdw-surface__tint__1);
44
- --mdw-surface__tint__raised: var(--mdw-surface__tint__2);
45
- }
46
- /** Filled Color Defaults */
47
- :host(:where([filled])) {
48
- --mdw-bg: var(--mdw-color__primary);
49
- --mdw-ink: var(--mdw-color__on-primary);
50
- --mdw-surface__shadow__resting: var(--mdw-surface__shadow__0);
51
- --mdw-surface__shadow__raised: var(--mdw-surface__shadow__1);
52
- --mdw-surface__tint: 0;
53
- --mdw-surface__tint__raised: var(--mdw-surface__tint__1);
54
- }
55
- /** Filled Tonal Color Defaults */
56
- :host(:where([filled="tonal"])) {
57
- --mdw-bg: var(--mdw-color__secondary-container);
58
- --mdw-ink: var(--mdw-color__on-secondary-container);
59
- }
60
- /** Outlined Color Defaults */
61
- :host(:where([outlined])) {
62
- --mdw-ink: var(--mdw-color__primary);
63
- }
64
-
65
- :host(:where([icon])) {
66
- gap: 8px;
67
-
68
- padding-inline: calc(12px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px));
69
- }
70
-
71
- :host(:where([outlined], [elevated], [filled])) {
72
- padding-inline: calc(24px + (var(--mdw-density) * 2px));
73
- }
74
-
75
- :host(:where([icon]):where([outlined], [elevated], [filled])) {
76
- gap: 8px;
77
-
78
- padding-inline: calc(16px + (var(--mdw-density) * 2px)) calc(24px + (var(--mdw-density) * 2px));
79
- }
80
-
81
- #shape:where([elevated],[filled],[color]) {
82
- background-color: rgb(var(--mdw-bg));
83
- }
84
-
85
- #slot {
86
- text-align: center;
87
- text-decoration: none;
88
- white-space: nowrap;
89
- }
90
-
91
- #control {
92
- cursor: inherit;
93
- }
94
-
95
- :host([disabled]) {
96
- /* cursor: not-allowed; */
97
-
98
- color: rgba(var(--mdw-color__on-surface), 0.38);
99
- }
100
-
101
- #shape[disabled]:is([elevated], [filled]) {
102
- background-color: rgba(var(--mdw-color__on-surface), 0.12);
103
- color: rgba(var(--mdw-color__on-surface), 0.38);
104
- }
105
-
106
- #slot[disabled] {
107
- color: rgba(var(--mdw-color__on-surface), 0.38);
108
- }
109
-
110
- #icon {
111
- font-size: calc(18/14 * 1em);
112
- font-variation-settings: 'FILL' 1;
113
- }
114
-
115
- #icon[outlined] {
116
- font-variation-settings: 'FILL' 0;
117
- }
118
-
119
- #icon[disabled] {
120
- opacity: 0.38;
121
-
122
- color: rgba(var(--mdw-color__on-surface));
123
- }
124
-
125
- #label {
126
- cursor: pointer;
127
- }
128
-
129
- #label[disabled] {
130
- cursor: not-allowed;
131
- }
132
-
133
- /*
134
- @media screen and (max-resolution: 0.75dppx) { #touch-target { --mdw-device-pixel-ratio: 0.75; } }
135
- @media screen and (max-resolution: 0.85dppx) { #touch-target { --mdw-device-pixel-ratio: 0.90; } }
136
- @media screen and (max-resolution: 0.90dppx) { #touch-target { --mdw-device-pixel-ratio: 0.90; } }
137
- @media screen and (min-resolution: 1.5dppx) { #touch-target { --mdw-device-pixel-ratio: 1.5; } }
138
- @media screen and (min-resolution: 1.75dppx) { #touch-target { --mdw-device-pixel-ratio: 1.75; } }
139
- @media screen and (min-resolution: 2dppx) { #touch-target { --mdw-device-pixel-ratio: 2; } }
140
- */
141
-
142
- @media (any-pointer: coarse) {
143
- #touch-target {
144
- visibility: visible;
145
- }
146
- }
@@ -1,109 +0,0 @@
1
- /* https://m3.material.io/components/cards/specs */
2
-
3
- :host {
4
- --mdw-shape__size: 12px;
5
- --mdw-surface__tint: var(--mdw-surface__tint__0);
6
- --mdw-surface__tint__raised: var(--mdw-surface__tint);
7
-
8
- --mdw-surface__shadow__resting: none;
9
- --mdw-surface__shadow__raised: var(--mdw-surface__shadow__resting);
10
- /* padding-inline: 12px; */
11
-
12
- --mdw-bg: var(--mdw-color__surface);
13
- --mdw-ink: var(--mdw-color__on-surface);
14
- position: relative;
15
-
16
- display: block;
17
-
18
- color: rgb(var(--mdw-ink));
19
-
20
- font: var(--mdw-type__font);
21
- letter-spacing: var(--mdw-type__letter-spacing);
22
- }
23
-
24
- #shape:is([elevated],[filled]) {
25
- background-color: rgb(var(--mdw-bg));
26
- }
27
-
28
- :host(:where([filled])) {
29
- --mdw-bg: var(--mdw-color__surface-variant);
30
- --mdw-ink: var(--mdw-color__on-surface-variant);
31
- }
32
-
33
- :host(:where([elevated])) {
34
- --mdw-bg: var(--mdw-color__surface);
35
- --mdw-ink: var(--mdw-color__on-surface);
36
- }
37
-
38
- :host([filled]) {
39
- --mdw-surface__tint: var(--mdw-surface__tint__0);
40
- --mdw-surface__shadow__resting: var(--mdw-surface__shadow__0);
41
- }
42
-
43
- :host([filled][actionable]) {
44
- --mdw-surface__tint__raised: var(--mdw-surface__tint__1);
45
- --mdw-surface__shadow__raised: var(--mdw-surface__shadow__1);
46
- }
47
-
48
- :host([elevated]) {
49
- --mdw-surface__tint: var(--mdw-surface__tint__1);
50
- --mdw-surface__shadow__resting: var(--mdw-surface__shadow__1);
51
- }
52
-
53
- :host([elevated][actionable]) {
54
- --mdw-surface__tint__raised: var(--mdw-surface__tint__2);
55
- --mdw-surface__shadow__raised: var(--mdw-surface__shadow__2);
56
- }
57
-
58
- #shape[disabled] {
59
-
60
- /* Works on images */
61
- filter: grayscale();
62
-
63
- color: rgb(var(--mdw-color__on-surface));
64
- }
65
-
66
- :host([disabled]) {
67
- cursor: not-allowed;
68
-
69
- filter: grayscale();
70
- opacity: 0.38;
71
- }
72
-
73
- #slot[disabled] {
74
- color: rgb(var(--mdw-color__on-surface));
75
- }
76
-
77
- #outline[disabled] {
78
- color: rgba(var(--mdw-color__on-surface), calc(0.12/0.38));
79
- }
80
-
81
- /** Firefox and Safari do not support [inert] */
82
-
83
- #inert-blocker {
84
- position: absolute;
85
- inset: 0;
86
-
87
- cursor: not-allowed;
88
- pointer-events: auto;
89
-
90
- z-index: 99;
91
- }
92
-
93
- #shape[disabled][elevated] {
94
- background-color: rgba(var(--mdw-color__surface-variant));
95
- }
96
-
97
- #action {
98
- --mdw-ink: inherit;
99
- --mdw-shape__size: inherit;
100
-
101
- position: absolute;
102
- inset: 0;
103
-
104
- padding: 0;
105
-
106
- z-index: 0;
107
-
108
- color: inherit
109
- }
@@ -1,77 +0,0 @@
1
- /* https://m3.material.io/components/checkbox/specs */
2
-
3
- :host {
4
- --mdw-ink: var(--mdw-color__on-primary);
5
- --mdw-bg: var(--mdw-color__primary);
6
-
7
- display: inline-grid;
8
- align-items: center;
9
- gap: 12px;
10
- grid-auto-flow: column;
11
- justify-content: flex-start;
12
-
13
- cursor: pointer;
14
-
15
- transition: none 100ms cubic-bezier(0.4, 0.0, 1, 1);
16
- }
17
-
18
- #control {
19
- grid-column: 1/1;
20
-
21
- cursor: inherit;
22
- }
23
-
24
- #label {
25
- cursor: inherit;
26
- }
27
-
28
- #label[disabled] {
29
- cursor: not-allowed;
30
- }
31
-
32
- #state,
33
- #ripple-container {
34
- inset-block-start: 50%;
35
- inset-inline-start: 50%;
36
-
37
- block-size: 40px;
38
- inline-size: 40px;
39
-
40
- transform: translateX(-50%) translateY(-50%);
41
-
42
- border-radius: 50%;
43
- }
44
-
45
- :host([disabled]) {
46
- opacity: 0.38;
47
- }
48
-
49
- #checkbox {
50
- position: relative;
51
-
52
- display: inline-flex;
53
-
54
- grid-column: 1 / 1;
55
-
56
- pointer-events: none;
57
-
58
- color: rgb(var(--mdw-color__on-surface));
59
- }
60
-
61
- #checkbox[selected] {
62
- color: rgb(var(--mdw-bg));
63
- }
64
-
65
- #checkbox[disabled] {
66
- color: rgb(var(--mdw-color__on-surface));
67
- }
68
-
69
- #checkbox[errored] {
70
- color: rgb(var(--mdw-color__error));
71
- }
72
-
73
- #icon {
74
- --mdw-ink: inherit;
75
- --mdw-bg: inherit;
76
- --disabled-opacity: 1;
77
- }
@@ -1,89 +0,0 @@
1
- /* https://m3.material.io/components/checkbox/specs */
2
-
3
- :host {
4
- --mdw-ink: var(--mdw-color__on-primary);
5
- --mdw-bg: var(--mdw-color__primary);
6
- --mdw-shape__size: 2px;
7
- --disabled-opacity: 0.38;
8
- position: relative;
9
-
10
- display: inline-block;
11
- align-items: center;
12
- justify-content: center;
13
-
14
- box-sizing: border-box;
15
- block-size: 18px;
16
- inline-size: 18px;
17
-
18
- font-size: 18px;
19
- }
20
-
21
- #shape {
22
- --mdw-shape__size: inherit;
23
- position: absolute;
24
- inset: 0;
25
-
26
- z-index: auto;
27
-
28
- background-color: transparent;
29
- }
30
-
31
- #icon {
32
- position: absolute;
33
- inset: 0;
34
-
35
- opacity: 0;
36
-
37
- background-color: rgb(var(--mdw-bg));
38
- color: rgb(var(--mdw-ink));
39
-
40
- transition-duration: 200ms;
41
- transition-property: opacity, background-color, color;
42
- will-change: opacity;
43
- }
44
-
45
- #outline {
46
- filter:
47
- drop-shadow(1px 0px 0px currentColor)
48
- drop-shadow(0px 1px 0px currentColor)
49
- drop-shadow(-1px 0px 0px currentColor)
50
- drop-shadow(0px -1px 0px currentColor);
51
-
52
- color: rgb(var(--mdw-color__on-surface));
53
-
54
- transition-duration: 200ms;
55
- transition-property: opacity, background-color, color;
56
- will-change: opacity;
57
- }
58
-
59
- /* Selected */
60
-
61
- #icon[selected] {
62
- opacity: 1;
63
- }
64
-
65
- #outline[selected] {
66
- opacity: 0;
67
- }
68
-
69
- /* Errored */
70
-
71
- #icon[errored] {
72
- background-color: rgb(var(--mdw-color__error));
73
- color: rgb(var(--mdw-color__on-error));
74
- }
75
-
76
- #outline[errored] {
77
- color: rgb(var(--mdw-color__error));
78
- }
79
-
80
- /* Disabled */
81
-
82
- #icon[disabled] {
83
- background-color: rgba(var(--mdw-color__on-surface), var(--disabled-opacity));
84
- color: rgb(var(--mdw-color__surface), var(--disabled-opacity));
85
- }
86
-
87
- #outline[disabled] {
88
- color: rgb(var(--mdw-color__on-surface), var(--disabled-opacity));
89
- }
@@ -1,35 +0,0 @@
1
- /* https://m3.material.io/components/chips/specs */
2
-
3
- :host {
4
- --mdw-shape__size: 8px;
5
- --mdw-ink: var(--mdw-color__on-surface);
6
- padding-block: calc(4px + (var(--mdw-density) * 2px));
7
- padding-inline: calc(16px + (var(--mdw-density) * 2px));
8
-
9
- color: rgb(var(--mdw-ink));
10
- }
11
-
12
- :host(:where([suggestion])) {
13
- --mdw-ink: var(--mdw-color__on-surface-variant);
14
- }
15
-
16
- :host(:where([icon])) {
17
- gap: 8px;
18
-
19
- padding-inline: calc(8px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px));
20
-
21
- }
22
-
23
- #outline {
24
- --mdw-ink: rgb(var(--mdw-color__on-surface-variant));
25
- }
26
-
27
- #outline:is([ink],[color]) {
28
- /* stylelint-disable-next-line rule-selector-property-disallowed-list */
29
- --mdw-ink: inherit;
30
- }
31
-
32
- #slot[disabled],
33
- #icon[disabled] {
34
- color: rgba(var(--mdw-color__on-surface), 0.38);
35
- }
@@ -1,235 +0,0 @@
1
- /* https://m3.material.io/components/dialogs/specs */
2
-
3
- :host {
4
- --mdw-dialog__expand-duration: var(--mdw-motion-expand-duration, 250ms);
5
- --mdw-dialog__simple-duration: var(--mdw-motion-simple-duration, 100ms);
6
- --mdw-dialog__standard-easing: var(--mdw-motion-standard-easing, cubic-bezier(0.4, 0.0, 0.2, 1));
7
- --mdw-dialog__deceleration-easing: var(--mdw-motion-deceleration-easing, cubic-bezier(0.0, 0.0, 0.2, 1));
8
- --mdw-dialog__fade-in-duration: var(--mdw-motion-fade-in-duration, 150ms);
9
-
10
- position: fixed;
11
- inset: 0;
12
-
13
- pointer-events: none;
14
-
15
- z-index: 24;
16
- }
17
-
18
- #dialog {
19
- position: fixed;
20
- inset-block-start: 0;
21
- inset-inline-start: 0;
22
-
23
- display: flex;
24
- align-items: center;
25
- flex-direction: row;
26
- justify-content: center;
27
-
28
- box-sizing: border-box;
29
- block-size:100%;
30
- max-block-size: none;
31
- inline-size:100%;
32
- max-inline-size: none;
33
- margin:0;
34
- border: none;
35
- padding: 48px;
36
-
37
- opacity: 0;
38
- /* visiblity:hidden still registers events, hide from pointer with scale(0) */
39
- transform: scale(0);
40
- visibility: hidden;
41
- z-index: 24;
42
-
43
- background-color: transparent;
44
-
45
- transition-delay: 0s, 200ms, 200ms;
46
- transition-duration: 200ms, 0s, 0s;
47
- transition-property: opacity, transform, visibility;
48
- transition-timing-function: ease-out;
49
- will-change: opacity;
50
- }
51
-
52
- @media (min-width: 1440px) {
53
- #dialog {
54
- padding: 56px;
55
- }
56
- }
57
-
58
- #dialog::backdrop {
59
- /** Use scrim instead */
60
- display: none;
61
- }
62
-
63
- #dialog[aria-hidden="false"],
64
- #dialog:modal {
65
- pointer-events: auto;
66
-
67
- opacity: 1;
68
-
69
- transform: none;
70
- visibility: visible;
71
-
72
- transition-delay: 0s;
73
- transition-duration: 0s;
74
- transition-timing-function: ease-in;
75
- }
76
-
77
- #scrim {
78
- position: fixed;
79
- inset: 0;
80
-
81
- overflow-y: scroll;
82
- overscroll-behavior: none;
83
- overscroll-behavior: contain;
84
- scrollbar-width: none;
85
-
86
- block-size: 100%;
87
- inline-size: 100%;
88
-
89
- cursor: default;
90
- pointer-events: inherit;
91
- -webkit-tap-highlight-color: transparent;
92
-
93
- opacity: 0.38;
94
- z-index: 0;
95
-
96
- background-color: rgb(var(--mdw-color__scrim));
97
- }
98
-
99
- #scrim::-webkit-scrollbar {
100
- display: none;
101
- }
102
-
103
- #scrim::after {
104
- content: '';
105
-
106
- display: block;
107
-
108
- block-size: 200%;
109
- inline-size: 200%;
110
- }
111
- @keyframes scaleUpAnimation {
112
- from {
113
- transform: scaleY(0);
114
- }
115
-
116
- to {
117
- transform: scaleY(1);
118
- }
119
- }
120
-
121
- #surface {
122
- --mdw-shape__size: 28px;
123
-
124
- position: relative;
125
-
126
- display: flex;
127
- align-items: flex-start;
128
- flex-direction: column;
129
- -webkit-overflow-scrolling: touch;
130
- overscroll-behavior: none;
131
- overscroll-behavior: contain;
132
-
133
- box-sizing: border-box;
134
- max-block-size: 100%;
135
- min-inline-size: 280px;
136
- max-inline-size: 560px;
137
- flex-shrink: 1;
138
-
139
- padding-block-start: 8px;
140
-
141
- transform: scale(1);
142
- transform-origin: top center;
143
- z-index: 24;
144
-
145
- will-change: display, transform;
146
- }
147
-
148
- #surface[icon] {
149
- align-items: center;
150
- }
151
-
152
- #surface[open] {
153
- animation-name: scaleUpAnimation;
154
- animation-duration: 200ms;
155
- animation-direction: forwards;
156
- }
157
-
158
- #icon {
159
- padding-block-start: 16px;
160
-
161
- font-size: 24px;
162
- }
163
-
164
- #headline {
165
- display: block;
166
-
167
- padding-block-start: 16px;
168
- padding-inline: 24px;
169
-
170
- font: var(--mdw-typescale__headline-small__font);
171
- letter-spacing: var(--mdw-typescale__headline-small__letter-spacing);
172
- }
173
-
174
- #headline:not([slotted]):empty {
175
- display: none;
176
- }
177
-
178
- #body {
179
- padding-block: 16px;
180
- }
181
-
182
- .content {
183
- padding-inline: 24px;
184
- }
185
-
186
- #divider-top {
187
- padding-block-start: 16px;
188
- }
189
-
190
- mdw-divider:not([size]) {
191
- color: transparent;
192
- }
193
-
194
- mdw-divider[size="inset"] {
195
- padding-inline: 24px;
196
- }
197
-
198
- #fixed {
199
- display:block;
200
-
201
- padding-block-start: 16px;
202
-
203
- color: rgb(var(--mdw-color__on-surface-variant));
204
-
205
- font: var(--mdw-typescale__body-medium__font);
206
- letter-spacing: var(--mdw-typescale__body-medium__letter-spacing);
207
- }
208
-
209
- #fixed:not([slotted]) {
210
- display: none;
211
- }
212
-
213
- #slot {
214
- display:block;
215
-
216
- overflow-y: auto;
217
-
218
- color: rgb(var(--mdw-color__on-surface-variant));
219
-
220
- font: var(--mdw-typescale__body-medium__font);
221
- letter-spacing: var(--mdw-typescale__body-medium__letter-spacing);
222
- }
223
-
224
- #scroller {
225
- display: block;
226
- overflow-y: auto;
227
- }
228
-
229
- #form {
230
- display: contents;
231
- }
232
-
233
- #form-slot::slotted(form) {
234
- display: contents;
235
- }