@shortfuse/materialdesignweb 0.7.1-0 → 0.7.1-2

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 (138) 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/mixins/ControlMixin.js +65 -2
  59. package/mixins/DensityMixin.js +17 -3
  60. package/mixins/FlexableMixin.js +81 -3
  61. package/mixins/RippleMixin.js +15 -4
  62. package/mixins/ShapeMixin.js +279 -8
  63. package/mixins/StateMixin.js +87 -5
  64. package/mixins/SurfaceMixin.js +152 -3
  65. package/mixins/TextFieldMixin.js +661 -3
  66. package/mixins/ThemableMixin.js +206 -3
  67. package/mixins/TooltipTriggerMixin.js +30 -4
  68. package/mixins/TouchTargetMixin.js +29 -4
  69. package/package.json +2 -1
  70. package/theming/loader.js +0 -2
  71. package/components/Badge.css +0 -38
  72. package/components/Body.css +0 -14
  73. package/components/BottomAppBar.css +0 -23
  74. package/components/Box.css +0 -31
  75. package/components/Button.css +0 -147
  76. package/components/Card.css +0 -109
  77. package/components/Checkbox.css +0 -89
  78. package/components/CheckboxIcon.css +0 -90
  79. package/components/Chip.css +0 -35
  80. package/components/Dialog.css +0 -235
  81. package/components/Divider.css +0 -41
  82. package/components/ExtendedFab.css +0 -24
  83. package/components/Fab.css +0 -23
  84. package/components/FilterChip.css +0 -80
  85. package/components/Headline.css +0 -14
  86. package/components/Icon.css +0 -76
  87. package/components/IconButton.css +0 -150
  88. package/components/Label.css +0 -14
  89. package/components/Layout.css +0 -19
  90. package/components/List.css +0 -12
  91. package/components/ListItem.css +0 -224
  92. package/components/ListOption.css +0 -34
  93. package/components/ListSelect.css +0 -9
  94. package/components/Menu.css +0 -171
  95. package/components/MenuItem.css +0 -53
  96. package/components/Nav.css +0 -17
  97. package/components/NavBar.css +0 -34
  98. package/components/NavBarItem.css +0 -41
  99. package/components/NavDrawer.css +0 -31
  100. package/components/NavDrawerItem.css +0 -42
  101. package/components/NavItem.css +0 -181
  102. package/components/NavRail.css +0 -47
  103. package/components/NavRailItem.css +0 -25
  104. package/components/Outline.css +0 -138
  105. package/components/Pane.css +0 -261
  106. package/components/Progress.css +0 -75
  107. package/components/ProgressCircle.css +0 -226
  108. package/components/ProgressLine.css +0 -155
  109. package/components/Radio.css +0 -95
  110. package/components/RadioIcon.css +0 -73
  111. package/components/Ripple.css +0 -74
  112. package/components/SegmentedButton.css +0 -94
  113. package/components/SegmentedButtonGroup.css +0 -12
  114. package/components/Select.css +0 -52
  115. package/components/Shape.css +0 -132
  116. package/components/Slider.css +0 -307
  117. package/components/Snackbar.css +0 -80
  118. package/components/Surface.css +0 -10
  119. package/components/Switch.css +0 -64
  120. package/components/SwitchIcon.css +0 -178
  121. package/components/SwitchIconAnimations.css +0 -89
  122. package/components/Tab.css +0 -85
  123. package/components/TabList.css +0 -129
  124. package/components/TextArea.css +0 -93
  125. package/components/Title.css +0 -14
  126. package/components/Tooltip.css +0 -40
  127. package/components/TopAppBar.css +0 -209
  128. package/mixins/ControlMixin.css +0 -57
  129. package/mixins/DensityMixin.css +0 -40
  130. package/mixins/FlexableMixin.css +0 -79
  131. package/mixins/RippleMixin.css +0 -12
  132. package/mixins/ShapeMixin.css +0 -135
  133. package/mixins/StateMixin.css +0 -82
  134. package/mixins/SurfaceMixin.css +0 -150
  135. package/mixins/TextFieldMixin.css +0 -657
  136. package/mixins/ThemableMixin.css +0 -204
  137. package/mixins/TooltipTriggerMixin.css +0 -27
  138. package/mixins/TouchTargetMixin.css +0 -26
