material 3.7.2 → 3.8.0
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/NOTICE +223 -0
- package/README.md +5 -3
- package/dist/components/extended-fab/types.d.ts +3 -0
- package/dist/components/fab/types.d.ts +3 -0
- package/dist/components/slider/features/controller.js +24 -8
- package/dist/elements/css/card.css +1 -1
- package/dist/elements/css/card.js +1 -1
- package/dist/elements/css/dialog.css +1 -1
- package/dist/elements/css/dialog.js +1 -1
- package/dist/elements/css/menu.css +1 -1
- package/dist/elements/css/menu.js +1 -1
- package/dist/elements/css/select.css +1 -1
- package/dist/elements/css/select.js +1 -1
- package/dist/elements/css/slider.css +1 -1
- package/dist/elements/css/slider.js +1 -1
- package/dist/elements/css/tabs.css +1 -1
- package/dist/elements/css/tabs.js +1 -1
- package/dist/elements/css/timepicker.css +1 -1
- package/dist/elements/css/timepicker.js +1 -1
- package/dist/elements/extended-fab.d.ts +1 -0
- package/dist/elements/fab.d.ts +1 -0
- package/dist/elements/preupgrade/badge.css +1 -1
- package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
- package/dist/elements/preupgrade/bottom-sheet.css +1 -1
- package/dist/elements/preupgrade/button-group.css +1 -1
- package/dist/elements/preupgrade/button.css +1 -1
- package/dist/elements/preupgrade/card.css +1 -1
- package/dist/elements/preupgrade/carousel.css +1 -1
- package/dist/elements/preupgrade/checkbox.css +1 -1
- package/dist/elements/preupgrade/chips.css +1 -1
- package/dist/elements/preupgrade/datepicker.css +1 -1
- package/dist/elements/preupgrade/dialog.css +1 -1
- package/dist/elements/preupgrade/divider.css +1 -1
- package/dist/elements/preupgrade/drawer.css +1 -1
- package/dist/elements/preupgrade/extended-fab.css +1 -1
- package/dist/elements/preupgrade/fab-menu.css +1 -1
- package/dist/elements/preupgrade/fab.css +1 -1
- package/dist/elements/preupgrade/icon-button.css +1 -1
- package/dist/elements/preupgrade/list.css +1 -1
- package/dist/elements/preupgrade/loading-indicator.css +1 -1
- package/dist/elements/preupgrade/menu.css +1 -1
- package/dist/elements/preupgrade/navigation-bar.css +1 -1
- package/dist/elements/preupgrade/navigation-rail.css +1 -1
- package/dist/elements/preupgrade/progress.css +1 -1
- package/dist/elements/preupgrade/radios.css +1 -1
- package/dist/elements/preupgrade/search.css +1 -1
- package/dist/elements/preupgrade/select.css +1 -1
- package/dist/elements/preupgrade/side-sheet.css +1 -1
- package/dist/elements/preupgrade/slider.css +1 -1
- package/dist/elements/preupgrade/snackbar.css +1 -1
- package/dist/elements/preupgrade/split-button.css +1 -1
- package/dist/elements/preupgrade/switch.css +1 -1
- package/dist/elements/preupgrade/tabs.css +1 -1
- package/dist/elements/preupgrade/text-field.css +1 -1
- package/dist/elements/preupgrade/timepicker.css +1 -1
- package/dist/elements/preupgrade/toolbar.css +1 -1
- package/dist/elements/preupgrade/tooltip.css +1 -1
- package/dist/elements/preupgrade/top-app-bar.css +1 -1
- package/dist/elements/preupgrade.css +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/base-lite.css +2 -2
- package/dist/styles/base.css +2 -2
- package/dist/styles/bottom-app-bar.css +1 -1
- package/dist/styles/bottom-sheet.css +1 -1
- package/dist/styles/button-group.css +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/card.css +2 -2
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/chips.css +1 -1
- package/dist/styles/contrast.css +2 -2
- package/dist/styles/datepicker.css +1 -1
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/extended-fab.css +1 -1
- package/dist/styles/fab-menu.css +1 -1
- package/dist/styles/fab.css +1 -1
- package/dist/styles/icon-button.css +1 -1
- package/dist/styles/list.css +1 -1
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +2 -2
- package/dist/styles/navigation-bar.css +1 -1
- package/dist/styles/navigation-rail.css +1 -1
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radios.css +1 -1
- package/dist/styles/search.css +1 -1
- package/dist/styles/select.css +2 -2
- package/dist/styles/side-sheet.css +1 -1
- package/dist/styles/slider.css +2 -2
- package/dist/styles/snackbar.css +1 -1
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/tabs.css +2 -2
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/timepicker.css +2 -2
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/top-app-bar.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/styles.css +2 -2
- package/dist/theme/image.d.ts +2 -0
- package/dist/theme/image.js +5 -0
- package/dist/theme/index.d.ts +23 -0
- package/dist/theme/index.js +32 -0
- package/dist/theme/roles.js +68 -0
- package/dist/theme/variants.d.ts +9 -0
- package/dist/theme/variants.js +17 -0
- package/dist/theme/vendor/contrast/contrast.js +72 -0
- package/dist/theme/vendor/dislike/dislike_analyzer.js +31 -0
- package/dist/theme/vendor/dynamiccolor/color_spec_2021.d.ts +63 -0
- package/dist/theme/vendor/dynamiccolor/color_spec_2021.js +663 -0
- package/dist/theme/vendor/dynamiccolor/contrast_curve.js +42 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +24 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_color.js +264 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +87 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.js +418 -0
- package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.d.ts +124 -0
- package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.js +311 -0
- package/dist/theme/vendor/dynamiccolor/tone_delta_pair.js +27 -0
- package/dist/theme/vendor/dynamiccolor/variant.js +28 -0
- package/dist/theme/vendor/hct/cam16.js +249 -0
- package/dist/theme/vendor/hct/hct.d.ts +23 -0
- package/dist/theme/vendor/hct/hct.js +86 -0
- package/dist/theme/vendor/hct/hct_solver.js +390 -0
- package/dist/theme/vendor/hct/viewing_conditions.js +73 -0
- package/dist/theme/vendor/palettes/tonal_palette.js +114 -0
- package/dist/theme/vendor/quantize/lab_point_provider.js +31 -0
- package/dist/theme/vendor/quantize/quantizer_celebi.js +25 -0
- package/dist/theme/vendor/quantize/quantizer_map.js +31 -0
- package/dist/theme/vendor/quantize/quantizer_wsmeans.js +178 -0
- package/dist/theme/vendor/quantize/quantizer_wu.js +342 -0
- package/dist/theme/vendor/scheme/scheme_content.js +30 -0
- package/dist/theme/vendor/scheme/scheme_expressive.js +30 -0
- package/dist/theme/vendor/scheme/scheme_fidelity.js +30 -0
- package/dist/theme/vendor/scheme/scheme_monochrome.js +30 -0
- package/dist/theme/vendor/scheme/scheme_neutral.js +30 -0
- package/dist/theme/vendor/scheme/scheme_tonal_spot.js +30 -0
- package/dist/theme/vendor/scheme/scheme_vibrant.js +30 -0
- package/dist/theme/vendor/score/score.js +100 -0
- package/dist/theme/vendor/temperature/temperature_cache.js +198 -0
- package/dist/theme/vendor/utils/color_utils.js +173 -0
- package/dist/theme/vendor/utils/image_utils.js +72 -0
- package/dist/theme/vendor/utils/math_utils.js +75 -0
- package/dist/theme/vendor/utils/string_utils.js +61 -0
- package/dist/themes/autumn-contrast.css +2 -2
- package/dist/themes/autumn.css +2 -2
- package/dist/themes/baseline-contrast.css +2 -2
- package/dist/themes/baseline.css +2 -2
- package/dist/themes/brownbeige-contrast.css +2 -2
- package/dist/themes/brownbeige.css +2 -2
- package/dist/themes/content-contrast.css +2 -2
- package/dist/themes/content.css +2 -2
- package/dist/themes/desert-contrast.css +2 -2
- package/dist/themes/desert.css +2 -2
- package/dist/themes/expressive-contrast.css +2 -2
- package/dist/themes/expressive.css +2 -2
- package/dist/themes/fidelity-contrast.css +2 -2
- package/dist/themes/fidelity.css +2 -2
- package/dist/themes/forest-contrast.css +2 -2
- package/dist/themes/forest.css +2 -2
- package/dist/themes/fruit-salad-contrast.css +2 -2
- package/dist/themes/fruit-salad.css +2 -2
- package/dist/themes/highcontrast-contrast.css +2 -2
- package/dist/themes/highcontrast.css +2 -2
- package/dist/themes/monochrome-contrast.css +2 -2
- package/dist/themes/monochrome.css +2 -2
- package/dist/themes/neutral-contrast.css +2 -2
- package/dist/themes/neutral.css +2 -2
- package/dist/themes/ocean-contrast.css +2 -2
- package/dist/themes/ocean.css +2 -2
- package/dist/themes/rainbow-contrast.css +2 -2
- package/dist/themes/rainbow.css +2 -2
- package/dist/themes/sageivory-contrast.css +2 -2
- package/dist/themes/sageivory.css +2 -2
- package/dist/themes/spring-contrast.css +2 -2
- package/dist/themes/spring.css +2 -2
- package/dist/themes/summer-contrast.css +2 -2
- package/dist/themes/summer.css +2 -2
- package/dist/themes/sunset-contrast.css +2 -2
- package/dist/themes/sunset.css +2 -2
- package/dist/themes/tealcaramel-contrast.css +2 -2
- package/dist/themes/tealcaramel.css +2 -2
- package/dist/themes/vibrant-contrast.css +2 -2
- package/dist/themes/vibrant.css +2 -2
- package/package.json +15 -1
- package/src/styles/abstract/_base.scss +0 -1
- package/src/styles/abstract/_direction.scss +121 -152
- package/src/styles/abstract/_emit.scss +7 -16
- package/src/styles/abstract/_floating-placement.scss +9 -10
- package/src/styles/abstract/_functions.scss +64 -79
- package/src/styles/abstract/_mixins.scss +355 -459
- package/src/styles/abstract/_theme.scss +122 -136
- package/src/styles/abstract/_variables.scss +320 -390
- package/src/styles/abstract/chips/_assist.scss +2 -3
- package/src/styles/abstract/chips/_filter.scss +2 -3
- package/src/styles/abstract/chips/_input.scss +2 -3
- package/src/styles/abstract/chips/_suggestion.scss +2 -3
- package/src/styles/base/_body-theme.scss +10 -15
- package/src/styles/base/_document.scss +10 -33
- package/src/styles/base/_reset.scss +20 -40
- package/src/styles/base/_tokens.scss +6 -21
- package/src/styles/base/_typescale-tokens.scss +12 -16
- package/src/styles/base/_typography.scss +28 -37
- package/src/styles/components/_badge.scss +171 -193
- package/src/styles/components/_bottom-app-bar.scss +72 -90
- package/src/styles/components/_bottom-sheet.scss +188 -232
- package/src/styles/components/_button-group.scss +140 -189
- package/src/styles/components/_button.scss +382 -478
- package/src/styles/components/_card.scss +349 -473
- package/src/styles/components/_carousel.scss +134 -156
- package/src/styles/components/_checkbox.scss +208 -249
- package/src/styles/components/_chips.scss +239 -304
- package/src/styles/components/_datepicker.scss +172 -222
- package/src/styles/components/_dialog.scss +428 -553
- package/src/styles/components/_divider.scss +37 -46
- package/src/styles/components/_drawer.scss +571 -678
- package/src/styles/components/_extended-fab.scss +263 -294
- package/src/styles/components/_fab-menu.scss +225 -267
- package/src/styles/components/_fab.scss +197 -218
- package/src/styles/components/_icon-button.scss +483 -588
- package/src/styles/components/_list.scss +115 -144
- package/src/styles/components/_loading-indicator.scss +23 -29
- package/src/styles/components/_menu.scss +543 -699
- package/src/styles/components/_navigation-bar.scss +189 -234
- package/src/styles/components/_navigation-rail.scss +256 -312
- package/src/styles/components/_progress.scss +60 -85
- package/src/styles/components/_radios.scss +170 -207
- package/src/styles/components/_search.scss +369 -455
- package/src/styles/components/_select.scss +78 -185
- package/src/styles/components/_side-sheet.scss +234 -292
- package/src/styles/components/_slider.scss +289 -367
- package/src/styles/components/_snackbar.scss +149 -198
- package/src/styles/components/_split-button.scss +139 -228
- package/src/styles/components/_switch.scss +282 -349
- package/src/styles/components/_tabs.scss +350 -547
- package/src/styles/components/_text-field.scss +788 -980
- package/src/styles/components/_timepicker.scss +435 -506
- package/src/styles/components/_toolbar.scss +178 -242
- package/src/styles/components/_tooltip.scss +152 -197
- package/src/styles/components/_top-app-bar.scss +206 -230
- package/src/styles/elements/_badge.scss +42 -61
- package/src/styles/elements/_bottom-app-bar.scss +14 -20
- package/src/styles/elements/_bottom-sheet.scss +0 -3
- package/src/styles/elements/_button-group.scss +80 -80
- package/src/styles/elements/_button.scss +72 -88
- package/src/styles/elements/_card.scss +48 -57
- package/src/styles/elements/_carousel.scss +2 -5
- package/src/styles/elements/_checkbox.scss +32 -43
- package/src/styles/elements/_chips.scss +18 -22
- package/src/styles/elements/_config.scss +11 -26
- package/src/styles/elements/_datepicker.scss +17 -22
- package/src/styles/elements/_dialog.scss +0 -3
- package/src/styles/elements/_divider.scss +11 -13
- package/src/styles/elements/_drawer.scss +9 -14
- package/src/styles/elements/_extended-fab.scss +36 -40
- package/src/styles/elements/_fab-menu.scss +21 -25
- package/src/styles/elements/_fab.scss +17 -20
- package/src/styles/elements/_field.scss +93 -114
- package/src/styles/elements/_icon-button.scss +34 -38
- package/src/styles/elements/_index.scss +0 -4
- package/src/styles/elements/_list.scss +19 -26
- package/src/styles/elements/_loading-indicator.scss +6 -9
- package/src/styles/elements/_menu.scss +0 -3
- package/src/styles/elements/_navigation-bar.scss +5 -9
- package/src/styles/elements/_navigation-rail.scss +10 -15
- package/src/styles/elements/_progress.scss +15 -18
- package/src/styles/elements/_radios.scss +24 -49
- package/src/styles/elements/_search.scss +19 -24
- package/src/styles/elements/_select.scss +4 -9
- package/src/styles/elements/_side-sheet.scss +0 -3
- package/src/styles/elements/_slider.scss +15 -35
- package/src/styles/elements/_snackbar.scss +0 -3
- package/src/styles/elements/_split-button.scss +33 -39
- package/src/styles/elements/_switch.scss +50 -90
- package/src/styles/elements/_tabs.scss +9 -13
- package/src/styles/elements/_text-field.scss +150 -178
- package/src/styles/elements/_timepicker.scss +0 -3
- package/src/styles/elements/_toolbar.scss +30 -35
- package/src/styles/elements/_tooltip.scss +0 -3
- package/src/styles/elements/_top-app-bar.scss +38 -45
- package/src/styles/main.scss +0 -15
- package/src/styles/themes/_autumn.scss +258 -258
- package/src/styles/themes/_base-theme.scss +112 -134
- package/src/styles/themes/_baseline.scss +291 -314
- package/src/styles/themes/_brownbeige.scss +270 -250
- package/src/styles/themes/_content.scss +268 -248
- package/src/styles/themes/_desert.scss +270 -250
- package/src/styles/themes/_expressive.scss +270 -250
- package/src/styles/themes/_fidelity.scss +268 -248
- package/src/styles/themes/_forest.scss +260 -259
- package/src/styles/themes/_fruit-salad.scss +270 -250
- package/src/styles/themes/_highcontrast.scss +183 -172
- package/src/styles/themes/_index.scss +0 -1
- package/src/styles/themes/_monochrome.scss +254 -234
- package/src/styles/themes/_neutral.scss +270 -250
- package/src/styles/themes/_ocean.scss +260 -259
- package/src/styles/themes/_rainbow.scss +270 -250
- package/src/styles/themes/_sageivory.scss +270 -250
- package/src/styles/themes/_spring.scss +256 -255
- package/src/styles/themes/_summer.scss +270 -250
- package/src/styles/themes/_sunset.scss +260 -259
- package/src/styles/themes/_tealcaramel.scss +270 -250
- package/src/styles/themes/_vibrant.scss +270 -250
- package/src/styles/utilities/_colors.scss +44 -50
- package/src/styles/utilities/_flexbox.scss +48 -59
- package/src/styles/utilities/_layout.scss +516 -591
- package/src/styles/utilities/_ripple.scss +61 -70
- package/src/styles/utilities/_spacing.scss +120 -127
- package/src/styles/utilities/_typography.scss +45 -58
- package/src/styles/utilities/_visibility.scss +61 -76
- package/dist/package.json +0 -488
package/NOTICE
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
material
|
|
2
|
+
Icon glyphs (Material Symbols and Material Icons)
|
|
3
|
+
|
|
4
|
+
The package embeds SVG path data from Material Symbols and Material Icons
|
|
5
|
+
(https://github.com/google/material-design-icons), Copyright Google LLC,
|
|
6
|
+
licensed under the Apache License, Version 2.0. The glyphs ship compiled into
|
|
7
|
+
the JavaScript under dist/, and one ships as a CSS mask data URI in the menu
|
|
8
|
+
stylesheet. In the repository they are declared in:
|
|
9
|
+
|
|
10
|
+
- src/components/chips/chip/chip.ts
|
|
11
|
+
- src/components/datepicker/constants.ts
|
|
12
|
+
- src/components/fab-menu/config.ts
|
|
13
|
+
- src/components/navigation-rail/constants.ts
|
|
14
|
+
- src/components/search/constants.ts
|
|
15
|
+
- src/components/select/constants.ts
|
|
16
|
+
- src/components/select/features.ts
|
|
17
|
+
- src/components/side-sheet/features/structure.ts
|
|
18
|
+
- src/components/snackbar/constants.ts
|
|
19
|
+
- src/components/split-button/constants.ts
|
|
20
|
+
- src/components/toolbar/config.ts
|
|
21
|
+
- src/styles/components/_menu.scss
|
|
22
|
+
|
|
23
|
+
Runtime colour (material/theme)
|
|
24
|
+
|
|
25
|
+
The files under src/theme/vendor are a copy of material-color-utilities
|
|
26
|
+
(https://github.com/material-foundation/material-color-utilities),
|
|
27
|
+
Copyright 2021 Google LLC, licensed under the Apache License, Version 2.0.
|
|
28
|
+
Each copied file keeps its original copyright and licence header.
|
|
29
|
+
|
|
30
|
+
The full licence text follows.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
Apache License
|
|
35
|
+
Version 2.0, January 2004
|
|
36
|
+
http://www.apache.org/licenses/
|
|
37
|
+
|
|
38
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
39
|
+
|
|
40
|
+
1. Definitions.
|
|
41
|
+
|
|
42
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
43
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
44
|
+
|
|
45
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
46
|
+
the copyright owner that is granting the License.
|
|
47
|
+
|
|
48
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
49
|
+
other entities that control, are controlled by, or are under common
|
|
50
|
+
control with that entity. For the purposes of this definition,
|
|
51
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
52
|
+
direction or management of such entity, whether by contract or
|
|
53
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
54
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
55
|
+
|
|
56
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
57
|
+
exercising permissions granted by this License.
|
|
58
|
+
|
|
59
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
60
|
+
including but not limited to software source code, documentation
|
|
61
|
+
source, and configuration files.
|
|
62
|
+
|
|
63
|
+
"Object" form shall mean any form resulting from mechanical
|
|
64
|
+
transformation or translation of a Source form, including but
|
|
65
|
+
not limited to compiled object code, generated documentation,
|
|
66
|
+
and conversions to other media types.
|
|
67
|
+
|
|
68
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
69
|
+
Object form, made available under the License, as indicated by a
|
|
70
|
+
copyright notice that is included in or attached to the work
|
|
71
|
+
(an example is provided in the Appendix below).
|
|
72
|
+
|
|
73
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
74
|
+
form, that is based on (or derived from) the Work and for which the
|
|
75
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
76
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
77
|
+
of this License, Derivative Works shall not include works that remain
|
|
78
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
79
|
+
the Work and Derivative Works thereof.
|
|
80
|
+
|
|
81
|
+
"Contribution" shall mean any work of authorship, including
|
|
82
|
+
the original version of the Work and any modifications or additions
|
|
83
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
84
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
85
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
86
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
87
|
+
means any form of electronic, verbal, or written communication sent
|
|
88
|
+
to the Licensor or its representatives, including but not limited to
|
|
89
|
+
communication on electronic mailing lists, source code control systems,
|
|
90
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
91
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
92
|
+
excluding communication that is conspicuously marked or otherwise
|
|
93
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
94
|
+
|
|
95
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
96
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
97
|
+
subsequently incorporated within the Work.
|
|
98
|
+
|
|
99
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
100
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
101
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
102
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
103
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
104
|
+
Work and such Derivative Works in Source or Object form.
|
|
105
|
+
|
|
106
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
107
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
108
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
109
|
+
(except as stated in this section) patent license to make, have made,
|
|
110
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
111
|
+
where such license applies only to those patent claims licensable
|
|
112
|
+
by such Contributor that are necessarily infringed by their
|
|
113
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
114
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
115
|
+
institute patent litigation against any entity (including a
|
|
116
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
117
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
118
|
+
or contributory patent infringement, then any patent licenses
|
|
119
|
+
granted to You under this License for that Work shall terminate
|
|
120
|
+
as of the date such litigation is filed.
|
|
121
|
+
|
|
122
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
123
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
124
|
+
modifications, and in Source or Object form, provided that You
|
|
125
|
+
meet the following conditions:
|
|
126
|
+
|
|
127
|
+
(a) You must give any other recipients of the Work or
|
|
128
|
+
Derivative Works a copy of this License; and
|
|
129
|
+
|
|
130
|
+
(b) You must cause any modified files to carry prominent notices
|
|
131
|
+
stating that You changed the files; and
|
|
132
|
+
|
|
133
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
134
|
+
that You distribute, all copyright, patent, trademark, and
|
|
135
|
+
attribution notices from the Source form of the Work,
|
|
136
|
+
excluding those notices that do not pertain to any part of
|
|
137
|
+
the Derivative Works; and
|
|
138
|
+
|
|
139
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
140
|
+
distribution, then any Derivative Works that You distribute must
|
|
141
|
+
include a readable copy of the attribution notices contained
|
|
142
|
+
within such NOTICE file, excluding those notices that do not
|
|
143
|
+
pertain to any part of the Derivative Works, in at least one
|
|
144
|
+
of the following places: within a NOTICE text file distributed
|
|
145
|
+
as part of the Derivative Works; within the Source form or
|
|
146
|
+
documentation, if provided along with the Derivative Works; or,
|
|
147
|
+
within a display generated by the Derivative Works, if and
|
|
148
|
+
wherever such third-party notices normally appear. The contents
|
|
149
|
+
of the NOTICE file are for informational purposes only and
|
|
150
|
+
do not modify the License. You may add Your own attribution
|
|
151
|
+
notices within Derivative Works that You distribute, alongside
|
|
152
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
153
|
+
that such additional attribution notices cannot be construed
|
|
154
|
+
as modifying the License.
|
|
155
|
+
|
|
156
|
+
You may add Your own copyright statement to Your modifications and
|
|
157
|
+
may provide additional or different license terms and conditions
|
|
158
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
159
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
160
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
161
|
+
the conditions stated in this License.
|
|
162
|
+
|
|
163
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
164
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
165
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
166
|
+
this License, without any additional terms or conditions.
|
|
167
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
168
|
+
the terms of any separate license agreement you may have executed
|
|
169
|
+
with Licensor regarding such Contributions.
|
|
170
|
+
|
|
171
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
172
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
173
|
+
except as required for reasonable and customary use in describing the
|
|
174
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
175
|
+
|
|
176
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
177
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
178
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
179
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
180
|
+
implied, including, without limitation, any warranties or conditions
|
|
181
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
182
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
183
|
+
appropriateness of using or redistributing the Work and assume any
|
|
184
|
+
risks associated with Your exercise of permissions under this License.
|
|
185
|
+
|
|
186
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
187
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
188
|
+
unless required by applicable law (such as deliberate and grossly
|
|
189
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
190
|
+
liable to You for damages, including any direct, indirect, special,
|
|
191
|
+
incidental, or consequential damages of any character arising as a
|
|
192
|
+
result of this License or out of the use or inability to use the
|
|
193
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
194
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
195
|
+
other commercial damages or losses), even if such Contributor
|
|
196
|
+
has been advised of the possibility of such damages.
|
|
197
|
+
|
|
198
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
199
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
200
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
201
|
+
or other liability obligations and/or rights consistent with this
|
|
202
|
+
License. However, in accepting such obligations, You may act only
|
|
203
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
204
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
205
|
+
defend, and hold each Contributor harmless for any liability
|
|
206
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
207
|
+
of your accepting any such warranty or additional liability.
|
|
208
|
+
|
|
209
|
+
END OF TERMS AND CONDITIONS
|
|
210
|
+
|
|
211
|
+
Copyright Google LLC
|
|
212
|
+
|
|
213
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
214
|
+
you may not use this file except in compliance with the License.
|
|
215
|
+
You may obtain a copy of the License at
|
|
216
|
+
|
|
217
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
218
|
+
|
|
219
|
+
Unless required by applicable law or agreed to in writing, software
|
|
220
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
221
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
222
|
+
See the License for the specific language governing permissions and
|
|
223
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -94,10 +94,10 @@ What a bundler keeps, minified and gzipped (kB is 1,000 bytes), measured from th
|
|
|
94
94
|
| `createButton` from `material`, with code splitting: the initial chunks (the progress indicator loads on demand) | 7.6 kB |
|
|
95
95
|
| `createButton`, without code splitting (the progress indicator included) | 13.9 kB |
|
|
96
96
|
| `createButton`, `createTextField` and `createCheckbox`, without code splitting | 20.4 kB |
|
|
97
|
-
| Everything the root exports (`export * from 'material'`), without code splitting | 127.
|
|
98
|
-
| `material/styles/base` |
|
|
97
|
+
| Everything the root exports (`export * from 'material'`), without code splitting | 127.2 kB |
|
|
98
|
+
| `material/styles/base` | 3.0 kB |
|
|
99
99
|
| `material/styles/base-lite` | 1.6 kB |
|
|
100
|
-
| `material/styles/base` and `material/styles/button` | 5.
|
|
100
|
+
| `material/styles/base` and `material/styles/button` | 5.2 kB |
|
|
101
101
|
| `material/styles`, the full stylesheet | 58.7 kB |
|
|
102
102
|
<!-- /sizes -->
|
|
103
103
|
|
|
@@ -124,3 +124,5 @@ Versions of `material` up to 1.0.4 are an earlier, separate library (GPL-3), sti
|
|
|
124
124
|
## License
|
|
125
125
|
|
|
126
126
|
MIT, see [LICENSE](https://github.com/floor/material/blob/main/LICENSE).
|
|
127
|
+
|
|
128
|
+
Third-party notices: the package ships Material Symbols and Material Icons glyphs, copyright Google LLC, under the Apache License 2.0; [NOTICE](https://github.com/floor/material/blob/main/NOTICE) includes the licence text and lists the files that declare them.
|
|
@@ -17,6 +17,7 @@ export interface ExtendedFabConfig {
|
|
|
17
17
|
text?: string;
|
|
18
18
|
class?: string;
|
|
19
19
|
value?: string;
|
|
20
|
+
/** @deprecated Use placement. Physical left/right do not mirror in RTL; removal in 4.0. */
|
|
20
21
|
position?: ExtendedFabPosition | string;
|
|
21
22
|
placement?: ExtendedFabPlacement;
|
|
22
23
|
type?: "button" | "submit" | "reset";
|
|
@@ -69,7 +70,9 @@ export interface ExtendedFabComponent {
|
|
|
69
70
|
getIcon: () => string;
|
|
70
71
|
setText: (text: string) => ExtendedFabComponent;
|
|
71
72
|
getText: () => string;
|
|
73
|
+
/** @deprecated Physical position alias; use the placement option/attribute. Removal in 4.0. */
|
|
72
74
|
setPosition: (position: string) => ExtendedFabComponent;
|
|
75
|
+
/** @deprecated Reads only the physical position alias. Removal in 4.0. */
|
|
73
76
|
getPosition: () => string | null;
|
|
74
77
|
lower: () => ExtendedFabComponent;
|
|
75
78
|
raise: () => ExtendedFabComponent;
|
|
@@ -13,6 +13,7 @@ export interface FabConfig {
|
|
|
13
13
|
iconSize?: string;
|
|
14
14
|
class?: string;
|
|
15
15
|
value?: string;
|
|
16
|
+
/** @deprecated Use placement. Physical left/right do not mirror in RTL; removal in 4.0. */
|
|
16
17
|
position?: FabPosition | string;
|
|
17
18
|
placement?: FabPlacement;
|
|
18
19
|
type?: "button" | "submit" | "reset";
|
|
@@ -54,7 +55,9 @@ export interface FabComponent {
|
|
|
54
55
|
isDisabled: () => boolean;
|
|
55
56
|
setIcon: (icon: string) => FabComponent;
|
|
56
57
|
getIcon: () => string;
|
|
58
|
+
/** @deprecated Physical position alias; use the placement option/attribute. Removal in 4.0. */
|
|
57
59
|
setPosition: (position: string) => FabComponent;
|
|
60
|
+
/** @deprecated Reads only the physical position alias. Removal in 4.0. */
|
|
58
61
|
getPosition: () => string | null;
|
|
59
62
|
lower: () => FabComponent;
|
|
60
63
|
raise: () => FabComponent;
|
|
@@ -23,7 +23,6 @@ return SLIDER_MEASUREMENTS.SMALL_HANDLE_HEIGHT;
|
|
|
23
23
|
}
|
|
24
24
|
return trackHeight + SLIDER_MEASUREMENTS.HANDLE_HEIGHT_OFFSET;
|
|
25
25
|
};
|
|
26
|
-
const TRACK_STEPS = { 8: "small", 12: "medium", 16: "large", 28: "extra-large" };
|
|
27
26
|
const getExternalTrackRadius = (size) => {
|
|
28
27
|
const trackHeight = getTrackHeight(size);
|
|
29
28
|
if (trackHeight <= SLIDER_SIZES.S)
|
|
@@ -34,6 +33,7 @@ if (trackHeight <= SLIDER_SIZES.L)
|
|
|
34
33
|
return 16;
|
|
35
34
|
return 28;
|
|
36
35
|
};
|
|
36
|
+
const TRACK_STEPS = { 8: "small", 12: "medium", 16: "large", 28: "extra-large" };
|
|
37
37
|
const trackPositionCss = (fraction, inset) => inset
|
|
38
38
|
? `calc(${fraction * 100}% + ${inset * (1 - 2 * fraction)}px)`
|
|
39
39
|
: `${fraction * 100}%`;
|
|
@@ -54,6 +54,9 @@ return `${pct}${unit}`;
|
|
|
54
54
|
return `calc(${pct}${unit} ${p < 0 ? "-" : "+"} ${Math.abs(p)}px)`;
|
|
55
55
|
};
|
|
56
56
|
const INSET_ICON_PADDING = 10;
|
|
57
|
+
const INSIDE_CORNER = 2;
|
|
58
|
+
const STOP_INDICATOR_INSET = 6;
|
|
59
|
+
const STOP_INDICATOR_RADIUS = 2;
|
|
57
60
|
const HANDLE_WIDTH = 4;
|
|
58
61
|
const NARROW_HANDLE_WIDTH = 2;
|
|
59
62
|
export const withTracks = (config) => (component) => {
|
|
@@ -111,6 +114,17 @@ const cmp = (a, b) => width > 0 ? a.f * width + a.p - (b.f * width + b.p) : (a.f
|
|
|
111
114
|
const gapOf = (which) => px((narrowed(which) ? NARROW_HANDLE_WIDTH : HANDLE_WIDTH) / 2 + SLIDER_MEASUREMENTS.HANDLE_GAP);
|
|
112
115
|
const firstGap = gapOf("first");
|
|
113
116
|
const secondGap = gapOf("second");
|
|
117
|
+
const radiusOf = (start, end) => {
|
|
118
|
+
const outer = cornerToken(TRACK_STEPS[corner], corner, PREFIX), inside = `${INSIDE_CORNER}px`;
|
|
119
|
+
const atStart = cmp(start, A0) === 0 ? outer : inside;
|
|
120
|
+
const atEnd = cmp(end, A1) === 0 ? outer : inside;
|
|
121
|
+
return {
|
|
122
|
+
left: `${atStart} ${atEnd} ${atEnd} ${atStart}`,
|
|
123
|
+
right: `${atEnd} ${atStart} ${atStart} ${atEnd}`,
|
|
124
|
+
top: `${atStart} ${atStart} ${atEnd} ${atEnd}`,
|
|
125
|
+
bottom: `${atEnd} ${atEnd} ${atStart} ${atStart}`,
|
|
126
|
+
}[axis.start];
|
|
127
|
+
};
|
|
114
128
|
const first = atValue(state.value);
|
|
115
129
|
const second = atValue(state.secondValue ?? state.max);
|
|
116
130
|
let parts;
|
|
@@ -144,24 +158,27 @@ activeEnd = first;
|
|
|
144
158
|
parts = [[A0, A0, false], [A0, sub(first, firstGap), true], [add(first, firstGap), A1, false]];
|
|
145
159
|
}
|
|
146
160
|
const standard = !config.centered && !(config.range && state.secondValue !== null);
|
|
147
|
-
|
|
148
|
-
parts.forEach((part
|
|
149
|
-
|
|
150
|
-
|
|
161
|
+
if (config.ticks) {
|
|
162
|
+
parts.forEach((part) => {
|
|
163
|
+
if (cmp(part[0], A0) === 0 && cmp(part[1], px(inset)) <= 0)
|
|
164
|
+
part[1] = part[0];
|
|
165
|
+
else if (cmp(part[1], A1) === 0 && cmp(part[0], ap(1, -inset)) >= 0)
|
|
151
166
|
part[1] = part[0];
|
|
152
167
|
});
|
|
168
|
+
}
|
|
153
169
|
segments.forEach((segment, index) => {
|
|
154
170
|
const [start, end, active] = parts[index] ?? [A0, A0, false];
|
|
155
171
|
const len = sub(end, start);
|
|
156
172
|
const drawn = (width > 0 ? len.f * width + len.p < 0 : len.f < 0 || (len.f === 0 && len.p < 0)) ? A0 : len;
|
|
157
173
|
at(segment, alongCss(start));
|
|
158
174
|
segment.style[axis.size] = alongCss(drawn);
|
|
175
|
+
segment.style.borderRadius = radiusOf(start, end);
|
|
159
176
|
segment.classList.toggle(component.getClass("slider__segment--active"), active);
|
|
160
177
|
});
|
|
161
178
|
dots[0].hidden = !!config.ticks || standard || cmp(parts[0][1], parts[0][0]) <= 0;
|
|
162
179
|
dots[1].hidden = !!config.ticks || cmp(parts[2][1], parts[2][0]) <= 0;
|
|
163
|
-
at(dots[0], alongCss(px(
|
|
164
|
-
at(dots[1], alongCss(ap(1, -(
|
|
180
|
+
at(dots[0], alongCss(px(STOP_INDICATOR_INSET - STOP_INDICATOR_RADIUS)));
|
|
181
|
+
at(dots[1], alongCss(ap(1, -(STOP_INDICATOR_INSET + STOP_INDICATOR_RADIUS))));
|
|
165
182
|
placeInsetIcon(parts, width);
|
|
166
183
|
const discrete = !!config.ticks && state.step > 0 && state.max > state.min;
|
|
167
184
|
ticks.forEach(tick => { tick.hidden = !discrete; });
|
|
@@ -244,7 +261,6 @@ size = next;
|
|
|
244
261
|
const handleHeight = getHandleHeight(size);
|
|
245
262
|
container.style[axis.cross] = `${Math.max(handleHeight, SLIDER_MEASUREMENTS.MIN_HEIGHT)}px`;
|
|
246
263
|
track.style[axis.cross] = `${getTrackHeight(size)}px`;
|
|
247
|
-
track.style.borderRadius = cornerToken(TRACK_STEPS[getExternalTrackRadius(size)], getExternalTrackRadius(size), PREFIX);
|
|
248
264
|
for (const handle of [component.handle, component.secondHandle]) {
|
|
249
265
|
if (handle)
|
|
250
266
|
handle.style[axis.cross] = `${handleHeight}px`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mtrl-card{position:relative;display:flex;flex-direction:column;box-sizing:border-box;border-radius:var(--mtrl-sys-shape-corner-medium, 12px);background-color:var(--mtrl-sys-color-surface);color:var(--mtrl-sys-color-on-surface);overflow:hidden;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;transition:box-shadow 100ms cubic-bezier(0.2, 0, 0, 1),background-color 100ms cubic-bezier(0.2, 0, 0, 1),border-color 100ms cubic-bezier(0.2, 0, 0, 1)}.mtrl-card:focus-visible:focus-visible{outline:2px solid var(--mtrl-sys-color-secondary);outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--focused:focus-visible{outline:2px solid var(--mtrl-sys-color-secondary);outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card .ripple{position:absolute;border-radius:50%;transform:scale(0);pointer-events:none;background-color:currentColor;opacity:.08}.mtrl-card>:not(:last-child){margin-bottom:0}.mtrl-card--elevated{background-color:var(--mtrl-sys-color-surface-container-low);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--elevated:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15)}.mtrl-card--elevated:active.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:where(.mtrl-card--elevated:active.mtrl-card--interactive){position:relative}.mtrl-card--elevated:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--elevated.mtrl-card--dragging{box-shadow:0px 2px 3px rgba(0,0,0,.3),0px 6px 10px 4px rgba(0,0,0,.15)}.mtrl-card--elevated.mtrl-card--state-disabled{background-color:var(--mtrl-sys-color-surface);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--filled{background-color:var(--mtrl-sys-color-surface-container-highest);box-shadow:none}.mtrl-card--filled:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:where(.mtrl-card--filled:hover.mtrl-card--interactive){position:relative}.mtrl-card--filled:hover.mtrl-card--interactive::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-card--filled:active.mtrl-card--interactive{box-shadow:none}:where(.mtrl-card--filled:active.mtrl-card--interactive){position:relative}.mtrl-card--filled:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--filled.mtrl-card--dragging{box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15)}.mtrl-card--filled.mtrl-card--state-disabled{background-color:var(--mtrl-sys-color-surface-variant)}.mtrl-card--outlined{border:1px solid var(--mtrl-sys-color-outline-variant);background-color:var(--mtrl-sys-color-surface);box-shadow:none}.mtrl-card--outlined:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);border-color:var(--mtrl-sys-color-outline-variant)}:where(.mtrl-card--outlined:hover.mtrl-card--interactive){position:relative}.mtrl-card--outlined:hover.mtrl-card--interactive::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-card--outlined:focus-visible,.mtrl-card--outlined.mtrl-card--focused{border-color:var(--mtrl-sys-color-on-surface)}.mtrl-card--outlined:active.mtrl-card--interactive{box-shadow:none;border-color:var(--mtrl-sys-color-outline-variant)}:where(.mtrl-card--outlined:active.mtrl-card--interactive){position:relative}.mtrl-card--outlined:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--outlined.mtrl-card--dragging{box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15)}.mtrl-card--outlined.mtrl-card--state-disabled{border-color:color-mix(in srgb, var(--mtrl-sys-color-outline) 12%, transparent)}.mtrl-card--interactive{cursor:pointer;user-select:none}.mtrl-card--full-width{width:100%}.mtrl-card--small{width:344px}.mtrl-card--medium{width:480px}.mtrl-card--large{width:624px}.mtrl-card__header{display:flex;align-items:center;padding:16px;padding-bottom:0}.mtrl-card__header:last-child{padding-bottom:16px}.mtrl-card__header-avatar{margin-right:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center}:where(.mtrl-rtl) .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin-right:0;margin-left:16px}.mtrl-card__header-avatar img{width:40px;height:40px;border-radius:50%;object-fit:cover}.mtrl-card__header-text{flex:1;overflow:hidden}.mtrl-card__header-title{margin:0;font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:22px;line-height:28px;letter-spacing:0;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mtrl-sys-color-on-surface)}.mtrl-card__header-subtitle{margin:0;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-card__header-action{margin-left:8px;flex-shrink:0}:where(.mtrl-rtl) .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin-left:0;margin-right:8px}.mtrl-card__media{position:relative;overflow:hidden;border-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-card__media-img{display:block;width:100%;object-fit:cover}.mtrl-card__media--16-9{aspect-ratio:16/9}.mtrl-card__media--16-9 img{height:100%}.mtrl-card__media--4-3{aspect-ratio:4/3}.mtrl-card__media--4-3 img{height:100%}.mtrl-card__media--1-1{aspect-ratio:1/1}.mtrl-card__media--1-1 img{height:100%}.mtrl-card__media--contain img{object-fit:contain}.mtrl-card__content{padding:16px;flex:1 1 auto}.mtrl-card__content>*:first-child{margin-top:0}.mtrl-card__content>*:last-child{margin-bottom:0}.mtrl-card__media+.mtrl-card__content:not(.mtrl-card__content--no-padding){padding-top:16px}.mtrl-card__content--no-padding{padding:0}.mtrl-card__actions{display:flex;flex-wrap:wrap;padding:8px;align-items:center}.mtrl-card__actions>*{margin:0 4px}.mtrl-card__actions>*:first-child{margin-left:8px}.mtrl-card__actions>*:last-child{margin-right:8px}:where(.mtrl-rtl) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child,:where(:host(.mtrl-rtl)) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child,[dir=rtl] .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child{margin-left:4px;margin-right:8px}:where(.mtrl-rtl) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child,:where(:host(.mtrl-rtl)) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child,[dir=rtl] .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child{margin-right:4px;margin-left:8px}.mtrl-card__actions--full-bleed{padding:0}.mtrl-card__actions--full-bleed>*{margin:0;border-radius:0;flex:1 1 auto}.mtrl-card__actions--full-bleed>*:first-child{margin-left:0}.mtrl-card__actions--full-bleed>*:last-child{margin-right:0}.mtrl-card__actions--vertical{flex-direction:column}.mtrl-card__actions--vertical>*{width:100%;margin:4px 0}.mtrl-card__actions--vertical>*:first-child{margin-top:8px}.mtrl-card__actions--vertical>*:last-child{margin-bottom:8px}.mtrl-card__actions--center{justify-content:center}.mtrl-card__actions--end{justify-content:flex-end}.mtrl-card__actions--space-between{justify-content:space-between}.mtrl-card--state-disabled{opacity:.38;pointer-events:none}.mtrl-card--
|
|
1
|
+
.mtrl-card{position:relative;display:flex;flex-direction:column;box-sizing:border-box;border-radius:var(--mtrl-sys-shape-corner-medium, 12px);background-color:var(--mtrl-sys-color-surface);color:var(--mtrl-sys-color-on-surface);overflow:hidden;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;transition:box-shadow 100ms cubic-bezier(0.2, 0, 0, 1),background-color 100ms cubic-bezier(0.2, 0, 0, 1),border-color 100ms cubic-bezier(0.2, 0, 0, 1)}.mtrl-card:focus-visible:focus-visible{outline:2px solid var(--mtrl-sys-color-secondary);outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--focused:focus-visible{outline:2px solid var(--mtrl-sys-color-secondary);outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card .ripple{position:absolute;border-radius:50%;transform:scale(0);pointer-events:none;background-color:currentColor;opacity:.08}.mtrl-card>:not(:last-child){margin-bottom:0}.mtrl-card--elevated{background-color:var(--mtrl-sys-color-surface-container-low);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--elevated:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15)}.mtrl-card--elevated:active.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:where(.mtrl-card--elevated:active.mtrl-card--interactive){position:relative}.mtrl-card--elevated:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--elevated.mtrl-card--dragging{box-shadow:0px 2px 3px rgba(0,0,0,.3),0px 6px 10px 4px rgba(0,0,0,.15)}.mtrl-card--elevated.mtrl-card--state-disabled{background-color:var(--mtrl-sys-color-surface);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--filled{background-color:var(--mtrl-sys-color-surface-container-highest);box-shadow:none}.mtrl-card--filled:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:where(.mtrl-card--filled:hover.mtrl-card--interactive){position:relative}.mtrl-card--filled:hover.mtrl-card--interactive::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-card--filled:active.mtrl-card--interactive{box-shadow:none}:where(.mtrl-card--filled:active.mtrl-card--interactive){position:relative}.mtrl-card--filled:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--filled.mtrl-card--dragging{box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15)}.mtrl-card--filled.mtrl-card--state-disabled{background-color:var(--mtrl-sys-color-surface-variant)}.mtrl-card--outlined{border:1px solid var(--mtrl-sys-color-outline-variant);background-color:var(--mtrl-sys-color-surface);box-shadow:none}.mtrl-card--outlined:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);border-color:var(--mtrl-sys-color-outline-variant)}:where(.mtrl-card--outlined:hover.mtrl-card--interactive){position:relative}.mtrl-card--outlined:hover.mtrl-card--interactive::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-card--outlined:focus-visible,.mtrl-card--outlined.mtrl-card--focused{border-color:var(--mtrl-sys-color-on-surface)}.mtrl-card--outlined:active.mtrl-card--interactive{box-shadow:none;border-color:var(--mtrl-sys-color-outline-variant)}:where(.mtrl-card--outlined:active.mtrl-card--interactive){position:relative}.mtrl-card--outlined:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--outlined.mtrl-card--dragging{box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15)}.mtrl-card--outlined.mtrl-card--state-disabled{border-color:color-mix(in srgb, var(--mtrl-sys-color-outline) 12%, transparent)}.mtrl-card--interactive{cursor:pointer;user-select:none}.mtrl-card--full-width{width:100%}.mtrl-card--small{width:344px}.mtrl-card--medium{width:480px}.mtrl-card--large{width:624px}.mtrl-card__header{display:flex;align-items:center;padding:16px;padding-bottom:0}.mtrl-card__header:last-child{padding-bottom:16px}.mtrl-card__header-avatar{margin-right:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center}:where(.mtrl-rtl) .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin-right:0;margin-left:16px}.mtrl-card__header-avatar img{width:40px;height:40px;border-radius:50%;object-fit:cover}.mtrl-card__header-text{flex:1;overflow:hidden}.mtrl-card__header-title{margin:0;font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:22px;line-height:28px;letter-spacing:0;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mtrl-sys-color-on-surface)}.mtrl-card__header-subtitle{margin:0;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-card__header-action{margin-left:8px;flex-shrink:0}:where(.mtrl-rtl) .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin-left:0;margin-right:8px}.mtrl-card__media{position:relative;overflow:hidden;border-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-card__media-img{display:block;width:100%;object-fit:cover}.mtrl-card__media--16-9{aspect-ratio:16/9}.mtrl-card__media--16-9 img{height:100%}.mtrl-card__media--4-3{aspect-ratio:4/3}.mtrl-card__media--4-3 img{height:100%}.mtrl-card__media--1-1{aspect-ratio:1/1}.mtrl-card__media--1-1 img{height:100%}.mtrl-card__media--contain img{object-fit:contain}.mtrl-card__content{padding:16px;flex:1 1 auto}.mtrl-card__content>*:first-child{margin-top:0}.mtrl-card__content>*:last-child{margin-bottom:0}.mtrl-card__media+.mtrl-card__content:not(.mtrl-card__content--no-padding){padding-top:16px}.mtrl-card__content--no-padding{padding:0}.mtrl-card__actions{display:flex;flex-wrap:wrap;padding:8px;align-items:center}.mtrl-card__actions>*{margin:0 4px}.mtrl-card__actions>*:first-child{margin-left:8px}.mtrl-card__actions>*:last-child{margin-right:8px}:where(.mtrl-rtl) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child,:where(:host(.mtrl-rtl)) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child,[dir=rtl] .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child{margin-left:4px;margin-right:8px}:where(.mtrl-rtl) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child,:where(:host(.mtrl-rtl)) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child,[dir=rtl] .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child{margin-right:4px;margin-left:8px}.mtrl-card__actions--full-bleed{padding:0}.mtrl-card__actions--full-bleed>*{margin:0;border-radius:0;flex:1 1 auto}.mtrl-card__actions--full-bleed>*:first-child{margin-left:0}.mtrl-card__actions--full-bleed>*:last-child{margin-right:0}.mtrl-card__actions--vertical{flex-direction:column}.mtrl-card__actions--vertical>*{width:100%;margin:4px 0}.mtrl-card__actions--vertical>*:first-child{margin-top:8px}.mtrl-card__actions--vertical>*:last-child{margin-bottom:8px}.mtrl-card__actions--center{justify-content:center}.mtrl-card__actions--end{justify-content:flex-end}.mtrl-card__actions--space-between{justify-content:space-between}.mtrl-card--state-disabled{opacity:.38;pointer-events:none}.mtrl-card--dragging{cursor:grabbing}@media(max-width: 599px){.mtrl-card{width:100%}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./ripple.js";
|
|
2
2
|
import "./button.js";
|
|
3
3
|
import { registerStyles } from "../styles.js";
|
|
4
|
-
registerStyles({ "card": ".mtrl-card{position:relative;display:flex;flex-direction:column;box-sizing:border-box;border-radius:var(--mtrl-sys-shape-corner-medium, 12px);background-color:var(--mtrl-sys-color-surface);color:var(--mtrl-sys-color-on-surface);overflow:hidden;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;transition:box-shadow 100ms cubic-bezier(0.2, 0, 0, 1),background-color 100ms cubic-bezier(0.2, 0, 0, 1),border-color 100ms cubic-bezier(0.2, 0, 0, 1)}.mtrl-card:focus-visible:focus-visible{outline:2px solid var(--mtrl-sys-color-secondary);outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--focused:focus-visible{outline:2px solid var(--mtrl-sys-color-secondary);outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card .ripple{position:absolute;border-radius:50%;transform:scale(0);pointer-events:none;background-color:currentColor;opacity:.08}.mtrl-card>:not(:last-child){margin-bottom:0}.mtrl-card--elevated{background-color:var(--mtrl-sys-color-surface-container-low);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--elevated:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15)}.mtrl-card--elevated:active.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:where(.mtrl-card--elevated:active.mtrl-card--interactive){position:relative}.mtrl-card--elevated:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--elevated.mtrl-card--dragging{box-shadow:0px 2px 3px rgba(0,0,0,.3),0px 6px 10px 4px rgba(0,0,0,.15)}.mtrl-card--elevated.mtrl-card--state-disabled{background-color:var(--mtrl-sys-color-surface);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--filled{background-color:var(--mtrl-sys-color-surface-container-highest);box-shadow:none}.mtrl-card--filled:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:where(.mtrl-card--filled:hover.mtrl-card--interactive){position:relative}.mtrl-card--filled:hover.mtrl-card--interactive::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-card--filled:active.mtrl-card--interactive{box-shadow:none}:where(.mtrl-card--filled:active.mtrl-card--interactive){position:relative}.mtrl-card--filled:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--filled.mtrl-card--dragging{box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15)}.mtrl-card--filled.mtrl-card--state-disabled{background-color:var(--mtrl-sys-color-surface-variant)}.mtrl-card--outlined{border:1px solid var(--mtrl-sys-color-outline-variant);background-color:var(--mtrl-sys-color-surface);box-shadow:none}.mtrl-card--outlined:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);border-color:var(--mtrl-sys-color-outline-variant)}:where(.mtrl-card--outlined:hover.mtrl-card--interactive){position:relative}.mtrl-card--outlined:hover.mtrl-card--interactive::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-card--outlined:focus-visible,.mtrl-card--outlined.mtrl-card--focused{border-color:var(--mtrl-sys-color-on-surface)}.mtrl-card--outlined:active.mtrl-card--interactive{box-shadow:none;border-color:var(--mtrl-sys-color-outline-variant)}:where(.mtrl-card--outlined:active.mtrl-card--interactive){position:relative}.mtrl-card--outlined:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--outlined.mtrl-card--dragging{box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15)}.mtrl-card--outlined.mtrl-card--state-disabled{border-color:color-mix(in srgb, var(--mtrl-sys-color-outline) 12%, transparent)}.mtrl-card--interactive{cursor:pointer;user-select:none}.mtrl-card--full-width{width:100%}.mtrl-card--small{width:344px}.mtrl-card--medium{width:480px}.mtrl-card--large{width:624px}.mtrl-card__header{display:flex;align-items:center;padding:16px;padding-bottom:0}.mtrl-card__header:last-child{padding-bottom:16px}.mtrl-card__header-avatar{margin-right:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center}:where(.mtrl-rtl) .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin-right:0;margin-left:16px}.mtrl-card__header-avatar img{width:40px;height:40px;border-radius:50%;object-fit:cover}.mtrl-card__header-text{flex:1;overflow:hidden}.mtrl-card__header-title{margin:0;font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:22px;line-height:28px;letter-spacing:0;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mtrl-sys-color-on-surface)}.mtrl-card__header-subtitle{margin:0;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-card__header-action{margin-left:8px;flex-shrink:0}:where(.mtrl-rtl) .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin-left:0;margin-right:8px}.mtrl-card__media{position:relative;overflow:hidden;border-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-card__media-img{display:block;width:100%;object-fit:cover}.mtrl-card__media--16-9{aspect-ratio:16/9}.mtrl-card__media--16-9 img{height:100%}.mtrl-card__media--4-3{aspect-ratio:4/3}.mtrl-card__media--4-3 img{height:100%}.mtrl-card__media--1-1{aspect-ratio:1/1}.mtrl-card__media--1-1 img{height:100%}.mtrl-card__media--contain img{object-fit:contain}.mtrl-card__content{padding:16px;flex:1 1 auto}.mtrl-card__content>*:first-child{margin-top:0}.mtrl-card__content>*:last-child{margin-bottom:0}.mtrl-card__media+.mtrl-card__content:not(.mtrl-card__content--no-padding){padding-top:16px}.mtrl-card__content--no-padding{padding:0}.mtrl-card__actions{display:flex;flex-wrap:wrap;padding:8px;align-items:center}.mtrl-card__actions>*{margin:0 4px}.mtrl-card__actions>*:first-child{margin-left:8px}.mtrl-card__actions>*:last-child{margin-right:8px}:where(.mtrl-rtl) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child,:where(:host(.mtrl-rtl)) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child,[dir=rtl] .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child{margin-left:4px;margin-right:8px}:where(.mtrl-rtl) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child,:where(:host(.mtrl-rtl)) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child,[dir=rtl] .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child{margin-right:4px;margin-left:8px}.mtrl-card__actions--full-bleed{padding:0}.mtrl-card__actions--full-bleed>*{margin:0;border-radius:0;flex:1 1 auto}.mtrl-card__actions--full-bleed>*:first-child{margin-left:0}.mtrl-card__actions--full-bleed>*:last-child{margin-right:0}.mtrl-card__actions--vertical{flex-direction:column}.mtrl-card__actions--vertical>*{width:100%;margin:4px 0}.mtrl-card__actions--vertical>*:first-child{margin-top:8px}.mtrl-card__actions--vertical>*:last-child{margin-bottom:8px}.mtrl-card__actions--center{justify-content:center}.mtrl-card__actions--end{justify-content:flex-end}.mtrl-card__actions--space-between{justify-content:space-between}.mtrl-card--state-disabled{opacity:.38;pointer-events:none}.mtrl-card--
|
|
4
|
+
registerStyles({ "card": ".mtrl-card{position:relative;display:flex;flex-direction:column;box-sizing:border-box;border-radius:var(--mtrl-sys-shape-corner-medium, 12px);background-color:var(--mtrl-sys-color-surface);color:var(--mtrl-sys-color-on-surface);overflow:hidden;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;transition:box-shadow 100ms cubic-bezier(0.2, 0, 0, 1),background-color 100ms cubic-bezier(0.2, 0, 0, 1),border-color 100ms cubic-bezier(0.2, 0, 0, 1)}.mtrl-card:focus-visible:focus-visible{outline:2px solid var(--mtrl-sys-color-secondary);outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--focused:focus-visible{outline:2px solid var(--mtrl-sys-color-secondary);outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card .ripple{position:absolute;border-radius:50%;transform:scale(0);pointer-events:none;background-color:currentColor;opacity:.08}.mtrl-card>:not(:last-child){margin-bottom:0}.mtrl-card--elevated{background-color:var(--mtrl-sys-color-surface-container-low);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--elevated:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15)}.mtrl-card--elevated:active.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:where(.mtrl-card--elevated:active.mtrl-card--interactive){position:relative}.mtrl-card--elevated:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--elevated.mtrl-card--dragging{box-shadow:0px 2px 3px rgba(0,0,0,.3),0px 6px 10px 4px rgba(0,0,0,.15)}.mtrl-card--elevated.mtrl-card--state-disabled{background-color:var(--mtrl-sys-color-surface);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.mtrl-card--filled{background-color:var(--mtrl-sys-color-surface-container-highest);box-shadow:none}.mtrl-card--filled:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:where(.mtrl-card--filled:hover.mtrl-card--interactive){position:relative}.mtrl-card--filled:hover.mtrl-card--interactive::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-card--filled:active.mtrl-card--interactive{box-shadow:none}:where(.mtrl-card--filled:active.mtrl-card--interactive){position:relative}.mtrl-card--filled:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--filled.mtrl-card--dragging{box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15)}.mtrl-card--filled.mtrl-card--state-disabled{background-color:var(--mtrl-sys-color-surface-variant)}.mtrl-card--outlined{border:1px solid var(--mtrl-sys-color-outline-variant);background-color:var(--mtrl-sys-color-surface);box-shadow:none}.mtrl-card--outlined:hover.mtrl-card--interactive{box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);border-color:var(--mtrl-sys-color-outline-variant)}:where(.mtrl-card--outlined:hover.mtrl-card--interactive){position:relative}.mtrl-card--outlined:hover.mtrl-card--interactive::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-card--outlined:focus-visible,.mtrl-card--outlined.mtrl-card--focused{border-color:var(--mtrl-sys-color-on-surface)}.mtrl-card--outlined:active.mtrl-card--interactive{box-shadow:none;border-color:var(--mtrl-sys-color-outline-variant)}:where(.mtrl-card--outlined:active.mtrl-card--interactive){position:relative}.mtrl-card--outlined:active.mtrl-card--interactive:not(:has(>.mtrl-ripple))::before{content:\"\";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-card--outlined.mtrl-card--dragging{box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15)}.mtrl-card--outlined.mtrl-card--state-disabled{border-color:color-mix(in srgb, var(--mtrl-sys-color-outline) 12%, transparent)}.mtrl-card--interactive{cursor:pointer;user-select:none}.mtrl-card--full-width{width:100%}.mtrl-card--small{width:344px}.mtrl-card--medium{width:480px}.mtrl-card--large{width:624px}.mtrl-card__header{display:flex;align-items:center;padding:16px;padding-bottom:0}.mtrl-card__header:last-child{padding-bottom:16px}.mtrl-card__header-avatar{margin-right:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center}:where(.mtrl-rtl) .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-card__header-avatar:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin-right:0;margin-left:16px}.mtrl-card__header-avatar img{width:40px;height:40px;border-radius:50%;object-fit:cover}.mtrl-card__header-text{flex:1;overflow:hidden}.mtrl-card__header-title{margin:0;font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:22px;line-height:28px;letter-spacing:0;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mtrl-sys-color-on-surface)}.mtrl-card__header-subtitle{margin:0;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-card__header-action{margin-left:8px;flex-shrink:0}:where(.mtrl-rtl) .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-card__header-action:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin-left:0;margin-right:8px}.mtrl-card__media{position:relative;overflow:hidden;border-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-card__media-img{display:block;width:100%;object-fit:cover}.mtrl-card__media--16-9{aspect-ratio:16/9}.mtrl-card__media--16-9 img{height:100%}.mtrl-card__media--4-3{aspect-ratio:4/3}.mtrl-card__media--4-3 img{height:100%}.mtrl-card__media--1-1{aspect-ratio:1/1}.mtrl-card__media--1-1 img{height:100%}.mtrl-card__media--contain img{object-fit:contain}.mtrl-card__content{padding:16px;flex:1 1 auto}.mtrl-card__content>*:first-child{margin-top:0}.mtrl-card__content>*:last-child{margin-bottom:0}.mtrl-card__media+.mtrl-card__content:not(.mtrl-card__content--no-padding){padding-top:16px}.mtrl-card__content--no-padding{padding:0}.mtrl-card__actions{display:flex;flex-wrap:wrap;padding:8px;align-items:center}.mtrl-card__actions>*{margin:0 4px}.mtrl-card__actions>*:first-child{margin-left:8px}.mtrl-card__actions>*:last-child{margin-right:8px}:where(.mtrl-rtl) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child,:where(:host(.mtrl-rtl)) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child,[dir=rtl] .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):first-child{margin-left:4px;margin-right:8px}:where(.mtrl-rtl) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child,:where(:host(.mtrl-rtl)) .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child,[dir=rtl] .mtrl-card__actions>*:not(:where(.mtrl-ltr,.mtrl-ltr *)):last-child{margin-right:4px;margin-left:8px}.mtrl-card__actions--full-bleed{padding:0}.mtrl-card__actions--full-bleed>*{margin:0;border-radius:0;flex:1 1 auto}.mtrl-card__actions--full-bleed>*:first-child{margin-left:0}.mtrl-card__actions--full-bleed>*:last-child{margin-right:0}.mtrl-card__actions--vertical{flex-direction:column}.mtrl-card__actions--vertical>*{width:100%;margin:4px 0}.mtrl-card__actions--vertical>*:first-child{margin-top:8px}.mtrl-card__actions--vertical>*:last-child{margin-bottom:8px}.mtrl-card__actions--center{justify-content:center}.mtrl-card__actions--end{justify-content:flex-end}.mtrl-card__actions--space-between{justify-content:space-between}.mtrl-card--state-disabled{opacity:.38;pointer-events:none}.mtrl-card--dragging{cursor:grabbing}@media(max-width: 599px){.mtrl-card{width:100%}}" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mtrl-dialog__overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0);visibility:hidden;z-index:1000;display:flex;align-items:center;justify-content:center;overflow:auto;padding:24px;box-sizing:border-box;transition:background-color 150ms linear,visibility 0s linear 150ms}.mtrl-dialog__overlay--contained{position:absolute}.mtrl-dialog__overlay--visible{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);visibility:visible;transition:background-color 500ms linear,visibility 0s}.mtrl-dialog{position:relative;background-color:var(--mtrl-sys-color-surface-container-high);color:var(--mtrl-sys-color-on-surface);border-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);max-width:560px;min-width:280px;width:100%;margin:auto;box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);transform-origin:top center;transform:translateY(-50px) scaleY(0.35);opacity:0;pointer-events:none;transition:transform 150ms cubic-bezier(0.3, 0, 0.8, 0.15),opacity 50ms linear 100ms}.mtrl-dialog .mtrl-dialog__header,.mtrl-dialog .mtrl-dialog__content,.mtrl-dialog .mtrl-dialog__footer{opacity:0;transition:opacity 100ms linear}.mtrl-dialog--visible{transform:translateY(0) scaleY(1);opacity:1;pointer-events:auto;transition:transform 500ms cubic-bezier(0.3, 0, 0, 1),opacity 50ms linear}.mtrl-dialog--visible .mtrl-dialog__header,.mtrl-dialog--visible .mtrl-dialog__content{opacity:1;transition:opacity 250ms linear 50ms}.mtrl-dialog--visible .mtrl-dialog__footer{opacity:1;transition:opacity 300ms linear 150ms}.mtrl-dialog--small{width:80%;max-width:360px}.mtrl-dialog--medium{width:90%;max-width:560px}.mtrl-dialog--large{width:95%;max-width:560px}.mtrl-dialog--fullwidth{width:100%;max-width:none;margin:24px}.mtrl-dialog--fullscreen{width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;transform-origin:center center;transform:translateY(24px)}.mtrl-dialog--fullscreen.mtrl-dialog--visible{transform:translateY(0)}.mtrl-dialog--slide-up{transform:translateY(24px) scaleY(0.35)}.mtrl-dialog--slide-up.mtrl-dialog--visible{transform:translateY(0) scaleY(1)}.mtrl-dialog--slide-down{transform:translateY(-24px) scaleY(0.35)}.mtrl-dialog--slide-down.mtrl-dialog--visible{transform:translateY(0) scaleY(1)}.mtrl-dialog--fade{transform:none}.mtrl-dialog--fade.mtrl-dialog--visible{transform:none}.mtrl-dialog--scale{transform-origin:center center;transform:scale(0.8)}.mtrl-dialog--scale.mtrl-dialog--visible{transform:scale(1)}dialog.mtrl-dialog{position:fixed;inset:0;height:fit-content;max-height:calc(100% - 48px);padding:0;border:0;overflow:visible;transition:transform 150ms cubic-bezier(0.3, 0, 0.8, 0.15),opacity 50ms linear 100ms,display 150ms allow-discrete,overlay 150ms allow-discrete}dialog.mtrl-dialog.mtrl-dialog--visible{transform:none;transition:transform 500ms cubic-bezier(0.3, 0, 0, 1),opacity 50ms linear}dialog.mtrl-dialog.mtrl-dialog--fullwidth{width:auto}dialog.mtrl-dialog.mtrl-dialog--fullscreen{height:100%;max-height:none}dialog.mtrl-dialog::backdrop{background-color:rgba(0,0,0,0);transition:background-color 150ms linear,display 150ms allow-discrete,overlay 150ms allow-discrete}dialog.mtrl-dialog.mtrl-dialog--visible::backdrop{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);transition:background-color 500ms linear}.mtrl-
|
|
1
|
+
.mtrl-dialog__overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0);visibility:hidden;z-index:1000;display:flex;align-items:center;justify-content:center;overflow:auto;padding:24px;box-sizing:border-box;transition:background-color 150ms linear,visibility 0s linear 150ms}.mtrl-dialog__overlay--contained{position:absolute}.mtrl-dialog__overlay--visible{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);visibility:visible;transition:background-color 500ms linear,visibility 0s}.mtrl-dialog{position:relative;background-color:var(--mtrl-sys-color-surface-container-high);color:var(--mtrl-sys-color-on-surface);border-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);max-width:560px;min-width:280px;width:100%;margin:auto;box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);transform-origin:top center;transform:translateY(-50px) scaleY(0.35);opacity:0;pointer-events:none;transition:transform 150ms cubic-bezier(0.3, 0, 0.8, 0.15),opacity 50ms linear 100ms}.mtrl-dialog .mtrl-dialog__header,.mtrl-dialog .mtrl-dialog__content,.mtrl-dialog .mtrl-dialog__footer{opacity:0;transition:opacity 100ms linear}.mtrl-dialog--visible{transform:translateY(0) scaleY(1);opacity:1;pointer-events:auto;transition:transform 500ms cubic-bezier(0.3, 0, 0, 1),opacity 50ms linear}.mtrl-dialog--visible .mtrl-dialog__header,.mtrl-dialog--visible .mtrl-dialog__content{opacity:1;transition:opacity 250ms linear 50ms}.mtrl-dialog--visible .mtrl-dialog__footer{opacity:1;transition:opacity 300ms linear 150ms}.mtrl-dialog--small{width:80%;max-width:360px}.mtrl-dialog--medium{width:90%;max-width:560px}.mtrl-dialog--large{width:95%;max-width:560px}.mtrl-dialog--fullwidth{width:100%;max-width:none;margin:24px}.mtrl-dialog--fullscreen{width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;transform-origin:center center;transform:translateY(24px)}.mtrl-dialog--fullscreen.mtrl-dialog--visible{transform:translateY(0)}.mtrl-dialog--slide-up{transform:translateY(24px) scaleY(0.35)}.mtrl-dialog--slide-up.mtrl-dialog--visible{transform:translateY(0) scaleY(1)}.mtrl-dialog--slide-down{transform:translateY(-24px) scaleY(0.35)}.mtrl-dialog--slide-down.mtrl-dialog--visible{transform:translateY(0) scaleY(1)}.mtrl-dialog--fade{transform:none}.mtrl-dialog--fade.mtrl-dialog--visible{transform:none}.mtrl-dialog--scale{transform-origin:center center;transform:scale(0.8)}.mtrl-dialog--scale.mtrl-dialog--visible{transform:scale(1)}dialog.mtrl-dialog{position:fixed;inset:0;height:fit-content;max-height:calc(100% - 48px);padding:0;border:0;overflow:visible;transition:transform 150ms cubic-bezier(0.3, 0, 0.8, 0.15),opacity 50ms linear 100ms,display 150ms allow-discrete,overlay 150ms allow-discrete}dialog.mtrl-dialog.mtrl-dialog--visible{transform:none;transition:transform 500ms cubic-bezier(0.3, 0, 0, 1),opacity 50ms linear}dialog.mtrl-dialog.mtrl-dialog--fullwidth{width:auto}dialog.mtrl-dialog.mtrl-dialog--fullscreen{height:100%;max-height:none}dialog.mtrl-dialog::backdrop{background-color:rgba(0,0,0,0);transition:background-color 150ms linear,display 150ms allow-discrete,overlay 150ms allow-discrete}dialog.mtrl-dialog.mtrl-dialog--visible::backdrop{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);transition:background-color 500ms linear}.mtrl-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 24px 16px 24px}.mtrl-dialog__header-content{flex:1}.mtrl-dialog__header-title{margin:0;color:var(--mtrl-sys-color-on-surface);font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:24px;line-height:32px;letter-spacing:0;font-weight:400}.mtrl-dialog__header-subtitle{margin:4px 0 0 0;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-dialog__header-close{font:inherit;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:-8px -8px 0 0;padding:8px;background:rgba(0,0,0,0);border:none;border-radius:50%;cursor:pointer;color:var(--mtrl-sys-color-on-surface-variant);transition:background-color 100ms cubic-bezier(0.2, 0, 0, 1);position:relative}.mtrl-dialog__header-close:hover{background-color:color-mix(in srgb, var(--mtrl-sys-color-on-surface) 8%, transparent)}.mtrl-dialog__header-close:focus{outline:none;background-color:color-mix(in srgb, var(--mtrl-sys-color-on-surface) 10%, transparent)}.mtrl-dialog__header-close:focus-visible{outline:2px solid var(--mtrl-sys-color-primary);outline-offset:2px}.mtrl-dialog__header-close:active{background-color:color-mix(in srgb, var(--mtrl-sys-color-on-surface) 10%, transparent)}.mtrl-dialog__header-close svg{width:24px;height:24px}.mtrl-dialog__header-close::after{content:"";position:absolute;width:48px;height:48px;top:50%;left:50%;transform:translate(-50%, -50%)}:where(.mtrl-rtl) .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin:-8px 0 0 -8px}.mtrl-dialog__header:empty{display:none}.mtrl-dialog__header:not(:has(*))+.mtrl-dialog__content,.mtrl-dialog>.mtrl-dialog__content:first-child{padding-top:24px}.mtrl-dialog__content{padding:0 24px;color:var(--mtrl-sys-color-on-surface-variant);font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;overflow:visible}.mtrl-dialog__content p{margin:0 0 16px 0}.mtrl-dialog__content p:last-child{margin-bottom:0}.mtrl-dialog__content:last-child{padding-bottom:24px}.mtrl-dialog__footer{display:flex;align-items:center;justify-content:flex-end;padding:24px 24px 24px 24px;gap:8px}.mtrl-dialog__footer--left{justify-content:flex-start}.mtrl-dialog__footer--center{justify-content:center}.mtrl-dialog__footer--space-between{justify-content:space-between}.mtrl-dialog__footer--stacked{flex-direction:column-reverse;align-items:stretch;gap:8px}.mtrl-dialog--fullscreen{display:flex;flex-direction:column}.mtrl-dialog--fullscreen .mtrl-dialog__header{display:flex;align-items:center;min-height:56px;padding:0 24px;gap:8px}.mtrl-dialog--fullscreen .mtrl-dialog__header-close{order:-1;margin:0 0 0 -8px}:where(.mtrl-rtl) .mtrl-dialog--fullscreen .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-dialog--fullscreen .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-dialog--fullscreen .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin:0 -8px 0 0}.mtrl-dialog--fullscreen .mtrl-dialog__header-title{font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:22px;line-height:28px;letter-spacing:0;font-weight:400;text-align:start}.mtrl-dialog--fullscreen .mtrl-dialog__content{flex:1;overflow-y:auto;padding:24px}.mtrl-dialog--fullscreen .mtrl-dialog__footer{min-height:56px;padding:0 24px;box-sizing:border-box}.mtrl-dialog__header-divider,.mtrl-dialog__footer-divider{margin:0;border:none;height:1px;background-color:var(--mtrl-sys-color-outline-variant)}@media(prefers-reduced-motion: reduce){.mtrl-dialog,.mtrl-dialog--visible,.mtrl-dialog__overlay,.mtrl-dialog__overlay--visible{transition:opacity 100ms linear}.mtrl-dialog,.mtrl-dialog--visible,.mtrl-dialog--scale,.mtrl-dialog--slide-up,.mtrl-dialog--slide-down,.mtrl-dialog--fullscreen{transform:none}}@media(forced-colors: active){.mtrl-dialog{border:2px solid CurrentColor}.mtrl-dialog__header-divider,.mtrl-dialog__footer-divider{background-color:CurrentColor}.mtrl-dialog__header-close:focus-visible{outline:2px solid CurrentColor}}@media(max-width: 600px){.mtrl-dialog{min-width:280px;width:calc(100% - 32px);max-width:100%;margin:16px;transform-origin:bottom center}.mtrl-dialog--fullscreen{width:100%;height:100%;margin:0;transform-origin:center center}.mtrl-dialog__overlay{padding:16px;align-items:flex-end}.mtrl-dialog--slide-up{transform:translateY(24px)}.mtrl-dialog--slide-up.mtrl-dialog--visible{transform:translateY(0)}.mtrl-dialog__footer--responsive{flex-direction:column-reverse;align-items:stretch}}@media print{.mtrl-dialog__overlay{position:static;background:none;padding:0}.mtrl-dialog{box-shadow:none;border:1px solid #000;max-width:100%;transform:none;opacity:1}}
|
|
@@ -2,4 +2,4 @@ import "./ripple.js";
|
|
|
2
2
|
import "./button.js";
|
|
3
3
|
import "./divider.js";
|
|
4
4
|
import { registerStyles } from "../styles.js";
|
|
5
|
-
registerStyles({ "dialog": ".mtrl-dialog__overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0);visibility:hidden;z-index:1000;display:flex;align-items:center;justify-content:center;overflow:auto;padding:24px;box-sizing:border-box;transition:background-color 150ms linear,visibility 0s linear 150ms}.mtrl-dialog__overlay--contained{position:absolute}.mtrl-dialog__overlay--visible{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);visibility:visible;transition:background-color 500ms linear,visibility 0s}.mtrl-dialog{position:relative;background-color:var(--mtrl-sys-color-surface-container-high);color:var(--mtrl-sys-color-on-surface);border-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);max-width:560px;min-width:280px;width:100%;margin:auto;box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);transform-origin:top center;transform:translateY(-50px) scaleY(0.35);opacity:0;pointer-events:none;transition:transform 150ms cubic-bezier(0.3, 0, 0.8, 0.15),opacity 50ms linear 100ms}.mtrl-dialog .mtrl-dialog__header,.mtrl-dialog .mtrl-dialog__content,.mtrl-dialog .mtrl-dialog__footer{opacity:0;transition:opacity 100ms linear}.mtrl-dialog--visible{transform:translateY(0) scaleY(1);opacity:1;pointer-events:auto;transition:transform 500ms cubic-bezier(0.3, 0, 0, 1),opacity 50ms linear}.mtrl-dialog--visible .mtrl-dialog__header,.mtrl-dialog--visible .mtrl-dialog__content{opacity:1;transition:opacity 250ms linear 50ms}.mtrl-dialog--visible .mtrl-dialog__footer{opacity:1;transition:opacity 300ms linear 150ms}.mtrl-dialog--small{width:80%;max-width:360px}.mtrl-dialog--medium{width:90%;max-width:560px}.mtrl-dialog--large{width:95%;max-width:560px}.mtrl-dialog--fullwidth{width:100%;max-width:none;margin:24px}.mtrl-dialog--fullscreen{width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;transform-origin:center center;transform:translateY(24px)}.mtrl-dialog--fullscreen.mtrl-dialog--visible{transform:translateY(0)}.mtrl-dialog--slide-up{transform:translateY(24px) scaleY(0.35)}.mtrl-dialog--slide-up.mtrl-dialog--visible{transform:translateY(0) scaleY(1)}.mtrl-dialog--slide-down{transform:translateY(-24px) scaleY(0.35)}.mtrl-dialog--slide-down.mtrl-dialog--visible{transform:translateY(0) scaleY(1)}.mtrl-dialog--fade{transform:none}.mtrl-dialog--fade.mtrl-dialog--visible{transform:none}.mtrl-dialog--scale{transform-origin:center center;transform:scale(0.8)}.mtrl-dialog--scale.mtrl-dialog--visible{transform:scale(1)}dialog.mtrl-dialog{position:fixed;inset:0;height:fit-content;max-height:calc(100% - 48px);padding:0;border:0;overflow:visible;transition:transform 150ms cubic-bezier(0.3, 0, 0.8, 0.15),opacity 50ms linear 100ms,display 150ms allow-discrete,overlay 150ms allow-discrete}dialog.mtrl-dialog.mtrl-dialog--visible{transform:none;transition:transform 500ms cubic-bezier(0.3, 0, 0, 1),opacity 50ms linear}dialog.mtrl-dialog.mtrl-dialog--fullwidth{width:auto}dialog.mtrl-dialog.mtrl-dialog--fullscreen{height:100%;max-height:none}dialog.mtrl-dialog::backdrop{background-color:rgba(0,0,0,0);transition:background-color 150ms linear,display 150ms allow-discrete,overlay 150ms allow-discrete}dialog.mtrl-dialog.mtrl-dialog--visible::backdrop{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);transition:background-color 500ms linear}.mtrl-
|
|
5
|
+
registerStyles({ "dialog": ".mtrl-dialog__overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0);visibility:hidden;z-index:1000;display:flex;align-items:center;justify-content:center;overflow:auto;padding:24px;box-sizing:border-box;transition:background-color 150ms linear,visibility 0s linear 150ms}.mtrl-dialog__overlay--contained{position:absolute}.mtrl-dialog__overlay--visible{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);visibility:visible;transition:background-color 500ms linear,visibility 0s}.mtrl-dialog{position:relative;background-color:var(--mtrl-sys-color-surface-container-high);color:var(--mtrl-sys-color-on-surface);border-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);max-width:560px;min-width:280px;width:100%;margin:auto;box-shadow:0px 1px 3px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);transform-origin:top center;transform:translateY(-50px) scaleY(0.35);opacity:0;pointer-events:none;transition:transform 150ms cubic-bezier(0.3, 0, 0.8, 0.15),opacity 50ms linear 100ms}.mtrl-dialog .mtrl-dialog__header,.mtrl-dialog .mtrl-dialog__content,.mtrl-dialog .mtrl-dialog__footer{opacity:0;transition:opacity 100ms linear}.mtrl-dialog--visible{transform:translateY(0) scaleY(1);opacity:1;pointer-events:auto;transition:transform 500ms cubic-bezier(0.3, 0, 0, 1),opacity 50ms linear}.mtrl-dialog--visible .mtrl-dialog__header,.mtrl-dialog--visible .mtrl-dialog__content{opacity:1;transition:opacity 250ms linear 50ms}.mtrl-dialog--visible .mtrl-dialog__footer{opacity:1;transition:opacity 300ms linear 150ms}.mtrl-dialog--small{width:80%;max-width:360px}.mtrl-dialog--medium{width:90%;max-width:560px}.mtrl-dialog--large{width:95%;max-width:560px}.mtrl-dialog--fullwidth{width:100%;max-width:none;margin:24px}.mtrl-dialog--fullscreen{width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;transform-origin:center center;transform:translateY(24px)}.mtrl-dialog--fullscreen.mtrl-dialog--visible{transform:translateY(0)}.mtrl-dialog--slide-up{transform:translateY(24px) scaleY(0.35)}.mtrl-dialog--slide-up.mtrl-dialog--visible{transform:translateY(0) scaleY(1)}.mtrl-dialog--slide-down{transform:translateY(-24px) scaleY(0.35)}.mtrl-dialog--slide-down.mtrl-dialog--visible{transform:translateY(0) scaleY(1)}.mtrl-dialog--fade{transform:none}.mtrl-dialog--fade.mtrl-dialog--visible{transform:none}.mtrl-dialog--scale{transform-origin:center center;transform:scale(0.8)}.mtrl-dialog--scale.mtrl-dialog--visible{transform:scale(1)}dialog.mtrl-dialog{position:fixed;inset:0;height:fit-content;max-height:calc(100% - 48px);padding:0;border:0;overflow:visible;transition:transform 150ms cubic-bezier(0.3, 0, 0.8, 0.15),opacity 50ms linear 100ms,display 150ms allow-discrete,overlay 150ms allow-discrete}dialog.mtrl-dialog.mtrl-dialog--visible{transform:none;transition:transform 500ms cubic-bezier(0.3, 0, 0, 1),opacity 50ms linear}dialog.mtrl-dialog.mtrl-dialog--fullwidth{width:auto}dialog.mtrl-dialog.mtrl-dialog--fullscreen{height:100%;max-height:none}dialog.mtrl-dialog::backdrop{background-color:rgba(0,0,0,0);transition:background-color 150ms linear,display 150ms allow-discrete,overlay 150ms allow-discrete}dialog.mtrl-dialog.mtrl-dialog--visible::backdrop{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);transition:background-color 500ms linear}.mtrl-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 24px 16px 24px}.mtrl-dialog__header-content{flex:1}.mtrl-dialog__header-title{margin:0;color:var(--mtrl-sys-color-on-surface);font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:24px;line-height:32px;letter-spacing:0;font-weight:400}.mtrl-dialog__header-subtitle{margin:4px 0 0 0;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-dialog__header-close{font:inherit;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:-8px -8px 0 0;padding:8px;background:rgba(0,0,0,0);border:none;border-radius:50%;cursor:pointer;color:var(--mtrl-sys-color-on-surface-variant);transition:background-color 100ms cubic-bezier(0.2, 0, 0, 1);position:relative}.mtrl-dialog__header-close:hover{background-color:color-mix(in srgb, var(--mtrl-sys-color-on-surface) 8%, transparent)}.mtrl-dialog__header-close:focus{outline:none;background-color:color-mix(in srgb, var(--mtrl-sys-color-on-surface) 10%, transparent)}.mtrl-dialog__header-close:focus-visible{outline:2px solid var(--mtrl-sys-color-primary);outline-offset:2px}.mtrl-dialog__header-close:active{background-color:color-mix(in srgb, var(--mtrl-sys-color-on-surface) 10%, transparent)}.mtrl-dialog__header-close svg{width:24px;height:24px}.mtrl-dialog__header-close::after{content:\"\";position:absolute;width:48px;height:48px;top:50%;left:50%;transform:translate(-50%, -50%)}:where(.mtrl-rtl) .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin:-8px 0 0 -8px}.mtrl-dialog__header:empty{display:none}.mtrl-dialog__header:not(:has(*))+.mtrl-dialog__content,.mtrl-dialog>.mtrl-dialog__content:first-child{padding-top:24px}.mtrl-dialog__content{padding:0 24px;color:var(--mtrl-sys-color-on-surface-variant);font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;overflow:visible}.mtrl-dialog__content p{margin:0 0 16px 0}.mtrl-dialog__content p:last-child{margin-bottom:0}.mtrl-dialog__content:last-child{padding-bottom:24px}.mtrl-dialog__footer{display:flex;align-items:center;justify-content:flex-end;padding:24px 24px 24px 24px;gap:8px}.mtrl-dialog__footer--left{justify-content:flex-start}.mtrl-dialog__footer--center{justify-content:center}.mtrl-dialog__footer--space-between{justify-content:space-between}.mtrl-dialog__footer--stacked{flex-direction:column-reverse;align-items:stretch;gap:8px}.mtrl-dialog--fullscreen{display:flex;flex-direction:column}.mtrl-dialog--fullscreen .mtrl-dialog__header{display:flex;align-items:center;min-height:56px;padding:0 24px;gap:8px}.mtrl-dialog--fullscreen .mtrl-dialog__header-close{order:-1;margin:0 0 0 -8px}:where(.mtrl-rtl) .mtrl-dialog--fullscreen .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)),:where(:host(.mtrl-rtl)) .mtrl-dialog--fullscreen .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)),[dir=rtl] .mtrl-dialog--fullscreen .mtrl-dialog__header-close:not(:where(.mtrl-ltr,.mtrl-ltr *)){margin:0 -8px 0 0}.mtrl-dialog--fullscreen .mtrl-dialog__header-title{font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:22px;line-height:28px;letter-spacing:0;font-weight:400;text-align:start}.mtrl-dialog--fullscreen .mtrl-dialog__content{flex:1;overflow-y:auto;padding:24px}.mtrl-dialog--fullscreen .mtrl-dialog__footer{min-height:56px;padding:0 24px;box-sizing:border-box}.mtrl-dialog__header-divider,.mtrl-dialog__footer-divider{margin:0;border:none;height:1px;background-color:var(--mtrl-sys-color-outline-variant)}@media(prefers-reduced-motion: reduce){.mtrl-dialog,.mtrl-dialog--visible,.mtrl-dialog__overlay,.mtrl-dialog__overlay--visible{transition:opacity 100ms linear}.mtrl-dialog,.mtrl-dialog--visible,.mtrl-dialog--scale,.mtrl-dialog--slide-up,.mtrl-dialog--slide-down,.mtrl-dialog--fullscreen{transform:none}}@media(forced-colors: active){.mtrl-dialog{border:2px solid CurrentColor}.mtrl-dialog__header-divider,.mtrl-dialog__footer-divider{background-color:CurrentColor}.mtrl-dialog__header-close:focus-visible{outline:2px solid CurrentColor}}@media(max-width: 600px){.mtrl-dialog{min-width:280px;width:calc(100% - 32px);max-width:100%;margin:16px;transform-origin:bottom center}.mtrl-dialog--fullscreen{width:100%;height:100%;margin:0;transform-origin:center center}.mtrl-dialog__overlay{padding:16px;align-items:flex-end}.mtrl-dialog--slide-up{transform:translateY(24px)}.mtrl-dialog--slide-up.mtrl-dialog--visible{transform:translateY(0)}.mtrl-dialog__footer--responsive{flex-direction:column-reverse;align-items:stretch}}@media print{.mtrl-dialog__overlay{position:static;background:none;padding:0}.mtrl-dialog{box-shadow:none;border:1px solid #000;max-width:100%;transform:none;opacity:1}}" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mtrl-menu{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;border-radius:var(--mtrl-sys-shape-corner-extra-small, 4px);position:fixed;z-index:700;min-width:112px;max-width:280px;padding:8px 0;background-color:var(--mtrl-sys-color-surface-container);color:var(--mtrl-sys-color-on-surface);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15);overflow:hidden;display:flex;flex-direction:column;opacity:0;transform-origin:top center;transform:scaleY(0);pointer-events:none;visibility:hidden;transition:transform 250ms cubic-bezier(0.3, 0, 0, 1),opacity 250ms cubic-bezier(0.3, 0, 0, 1),visibility 250ms}.mtrl-menu[popover]{inset:auto;margin:0;border:0}.mtrl-menu--visible{opacity:1;transform:scaleY(1);pointer-events:auto;visibility:visible}.mtrl-menu--position-top,.mtrl-menu--position-top-start,.mtrl-menu--position-top-end{transform-origin:bottom center}.mtrl-menu--submenu{position:absolute;z-index:701}.mtrl-menu__group{display:block;list-style:none}.mtrl-menu__group>ul{margin:0;padding:0;list-style:none}.mtrl-menu__group+.mtrl-menu__group{margin-top:8px}.mtrl-menu__list{margin:0;padding:0;list-style:none;overflow-y:auto;flex:1 1 auto;min-height:0;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) rgba(0,0,0,.05);width:100%}.mtrl-menu__list::-webkit-scrollbar{width:8px}.mtrl-menu__list::-webkit-scrollbar-track{background:rgba(0,0,0,.05)}.mtrl-menu__list::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:4px}.mtrl-menu__item{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.1px;font-weight:500;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;position:relative;min-height:48px;padding:12px;padding-inline-end:40px;cursor:pointer;user-select:none;color:var(--mtrl-sys-color-on-surface);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;box-sizing:border-box}:where(.mtrl-menu__item:hover){position:relative}.mtrl-menu__item:hover::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-menu__item:focus{outline:none}:where(.mtrl-menu__item:focus-visible,.mtrl-menu__item--active){position:relative}.mtrl-menu__item:focus-visible::before,.mtrl-menu__item--active::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}:where(.mtrl-menu__item:active){position:relative}.mtrl-menu__item:active:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-menu__item--submenu{padding-right:48px}.mtrl-menu__item--submenu::after{content:"";position:absolute;right:12px;top:50%;transform:translateY(-50%);width:24px;height:24px;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5v10z'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5v10z'/%3E%3C/svg%3E") center/contain no-repeat;background-color:currentColor;opacity:.87}:where(.mtrl-menu__item--submenu[aria-expanded=true]){position:relative}.mtrl-menu__item--submenu[aria-expanded=true]::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-menu__item--submenu[aria-expanded=true]::after{opacity:1}.mtrl-menu__item--disabled{cursor:default;color:color-mix(in srgb, var(--mtrl-sys-color-on-surface) 38%, transparent)}.mtrl-menu__item--disabled .mtrl-menu__item-icon,.mtrl-menu__item--disabled .mtrl-menu__item-supporting,.mtrl-menu__item--disabled .mtrl-menu__item-shortcut{color:inherit}.mtrl-menu__item--disabled:hover::before,.mtrl-menu__item--disabled:active::before{opacity:0}.mtrl-menu__item--selected{background-color:var(--mtrl-sys-color-secondary-container);color:var(--mtrl-sys-color-on-secondary-container)}:where(.mtrl-menu__item--selected:hover){position:relative}.mtrl-menu__item--selected:hover::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-secondary-container);opacity:.08;pointer-events:none;border-radius:inherit}:where(.mtrl-menu__item--selected:focus-visible,.mtrl-menu__item--selected.mtrl-menu__item--active){position:relative}.mtrl-menu__item--selected:focus-visible::before,.mtrl-menu__item--selected.mtrl-menu__item--active::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-secondary-container);opacity:.1;pointer-events:none;border-radius:inherit}:where(.mtrl-menu__item--selected:active){position:relative}.mtrl-menu__item--selected:active:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-secondary-container);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-menu__item--selected .mtrl-menu__item-icon,.mtrl-menu__item--selected .mtrl-menu__item-shortcut{color:inherit}.mtrl-menu__item--selected::after{content:"";position:absolute;left:12px;right:12px;margin-inline-start:auto;top:50%;transform:translateY(-50%);width:18px;height:18px;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;background-color:currentColor}.mtrl-menu__item--selected.mtrl-menu__item--disabled{background-color:color-mix(in srgb, var(--mtrl-sys-color-secondary-container) 38%, transparent);color:color-mix(in srgb, var(--mtrl-sys-color-on-secondary-container) 38%, transparent)}.mtrl-menu__item--selected.mtrl-menu__item--disabled:hover::before,.mtrl-menu__item--selected.mtrl-menu__item--disabled:active::before{opacity:0}.mtrl-menu__item-content{display:flex;align-items:center;width:100%;overflow:hidden}.mtrl-menu__item-icon{margin-inline-end:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-menu__item-icon svg{width:24px;height:24px}.mtrl-menu__item-text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mtrl-menu__item-label{display:flex;flex-direction:column;justify-content:center;flex:1;min-width:0}.mtrl-menu__item-supporting{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;color:var(--mtrl-sys-color-on-surface-variant);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mtrl-menu__item-shortcut{margin-left:12px;color:var(--mtrl-sys-color-on-surface-variant);flex-shrink:0}.mtrl-menu__divider{height:1px;flex-shrink:0;margin:8px 0;background-color:var(--mtrl-sys-color-outline-variant)}.mtrl-menu:focus-visible{outline:2px solid ".mtrl-menu__item:focus-visible";outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}@media(prefers-reduced-motion: reduce){.mtrl-menu{transition:opacity 100ms linear,visibility 100ms}.mtrl-menu,.mtrl-menu--visible{transform:none}}@media(forced-colors: active){.mtrl-menu{border:1px solid CurrentColor}.mtrl-menu .mtrl-menu__divider{background-color:CurrentColor}.mtrl-menu .mtrl-menu__item--disabled{opacity:1;color:GrayText}}.mtrl-menu--dense{padding:4px 0}.mtrl-menu--dense .mtrl-menu__item{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;min-height:32px;padding:4px 12px;padding-right:32px}.mtrl-menu--dense .mtrl-menu__item--submenu{padding-right:36px}.mtrl-menu--dense .mtrl-menu__item-icon svg{width:16px;height:16px}.mtrl-menu--dense .mtrl-menu__divider{margin:4px 0}.mtrl-menu--vertical{--mtrl-menu-container: var(--mtrl-sys-color-surface-container-low);--mtrl-menu-label: var(--mtrl-sys-color-on-surface);--mtrl-menu-supporting: var(--mtrl-sys-color-on-surface-variant);--mtrl-menu-selected-container: var(--mtrl-sys-color-tertiary-container);--mtrl-menu-selected-label: var(--mtrl-sys-color-on-tertiary-container);--mtrl-menu-selected-disabled-container: color-mix( in srgb, var(--mtrl-menu-selected-container) 38%, transparent );border-radius:var(--mtrl-sys-shape-corner-large, 16px);background-color:var(--mtrl-menu-container);color:var(--mtrl-menu-label);padding:4px}.mtrl-menu--vertical.mtrl-menu--vibrant{--mtrl-menu-container: var(--mtrl-sys-color-tertiary-container);--mtrl-menu-label: var(--mtrl-sys-color-on-tertiary-container);--mtrl-menu-supporting: var(--mtrl-sys-color-on-tertiary-container);--mtrl-menu-selected-container: var(--mtrl-sys-color-tertiary);--mtrl-menu-selected-label: var(--mtrl-sys-color-on-tertiary);--mtrl-menu-selected-disabled-container: var(--mtrl-menu-selected-container)}.mtrl-menu--vertical .mtrl-menu__list{display:flex;flex-direction:column;gap:2px}.mtrl-menu--vertical .mtrl-menu__item{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:16px;line-height:24px;letter-spacing:.5px;font-weight:400;min-height:44px;padding:8px 16px;padding-inline-end:16px;color:var(--mtrl-menu-label);border-radius:var(--mtrl-sys-shape-corner-extra-small, 4px);transition:border-radius 425ms linear(0, 0.102, 0.323, 0.57, 0.784, 0.942, 1.039, 1.085, 1.094, 1.082, 1.06, 1.037, 1.018, 1.004, 0.995, 0.992, 0.991, 0.992, 0.995, 0.997, 0.999, 1, 1.001, 1.001, 1),background-color 100ms cubic-bezier(0.2, 0, 0, 1)}.mtrl-menu--vertical .mtrl-menu__item:hover,.mtrl-menu--vertical .mtrl-menu__item:focus-visible,.mtrl-menu--vertical .mtrl-menu__item--active,.mtrl-menu--vertical .mtrl-menu__item:active{border-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-menu--vertical .mtrl-menu__item:first-child{border-start-start-radius:var(--mtrl-sys-shape-corner-medium, 12px);border-start-end-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-menu--vertical .mtrl-menu__item:last-child{border-end-start-radius:var(--mtrl-sys-shape-corner-medium, 12px);border-end-end-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-menu--vertical .mtrl-menu__item--selected{background-color:var(--mtrl-menu-selected-container);color:var(--mtrl-menu-selected-label);border-radius:var(--mtrl-sys-shape-corner-medium, 12px)}:where(.mtrl-menu--vertical .mtrl-menu__item--selected:hover){position:relative}.mtrl-menu--vertical .mtrl-menu__item--selected:hover::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-menu-selected-label);opacity:.08;pointer-events:none;border-radius:inherit}:where(.mtrl-menu--vertical .mtrl-menu__item--selected:focus-visible,.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--active){position:relative}.mtrl-menu--vertical .mtrl-menu__item--selected:focus-visible::before,.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--active::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-menu-selected-label);opacity:.1;pointer-events:none;border-radius:inherit}:where(.mtrl-menu--vertical .mtrl-menu__item--selected:active){position:relative}.mtrl-menu--vertical .mtrl-menu__item--selected:active:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-menu-selected-label);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--disabled{background-color:var(--mtrl-menu-selected-disabled-container);color:color-mix(in srgb, var(--mtrl-menu-selected-label) 38%, transparent)}.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--disabled:hover::before,.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--disabled:active::before{opacity:0}.mtrl-menu--vertical .mtrl-menu__item--selected:not(.mtrl-menu__item--submenu)::after{content:none}.mtrl-menu--vertical .mtrl-menu__item--disabled{color:color-mix(in srgb, var(--mtrl-menu-label) 38%, transparent)}.mtrl-menu--vertical .mtrl-menu__item--disabled .mtrl-menu__item-icon,.mtrl-menu--vertical .mtrl-menu__item--disabled .mtrl-menu__item-supporting,.mtrl-menu--vertical .mtrl-menu__item--disabled .mtrl-menu__item-shortcut{color:inherit}.mtrl-menu--vertical .mtrl-menu__item-icon{color:var(--mtrl-menu-supporting);margin-inline-end:12px}.mtrl-menu--vertical .mtrl-menu__item-icon svg{width:20px;height:20px}.mtrl-menu--vertical .mtrl-menu__item-shortcut{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:11px;line-height:16px;letter-spacing:.5px;font-weight:500;color:var(--mtrl-menu-supporting)}.mtrl-menu--vertical .mtrl-menu__item-label{display:flex;flex-direction:column;justify-content:center;flex:1;min-width:0}.mtrl-menu--vertical .mtrl-menu__item-supporting{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;color:var(--mtrl-menu-supporting);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mtrl-menu--vertical .mtrl-menu__item--selected .mtrl-menu__item-icon,.mtrl-menu--vertical .mtrl-menu__item--selected .mtrl-menu__item-shortcut,.mtrl-menu--vertical .mtrl-menu__item--selected .mtrl-menu__item-supporting{color:inherit}.mtrl-menu--vertical .mtrl-menu__divider{margin:6px 0}.mtrl-menu--vertical:has(.mtrl-menu__group){background-color:rgba(0,0,0,0);box-shadow:none;padding:0;overflow:visible}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__list{overflow:visible;gap:2px}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group{background-color:var(--mtrl-menu-container);padding:4px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15);border-radius:var(--mtrl-sys-shape-corner-small, 8px)}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group:first-child{border-start-start-radius:var(--mtrl-sys-shape-corner-large, 16px);border-start-end-radius:var(--mtrl-sys-shape-corner-large, 16px)}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group:last-child{border-end-start-radius:var(--mtrl-sys-shape-corner-large, 16px);border-end-end-radius:var(--mtrl-sys-shape-corner-large, 16px)}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group+.mtrl-menu__group{margin-top:0}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group>ul{display:flex;flex-direction:column;gap:2px}.mtrl-menu--vertical{transition:transform 250ms cubic-bezier(0.3, 0, 0, 1),opacity 250ms cubic-bezier(0.3, 0, 0, 1),visibility 250ms,border-radius 425ms linear(0, 0.102, 0.323, 0.57, 0.784, 0.942, 1.039, 1.085, 1.094, 1.082, 1.06, 1.037, 1.018, 1.004, 0.995, 0.992, 0.991, 0.992, 0.995, 0.997, 0.999, 1, 1.001, 1.001, 1)}.mtrl-menu--vertical.mtrl-menu--active{border-radius:24px}.mtrl-menu--vertical.mtrl-menu--inactive{border-radius:var(--mtrl-sys-shape-corner-small, 8px)}[dir=rtl] .mtrl-menu,.mtrl-menu.mtrl-menu--rtl{transform-origin:top right}[dir=rtl] .mtrl-menu--position-top,[dir=rtl] .mtrl-menu--position-top-start,[dir=rtl] .mtrl-menu--position-top-end,.mtrl-menu.mtrl-menu--rtl.mtrl-menu--position-top,.mtrl-menu.mtrl-menu--rtl.mtrl-menu--position-top-start,.mtrl-menu.mtrl-menu--rtl.mtrl-menu--position-top-end{transform-origin:bottom right}[dir=rtl] .mtrl-menu .mtrl-menu__item--submenu,.mtrl-menu.mtrl-menu--rtl .mtrl-menu__item--submenu{padding-right:16px;padding-left:48px}[dir=rtl] .mtrl-menu .mtrl-menu__item--submenu::after,.mtrl-menu.mtrl-menu--rtl .mtrl-menu__item--submenu::after{right:auto;left:16px;transform:translateY(-50%) rotate(180deg)}
|
|
1
|
+
.mtrl-menu{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;border-radius:var(--mtrl-sys-shape-corner-extra-small, 4px);position:fixed;z-index:700;min-width:112px;max-width:280px;padding:8px 0;background-color:var(--mtrl-sys-color-surface-container);color:var(--mtrl-sys-color-on-surface);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15);overflow:hidden;display:flex;flex-direction:column;opacity:0;transform-origin:top center;transform:scaleY(0);pointer-events:none;visibility:hidden;transition:transform 250ms cubic-bezier(0.3, 0, 0, 1),opacity 250ms cubic-bezier(0.3, 0, 0, 1),visibility 250ms}.mtrl-menu[popover]{inset:auto;margin:0;border:0}.mtrl-menu--visible{opacity:1;transform:scaleY(1);pointer-events:auto;visibility:visible}.mtrl-menu--position-top{transform-origin:bottom center}.mtrl-menu--submenu{position:absolute;z-index:701}.mtrl-menu__group{display:block;list-style:none}.mtrl-menu__group>ul{margin:0;padding:0;list-style:none}.mtrl-menu__group+.mtrl-menu__group{margin-top:8px}.mtrl-menu__list{margin:0;padding:0;list-style:none;overflow-y:auto;flex:1 1 auto;min-height:0;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) rgba(0,0,0,.05);width:100%}.mtrl-menu__list::-webkit-scrollbar{width:8px}.mtrl-menu__list::-webkit-scrollbar-track{background:rgba(0,0,0,.05)}.mtrl-menu__list::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:4px}.mtrl-menu__item{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.1px;font-weight:500;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;position:relative;min-height:48px;padding:12px;padding-inline-end:40px;cursor:pointer;user-select:none;color:var(--mtrl-sys-color-on-surface);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;box-sizing:border-box}:where(.mtrl-menu__item:hover){position:relative}.mtrl-menu__item:hover::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-menu__item:focus{outline:none}:where(.mtrl-menu__item:focus-visible,.mtrl-menu__item--active){position:relative}.mtrl-menu__item:focus-visible::before,.mtrl-menu__item--active::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}:where(.mtrl-menu__item:active){position:relative}.mtrl-menu__item:active:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-menu__item--submenu{padding-right:48px}.mtrl-menu__item--submenu::after{content:"";position:absolute;right:12px;top:50%;transform:translateY(-50%);width:24px;height:24px;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5v10z'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5v10z'/%3E%3C/svg%3E") center/contain no-repeat;background-color:currentColor;opacity:.87}:where(.mtrl-menu__item--submenu[aria-expanded=true]){position:relative}.mtrl-menu__item--submenu[aria-expanded=true]::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-surface);opacity:.08;pointer-events:none;border-radius:inherit}.mtrl-menu__item--submenu[aria-expanded=true]::after{opacity:1}.mtrl-menu__item--disabled{cursor:default;color:color-mix(in srgb, var(--mtrl-sys-color-on-surface) 38%, transparent)}.mtrl-menu__item--disabled .mtrl-menu__item-icon,.mtrl-menu__item--disabled .mtrl-menu__item-supporting,.mtrl-menu__item--disabled .mtrl-menu__item-shortcut{color:inherit}.mtrl-menu__item--disabled:hover::before,.mtrl-menu__item--disabled:active::before{opacity:0}.mtrl-menu__item--selected{background-color:var(--mtrl-sys-color-secondary-container);color:var(--mtrl-sys-color-on-secondary-container)}:where(.mtrl-menu__item--selected:hover){position:relative}.mtrl-menu__item--selected:hover::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-secondary-container);opacity:.08;pointer-events:none;border-radius:inherit}:where(.mtrl-menu__item--selected:focus-visible,.mtrl-menu__item--selected.mtrl-menu__item--active){position:relative}.mtrl-menu__item--selected:focus-visible::before,.mtrl-menu__item--selected.mtrl-menu__item--active::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-secondary-container);opacity:.1;pointer-events:none;border-radius:inherit}:where(.mtrl-menu__item--selected:active){position:relative}.mtrl-menu__item--selected:active:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-sys-color-on-secondary-container);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-menu__item--selected .mtrl-menu__item-icon,.mtrl-menu__item--selected .mtrl-menu__item-shortcut{color:inherit}.mtrl-menu__item--selected::after{content:"";position:absolute;left:12px;right:12px;margin-inline-start:auto;top:50%;transform:translateY(-50%);width:18px;height:18px;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;background-color:currentColor}.mtrl-menu__item--selected.mtrl-menu__item--disabled{background-color:color-mix(in srgb, var(--mtrl-sys-color-secondary-container) 38%, transparent);color:color-mix(in srgb, var(--mtrl-sys-color-on-secondary-container) 38%, transparent)}.mtrl-menu__item--selected.mtrl-menu__item--disabled:hover::before,.mtrl-menu__item--selected.mtrl-menu__item--disabled:active::before{opacity:0}.mtrl-menu__item-content{display:flex;align-items:center;width:100%;overflow:hidden}.mtrl-menu__item-icon{margin-inline-end:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-menu__item-icon svg{width:24px;height:24px}.mtrl-menu__item-text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mtrl-menu__item-label{display:flex;flex-direction:column;justify-content:center;flex:1;min-width:0}.mtrl-menu__item-supporting{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;color:var(--mtrl-sys-color-on-surface-variant);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mtrl-menu__item-shortcut{margin-left:12px;color:var(--mtrl-sys-color-on-surface-variant);flex-shrink:0}.mtrl-menu__divider{height:1px;flex-shrink:0;margin:8px 0;background-color:var(--mtrl-sys-color-outline-variant)}.mtrl-menu:focus-visible{outline:2px solid ".mtrl-menu__item:focus-visible";outline-offset:2px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}@media(prefers-reduced-motion: reduce){.mtrl-menu{transition:opacity 100ms linear,visibility 100ms}.mtrl-menu,.mtrl-menu--visible{transform:none}}@media(forced-colors: active){.mtrl-menu{border:1px solid CurrentColor}.mtrl-menu .mtrl-menu__divider{background-color:CurrentColor}.mtrl-menu .mtrl-menu__item--disabled{opacity:1;color:GrayText}}.mtrl-menu--dense{padding:4px 0}.mtrl-menu--dense .mtrl-menu__item{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;min-height:32px;padding:4px 12px;padding-right:32px}.mtrl-menu--dense .mtrl-menu__item--submenu{padding-right:36px}.mtrl-menu--dense .mtrl-menu__item-icon svg{width:16px;height:16px}.mtrl-menu--dense .mtrl-menu__divider{margin:4px 0}.mtrl-menu--vertical{--mtrl-menu-container: var(--mtrl-sys-color-surface-container-low);--mtrl-menu-label: var(--mtrl-sys-color-on-surface);--mtrl-menu-supporting: var(--mtrl-sys-color-on-surface-variant);--mtrl-menu-selected-container: var(--mtrl-sys-color-tertiary-container);--mtrl-menu-selected-label: var(--mtrl-sys-color-on-tertiary-container);--mtrl-menu-selected-disabled-container: color-mix( in srgb, var(--mtrl-menu-selected-container) 38%, transparent );border-radius:var(--mtrl-sys-shape-corner-large, 16px);background-color:var(--mtrl-menu-container);color:var(--mtrl-menu-label);padding:4px}.mtrl-menu--vertical.mtrl-menu--vibrant{--mtrl-menu-container: var(--mtrl-sys-color-tertiary-container);--mtrl-menu-label: var(--mtrl-sys-color-on-tertiary-container);--mtrl-menu-supporting: var(--mtrl-sys-color-on-tertiary-container);--mtrl-menu-selected-container: var(--mtrl-sys-color-tertiary);--mtrl-menu-selected-label: var(--mtrl-sys-color-on-tertiary);--mtrl-menu-selected-disabled-container: var(--mtrl-menu-selected-container)}.mtrl-menu--vertical .mtrl-menu__list{display:flex;flex-direction:column;gap:2px}.mtrl-menu--vertical .mtrl-menu__item{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:16px;line-height:24px;letter-spacing:.5px;font-weight:400;min-height:44px;padding:8px 16px;padding-inline-end:16px;color:var(--mtrl-menu-label);border-radius:var(--mtrl-sys-shape-corner-extra-small, 4px);transition:border-radius 425ms linear(0, 0.102, 0.323, 0.57, 0.784, 0.942, 1.039, 1.085, 1.094, 1.082, 1.06, 1.037, 1.018, 1.004, 0.995, 0.992, 0.991, 0.992, 0.995, 0.997, 0.999, 1, 1.001, 1.001, 1),background-color 100ms cubic-bezier(0.2, 0, 0, 1)}.mtrl-menu--vertical .mtrl-menu__item:hover,.mtrl-menu--vertical .mtrl-menu__item:focus-visible,.mtrl-menu--vertical .mtrl-menu__item--active,.mtrl-menu--vertical .mtrl-menu__item:active{border-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-menu--vertical .mtrl-menu__item:first-child{border-start-start-radius:var(--mtrl-sys-shape-corner-medium, 12px);border-start-end-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-menu--vertical .mtrl-menu__item:last-child{border-end-start-radius:var(--mtrl-sys-shape-corner-medium, 12px);border-end-end-radius:var(--mtrl-sys-shape-corner-medium, 12px)}.mtrl-menu--vertical .mtrl-menu__item--selected{background-color:var(--mtrl-menu-selected-container);color:var(--mtrl-menu-selected-label);border-radius:var(--mtrl-sys-shape-corner-medium, 12px)}:where(.mtrl-menu--vertical .mtrl-menu__item--selected:hover){position:relative}.mtrl-menu--vertical .mtrl-menu__item--selected:hover::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-menu-selected-label);opacity:.08;pointer-events:none;border-radius:inherit}:where(.mtrl-menu--vertical .mtrl-menu__item--selected:focus-visible,.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--active){position:relative}.mtrl-menu--vertical .mtrl-menu__item--selected:focus-visible::before,.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--active::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-menu-selected-label);opacity:.1;pointer-events:none;border-radius:inherit}:where(.mtrl-menu--vertical .mtrl-menu__item--selected:active){position:relative}.mtrl-menu--vertical .mtrl-menu__item--selected:active:not(:has(>.mtrl-ripple))::before{content:"";position:absolute;inset:0;background-color:var(--mtrl-menu-selected-label);opacity:.1;pointer-events:none;border-radius:inherit}.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--disabled{background-color:var(--mtrl-menu-selected-disabled-container);color:color-mix(in srgb, var(--mtrl-menu-selected-label) 38%, transparent)}.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--disabled:hover::before,.mtrl-menu--vertical .mtrl-menu__item--selected.mtrl-menu__item--disabled:active::before{opacity:0}.mtrl-menu--vertical .mtrl-menu__item--selected:not(.mtrl-menu__item--submenu)::after{content:none}.mtrl-menu--vertical .mtrl-menu__item--disabled{color:color-mix(in srgb, var(--mtrl-menu-label) 38%, transparent)}.mtrl-menu--vertical .mtrl-menu__item--disabled .mtrl-menu__item-icon,.mtrl-menu--vertical .mtrl-menu__item--disabled .mtrl-menu__item-supporting,.mtrl-menu--vertical .mtrl-menu__item--disabled .mtrl-menu__item-shortcut{color:inherit}.mtrl-menu--vertical .mtrl-menu__item-icon{color:var(--mtrl-menu-supporting);margin-inline-end:12px}.mtrl-menu--vertical .mtrl-menu__item-icon svg{width:20px;height:20px}.mtrl-menu--vertical .mtrl-menu__item-shortcut{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:11px;line-height:16px;letter-spacing:.5px;font-weight:500;color:var(--mtrl-menu-supporting)}.mtrl-menu--vertical .mtrl-menu__item-label{display:flex;flex-direction:column;justify-content:center;flex:1;min-width:0}.mtrl-menu--vertical .mtrl-menu__item-supporting{font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;color:var(--mtrl-menu-supporting);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mtrl-menu--vertical .mtrl-menu__item--selected .mtrl-menu__item-icon,.mtrl-menu--vertical .mtrl-menu__item--selected .mtrl-menu__item-shortcut,.mtrl-menu--vertical .mtrl-menu__item--selected .mtrl-menu__item-supporting{color:inherit}.mtrl-menu--vertical .mtrl-menu__divider{margin:6px 0}.mtrl-menu--vertical:has(.mtrl-menu__group){background-color:rgba(0,0,0,0);box-shadow:none;padding:0;overflow:visible}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__list{overflow:visible;gap:2px}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group{background-color:var(--mtrl-menu-container);padding:4px;box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15);border-radius:var(--mtrl-sys-shape-corner-small, 8px)}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group:first-child{border-start-start-radius:var(--mtrl-sys-shape-corner-large, 16px);border-start-end-radius:var(--mtrl-sys-shape-corner-large, 16px)}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group:last-child{border-end-start-radius:var(--mtrl-sys-shape-corner-large, 16px);border-end-end-radius:var(--mtrl-sys-shape-corner-large, 16px)}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group+.mtrl-menu__group{margin-top:0}.mtrl-menu--vertical:has(.mtrl-menu__group) .mtrl-menu__group>ul{display:flex;flex-direction:column;gap:2px}.mtrl-menu--vertical{transition:transform 250ms cubic-bezier(0.3, 0, 0, 1),opacity 250ms cubic-bezier(0.3, 0, 0, 1),visibility 250ms,border-radius 425ms linear(0, 0.102, 0.323, 0.57, 0.784, 0.942, 1.039, 1.085, 1.094, 1.082, 1.06, 1.037, 1.018, 1.004, 0.995, 0.992, 0.991, 0.992, 0.995, 0.997, 0.999, 1, 1.001, 1.001, 1)}.mtrl-menu--vertical.mtrl-menu--active{border-radius:24px}.mtrl-menu--vertical.mtrl-menu--inactive{border-radius:var(--mtrl-sys-shape-corner-small, 8px)}[dir=rtl] .mtrl-menu,.mtrl-menu.mtrl-menu--rtl{transform-origin:top right}[dir=rtl] .mtrl-menu--position-top,.mtrl-menu.mtrl-menu--rtl.mtrl-menu--position-top{transform-origin:bottom right}[dir=rtl] .mtrl-menu .mtrl-menu__item--submenu,.mtrl-menu.mtrl-menu--rtl .mtrl-menu__item--submenu{padding-right:16px;padding-left:48px}[dir=rtl] .mtrl-menu .mtrl-menu__item--submenu::after,.mtrl-menu.mtrl-menu--rtl .mtrl-menu__item--submenu::after{right:auto;left:16px;transform:translateY(-50%) rotate(180deg)}
|