@shortfuse/materialdesignweb 0.7.0 → 0.7.1-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/bin/generate-css.js +1 -2
  2. package/components/Badge.js +40 -3
  3. package/components/Body.js +16 -2
  4. package/components/BottomAppBar.js +25 -2
  5. package/components/Box.js +33 -3
  6. package/components/Button.js +146 -9
  7. package/components/Card.js +111 -3
  8. package/components/Checkbox.js +91 -3
  9. package/components/CheckboxIcon.js +92 -4
  10. package/components/Chip.js +38 -2
  11. package/components/Dialog.js +237 -3
  12. package/components/DialogActions.js +3 -2
  13. package/components/Divider.js +44 -3
  14. package/components/ExtendedFab.js +27 -2
  15. package/components/Fab.js +26 -2
  16. package/components/FilterChip.js +83 -2
  17. package/components/Headline.js +16 -2
  18. package/components/Icon.js +80 -4
  19. package/components/IconButton.js +153 -2
  20. package/components/Label.js +16 -2
  21. package/components/Layout.js +21 -3
  22. package/components/List.js +15 -2
  23. package/components/ListItem.js +229 -3
  24. package/components/ListOption.js +37 -3
  25. package/components/ListSelect.js +12 -2
  26. package/components/Menu.js +173 -3
  27. package/components/MenuItem.js +55 -2
  28. package/components/Nav.js +19 -2
  29. package/components/NavBar.js +37 -2
  30. package/components/NavBarItem.js +44 -2
  31. package/components/NavDrawer.js +34 -2
  32. package/components/NavDrawerItem.js +44 -2
  33. package/components/NavItem.js +183 -3
  34. package/components/NavRail.js +50 -2
  35. package/components/NavRailItem.js +25 -2
  36. package/components/Pane.js +263 -3
  37. package/components/Progress.js +469 -10
  38. package/components/Radio.js +97 -3
  39. package/components/RadioIcon.js +77 -5
  40. package/components/Ripple.js +76 -3
  41. package/components/SegmentedButton.js +97 -2
  42. package/components/SegmentedButtonGroup.js +15 -2
  43. package/components/Select.js +54 -2
  44. package/components/Shape.js +55 -18
  45. package/components/Slider.js +309 -3
  46. package/components/Snackbar.js +82 -2
  47. package/components/Surface.js +13 -4
  48. package/components/Switch.js +67 -4
  49. package/components/SwitchIcon.js +272 -5
  50. package/components/Tab.js +87 -3
  51. package/components/TabContent.js +21 -21
  52. package/components/TabList.js +131 -2
  53. package/components/TextArea.js +97 -3
  54. package/components/Title.js +16 -2
  55. package/components/Tooltip.js +42 -2
  56. package/components/TopAppBar.js +212 -3
  57. package/core/template.js +36 -9
  58. package/index.js +77 -0
  59. package/mixins/ControlMixin.js +65 -2
  60. package/mixins/DensityMixin.js +17 -3
  61. package/mixins/FlexableMixin.js +81 -3
  62. package/mixins/RippleMixin.js +15 -4
  63. package/mixins/ShapeMixin.js +279 -8
  64. package/mixins/StateMixin.js +87 -5
  65. package/mixins/SurfaceMixin.js +152 -3
  66. package/mixins/TextFieldMixin.js +661 -2
  67. package/mixins/ThemableMixin.js +206 -3
  68. package/mixins/TooltipTriggerMixin.js +30 -4
  69. package/mixins/TouchTargetMixin.js +29 -4
  70. package/package.json +3 -1
  71. package/theming/index.js +0 -121
  72. package/theming/loader.js +0 -2
  73. package/utils/svg.js +0 -117
  74. package/components/Badge.css +0 -30
  75. package/components/Body.css +0 -14
  76. package/components/BottomAppBar.css +0 -23
  77. package/components/Box.css +0 -31
  78. package/components/Button.css +0 -146
  79. package/components/Card.css +0 -109
  80. package/components/Checkbox.css +0 -77
  81. package/components/CheckboxIcon.css +0 -89
  82. package/components/Chip.css +0 -35
  83. package/components/Dialog.css +0 -235
  84. package/components/Divider.css +0 -41
  85. package/components/ExtendedFab.css +0 -24
  86. package/components/Fab.css +0 -23
  87. package/components/FilterChip.css +0 -80
  88. package/components/Headline.css +0 -14
  89. package/components/Icon.css +0 -76
  90. package/components/IconButton.css +0 -151
  91. package/components/Label.css +0 -14
  92. package/components/Layout.css +0 -19
  93. package/components/List.css +0 -12
  94. package/components/ListItem.css +0 -224
  95. package/components/ListOption.css +0 -34
  96. package/components/ListSelect.css +0 -9
  97. package/components/Menu.css +0 -171
  98. package/components/MenuItem.css +0 -53
  99. package/components/Nav.css +0 -17
  100. package/components/NavBar.css +0 -34
  101. package/components/NavBarItem.css +0 -41
  102. package/components/NavDrawer.css +0 -31
  103. package/components/NavDrawerItem.css +0 -42
  104. package/components/NavItem.css +0 -181
  105. package/components/NavRail.css +0 -47
  106. package/components/NavRailItem.css +0 -25
  107. package/components/Outline.css +0 -138
  108. package/components/Pane.css +0 -261
  109. package/components/Progress.css +0 -74
  110. package/components/ProgressCircle.css +0 -226
  111. package/components/ProgressLine.css +0 -155
  112. package/components/Radio.css +0 -83
  113. package/components/RadioIcon.css +0 -73
  114. package/components/Ripple.css +0 -74
  115. package/components/SegmentedButton.css +0 -94
  116. package/components/SegmentedButtonGroup.css +0 -12
  117. package/components/Select.css +0 -52
  118. package/components/Shape.css +0 -132
  119. package/components/Slider.css +0 -306
  120. package/components/Snackbar.css +0 -80
  121. package/components/Surface.css +0 -10
  122. package/components/Switch.css +0 -63
  123. package/components/SwitchIcon.css +0 -177
  124. package/components/SwitchIconAnimations.css +0 -89
  125. package/components/Tab.css +0 -85
  126. package/components/TabList.css +0 -129
  127. package/components/TextArea.css +0 -93
  128. package/components/Title.css +0 -14
  129. package/components/Tooltip.css +0 -40
  130. package/components/TopAppBar.css +0 -209
  131. package/mixins/ControlMixin.css +0 -57
  132. package/mixins/DensityMixin.css +0 -40
  133. package/mixins/FlexableMixin.css +0 -79
  134. package/mixins/RippleMixin.css +0 -12
  135. package/mixins/ShapeMixin.css +0 -135
  136. package/mixins/StateMixin.css +0 -82
  137. package/mixins/SurfaceMixin.css +0 -150
  138. package/mixins/TextFieldMixin.css +0 -657
  139. package/mixins/ThemableMixin.css +0 -204
  140. package/mixins/TooltipTriggerMixin.css +0 -27
  141. package/mixins/TouchTargetMixin.css +0 -26