@@ -1,150 +0,0 @@
1
- /* https://m3.material.io/components/icon-buttons/specs */
2
-
3
- :host {
4
- --mdw-shape__size: var(--mdw-shape__full);
5
- --mdw-ink: rgb(var(--mdw-color__on-surface-variant));
6
-
7
- align-items: center;
8
- justify-content: center;
9
-
10
- padding: max(8px, calc(8px + (var(--mdw-density) * 2px)));
11
-
12
- background-color: transparent;
13
-
14
- font-size: 24px;
15
- }
16
-
17
- :host(:where([type="checkbox"])) {
18
- --mdw-ink: var(--mdw-color__primary);
19
- }
20
-
21
- /** Filled | Filled Checked */
22
- :host(:where([filled])) {
23
- --mdw-ink: var(--mdw-color__on-primary);
24
- --mdw-bg: var(--mdw-color__primary);
25
- --mdw-surface__shadow__resting: none;
26
- --mdw-surface__shadow__raised: none;
27
- }
28
-
29
- /** Tonal | Tonal Checked */
30
- :host(:where([filled="tonal"])) {
31
- --mdw-ink: var(--mdw-color__on-secondary-container);
32
- --mdw-bg: var(--mdw-color__secondary-container);
33
- }
34
-
35
- /** Outlined | Outlined Unchecked */
36
- :host(:where([outlined])) {
37
- --mdw-ink: var(--mdw-color__on-surface-variant);
38
- }
39
-
40
- /** Outlined | Outlined Unchecked */
41
- :host(:where([outlined][type="checkbox"])) {
42
- --mdw-bg: var(--mdw-color__inverse-surface);
43
- --mdw-ink: var(--mdw-color__inverse-on-surface);
44
- }
45
-
46
- #label {
47
- font-size: inherit;
48
- letter-spacing: inherit;
49
- }
50
-
51
- #shape[toggle] {
52
- background-color: transparent;
53
- }
54
-
55
- .colored[toggle] {
56
- color: rgb(var(--mdw-color__on-surface-variant));
57
- }
58
-
59
- .colored[selected] {
60
- /* background-color: rgb(var(--mdw-bg)); */
61
- color: rgb(var(--mdw-ink));
62
- }
63
-
64
- #shape[filled][toggle] {
65
- background-color: rgb(var(--mdw-color__surface-variant));
66
- }
67
-
68
- .colored[filled][toggle] {
69
- color: rgb(var(--mdw-bg));
70
- }
71
-
72
- #shape[filled="tonal"][toggle] {
73
- background-color: rgb(var(--mdw-color__surface-variant));
74
- }
75
-
76
- .colored[filled="tonal"][toggle] {
77
- color: rgb(var(--mdw-color__on-surface-variant));
78
- }
79
-
80
- #shape[filled][selected] {
81
- background-color: rgb(var(--mdw-bg));
82
- }
83
-
84
- .colored[filled][selected] {
85
- color: rgb(var(--mdw-ink));
86
- }
87
-
88
- #shape[outlined] {
89
- background-color: transparent;
90
- }
91
-
92
- .colored[outlined] {
93
- color: inherit;
94
- }
95
-
96
- #shape[outlined][toggle] {
97
- background-color: transparent;
98
- }
99
-
100
- .colored[outlined][toggle] {
101
- color: rgb(var(--mdw-color__on-surface-variant));
102
- }
103
-
104
- #shape[outlined][selected] {
105
- background-color: rgb(var(--mdw-bg));
106
- }
107
-
108
- .colored[outlined][selected] {
109
- color: rgb(var(--mdw-ink));
110
- }
111
-
112
- #icon {
113
- font-size: inherit;
114
- font-variation-settings: 'FILL' 1;
115
- }
116
-
117
- #icon[toggle] {
118
- font-variation-settings: 'FILL' 0;
119
- }
120
-
121
- #icon[selected] {
122
- font-variation-settings: 'FILL' 1;
123
- }
124
-
125
- #outline[focused] {
126
- opacity: 1;
127
-
128
- color: inherit;
129
- }
130
-
131
- #outline[selected] {
132
- opacity: 0;
133
- }
134
-
135
- /** Disabled */
136
- .colored[disabled] {
137
- cursor: not-allowed;
138
-
139
- color: rgba(var(--mdw-color__on-surface), 0.38);
140
- }
141
-
142
- #shape[disabled][filled],
143
- #shape[disabled][outlined][selected] {
144
- background-color: rgba(var(--mdw-color__on-surface), 0.12);
145
- }
146
-
147
- .colored[disabled][filled],
148
- .colored[disabled][outlined][selected] {
149
- color: rgba(var(--mdw-color__on-surface), 0.38);
150
- }
@@ -1,14 +0,0 @@
1
- :host {
2
- font: var(--mdw-typescale__label-large__font);
3
- letter-spacing: var(--mdw-typescale__body-large__letter-spacing);
4
- }
5
-
6
- :host([size="medium"]) {
7
- font: var(--mdw-typescale__label-medium__font);
8
- letter-spacing: var(--mdw-typescale__body-medium__letter-spacing);
9
- }
10
-
11
- :host([size="small"]) {
12
- font: var(--mdw-typescale__label-small__font);
13
- letter-spacing: var(--mdw-typescale__body-small__letter-spacing);
14
- }
@@ -1,19 +0,0 @@
1
- /* https://m3.material.io/foundations/layout/applying-layout/window-size-classes */
2
-
3
- :host {
4
- display: block;
5
- }
6
-
7
- /* Pane Slot */
8
- #slot {
9
- display: flex;
10
- gap: 24px;
11
-
12
- justify-content: center;
13
-
14
- padding-inline: 16px;
15
-
16
- transition: padding-inline 100ms;
17
- }
18
-
19
- @media screen and (min-width: 648px) { #slot { padding-inline: 24px; } }
@@ -1,12 +0,0 @@
1
- /* https://m3.material.io/components/lists/specs */
2
-
3
- :host {
4
- display: flex;
5
- flex-direction: column;
6
-
7
- padding-block: 8px;
8
- }
9
-
10
- :host(:focus) {
11
- outline: 1px solid red;
12
- }
@@ -1,224 +0,0 @@
1
- /* https://m3.material.io/components/lists/specs */
2
-
3
- :host {
4
- --mdw-shape__size: 0px;
5
- /* Grid does not auto collapse columns, leaving gaps */
6
-
7
- display: flex;
8
- align-items: center;
9
- gap: 16px;
10
-
11
- border: none;
12
- padding-block: 8px;
13
- padding-inline: 16px 24px;
14
-
15
- outline: none;
16
-
17
- color: inherit;
18
-
19
- text-decoration: none;
20
- cursor: auto;
21
- }
22
-
23
- :host([href]) {
24
- cursor: pointer;
25
- }
26
-
27
- #anchor {
28
- position: absolute;
29
- inset: 0;
30
- outline: none;
31
- color: inherit;
32
-
33
- }
34
-
35
- :host([video]) {
36
- padding-inline-start: 0;
37
- }
38
-
39
- :host([lines="3"]) {
40
- align-items: flex-start;
41
-
42
- padding-block: 12px;
43
- }
44
-
45
- #content {
46
- display: inline-flex;
47
- align-items: flex-start;
48
- flex-direction: column;
49
- justify-content: center;
50
-
51
- flex: 1;
52
-
53
- padding-block: calc(8px + (var(--mdw-density) * 2px));
54
- }
55
-
56
- #content:is([has-supporting], [lines="2"]) {
57
- box-sizing: border-box;
58
- min-block-size: calc(8px + calc(48px + var(--mdw-density) * 2px));
59
- padding-block: calc(4px + var(--mdw-density) * 2px);
60
- }
61
-
62
- #content:is([lines="3"]) {
63
- box-sizing: border-box;
64
- min-block-size: calc(8px + calc(48px + var(--mdw-density) * 2px));
65
- padding-block: calc(0 + var(--mdw-density) * 2px);
66
- }
67
-
68
- #icon {
69
- font-size: 24px;
70
- }
71
-
72
- #trailing-icon {
73
- font-size: 24px;
74
- }
75
-
76
- #divider {
77
- position: absolute;
78
- inset-block-end: 0;
79
-
80
- display: block;
81
-
82
- color: rgb(var(--mdw-color__surface-variant));
83
- }
84
-
85
- #divider[divider="inset"] {
86
- padding-inline: 16px 24px;
87
- }
88
-
89
- #slot {
90
- max-block-size: var(--mdw-typescale__body-large__line-height) * 2;
91
-
92
- /* background-color: rgba(255,0,0,0.10); */
93
-
94
- color: var(--mdw-color__on-surface);
95
-
96
- font: var(--mdw-typescale__body-large__font);
97
- letter-spacing: var(--mdw-typescale__body-large__letter-spacing);
98
- }
99
-
100
- #supporting {
101
- max-block-size: calc(var(--mdw-typescale__body-medium__line-height) * 2);
102
-
103
- /* background-color: rgba(0,255,0,0.10); */
104
-
105
- color: var(--mdw-color__on-surface-variant);
106
-
107
- font: var(--mdw-typescale__body-medium__font);
108
- letter-spacing: var(--mdw-typescale__body-medium__letter-spacing);
109
- }
110
-
111
- #trailing {
112
- color: var(--mdw-color__on-surface-variant);
113
-
114
- font: var(--mdw-typescale__body-medium__font);
115
- letter-spacing: var(--mdw-typescale__body-medium__letter-spacing);
116
- }
117
-
118
- #slot, #supporting {
119
- display: block;
120
- overflow-x: hidden;
121
- overflow-y: hidden;
122
-
123
- text-align: start;
124
- text-overflow: ellipsis;
125
- text-transform: none;
126
- white-space: normal;
127
- word-break: break-word;
128
- }
129
-
130
- #supporting[lines="2"] {
131
- min-block-size: var(--mdw-typescale__body-medium__line-height);
132
- max-block-size: var(--mdw-typescale__body-medium__line-height);
133
- }
134
-
135
- #supporting[lines="3"] {
136
- min-block-size: calc(var(--mdw-typescale__body-medium__line-height) * 2);
137
- max-block-size: calc(var(--mdw-typescale__body-medium__line-height) * 2);
138
- }
139
-
140
- @supports(width: 1lh) {
141
- #slot {
142
- max-block-size: 1lh;
143
- }
144
-
145
- #supporting {
146
- max-block-size: 2lh;
147
- }
148
-
149
- #supporting[lines="2"] {
150
- min-block-size: 1lh;
151
- max-block-size: 1lh;
152
- }
153
-
154
- #supporting[lines="3"] {
155
- min-block-size: 2lh;
156
- max-block-size: 2lh;
157
- }
158
- }
159
-
160
- @supports(-webkit-line-clamp:1) {
161
- #slot {
162
- display: -webkit-box;
163
- -webkit-box-orient: vertical;
164
- -webkit-line-clamp: 1;
165
- }
166
-
167
- #supporting {
168
- display: -webkit-box;
169
- -webkit-line-clamp: 2;
170
- -webkit-box-orient: vertical;
171
- }
172
-
173
- #supporting[lines="2"] {
174
- -webkit-line-clamp: 1;
175
- }
176
- }
177
-
178
- #avatar {
179
- display: flex;
180
- align-items: center;
181
- justify-content: center;
182
-
183
- block-size: 40px;
184
- inline-size: 40px;
185
-
186
- border-radius: 50%;
187
- }
188
-
189
- #img {
190
- block-size: 56px;
191
- max-block-size: 56px;
192
- inline-size: 56px;
193
- max-inline-size: 56px;
194
-
195
- object-fit: cover;
196
- object-position: center center;
197
- }
198
-
199
- #img[video] {
200
- block-size: 64px;
201
- max-block-size: 64px;
202
- inline-size: 114px;
203
- max-inline-size: 114px;
204
- }
205
-
206
- #checkbox {
207
- /* stylelint-disable-next-line declaration-property-value-disallowed-list */
208
- margin: 3px;
209
- }
210
-
211
- #radio {
212
- /* stylelint-disable-next-line declaration-property-value-disallowed-list */
213
- margin: 2px;
214
- }
215
-
216
- .trailing {
217
- order: 1;
218
- }
219
-
220
- :host([disabled]) {
221
- opacity: 0.38;
222
-
223
- color: rgb(var(--mdw-color__on-surface));
224
- }
@@ -1,34 +0,0 @@
1
- :host {
2
- --mdw-bg: var(--mdw-color__secondary-container);
3
- --mdw-ink: var(--mdw-color__on-secondary-container);
4
- cursor: pointer;
5
-
6
- z-index: 0;
7
- }
8
-
9
- :host([href]) {
10
- cursor: pointer;
11
- }
12
-
13
- :host([disabled]) {
14
- cursor: not-allowed;
15
- pointer-events: none;
16
- }
17
-
18
- #content {
19
- -webkit-user-select: none;
20
- user-select: none;
21
- }
22
-
23
- #content[selected] {
24
- color: rgb(var(--mdw-ink));
25
- }
26
-
27
- #anchor {
28
- z-index: -1;
29
- }
30
-
31
- #anchor[selected] {
32
- background-color: rgb(var(--mdw-bg));
33
- color: rgb(var(--mdw-ink));
34
- }
@@ -1,9 +0,0 @@
1
- :host(:disabled) {
2
- cursor: not-allowed;
3
- pointer-events: none;
4
- }
5
-
6
- :host([internals-disabled]) {
7
- cursor: not-allowed;
8
- pointer-events: none;
9
- }
@@ -1,171 +0,0 @@
1
- /* https://m3.material.io/components/menus/specs */
2
-
3
- :host {
4
- --mdw-menu__transform-origin-inline-start: left;
5
- --mdw-menu__transform-origin-inline-end: right;
6
- /* Normal */
7
- --mdw-menu__transform-origin-x: var(--mdw-menu__transform-origin-inline-start);
8
- /* Down */
9
- --mdw-menu__transform-origin-y: top;
10
- --mdw-menu__inline-base: 56px;
11
- --mdw-menu__size: 2;
12
- --mdw-bg: var(--mdw-color__surface);
13
- --mdw-ink: var(--mdw-color__on-surface);
14
- position: absolute;
15
- /* Default position is bottom */
16
- /* Default direction is start */
17
- inset-block: 100% auto;
18
- inset-inline: auto 0;
19
-
20
- display: block;
21
- /* Hide scrollbar */
22
- -ms-overflow-style: none;
23
- /* Scroll mask */
24
- overscroll-behavior: none;
25
- overscroll-behavior: contain;
26
- scrollbar-width: none;
27
-
28
- pointer-events: none;
29
-
30
- transform-origin: var(--mdw-menu__transform-origin-x) var(--mdw-menu__transform-origin-y);
31
-
32
- transition-duration: motion.$fadeOutDuration;
33
- transition-property: none;
34
- transition-timing-function: motion.$decelerateEasing;
35
- }
36
-
37
- :host(::after) {
38
- content: '';
39
-
40
- display: block;
41
-
42
- block-size: 200%;
43
- inline-size: 200%;
44
- }
45
-
46
- :host(::-webkit-scrollbar) {
47
- display: none;
48
- }
49
-
50
- dialog {
51
- position: fixed;
52
- inset: 0;
53
-
54
- box-sizing: border-box;
55
- block-size:100%;
56
- max-block-size: none;
57
- inline-size:100%;
58
- max-inline-size: none;
59
- margin: 0;
60
- border: none;
61
- padding: 0;
62
-
63
- opacity: 0;
64
- visibility: hidden;
65
- z-index: 24;
66
-
67
- background-color: transparent;
68
-
69
- transition: none;
70
- transition-property: opacity;
71
- will-change: opacity;
72
- }
73
-
74
- dialog::backdrop {
75
- /** Use scrim instead */
76
- display: none;
77
- }
78
-
79
- dialog[aria-hidden="false"],
80
- dialog:modal {
81
- display: block;
82
-
83
- pointer-events: none;
84
-
85
- opacity: 1;
86
- visibility: visible;
87
-
88
- transition-duration: var(--mdw-dialog__fade-in-duration);
89
- transition-property: opacity;
90
- transition-timing-function: var(--mdw-dialog__deceleration-easing);
91
- }
92
-
93
- #scrim {
94
- position: fixed;
95
- inset: 0;
96
-
97
- overflow-y: scroll;
98
- overscroll-behavior: none;
99
- overscroll-behavior: contain;
100
- scrollbar-width: none;
101
-
102
- block-size: 100%;
103
- inline-size: 100%;
104
-
105
- cursor: default;
106
- pointer-events: auto;
107
- -webkit-tap-highlight-color: transparent;
108
-
109
- visibility: hidden; /* Only show if [modal] */
110
-
111
- z-index:0;
112
- }
113
-
114
- #form {
115
- display: contents;
116
- }
117
-
118
- #scrim::-webkit-scrollbar {
119
- display: none;
120
- }
121
-
122
- #scrim::after {
123
- content: '';
124
-
125
- display: block;
126
-
127
- block-size: 200%;
128
- inline-size: 200%;
129
- }
130
-
131
- #surface {
132
- --mdw-shape__size: var(--mdw-shape__extra-small);
133
- position: sticky;
134
-
135
- display: inline-flex;
136
- flex-direction: column;
137
-
138
- inline-size: calc(var(--mdw-menu__size) * var(--mdw-menu__inline-base));
139
- min-inline-size: calc(var(--mdw-menu__inline-base) * 2);
140
- max-inline-size: 100vw;
141
- flex:1;
142
-
143
- pointer-events: auto;
144
- /* background-color: rgb(var(--mdw-color__surface)); */
145
- /* color: rgb(var(--mdw-color__on-surface)); */
146
- /* stylelint-disable-next-line liberty/use-logical-spec */
147
- will-change: top, left;
148
- }
149
-
150
- @supports(-moz-appearance: none) {
151
- #surface {
152
- position: absolute;
153
- }
154
- }
155
-
156
- #scroller {
157
- display: flex;
158
- align-items: stretch;
159
- flex-direction: column;
160
- overflow-y: auto;
161
- overscroll-behavior: none;
162
- overscroll-behavior: contain;
163
-
164
- flex: 1;
165
-
166
- padding-block: 8px;
167
- }
168
-
169
- #scrim[modal] {
170
- visibility: visible;
171
- }
@@ -1,53 +0,0 @@
1
- /* https://m3.material.io/components/menus/specs */
2
-
3
- :host {
4
- gap: 12px;
5
-
6
- padding-inline: 12px;
7
-
8
- cursor: pointer;
9
-
10
- white-space: nowrap;
11
- }
12
-
13
- #content {
14
- padding-block: calc(4px + (var(--mdw-density) * 2px))
15
- }
16
-
17
- #icon {
18
- transition-duration: 100ms;
19
- transition-property: opacity;
20
- will-change: opacity;
21
- }
22
-
23
- #trailing,
24
- #icon {
25
- color: rgb(var(--mdw-color__on-surface-variant));
26
- }
27
-
28
- #selection {
29
- opacity: 0;
30
-
31
- font-size: 18px;
32
- }
33
-
34
- #selection.trailing {
35
- font-size: 24px;
36
- }
37
-
38
- #selection[selected] {
39
- opacity: 1;
40
- }
41
-
42
- :host([disabled]) {
43
- cursor: not-allowed;
44
- }
45
-
46
- #anchor[selected] {
47
- background-color: transparent;
48
- color: inherit;
49
- }
50
-
51
- #content[selected] {
52
- color: inherit;
53
- }
@@ -1,17 +0,0 @@
1
- /* https://m3.material.io/components/navigation-bar/specs */
2
- /* https://m3.material.io/components/navigation-drawer/specs */
3
- /* https://m3.material.io/components/navigation-rail/specs */
4
-
5
- :host {
6
- --mdw-surface__tint: var(--mdw-surface__tint__2);
7
- --mdw-surface__tint__raised: var(--mdw-surface__tint__2);
8
- --mdw-ink: var(--mdw-color__on-surface);
9
- --mdw-bg: var(--mdw-color__surface);
10
-
11
- z-index:2;
12
-
13
- color: rgb(var(--mdw-ink));
14
-
15
- font: var(--mdw-typescale__label-medium__font);
16
- letter-spacing: var(--mdw-typescale__label-medium__letter-spacing);
17
- }