@@ -1,41 +0,0 @@
1
- /* https://m3.material.io/components/dividers/specs */
2
-
3
- :host {
4
- --mdw-ink: var(--mdw-color__outline-variant);
5
- position: relative;
6
-
7
- display: block;
8
- overflow: visible;
9
-
10
- box-sizing: border-box;
11
- block-size: 0;
12
- inline-size: 100%;
13
-
14
- color: rgb(var(--mdw-ink));
15
- }
16
-
17
- :host::before {
18
- content: '';
19
-
20
- display: block;
21
-
22
- box-sizing: border-box;
23
- block-size: 1px;
24
- inline-size: auto;
25
-
26
- background-color: currentcolor;
27
- }
28
-
29
- :host([vertical]) {
30
- display: inline-flex;
31
- vertical-align: top;
32
-
33
- block-size: auto;
34
- min-block-size: 100%;
35
- inline-size: 0;
36
- }
37
-
38
- :host([vertical])::before {
39
- block-size: auto;
40
- min-inline-size: 1px;
41
- }
@@ -1,24 +0,0 @@
1
- /* https://m3.material.io/components/extended-fab/specs */
2
-
3
- :host {
4
- --mdw-bg: var(--mdw-color__primary-container);
5
- --mdw-ink: var(--mdw-color__on-primary-container);
6
- --mdw-shape__size: 16px;
7
- --mdw-surface__tint: var(--mdw-surface__tint__3);
8
- --mdw-surface__tint__raised: var(--mdw-surface__tint__4);
9
- --mdw-surface__shadow__resting: var(--mdw-surface__shadow__3);
10
- --mdw-surface__shadow__raised: var(--mdw-surface__shadow__4);
11
- min-inline-size: 48px;
12
- padding: calc(16px + (var(--mdw-density) * 2px));
13
- }
14
-
15
- #icon {
16
- font-size: 24px;
17
- }
18
-
19
- :host([lowered]) {
20
- --mdw-surface__tint: var(--mdw-surface__tint__1);
21
- --mdw-surface__tint__raised: var(--mdw-surface__tint__2);
22
- --mdw-surface__shadow__resting: var(--mdw-surface__shadow__1);
23
- --mdw-surface__shadow__raised: var(--mdw-surface__shadow__2);
24
- }
@@ -1,23 +0,0 @@
1
- /* https://m3.material.io/components/floating-action-button/specs */
2
-
3
- :host {
4
- min-inline-size: 24px;
5
- }
6
-
7
- #icon {
8
- font-size: 24px;
9
- }
10
-
11
- #icon[fab-size="large"] {
12
- font-size: 36px;
13
- }
14
-
15
- :host([fab-size="small"]) {
16
- --mdw-shape__size: 12px;
17
- padding: calc(8px + (var(--mdw-density) * 2px));
18
- }
19
-
20
- :host([fab-size="large"]) {
21
- --mdw-shape__size: 28px;
22
- padding: calc(30px + (var(--mdw-density) * 2px));
23
- }
@@ -1,80 +0,0 @@
1
- /* https://m3.material.io/components/chips/specs */
2
-
3
- /* Filter Chips can be elevated */
4
-
5
- :host {
6
- --mdw-ink: var(--mdw-color__on-secondary-container);
7
- --mdw-bg: var(--mdw-color__secondary-container);
8
- gap: 8px;
9
-
10
- padding-inline-start: max(4px, calc(8px + (var(--mdw-density) * 2px)));
11
- padding-inline-end: max(12px, calc(16px + (var(--mdw-density) * 2px)));
12
-
13
- color: rgb(var(--mdw-color__on-surface-variant));
14
-
15
- }
16
-
17
- :host(:focus) {
18
- --mdw-outline__rgb: var(--mdw-color__outline);
19
- }
20
-
21
- #icon[selected] {
22
- font-variation-settings: 'FILL' 1;
23
- }
24
-
25
- #shape {
26
- background-color: transparent;
27
- }
28
-
29
- :host(:where([trailing-icon],[dropdown],[trailing-src])) {
30
- padding-inline-start: max(4px, calc(8px + (var(--mdw-density) * 2px)));
31
- }
32
-
33
- #shape[elevated] {
34
- background-color: rgb(var(--mdw-color__surface));
35
- }
36
-
37
- #shape[selected] {
38
- background-color: rgb(var(--mdw-bg));
39
- }
40
-
41
- :host([selected]) {
42
- color: rgb(var(--mdw-ink));
43
- }
44
-
45
- #outline[selected] {
46
- opacity: 0;
47
- }
48
-
49
- #trailing-icon {
50
- position: relative;
51
-
52
- font-size: 18px;
53
- }
54
-
55
- .mdw-chip__checkbox {
56
- position: absolute;
57
-
58
- max-block-size: 0;
59
- max-inline-size: 0;
60
-
61
- appearance: none;
62
- pointer-events: none;
63
- }
64
-
65
- #check-icon {
66
- font-size: 0;
67
- }
68
-
69
- #check-icon[selected] {
70
- font-size: 18px;
71
- }
72
-
73
- #check-icon[disabled] {
74
- color: rgba(var(--mdw-color__on-surface), 0.38);
75
- }
76
-
77
- #shape[disabled]:is([elevated],[selected]) {
78
- background-color: rgba(var(--mdw-color__on-surface), 0.12);
79
- /* color: rgba(var(--mdw-color__on-surface), 0.38); */
80
- }
@@ -1,14 +0,0 @@
1
- :host {
2
- font: var(--mdw-typescale__headline-large__font);
3
- letter-spacing: var(--mdw-typescale__headline-large__letter-spacing);
4
- }
5
-
6
- :host([size="medium"]) {
7
- font: var(--mdw-typescale__headline-medium__font);
8
- letter-spacing: var(--mdw-typescale__headline-medium__letter-spacing);
9
- }
10
-
11
- :host([size="small"]) {
12
- font: var(--mdw-typescale__headline-small__font);
13
- letter-spacing: var(--mdw-typescale__headline-small__letter-spacing);
14
- }
@@ -1,76 +0,0 @@
1
- /* https://material.io/design/iconography/system-icons.html */
2
-
3
- :host {
4
- display: inline-block;
5
- vertical-align: -11.5%;
6
-
7
- block-size: 1em;
8
- inline-size: 1em;
9
-
10
- -webkit-user-select: none;
11
- user-select: none;
12
-
13
- font-variation-settings: 'FILL' 1;
14
-
15
- transition-duration: 200ms;
16
- /* stylelint-disable-next-line liberty/use-logical-spec -- Safari does not animate inline-size */
17
- transition-property: inline-size, width;
18
- }
19
-
20
- :host(:is([color],[ink])) {
21
- color: rgb(var(--mdw-ink));
22
- }
23
-
24
- #icon {
25
- /* Clip bounds in case font is not ready */
26
- display: block;
27
- overflow: clip;
28
-
29
- block-size: 1em;
30
- inline-size: 1em;
31
-
32
- font-size: inherit;
33
- font-variation-settings: inherit;
34
-
35
- transition-delay: 1ms;
36
- transition-duration: 200ms;
37
-
38
- transition-property: font-variation-settings;
39
- }
40
-
41
- #icon[hidden] {
42
- display: none;
43
- }
44
-
45
- #svg {
46
- display: block;
47
-
48
- block-size: inherit;
49
- inline-size: inherit;
50
-
51
- fill: currentColor;
52
-
53
- object-fit: cover;
54
- }
55
-
56
- #img {
57
- display: block;
58
-
59
- block-size: inherit;
60
- inline-size: inherit;
61
-
62
- object-fit: cover;
63
-
64
- transition-delay: 1ms;
65
- transition-duration: 200ms;
66
- transition-property: filter;
67
- }
68
-
69
- #img[disabled] {
70
- filter: grayscale();
71
- }
72
-
73
- .material-symbols-outlined {
74
- /* https://github.com/google/material-design-icons/issues/750 */
75
- direction: inherit;
76
- }
@@ -1,151 +0,0 @@
1
- /* https://m3.material.io/components/icon-buttons/specs */
2
-
3
- :host {
4
- --mdw-shape__size: var(--mdw-shape__full);
5
- --mdw-ink: rgb(var(--mdw-color__on-surface-variant));
6
-
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
-
11
- padding: max(8px, calc(8px + (var(--mdw-density) * 2px)));
12
-
13
- background-color: transparent;
14
-
15
- font-size: 24px;
16
- }
17
-
18
- :host(:where([type="checkbox"])) {
19
- --mdw-ink: var(--mdw-color__primary);
20
- }
21
-
22
- /** Filled | Filled Checked */
23
- :host(:where([filled])) {
24
- --mdw-ink: var(--mdw-color__on-primary);
25
- --mdw-bg: var(--mdw-color__primary);
26
- --mdw-surface__shadow__resting: none;
27
- --mdw-surface__shadow__raised: none;
28
- }
29
-
30
- /** Tonal | Tonal Checked */
31
- :host(:where([filled="tonal"])) {
32
- --mdw-ink: var(--mdw-color__on-secondary-container);
33
- --mdw-bg: var(--mdw-color__secondary-container);
34
- }
35
-
36
- /** Outlined | Outlined Unchecked */
37
- :host(:where([outlined])) {
38
- --mdw-ink: var(--mdw-color__on-surface-variant);
39
- }
40
-
41
- /** Outlined | Outlined Unchecked */
42
- :host(:where([outlined][type="checkbox"])) {
43
- --mdw-bg: var(--mdw-color__inverse-surface);
44
- --mdw-ink: var(--mdw-color__inverse-on-surface);
45
- }
46
-
47
- #label {
48
- font-size: inherit;
49
- letter-spacing: inherit;
50
- }
51
-
52
- #shape[toggle] {
53
- background-color: transparent;
54
- }
55
-
56
- .colored[toggle] {
57
- color: rgb(var(--mdw-color__on-surface-variant));
58
- }
59
-
60
- .colored[selected] {
61
- /* background-color: rgb(var(--mdw-bg)); */
62
- color: rgb(var(--mdw-ink));
63
- }
64
-
65
- #shape[filled][toggle] {
66
- background-color: rgb(var(--mdw-color__surface-variant));
67
- }
68
-
69
- .colored[filled][toggle] {
70
- color: rgb(var(--mdw-bg));
71
- }
72
-
73
- #shape[filled="tonal"][toggle] {
74
- background-color: rgb(var(--mdw-color__surface-variant));
75
- }
76
-
77
- .colored[filled="tonal"][toggle] {
78
- color: rgb(var(--mdw-color__on-surface-variant));
79
- }
80
-
81
- #shape[filled][selected] {
82
- background-color: rgb(var(--mdw-bg));
83
- }
84
-
85
- .colored[filled][selected] {
86
- color: rgb(var(--mdw-ink));
87
- }
88
-
89
- #shape[outlined] {
90
- background-color: transparent;
91
- }
92
-
93
- .colored[outlined] {
94
- color: inherit;
95
- }
96
-
97
- #shape[outlined][toggle] {
98
- background-color: transparent;
99
- }
100
-
101
- .colored[outlined][toggle] {
102
- color: rgb(var(--mdw-color__on-surface-variant));
103
- }
104
-
105
- #shape[outlined][selected] {
106
- background-color: rgb(var(--mdw-bg));
107
- }
108
-
109
- .colored[outlined][selected] {
110
- color: rgb(var(--mdw-ink));
111
- }
112
-
113
- #icon {
114
- font-size: inherit;
115
- font-variation-settings: 'FILL' 1;
116
- }
117
-
118
- #icon[toggle] {
119
- font-variation-settings: 'FILL' 0;
120
- }
121
-
122
- #icon[selected] {
123
- font-variation-settings: 'FILL' 1;
124
- }
125
-
126
- #outline[focused] {
127
- opacity: 1;
128
-
129
- color: inherit;
130
- }
131
-
132
- #outline[selected] {
133
- opacity: 0;
134
- }
135
-
136
- /** Disabled */
137
- .colored[disabled] {
138
- cursor: not-allowed;
139
-
140
- color: rgba(var(--mdw-color__on-surface), 0.38);
141
- }
142
-
143
- #shape[disabled][filled],
144
- #shape[disabled][outlined][selected] {
145
- background-color: rgba(var(--mdw-color__on-surface), 0.12);
146
- }
147
-
148
- .colored[disabled][filled],
149
- .colored[disabled][outlined][selected] {
150
- color: rgba(var(--mdw-color__on-surface), 0.38);
151
- }
@@ -1,14 +0,0 @@
1
- :host {
2
- font: var(--mdw-typescale__label-large__font);
3
- letter-spacing: var(--mdw-typescale__body-large__letter-spacing);
4
- }
5
-
6
- :host([size="medium"]) {
7
- font: var(--mdw-typescale__label-medium__font);
8
- letter-spacing: var(--mdw-typescale__body-medium__letter-spacing);
9
- }
10
-
11
- :host([size="small"]) {
12
- font: var(--mdw-typescale__label-small__font);
13
- letter-spacing: var(--mdw-typescale__body-small__letter-spacing);
14
- }
@@ -1,19 +0,0 @@
1
- /* https://m3.material.io/foundations/layout/applying-layout/window-size-classes */
2
-
3
- :host {
4
- display: block;
5
- }
6
-
7
- /* Pane Slot */
8
- #slot {
9
- display: flex;
10
- gap: 24px;
11
-
12
- justify-content: center;
13
-
14
- padding-inline: 16px;
15
-
16
- transition: padding-inline 100ms;
17
- }
18
-
19
- @media screen and (min-width: 648px) { #slot { padding-inline: 24px; } }
@@ -1,12 +0,0 @@
1
- /* https://m3.material.io/components/lists/specs */
2
-
3
- :host {
4
- display: flex;
5
- flex-direction: column;
6
-
7
- padding-block: 8px;
8
- }
9
-
10
- :host(:focus) {
11
- outline: 1px solid red;
12
- }
@@ -1,224 +0,0 @@
1
- /* https://m3.material.io/components/lists/specs */
2
-
3
- :host {
4
- --mdw-shape__size: 0px;
5
- /* Grid does not auto collapse columns, leaving gaps */
6
-
7
- display: flex;
8
- align-items: center;
9
- gap: 16px;
10
-
11
- border: none;
12
- padding-block: 8px;
13
- padding-inline: 16px 24px;
14
-
15
- outline: none;
16
-
17
- color: inherit;
18
-
19
- text-decoration: none;
20
- cursor: auto;
21
- }
22
-
23
- :host([href]) {
24
- cursor: pointer;
25
- }
26
-
27
- #anchor {
28
- position: absolute;
29
- inset: 0;
30
- outline: none;
31
- color: inherit;
32
-
33
- }
34
-
35
- :host([video]) {
36
- padding-inline-start: 0;
37
- }
38
-
39
- :host([lines="3"]) {
40
- align-items: flex-start;
41
-
42
- padding-block: 12px;
43
- }
44
-
45
- #content {
46
- display: inline-flex;
47
- align-items: flex-start;
48
- flex-direction: column;
49
- justify-content: center;
50
-
51
- flex: 1;
52
-
53
- padding-block: calc(8px + (var(--mdw-density) * 2px));
54
- }
55
-
56
- #content:is([has-supporting], [lines="2"]) {
57
- box-sizing: border-box;
58
- min-block-size: calc(8px + calc(48px + var(--mdw-density) * 2px));
59
- padding-block: calc(4px + var(--mdw-density) * 2px);
60
- }
61
-
62
- #content:is([lines="3"]) {
63
- box-sizing: border-box;
64
- min-block-size: calc(8px + calc(48px + var(--mdw-density) * 2px));
65
- padding-block: calc(0 + var(--mdw-density) * 2px);
66
- }
67
-
68
- #icon {
69
- font-size: 24px;
70
- }
71
-
72
- #trailing-icon {
73
- font-size: 24px;
74
- }
75
-
76
- #divider {
77
- position: absolute;
78
- inset-block-end: 0;
79
-
80
- display: block;
81
-
82
- color: rgb(var(--mdw-color__surface-variant));
83
- }
84
-
85
- #divider[divider="inset"] {
86
- padding-inline: 16px 24px;
87
- }
88
-
89
- #slot {
90
- max-block-size: var(--mdw-typescale__body-large__line-height) * 2;
91
-
92
- /* background-color: rgba(255,0,0,0.10); */
93
-
94
- color: var(--mdw-color__on-surface);
95
-
96
- font: var(--mdw-typescale__body-large__font);
97
- letter-spacing: var(--mdw-typescale__body-large__letter-spacing);
98
- }
99
-
100
- #supporting {
101
- max-block-size: calc(var(--mdw-typescale__body-medium__line-height) * 2);
102
-
103
- /* background-color: rgba(0,255,0,0.10); */
104
-
105
- color: var(--mdw-color__on-surface-variant);
106
-
107
- font: var(--mdw-typescale__body-medium__font);
108
- letter-spacing: var(--mdw-typescale__body-medium__letter-spacing);
109
- }
110
-
111
- #trailing {
112
- color: var(--mdw-color__on-surface-variant);
113
-
114
- font: var(--mdw-typescale__body-medium__font);
115
- letter-spacing: var(--mdw-typescale__body-medium__letter-spacing);
116
- }
117
-
118
- #slot, #supporting {
119
- display: block;
120
- overflow-x: hidden;
121
- overflow-y: hidden;
122
-
123
- text-align: start;
124
- text-overflow: ellipsis;
125
- text-transform: none;
126
- white-space: normal;
127
- word-break: break-word;
128
- }
129
-
130
- #supporting[lines="2"] {
131
- min-block-size: var(--mdw-typescale__body-medium__line-height);
132
- max-block-size: var(--mdw-typescale__body-medium__line-height);
133
- }
134
-
135
- #supporting[lines="3"] {
136
- min-block-size: calc(var(--mdw-typescale__body-medium__line-height) * 2);
137
- max-block-size: calc(var(--mdw-typescale__body-medium__line-height) * 2);
138
- }
139
-
140
- @supports(width: 1lh) {
141
- #slot {
142
- max-block-size: 1lh;
143
- }
144
-
145
- #supporting {
146
- max-block-size: 2lh;
147
- }
148
-
149
- #supporting[lines="2"] {
150
- min-block-size: 1lh;
151
- max-block-size: 1lh;
152
- }
153
-
154
- #supporting[lines="3"] {
155
- min-block-size: 2lh;
156
- max-block-size: 2lh;
157
- }
158
- }
159
-
160
- @supports(-webkit-line-clamp:1) {
161
- #slot {
162
- display: -webkit-box;
163
- -webkit-box-orient: vertical;
164
- -webkit-line-clamp: 1;
165
- }
166
-
167
- #supporting {
168
- display: -webkit-box;
169
- -webkit-line-clamp: 2;
170
- -webkit-box-orient: vertical;
171
- }
172
-
173
- #supporting[lines="2"] {
174
- -webkit-line-clamp: 1;
175
- }
176
- }
177
-
178
- #avatar {
179
- display: flex;
180
- align-items: center;
181
- justify-content: center;
182
-
183
- block-size: 40px;
184
- inline-size: 40px;
185
-
186
- border-radius: 50%;
187
- }
188
-
189
- #img {
190
- block-size: 56px;
191
- max-block-size: 56px;
192
- inline-size: 56px;
193
- max-inline-size: 56px;
194
-
195
- object-fit: cover;
196
- object-position: center center;
197
- }
198
-
199
- #img[video] {
200
- block-size: 64px;
201
- max-block-size: 64px;
202
- inline-size: 114px;
203
- max-inline-size: 114px;
204
- }
205
-
206
- #checkbox {
207
- /* stylelint-disable-next-line declaration-property-value-disallowed-list */
208
- margin: 3px;
209
- }
210
-
211
- #radio {
212
- /* stylelint-disable-next-line declaration-property-value-disallowed-list */
213
- margin: 2px;
214
- }
215
-
216
- .trailing {
217
- order: 1;
218
- }
219
-
220
- :host([disabled]) {
221
- opacity: 0.38;
222
-
223
- color: rgb(var(--mdw-color__on-surface));
224
- }
@@ -1,34 +0,0 @@
1
- :host {
2
- --mdw-bg: var(--mdw-color__secondary-container);
3
- --mdw-ink: var(--mdw-color__on-secondary-container);
4
- cursor: pointer;
5
-
6
- z-index: 0;
7
- }
8
-
9
- :host([href]) {
10
- cursor: pointer;
11
- }
12
-
13
- :host([disabled]) {
14
- cursor: not-allowed;
15
- pointer-events: none;
16
- }
17
-
18
- #content {
19
- -webkit-user-select: none;
20
- user-select: none;
21
- }
22
-
23
- #content[selected] {
24
- color: rgb(var(--mdw-ink));
25
- }
26
-
27
- #anchor {
28
- z-index: -1;
29
- }
30
-
31
- #anchor[selected] {
32
- background-color: rgb(var(--mdw-bg));
33
- color: rgb(var(--mdw-ink));
34
- }