morya-ui 0.4.3 → 0.4.4

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 (173) hide show
  1. package/CHANGELOG.md +780 -769
  2. package/LICENSE +21 -21
  3. package/README.md +156 -150
  4. package/README.zh-CN.md +156 -150
  5. package/dist/accordion/style.css +1205 -1205
  6. package/dist/affix/style.css +1205 -1205
  7. package/dist/alert/style.css +1205 -1205
  8. package/dist/anchor/style.css +1205 -1205
  9. package/dist/auto-complete/style.css +1749 -1749
  10. package/dist/avatar/style.css +1318 -1318
  11. package/dist/badge/style.css +1371 -1371
  12. package/dist/block-ui/style.css +1205 -1205
  13. package/dist/breadcrumb/style.css +1205 -1205
  14. package/dist/button/style.css +1909 -1909
  15. package/dist/calendar/style.css +1880 -1880
  16. package/dist/card/style.css +1205 -1205
  17. package/dist/carousel/style.css +2208 -2208
  18. package/dist/cascade-select/style.css +1909 -1909
  19. package/dist/checkbox/style.css +1205 -1205
  20. package/dist/chip/style.css +1349 -1349
  21. package/dist/command-menu/style.css +1438 -1438
  22. package/dist/components/AutoComplete/styles.css +209 -209
  23. package/dist/components/Avatar/styles.css +113 -113
  24. package/dist/components/Badge/styles.css +164 -164
  25. package/dist/components/Button/styles.css +698 -698
  26. package/dist/components/Carousel/styles.css +302 -302
  27. package/dist/components/CascadeSelect/styles.css +168 -168
  28. package/dist/components/Chip/styles.css +144 -144
  29. package/dist/components/CommandMenu/styles.css +102 -102
  30. package/dist/components/ConfigProvider/styles.css +6 -6
  31. package/dist/components/ConfirmDialog/styles.css +24 -24
  32. package/dist/components/ConfirmPopup/styles.css +35 -35
  33. package/dist/components/ContextMenu/styles.css +138 -138
  34. package/dist/components/DatePicker/styles.css +453 -453
  35. package/dist/components/Dialog/styles.css +420 -420
  36. package/dist/components/Dock/styles.css +84 -84
  37. package/dist/components/Drawer/styles.css +346 -346
  38. package/dist/components/Dropdown/styles.css +135 -135
  39. package/dist/components/Empty/styles.css +146 -146
  40. package/dist/components/FileUpload/styles.css +359 -359
  41. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  42. package/dist/components/Form/styles.css +125 -125
  43. package/dist/components/Gallery/styles.css +100 -100
  44. package/dist/components/Input/styles.css +392 -392
  45. package/dist/components/InputColor/styles.css +139 -139
  46. package/dist/components/InputNumber/styles.css +262 -262
  47. package/dist/components/InputPassword/styles.css +189 -189
  48. package/dist/components/InputTags/styles.css +121 -121
  49. package/dist/components/Layout/styles.css +433 -433
  50. package/dist/components/List/styles.css +229 -229
  51. package/dist/components/Listbox/styles.css +130 -130
  52. package/dist/components/Loading/styles.css +378 -378
  53. package/dist/components/MegaMenu/styles.css +97 -97
  54. package/dist/components/Menu/styles.css +565 -565
  55. package/dist/components/Menubar/styles.css +144 -144
  56. package/dist/components/Message/styles.css +248 -248
  57. package/dist/components/MeterGroup/styles.css +49 -49
  58. package/dist/components/Page/styles.css +430 -430
  59. package/dist/components/Pagination/styles.css +124 -124
  60. package/dist/components/Popover/styles.css +92 -92
  61. package/dist/components/Result/styles.css +146 -146
  62. package/dist/components/Scrollbar/styles.css +131 -131
  63. package/dist/components/Select/styles.css +222 -222
  64. package/dist/components/SelectButton/styles.css +107 -107
  65. package/dist/components/Sidebar/styles.css +74 -74
  66. package/dist/components/Slider/styles.css +211 -211
  67. package/dist/components/SplitButton/styles.css +216 -216
  68. package/dist/components/Status/styles.css +190 -190
  69. package/dist/components/Stepper/styles.css +152 -152
  70. package/dist/components/Switch/styles.css +129 -129
  71. package/dist/components/Tabs/styles.css +165 -165
  72. package/dist/components/Terminal/styles.css +75 -75
  73. package/dist/components/Textarea/styles.css +146 -146
  74. package/dist/components/TieredMenu/styles.css +125 -125
  75. package/dist/components/Timeline/styles.css +157 -157
  76. package/dist/components/TreeSelect/styles.css +172 -172
  77. package/dist/components/VirtualScroller/styles.css +27 -27
  78. package/dist/config-provider/style.css +2301 -2301
  79. package/dist/confirm-dialog/style.css +2347 -2347
  80. package/dist/confirm-popup/style.css +1938 -1938
  81. package/dist/context-menu/style.css +1474 -1474
  82. package/dist/data-view/style.css +1707 -1707
  83. package/dist/date-picker/style.css +1658 -1658
  84. package/dist/descriptions/style.css +1205 -1205
  85. package/dist/dialog/style.css +2323 -2323
  86. package/dist/divider/style.css +1205 -1205
  87. package/dist/dock/style.css +1289 -1289
  88. package/dist/drawer/style.css +1551 -1551
  89. package/dist/dropdown/style.css +1471 -1471
  90. package/dist/empty/style.css +1351 -1351
  91. package/dist/fieldset/style.css +1205 -1205
  92. package/dist/file-upload/style.css +1564 -1564
  93. package/dist/flex/style.css +1205 -1205
  94. package/dist/float-label/style.css +1205 -1205
  95. package/dist/fluid/style.css +1205 -1205
  96. package/dist/form/style.css +1332 -1332
  97. package/dist/gallery/style.css +1436 -1436
  98. package/dist/grid/style.css +1205 -1205
  99. package/dist/icon/style.css +1205 -1205
  100. package/dist/icon-field/style.css +1597 -1597
  101. package/dist/image/style.css +1205 -1205
  102. package/dist/inplace/style.css +1205 -1205
  103. package/dist/input/style.css +1722 -1722
  104. package/dist/input-color/style.css +1346 -1346
  105. package/dist/input-group/style.css +1205 -1205
  106. package/dist/input-number/style.css +1467 -1467
  107. package/dist/input-otp/style.css +1205 -1205
  108. package/dist/input-password/style.css +1519 -1519
  109. package/dist/input-tags/style.css +1326 -1326
  110. package/dist/knob/style.css +1205 -1205
  111. package/dist/label/style.css +1205 -1205
  112. package/dist/layout/style.css +1769 -1769
  113. package/dist/list/style.css +2087 -2087
  114. package/dist/listbox/style.css +1497 -1497
  115. package/dist/loading/style.css +1585 -1585
  116. package/dist/mega-menu/style.css +1302 -1302
  117. package/dist/mentions/style.css +1330 -1330
  118. package/dist/menu/style.css +2059 -2059
  119. package/dist/menubar/style.css +1480 -1480
  120. package/dist/message/style.css +1453 -1453
  121. package/dist/meter-group/style.css +1256 -1256
  122. package/dist/order-list/style.css +1205 -1205
  123. package/dist/page/style.css +2597 -2597
  124. package/dist/pagination/style.css +1551 -1551
  125. package/dist/panel/style.css +1205 -1205
  126. package/dist/pick-list/style.css +1205 -1205
  127. package/dist/popover/style.css +1299 -1299
  128. package/dist/progress-bar/style.css +1205 -1205
  129. package/dist/progress-spinner/style.css +1205 -1205
  130. package/dist/qr-code/style.css +1903 -1903
  131. package/dist/radio/style.css +1205 -1205
  132. package/dist/rating/style.css +1205 -1205
  133. package/dist/result/style.css +1351 -1351
  134. package/dist/scroll-top/style.css +1336 -1336
  135. package/dist/scrollbar/style.css +1338 -1338
  136. package/dist/segmented/style.css +1205 -1205
  137. package/dist/select/style.css +2115 -2115
  138. package/dist/select-button/style.css +1314 -1314
  139. package/dist/shared/styles/control-affix-icon.css +110 -110
  140. package/dist/shared/styles/control-suffix.css +118 -118
  141. package/dist/shared/styles/select-overlay.css +177 -177
  142. package/dist/sidebar/style.css +1279 -1279
  143. package/dist/skeleton/style.css +1205 -1205
  144. package/dist/slider/style.css +1418 -1418
  145. package/dist/space/style.css +1205 -1205
  146. package/dist/speed-dial/style.css +1205 -1205
  147. package/dist/split-button/style.css +2119 -2119
  148. package/dist/splitter/style.css +1205 -1205
  149. package/dist/statistic/style.css +1205 -1205
  150. package/dist/status/style.css +1395 -1395
  151. package/dist/stepper/style.css +1357 -1357
  152. package/dist/styles/base.css +804 -804
  153. package/dist/switch/style.css +1336 -1336
  154. package/dist/table/style.css +1840 -1840
  155. package/dist/tabs/style.css +1501 -1501
  156. package/dist/tag/style.css +1205 -1205
  157. package/dist/terminal/style.css +1282 -1282
  158. package/dist/textarea/style.css +1476 -1476
  159. package/dist/theme/styles.css +401 -401
  160. package/dist/tiered-menu/style.css +1461 -1461
  161. package/dist/time-picker/style.css +1660 -1660
  162. package/dist/timeline/style.css +1493 -1493
  163. package/dist/toast/style.css +1903 -1903
  164. package/dist/toggle-button/style.css +1205 -1205
  165. package/dist/toolbar/style.css +1205 -1205
  166. package/dist/tooltip/style.css +1205 -1205
  167. package/dist/tour/style.css +1903 -1903
  168. package/dist/tree/style.css +1205 -1205
  169. package/dist/tree-select/style.css +1913 -1913
  170. package/dist/typography/style.css +1351 -1351
  171. package/dist/virtual-scroller/style.css +1366 -1366
  172. package/dist/watermark/style.css +1205 -1205
  173. package/package.json +2 -1
@@ -1,2329 +1,2329 @@
1
- :root {
2
- /* Default morya palette (--m-* token names) */
3
- --m-color-primary: #1677ff;
4
- --m-color-primary-hover: #4096ff;
5
- --m-color-primary-active: #0958d9;
6
- --m-color-surface: #ffffff;
7
- --m-color-text: rgba(0, 0, 0, 0.88);
8
- --m-color-text-muted: rgba(0, 0, 0, 0.45);
9
- --m-color-border: #d9d9d9;
10
- --m-color-split: #f0f0f0;
11
- --m-color-focus-ring: #1677ff;
12
- /* Soft translucent control-outline ring (primary bg composited over container) */
13
- --m-color-control-outline: rgba(5, 145, 255, 0.1);
14
- --m-color-control-outline-danger: rgba(255, 38, 5, 0.06);
15
- --m-color-control-outline-warning: rgba(255, 215, 5, 0.1);
16
- /* Control sizing: medium control height 32px */
17
- --m-control-height-small: 24px;
18
- --m-control-height-medium: 32px;
19
- --m-control-height-large: 40px;
20
- --m-control-font-small: 14px;
21
- --m-control-font-medium: 14px;
22
- --m-control-font-large: 15px;
23
- --m-control-padding-x-small: 10px;
24
- --m-control-padding-x-medium: 15px;
25
- --m-control-padding-x-large: 16px;
26
-
27
- --m-radius-control: 6px;
28
- --m-border-width: 1px;
29
- --m-focus-outline-width: 2px;
30
- --m-focus-shadow: 0 0 0 var(--m-focus-outline-width) var(--m-color-control-outline);
31
- --m-focus-shadow-danger: 0 0 0 var(--m-focus-outline-width)
32
- var(--m-color-control-outline-danger);
33
- --m-focus-shadow-warning: 0 0 0 var(--m-focus-outline-width)
34
- var(--m-color-control-outline-warning);
35
- --m-color-success: #52c41a;
36
- --m-color-info: #1677ff;
37
- --m-color-warning: #faad14;
38
- --m-color-warn: var(--m-color-warning);
39
- --m-color-help: #9333ea;
40
- --m-color-danger: #ff4d4f;
41
- --m-color-contrast: rgba(0, 0, 0, 0.88);
42
- --m-color-contrast-fg: #ffffff;
43
- --m-color-contrast-hover: #1f1f1f;
44
- --m-color-contrast-active: #141414;
45
- --m-color-on-emphasis: #ffffff;
46
- --m-color-on-primary: var(--m-color-on-emphasis);
47
- --m-overlay-scrim: rgb(0 0 0 / 0.45);
48
- --m-shadow-sm:
49
- 0 1px 2px 0 rgb(0 0 0 / 0.03), 0 1px 6px -1px rgb(0 0 0 / 0.02),
50
- 0 2px 4px 0 rgb(0 0 0 / 0.02);
51
- --m-shadow-md:
52
- 0 6px 16px 0 rgb(0 0 0 / 0.08), 0 3px 6px -4px rgb(0 0 0 / 0.12),
53
- 0 9px 28px 8px rgb(0 0 0 / 0.05);
54
- --m-shadow-lg:
55
- 0 6px 16px 0 rgb(0 0 0 / 0.08), 0 3px 6px -4px rgb(0 0 0 / 0.12),
56
- 0 9px 28px 8px rgb(0 0 0 / 0.05);
57
- --m-shadow-raised:
58
- 0 1px 2px -2px rgb(0 0 0 / 0.16), 0 3px 6px 0 rgb(0 0 0 / 0.12),
59
- 0 5px 12px 4px rgb(0 0 0 / 0.09);
60
- --m-shadow-sticky: 6px 0 16px -8px rgb(0 0 0 / 0.08);
61
- --m-shadow-sticky-end: -6px 0 16px -8px rgb(0 0 0 / 0.08);
62
-
63
- /* Typography scale (component text, not control-height fonts) */
64
- --m-font-size-xs: 0.75rem;
65
- --m-font-size-sm: 0.8125rem;
66
- --m-font-size-md: 0.875rem;
67
- --m-font-size-lg: 1.125rem;
68
- --m-line-height-sm: 1.6667;
69
- --m-line-height-md: 1.5714;
70
- --m-line-height-lg: 1.5;
71
- /* Display scale (page titles, KPI figures) */
72
- --m-font-size-xl: 1.25rem;
73
- --m-font-size-2xl: 1.5rem;
74
- --m-font-size-3xl: 1.75rem;
75
- --m-opacity-disabled: 0.55;
76
- --m-color-text-disabled: rgba(0, 0, 0, 0.25);
77
- --m-color-bg-disabled: rgba(0, 0, 0, 0.04);
78
- --m-font-weight: 400;
79
- --m-font-weight-medium: 500;
80
- --m-font-weight-strong: 600;
81
- /* Layering: override --m-z-base via ConfigProvider / createMoryaUI */
82
- --m-z-base: 1000;
83
- --m-z-overlay: var(--m-z-base);
84
- --m-z-overlay-raised: calc(var(--m-z-base) + 1);
85
- --m-z-dropdown: calc(var(--m-z-base) + 50);
86
- --m-z-tooltip: calc(var(--m-z-base) + 60);
87
- --m-z-toast: calc(var(--m-z-base) + 100);
88
- --m-z-popper: 40;
89
- --m-z-sticky: 10;
90
-
91
- /* Affix hitbox tracks control height so small/compact shells do not overflow */
92
- --m-control-affix-size: calc(
93
- var(--m-control-height-medium) - 2 * var(--m-border-width)
94
- );
95
- --m-control-affix-gap: 2.35rem;
96
- --m-control-affix-padding: 2.5rem;
97
- --m-meter-track-height: var(--m-space-5);
98
- --m-tree-toggler-size: var(--m-checkbox-control-size);
99
- --m-nav-rail-width: 12.5rem;
100
- --m-nav-rail-collapsed-width: 5rem;
101
- --m-layout-header-height: calc(
102
- var(--m-control-height-medium) + 2 * var(--m-space-3)
103
- );
104
- --m-layout-footer-height: calc(
105
- var(--m-control-height-medium) + 2 * var(--m-space-2)
106
- );
107
- --m-space-1: 0.25rem;
108
- --m-space-2: 0.5rem;
109
- --m-space-3: 0.75rem;
110
- --m-space-4: 1rem;
111
- --m-space-5: 1.25rem;
112
- --m-space-6: 1.5rem;
113
- --m-space-8: 2rem;
114
- --m-radius-sm: 0.25rem;
115
- --m-radius-md: 0.5rem;
116
- --m-radius-lg: 0.5rem;
117
- --m-radius-full: 9999px;
118
- --m-radius-pill: var(--m-radius-full);
119
- --m-font-sans:
120
- -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
121
- Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
122
- "Segoe UI Symbol", "Noto Color Emoji";
123
- --m-motion-fast: 150ms;
124
- --m-motion-normal: 250ms;
125
- --m-motion-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
126
- --m-motion-enter: 200ms;
127
- --m-motion-exit: 150ms;
128
- --m-motion-distance: 0.5rem;
129
- --m-motion-spin: 1s;
130
- --m-motion-spin-dash: 1.5s;
131
- --m-motion-spin-fast: 0.8s;
132
- --m-motion-spin-medium: 0.7s;
133
- --m-motion-skeleton: 1.4s;
134
- --m-motion-pulse: 1.2s;
135
- --m-motion-scrollbar-show: 340ms;
136
- --m-motion-scrollbar-hide: 120ms;
137
- --m-motion-loading-aurora: 3s;
138
- --m-motion-loading-bounce: 0.6s;
139
- --m-motion-loading-pulse: 1.8s;
140
- --m-motion-loading-stardust: 1.6s;
141
- --m-motion-loading-circular-rotate: 2s;
142
- --m-dataview-grid-min: 10rem;
143
- --m-tree-indent: 0.7rem;
144
- --m-tree-indent-padding: var(--m-space-3);
145
- --m-layout-trigger-bar-height: 4.5rem;
146
- --m-layout-trigger-bar-offset: 1.75rem;
147
- --m-layout-trigger-bar-width: 2rem;
148
- --m-layout-trigger-bar-top: 2.25rem;
149
- --m-timeline-event-min-height: 4rem;
150
- --m-timeline-marker-size: 1.5rem;
151
- --m-tag-font-size-small: var(--m-font-size-xs);
152
- --m-slider-tooltip-offset: 1.5rem;
153
- --m-slider-tooltip-padding-block: 0.15rem;
154
- --m-slider-tooltip-padding-inline: 0.4rem;
155
- --m-rating-star-size-small: 1rem;
156
- --m-rating-star-size-medium: 1.25rem;
157
- --m-rating-star-size-large: 1.5rem;
158
- --m-rating-star-padding: 0.15rem;
159
- --m-slider-marks-inset: 0.9rem;
160
- --m-slider-marks-side: 0.5rem;
161
- --m-stepper-connector-color: var(--m-color-border);
162
-
163
- /* Table */
164
- --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
165
- --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 3.5%, var(--m-color-surface));
166
- --m-table-border-color: var(--m-color-split);
167
- --m-table-header-bg: var(--m-color-fill-light);
168
- --m-table-header-text: var(--m-color-text);
169
- --m-table-text: var(--m-color-text);
170
- --m-table-row-bg: var(--m-color-surface);
171
- --m-table-row-hover-bg: var(--m-color-fill-light);
172
- --m-table-row-striped-bg: var(--m-color-fill-lighter);
173
- --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 10%, var(--m-color-surface));
174
- --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
175
- --m-table-expanded-bg: var(--m-color-fill-lighter);
176
- --m-table-font-size: var(--m-font-size-md);
177
- --m-table-row-height: 40px;
178
- --m-table-cell-line-height: 23px;
179
- --m-table-cell-padding-inline: 12px;
180
- }
181
-
182
- :root[data-m-motion="reduced"] {
183
- --m-motion-fast: 80ms;
184
- --m-motion-normal: 120ms;
185
- --m-motion-enter: 100ms;
186
- --m-motion-exit: 80ms;
187
- --m-motion-distance: 0;
188
- /* Looping indicators: keep a short pulse so state is still perceptible */
189
- --m-motion-spin: 0ms;
190
- --m-motion-spin-dash: 0ms;
191
- --m-motion-spin-fast: 0ms;
192
- --m-motion-spin-medium: 0ms;
193
- --m-motion-skeleton: 0ms;
194
- --m-motion-pulse: 0ms;
195
- --m-motion-scrollbar-show: 160ms;
196
- --m-motion-scrollbar-hide: 80ms;
197
- --m-motion-loading-aurora: 0ms;
198
- --m-motion-loading-bounce: 0ms;
199
- --m-motion-loading-pulse: 0ms;
200
- --m-motion-loading-stardust: 0ms;
201
- --m-motion-loading-circular-rotate: 0ms;
202
- }
203
-
204
- :root[data-m-motion="none"] {
205
- --m-motion-fast: 0ms;
206
- --m-motion-normal: 0ms;
207
- --m-motion-enter: 0ms;
208
- --m-motion-exit: 0ms;
209
- --m-motion-distance: 0;
210
- --m-motion-spin: 0ms;
211
- --m-motion-spin-dash: 0ms;
212
- --m-motion-spin-fast: 0ms;
213
- --m-motion-spin-medium: 0ms;
214
- --m-motion-skeleton: 0ms;
215
- --m-motion-pulse: 0ms;
216
- --m-motion-scrollbar-show: 0ms;
217
- --m-motion-scrollbar-hide: 0ms;
218
- --m-motion-loading-aurora: 0ms;
219
- --m-motion-loading-bounce: 0ms;
220
- --m-motion-loading-pulse: 0ms;
221
- --m-motion-loading-stardust: 0ms;
222
- --m-motion-loading-circular-rotate: 0ms;
223
- }
224
-
225
- /*
226
- * Global motion policy (complements per-component rules):
227
- * - `reduced`: keep short paint transitions; stop loops
228
- * and layout/transform size animation.
229
- * - `none`: zero all transition/animation durations.
230
- */
231
-
232
- [data-m-motion="reduced"] *,
233
- [data-m-motion="reduced"] *::before,
234
- [data-m-motion="reduced"] *::after {
235
- animation-duration: 0.01ms !important;
236
- animation-iteration-count: 1 !important;
237
- transition-property: background-color, border-color, color, opacity, box-shadow, outline,
238
- fill, stroke, stroke-dashoffset !important;
239
- }
240
-
241
- [data-m-motion="none"] *,
242
- [data-m-motion="none"] *::before,
243
- [data-m-motion="none"] *::after {
244
- animation-duration: 0.01ms !important;
245
- animation-iteration-count: 1 !important;
246
- transition-duration: 0.01ms !important;
247
- scroll-behavior: auto !important;
248
- }
249
-
250
- /* Off-screen looping indicators (usePauseOffscreen → data-m-anim-paused) */
251
- [data-m-anim-paused],
252
- [data-m-anim-paused]::before,
253
- [data-m-anim-paused]::after,
254
- [data-m-anim-paused] *,
255
- [data-m-anim-paused] *::before,
256
- [data-m-anim-paused] *::after {
257
- animation-play-state: paused !important;
258
- }
259
-
260
- /* Global density: scales spacing + control heights (WD tokens) */
261
- :root,
262
- [data-m-density="comfortable"] {
263
- --m-density-scale: 1;
264
- --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-2));
265
- --m-checkbox-control-size: 1.125rem;
266
- }
267
-
268
- [data-m-density="compact"] {
269
- --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-1));
270
- --m-control-affix-padding: 2.15rem;
271
- --m-control-affix-gap: 2rem;
272
- --m-checkbox-control-size: 1rem;
273
- --m-nav-rail-width: 15rem;
274
- --m-nav-rail-collapsed-width: 4rem;
275
- --m-space-1: 0.2rem;
276
- --m-space-2: 0.4rem;
277
- --m-space-3: 0.6rem;
278
- --m-space-4: 0.85rem;
279
- --m-space-5: 1.05rem;
280
- --m-space-6: 1.25rem;
281
- --m-space-8: 1.7rem;
282
- --m-control-height-small: 24px;
283
- --m-control-height-medium: 28px;
284
- --m-control-height-large: 34px;
285
- --m-control-font-small: 13px;
286
- --m-control-font-medium: 13px;
287
- --m-control-font-large: 14px;
288
- --m-control-padding-x-small: 8px;
289
- --m-control-padding-x-medium: 10px;
290
- --m-control-padding-x-large: 12px;
291
- --m-table-row-height: 36px;
292
- --m-table-cell-line-height: 20px;
293
- --m-table-cell-padding-inline: 10px;
294
- --m-table-font-size: var(--m-font-size-sm);
295
- }
296
-
297
- [data-m-density="spacious"] {
298
- --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-3));
299
- --m-control-affix-padding: 2.85rem;
300
- --m-control-affix-gap: 2.65rem;
301
- --m-checkbox-control-size: 1.25rem;
302
- --m-nav-rail-width: 18rem;
303
- --m-nav-rail-collapsed-width: 5.5rem;
304
- --m-space-1: 0.3rem;
305
- --m-space-2: 0.6rem;
306
- --m-space-3: 0.9rem;
307
- --m-space-4: 1.15rem;
308
- --m-space-5: 1.45rem;
309
- --m-space-6: 1.75rem;
310
- --m-space-8: 2.35rem;
311
- --m-control-height-small: 32px;
312
- --m-control-height-medium: 40px;
313
- --m-control-height-large: 46px;
314
- --m-control-font-small: 14px;
315
- --m-control-font-medium: 15px;
316
- --m-control-font-large: 16px;
317
- --m-control-padding-x-small: 12px;
318
- --m-control-padding-x-medium: 14px;
319
- --m-control-padding-x-large: 16px;
320
- --m-table-row-height: 48px;
321
- --m-table-cell-line-height: 26px;
322
- --m-table-cell-padding-inline: 16px;
323
- --m-table-font-size: 1rem;
324
- }
325
-
326
- [data-m-density="compact"] .m-layout-header {
327
- --m-layout-header-height: 3rem;
328
- }
329
-
330
- [data-m-density="compact"] .m-layout-footer {
331
- --m-layout-footer-height: 2.5rem;
332
- }
333
-
334
- [data-m-density="spacious"] .m-layout-header {
335
- --m-layout-header-height: 4rem;
336
- }
337
-
338
- [data-m-density="spacious"] .m-layout-footer {
339
- --m-layout-footer-height: 3.5rem;
340
- }
341
-
342
- [data-theme="dark"] {
343
- /* Dark theme solids on dark surfaces (readable mid tones) */
344
- --m-color-primary: #1668dc;
345
- --m-color-primary-hover: #3c89e8;
346
- --m-color-primary-active: #1554ad;
347
- --m-color-surface: #141414;
348
- --m-color-text: rgba(255, 255, 255, 0.85);
349
- --m-color-text-muted: rgba(255, 255, 255, 0.45);
350
- --m-color-text-disabled: rgba(255, 255, 255, 0.3);
351
- --m-color-bg-disabled: rgba(255, 255, 255, 0.08);
352
- --m-color-border: #424242;
353
- --m-color-split: #303030;
354
- --m-color-focus-ring: #3c89e8;
355
- /* Dark: getAlphaColor(color*Bg, colorBgContainer) */
356
- --m-color-control-outline: rgba(23, 117, 249, 0.31);
357
- --m-color-control-outline-danger: rgba(249, 75, 78, 0.31);
358
- --m-color-control-outline-warning: rgba(250, 173, 20, 0.3);
359
- --m-focus-shadow: 0 0 0 var(--m-focus-outline-width) var(--m-color-control-outline);
360
- --m-focus-shadow-danger: 0 0 0 var(--m-focus-outline-width)
361
- var(--m-color-control-outline-danger);
362
- --m-focus-shadow-warning: 0 0 0 var(--m-focus-outline-width)
363
- var(--m-color-control-outline-warning);
364
- /* Mid solids: keep ≥~4.5:1 with --m-color-on-emphasis on dark surfaces */
365
- --m-color-success: #49aa19;
366
- --m-color-info: #1668dc;
367
- --m-color-warning: #d89614;
368
- --m-color-warn: var(--m-color-warning);
369
- --m-color-help: #7e22ce;
370
- --m-color-danger: #dc4446;
371
- --m-color-contrast: rgba(255, 255, 255, 0.85);
372
- --m-color-contrast-fg: #141414;
373
- --m-color-contrast-hover: #f5f5f5;
374
- --m-color-contrast-active: #d9d9d9;
375
- --m-overlay-scrim: rgb(0 0 0 / 0.65);
376
- --m-shadow-sm:
377
- 0 1px 2px 0 rgb(0 0 0 / 0.16), 0 1px 6px -1px rgb(0 0 0 / 0.12),
378
- 0 2px 4px 0 rgb(0 0 0 / 0.08);
379
- --m-shadow-md:
380
- 0 6px 16px 0 rgb(0 0 0 / 0.32), 0 3px 6px -4px rgb(0 0 0 / 0.48),
381
- 0 9px 28px 8px rgb(0 0 0 / 0.2);
382
- --m-shadow-lg:
383
- 0 6px 16px 0 rgb(0 0 0 / 0.32), 0 3px 6px -4px rgb(0 0 0 / 0.48),
384
- 0 9px 28px 8px rgb(0 0 0 / 0.2);
385
- --m-shadow-raised:
386
- 0 1px 2px -2px rgb(0 0 0 / 0.64), 0 3px 6px 0 rgb(0 0 0 / 0.48),
387
- 0 5px 12px 4px rgb(0 0 0 / 0.36);
388
- --m-shadow-sticky: 6px 0 16px -8px rgb(0 0 0 / 0.45);
389
- --m-shadow-sticky-end: -6px 0 16px -8px rgb(0 0 0 / 0.45);
390
-
391
- --m-table-border-color: var(--m-color-split);
392
- --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 10%, var(--m-color-surface));
393
- --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
394
- --m-table-header-bg: var(--m-color-fill-light);
395
- --m-table-row-bg: var(--m-color-surface);
396
- --m-table-row-hover-bg: color-mix(in srgb, var(--m-color-text) 8%, var(--m-color-surface));
397
- --m-table-row-striped-bg: var(--m-color-fill-lighter);
398
- --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 16%, var(--m-color-surface));
399
- --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 20%, var(--m-color-surface));
400
- --m-table-expanded-bg: var(--m-color-fill-lighter);
401
- }
402
-
403
- /* Shared tokens consumption, type, focus, and mixed selectors. */
404
-
405
- :root {
406
- /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
407
- --m-menu-min-width: 12rem;
408
- }
409
-
410
- .m-button,
411
- .m-input,
412
- .m-card,
413
- .m-dialog,
414
- .m-drawer,
415
- .m-popover,
416
- .m-accordion,
417
- .m-scrollbar,
418
- .m-panel,
419
- .m-fieldset,
420
- .m-flex,
421
- .m-space,
422
- .m-grid,
423
- .m-layout,
424
- .m-layout-header,
425
- .m-layout-footer,
426
- .m-layout-sider,
427
- .m-splitter,
428
- .m-stepper,
429
- .m-toolbar,
430
- .m-page-content,
431
- .m-page-header,
432
- .m-page-toolbar,
433
- .m-menu,
434
- .m-menubar,
435
- .m-contextmenu,
436
- .m-tieredmenu,
437
- .m-dropdown,
438
- .m-breadcrumb,
439
- .m-tabs,
440
- .m-datepicker,
441
- .m-listbox,
442
- .m-togglebutton,
443
- .m-select,
444
- .m-textarea,
445
- .m-selectbutton,
446
- .m-inputotp,
447
- .m-knob,
448
- .m-autocomplete,
449
- .m-splitbutton,
450
- .m-tree,
451
- .m-timeline,
452
- .m-dataview,
453
- .m-confirmpopup,
454
- .m-scrolltop,
455
- .m-blockui,
456
- .m-inplace,
457
- .m-message,
458
- .m-toast,
459
- .m-tooltip,
460
- .m-empty,
461
- .m-result,
462
- .m-progress-spinner,
463
- .m-cascadeselect,
464
- .m-treeselect,
465
- .m-inputcolor,
466
- .m-inputtags,
467
- .m-label,
468
- .m-speeddial,
469
- .m-orderlist,
470
- .m-picklist,
471
- .m-virtualscroller,
472
- .m-megamenu,
473
- .m-dock,
474
- .m-sidebar,
475
- .m-commandmenu,
476
- .m-fileupload,
477
- .m-carousel,
478
- .m-gallery,
479
- .m-metergroup,
480
- .m-fluid,
481
- .m-terminal {
482
- font-family: var(--m-font-sans);
483
- box-sizing: border-box;
484
- }
485
-
486
- .m-input:disabled,
487
- .m-textarea:disabled,
488
- .m-password__input:disabled,
489
- .m-inputnumber__input:disabled,
490
- .m-inputotp__input:disabled,
491
- .m-inputcolor__text:disabled,
492
- .m-inputcolor__swatch:disabled,
493
- .m-inputtags--disabled {
494
- background-color: var(--m-color-bg-disabled);
495
- color: var(--m-color-text-disabled);
496
- cursor: not-allowed;
497
- opacity: 1;
498
- }
499
-
500
- .m-input-field__control--prefixed .m-input:disabled,
501
- .m-input-field__control--suffixed .m-input:disabled,
502
- .m-input-field__control--clearable .m-input:disabled,
503
- .m-password--disabled .m-password__input,
504
- .m-inputnumber--disabled .m-inputnumber__input,
505
- .m-datepicker--disabled .m-datepicker__input,
506
- .m-icon-field--anchored .m-input:disabled,
507
- .m-icon-field--anchored .m-textarea:disabled {
508
- opacity: 1;
509
- }
510
-
511
- .m-input::placeholder,
512
- .m-textarea::placeholder,
513
- .m-password__input::placeholder,
514
- .m-inputnumber__input::placeholder,
515
- .m-inputtags__input::placeholder,
516
- .m-inputcolor__text::placeholder {
517
- color: var(--m-color-text-muted);
518
- opacity: 1;
519
- }
520
-
521
- .m-input-field__meta,
522
- .m-textarea-field__meta,
523
- .m-password-field__meta {
524
- align-items: baseline;
525
- display: flex;
526
- gap: var(--m-space-2);
527
- justify-content: space-between;
528
- }
529
-
530
- .m-input-field__meta:not(:has(.m-input-field__help)),
531
- .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
532
- .m-password-field__meta:not(:has(.m-password__feedback)) {
533
- justify-content: flex-end;
534
- }
535
-
536
- .m-input-field__count,
537
- .m-textarea-field__count,
538
- .m-password-field__count {
539
- color: var(--m-color-text-muted);
540
- flex: 0 0 auto;
541
- font-size: var(--m-font-size-xs);
542
- margin-left: auto;
543
- }
544
-
545
- .m-dropdown__item--parent {
546
- align-items: center;
547
- display: flex;
548
- justify-content: space-between;
549
- width: 100%;
550
- }
551
-
552
- .m-dropdown__icon,
553
- .m-dropdown__caret,
554
- .m-menu__icon,
555
- .m-menubar__icon {
556
- flex-shrink: 0;
557
- }
558
-
559
- .m-dropdown__submenu-wrap {
560
- position: relative;
561
- }
562
-
563
- .m-dropdown__submenu {
564
- --m-dropdown-submenu-max-height: min(18rem, 45vh);
565
- background: var(--m-color-surface);
566
- border: var(--m-border-width) solid var(--m-color-border);
567
- border-radius: var(--m-radius-md);
568
- box-shadow: var(--m-shadow-md);
569
- max-height: var(--m-dropdown-submenu-max-height);
570
- max-width: calc(100vw - 2 * var(--m-space-4));
571
- min-width: 10rem;
572
- overflow: hidden;
573
- padding: var(--m-space-1);
574
- /* Same as .m-dropdown__menu: size to content instead of being clamped
575
- by the space left of the anchor in the viewport. */
576
- width: max-content;
577
- }
578
-
579
- .m-dropdown__submenu--teleported {
580
- position: fixed;
581
- z-index: var(--m-z-dropdown);
582
- }
583
-
584
- .m-dropdown__submenu-scroll {
585
- max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
586
- min-height: 0;
587
- }
588
-
589
- .m-dropdown__submenu-view {
590
- display: grid;
591
- gap: var(--m-space-1);
592
- }
593
-
594
- .m-fade-enter-active,
595
- .m-fade-leave-active {
596
- transition: opacity var(--m-motion-exit) var(--m-motion-ease);
597
- }
598
-
599
- .m-fade-enter-from,
600
- .m-fade-leave-to {
601
- opacity: 0;
602
- }
603
-
604
- .m-scale-fade-enter-active {
605
- transition:
606
- opacity var(--m-motion-enter) var(--m-motion-ease),
607
- transform var(--m-motion-enter) var(--m-motion-ease);
608
- }
609
-
610
- .m-scale-fade-leave-active {
611
- transition:
612
- opacity var(--m-motion-exit) var(--m-motion-ease),
613
- transform var(--m-motion-exit) var(--m-motion-ease);
614
- }
615
-
616
- .m-scale-fade-enter-from,
617
- .m-scale-fade-leave-to {
618
- opacity: 0;
619
- transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
620
- }
621
-
622
- .m-slide-fade-enter-active {
623
- transition:
624
- opacity var(--m-motion-enter) var(--m-motion-ease),
625
- transform var(--m-motion-enter) var(--m-motion-ease);
626
- }
627
-
628
- .m-slide-fade-leave-active {
629
- transition:
630
- opacity var(--m-motion-exit) var(--m-motion-ease),
631
- transform var(--m-motion-exit) var(--m-motion-ease);
632
- }
633
-
634
- .m-slide-fade-enter-from,
635
- .m-slide-fade-leave-to {
636
- opacity: 0;
637
- transform: translateY(calc(var(--m-motion-distance) * -1));
638
- }
639
-
640
- /* Generic center zoom (opacity + scale on the transitioning root) */
641
- .m-zoom-enter-active {
642
- transition:
643
- opacity var(--m-motion-enter) var(--m-motion-ease),
644
- transform var(--m-motion-enter) var(--m-motion-ease);
645
- }
646
-
647
- .m-zoom-leave-active {
648
- transition:
649
- opacity var(--m-motion-exit) var(--m-motion-ease),
650
- transform var(--m-motion-exit) var(--m-motion-ease);
651
- }
652
-
653
- .m-zoom-enter-from,
654
- .m-zoom-leave-to {
655
- opacity: 0;
656
- transform: scale(0.95);
657
- }
658
-
659
- .m-slide-up-enter-active,
660
- .m-slide-down-enter-active,
661
- .m-slide-left-enter-active,
662
- .m-slide-right-enter-active {
663
- transition:
664
- opacity var(--m-motion-enter) var(--m-motion-ease),
665
- transform var(--m-motion-enter) var(--m-motion-ease);
666
- }
667
-
668
- .m-slide-up-leave-active,
669
- .m-slide-down-leave-active,
670
- .m-slide-left-leave-active,
671
- .m-slide-right-leave-active {
672
- transition:
673
- opacity var(--m-motion-exit) var(--m-motion-ease),
674
- transform var(--m-motion-exit) var(--m-motion-ease);
675
- }
676
-
677
- .m-slide-up-enter-from,
678
- .m-slide-up-leave-to {
679
- opacity: 0;
680
- transform: translateY(var(--m-motion-distance));
681
- }
682
-
683
- .m-slide-down-enter-from,
684
- .m-slide-down-leave-to {
685
- opacity: 0;
686
- transform: translateY(calc(var(--m-motion-distance) * -1));
687
- }
688
-
689
- .m-slide-left-enter-from,
690
- .m-slide-left-leave-to {
691
- opacity: 0;
692
- transform: translateX(var(--m-motion-distance));
693
- }
694
-
695
- .m-slide-right-enter-from,
696
- .m-slide-right-leave-to {
697
- opacity: 0;
698
- transform: translateX(calc(var(--m-motion-distance) * -1));
699
- }
700
-
701
- [data-m-motion="reduced"] .m-fade-enter-active,
702
- [data-m-motion="reduced"] .m-fade-leave-active,
703
- [data-m-motion="reduced"] .m-scale-fade-enter-active,
704
- [data-m-motion="reduced"] .m-scale-fade-leave-active,
705
- [data-m-motion="reduced"] .m-slide-fade-enter-active,
706
- [data-m-motion="reduced"] .m-slide-fade-leave-active,
707
- [data-m-motion="reduced"] .m-zoom-enter-active,
708
- [data-m-motion="reduced"] .m-zoom-leave-active,
709
- [data-m-motion="reduced"] .m-slide-up-enter-active,
710
- [data-m-motion="reduced"] .m-slide-up-leave-active,
711
- [data-m-motion="reduced"] .m-slide-down-enter-active,
712
- [data-m-motion="reduced"] .m-slide-down-leave-active,
713
- [data-m-motion="reduced"] .m-slide-left-enter-active,
714
- [data-m-motion="reduced"] .m-slide-left-leave-active,
715
- [data-m-motion="reduced"] .m-slide-right-enter-active,
716
- [data-m-motion="reduced"] .m-slide-right-leave-active,
717
- [data-m-motion="none"] .m-fade-enter-active,
718
- [data-m-motion="none"] .m-fade-leave-active,
719
- [data-m-motion="none"] .m-scale-fade-enter-active,
720
- [data-m-motion="none"] .m-scale-fade-leave-active,
721
- [data-m-motion="none"] .m-slide-fade-enter-active,
722
- [data-m-motion="none"] .m-slide-fade-leave-active,
723
- [data-m-motion="none"] .m-zoom-enter-active,
724
- [data-m-motion="none"] .m-zoom-leave-active,
725
- [data-m-motion="none"] .m-slide-up-enter-active,
726
- [data-m-motion="none"] .m-slide-up-leave-active,
727
- [data-m-motion="none"] .m-slide-down-enter-active,
728
- [data-m-motion="none"] .m-slide-down-leave-active,
729
- [data-m-motion="none"] .m-slide-left-enter-active,
730
- [data-m-motion="none"] .m-slide-left-leave-active,
731
- [data-m-motion="none"] .m-slide-right-enter-active,
732
- [data-m-motion="none"] .m-slide-right-leave-active {
733
- transition: none;
734
- }
735
-
736
- [data-m-motion="reduced"] .m-scale-fade-enter-from,
737
- [data-m-motion="reduced"] .m-scale-fade-leave-to,
738
- [data-m-motion="reduced"] .m-slide-fade-enter-from,
739
- [data-m-motion="reduced"] .m-slide-fade-leave-to,
740
- [data-m-motion="reduced"] .m-zoom-enter-from,
741
- [data-m-motion="reduced"] .m-zoom-leave-to,
742
- [data-m-motion="reduced"] .m-slide-up-enter-from,
743
- [data-m-motion="reduced"] .m-slide-up-leave-to,
744
- [data-m-motion="reduced"] .m-slide-down-enter-from,
745
- [data-m-motion="reduced"] .m-slide-down-leave-to,
746
- [data-m-motion="reduced"] .m-slide-left-enter-from,
747
- [data-m-motion="reduced"] .m-slide-left-leave-to,
748
- [data-m-motion="reduced"] .m-slide-right-enter-from,
749
- [data-m-motion="reduced"] .m-slide-right-leave-to,
750
- [data-m-motion="none"] .m-scale-fade-enter-from,
751
- [data-m-motion="none"] .m-scale-fade-leave-to,
752
- [data-m-motion="none"] .m-slide-fade-enter-from,
753
- [data-m-motion="none"] .m-slide-fade-leave-to,
754
- [data-m-motion="none"] .m-zoom-enter-from,
755
- [data-m-motion="none"] .m-zoom-leave-to,
756
- [data-m-motion="none"] .m-slide-up-enter-from,
757
- [data-m-motion="none"] .m-slide-up-leave-to,
758
- [data-m-motion="none"] .m-slide-down-enter-from,
759
- [data-m-motion="none"] .m-slide-down-leave-to,
760
- [data-m-motion="none"] .m-slide-left-enter-from,
761
- [data-m-motion="none"] .m-slide-left-leave-to,
762
- [data-m-motion="none"] .m-slide-right-enter-from,
763
- [data-m-motion="none"] .m-slide-right-leave-to {
764
- transform: none;
765
- }
766
-
767
- /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
768
- @keyframes m-progress-spinner-rotate {
769
- 100% {
770
- transform: rotate(360deg);
771
- }
772
- }
773
-
774
- .m-checkbox,
775
- .m-radio,
776
- .m-switch {
777
- align-items: center;
778
- color: var(--m-color-text);
779
- cursor: pointer;
780
- display: inline-flex;
781
- font-family: var(--m-font-sans);
782
- gap: var(--m-space-2);
783
- /* 与输入框圆角保持一致,配合 MScrollbar 使用 */
784
- position: relative;
785
- }
786
-
787
- .m-checkbox--disabled,
788
- .m-radio--disabled,
789
- .m-switch--disabled {
790
- color: var(--m-color-text-disabled);
791
- cursor: not-allowed;
792
- opacity: 1;
793
- }
794
-
795
- .m-checkbox--invalid .m-checkbox__control,
796
- .m-radio--invalid .m-radio__control {
797
- border-color: var(--m-color-danger);
798
- }
799
-
800
- .m-checkbox__input,
801
- .m-radio__input,
802
- .m-switch__input {
803
- clip: rect(0, 0, 0, 0);
804
- clip-path: inset(50%);
805
- height: 1px;
806
- margin: -1px;
807
- overflow: hidden;
808
- opacity: 0;
809
- position: absolute;
810
- white-space: nowrap;
811
- width: 1px;
812
- }
813
-
814
- .m-checkbox__control,
815
- .m-radio__control {
816
- align-items: center;
817
- background: var(--m-color-surface);
818
- border: var(--m-border-width) solid var(--m-color-border);
819
- display: inline-flex;
820
- flex: 0 0 auto;
821
- height: var(--m-checkbox-control-size, 1.125rem);
822
- justify-content: center;
823
- transition:
824
- background-color var(--m-motion-fast) var(--m-motion-ease),
825
- border-color var(--m-motion-fast) var(--m-motion-ease),
826
- box-shadow var(--m-motion-fast) var(--m-motion-ease);
827
- width: var(--m-checkbox-control-size, 1.125rem);
828
- }
829
-
830
- .m-checkbox__input:checked + .m-checkbox__control,
831
- .m-radio__input:checked + .m-radio__control {
832
- background: var(--m-color-primary);
833
- border-color: var(--m-color-primary);
834
- }
835
-
836
- .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
837
- .m-radio:not(.m-radio--disabled):hover .m-radio__control {
838
- border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
839
- }
840
-
841
- .m-checkbox__input:focus-visible + .m-checkbox__control,
842
- .m-radio__input:focus-visible + .m-radio__control,
843
- .m-switch__input:focus-visible + .m-switch__track {
844
- box-shadow: var(--m-focus-shadow);
845
- outline: none;
846
- }
847
-
848
- .m-checkbox__label,
849
- .m-radio__label,
850
- .m-switch__label {
851
- font-size: var(--m-font-size-md);
852
- }
853
-
854
- .m-textarea-field,
855
- .m-select-field {
856
- display: grid;
857
- font-family: var(--m-font-sans);
858
- gap: var(--m-space-2);
859
- max-width: 100%;
860
- min-width: var(--m-menu-min-width);
861
- position: relative;
862
- width: fit-content;
863
- }
864
-
865
- .m-textarea-field--fluid,
866
- .m-select-field--fluid {
867
- width: 100%;
868
- }
869
-
870
- .m-textarea-field__label,
871
- .m-select-field__label {
872
- color: var(--m-color-text);
873
- font-family: var(--m-font-sans);
874
- font-size: var(--m-font-size-md);
875
- font-weight: 500;
876
- }
877
-
878
- .m-textarea-field__help,
879
- .m-select-field__help {
880
- color: var(--m-color-text-muted);
881
- font-size: var(--m-font-size-xs);
882
- }
883
-
884
- .m-textarea-field__help--invalid,
885
- .m-select-field__help--invalid {
886
- color: var(--m-color-danger);
887
- }
888
-
889
- .m-textarea,
890
- .m-select {
891
- background: var(--m-color-surface);
892
- border: var(--m-border-width) solid var(--m-color-border);
893
- border-radius: var(--m-radius-control);
894
- color: var(--m-color-text);
895
- font: inherit;
896
- transition:
897
- border-color var(--m-motion-fast) var(--m-motion-ease),
898
- box-shadow var(--m-motion-fast) var(--m-motion-ease),
899
- background-color var(--m-motion-fast) var(--m-motion-ease);
900
- width: 100%;
901
- }
902
-
903
- .m-textarea--invalid:focus,
904
- .m-textarea--invalid:focus-visible,
905
- .m-select--invalid.m-select--open,
906
- .m-select--invalid:focus,
907
- .m-select--invalid:focus-visible {
908
- border-color: var(--m-color-danger);
909
- box-shadow: var(--m-focus-shadow-danger);
910
- }
911
-
912
- .m-textarea:disabled,
913
- .m-select:disabled,
914
- .m-select--disabled {
915
- background-color: var(--m-color-bg-disabled);
916
- color: var(--m-color-text-disabled);
917
- cursor: not-allowed;
918
- opacity: 1;
919
- }
920
-
921
- .m-inputgroup > .m-input,
922
- .m-inputgroup > .m-input-field,
923
- .m-inputgroup > .m-password-field,
924
- .m-inputgroup > .m-inputnumber-field {
925
- flex: 1 1 auto;
926
- min-width: 0;
927
- }
928
-
929
- .m-inputgroup > .m-input-field,
930
- .m-inputgroup > .m-password-field,
931
- .m-inputgroup > .m-inputnumber-field {
932
- display: flex;
933
- flex-direction: column;
934
- gap: 0;
935
- }
936
-
937
- .m-inputgroup > .m-input,
938
- .m-inputgroup .m-input,
939
- .m-inputgroup .m-password,
940
- .m-inputgroup .m-inputnumber__input-wrap,
941
- .m-inputgroup .m-input-field__control--prefixed,
942
- .m-inputgroup .m-input-field__control--suffixed,
943
- .m-inputgroup .m-input-field__control--clearable {
944
- border-radius: 0;
945
- width: 100%;
946
- }
947
-
948
- .m-inputgroup > :first-child.m-input,
949
- .m-inputgroup > :first-child .m-input,
950
- .m-inputgroup > :first-child .m-password,
951
- .m-inputgroup > :first-child .m-inputnumber__input-wrap,
952
- .m-inputgroup > :first-child .m-input-field__control--prefixed,
953
- .m-inputgroup > :first-child .m-input-field__control--suffixed,
954
- .m-inputgroup > :first-child .m-input-field__control--clearable,
955
- .m-inputgroup > :first-child.m-inputgroup-addon {
956
- border-bottom-left-radius: var(--m-radius-control);
957
- border-top-left-radius: var(--m-radius-control);
958
- }
959
-
960
- .m-inputgroup > :last-child.m-input,
961
- .m-inputgroup > :last-child .m-input,
962
- .m-inputgroup > :last-child .m-password,
963
- .m-inputgroup > :last-child .m-inputnumber__input-wrap,
964
- .m-inputgroup > :last-child .m-input-field__control--prefixed,
965
- .m-inputgroup > :last-child .m-input-field__control--suffixed,
966
- .m-inputgroup > :last-child .m-input-field__control--clearable,
967
- .m-inputgroup > :last-child.m-inputgroup-addon {
968
- border-bottom-right-radius: var(--m-radius-control);
969
- border-top-right-radius: var(--m-radius-control);
970
- }
971
-
972
- .m-inputgroup > .m-inputgroup-addon + .m-input,
973
- .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
974
- .m-inputgroup > .m-input + .m-inputgroup-addon,
975
- .m-inputgroup > .m-input-field + .m-inputgroup-addon {
976
- margin-left: calc(var(--m-border-width) * -1);
977
- }
978
-
979
- .m-layout__scrollbar > .m-scrollbar__wrap {
980
- height: 100%;
981
- overflow-x: hidden;
982
- }
983
-
984
- .m-layout-sider__scrollbar > .m-scrollbar__wrap {
985
- height: 100%;
986
- overflow-x: hidden;
987
- }
988
-
989
- .m-terminal__scrollbar > .m-scrollbar__wrap {
990
- height: 100%;
991
- overflow-x: hidden;
992
- }
993
-
994
- .m-scroll-body.m-scrollbar {
995
- min-height: 0;
996
- min-width: 0;
997
- }
998
-
999
- /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
1000
- .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
1001
- width: 100%;
1002
- }
1003
-
1004
- .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
1005
- overflow: auto;
1006
- }
1007
-
1008
- .m-orderlist__btn,
1009
- .m-picklist__btn {
1010
- align-items: center;
1011
- background: var(--m-color-surface);
1012
- border: var(--m-border-width) solid var(--m-color-border);
1013
- border-radius: var(--m-radius-sm);
1014
- color: var(--m-color-text);
1015
- cursor: pointer;
1016
- display: inline-flex;
1017
- font: inherit;
1018
- gap: 0;
1019
- justify-content: center;
1020
- min-height: var(--m-control-height-small, 1.75rem);
1021
- min-width: var(--m-control-affix-size);
1022
- padding: var(--m-space-1) var(--m-space-2);
1023
- }
1024
-
1025
- .m-orderlist__btn:hover:not(:disabled),
1026
- .m-picklist__btn:hover:not(:disabled) {
1027
- border-color: var(--m-color-primary);
1028
- color: var(--m-color-primary);
1029
- }
1030
-
1031
- .m-orderlist__btn:disabled,
1032
- .m-picklist__btn:disabled {
1033
- cursor: not-allowed;
1034
- opacity: var(--m-opacity-disabled);
1035
- }
1036
-
1037
- .m-orderlist__btn:focus-visible,
1038
- .m-picklist__btn:focus-visible {
1039
- border-color: var(--m-color-primary);
1040
- box-shadow: var(--m-focus-shadow);
1041
- outline: none;
1042
- }
1043
-
1044
- .m-picklist__btn .m-icon + .m-icon {
1045
- margin-left: -0.35rem;
1046
- }
1047
-
1048
- .m-orderlist__scrollbar,
1049
- .m-picklist__scrollbar {
1050
- flex: 1;
1051
- max-height: 16rem;
1052
- min-height: 12rem;
1053
- min-width: var(--m-menu-min-width);
1054
- }
1055
-
1056
- .m-orderlist__list,
1057
- .m-picklist__list {
1058
- background: var(--m-color-surface);
1059
- border: var(--m-border-width) solid var(--m-color-border);
1060
- border-radius: var(--m-radius-md);
1061
- padding: var(--m-space-1);
1062
- }
1063
-
1064
- .m-orderlist__options,
1065
- .m-picklist__options {
1066
- list-style: none;
1067
- margin: 0;
1068
- padding: 0;
1069
- }
1070
-
1071
- .m-orderlist__item,
1072
- .m-picklist__item {
1073
- border-radius: var(--m-radius-sm);
1074
- cursor: pointer;
1075
- padding: var(--m-space-2) var(--m-space-3);
1076
- }
1077
-
1078
- .m-orderlist__item:hover,
1079
- .m-picklist__item:hover {
1080
- background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
1081
- }
1082
-
1083
- .m-orderlist__item:focus-visible,
1084
- .m-picklist__item:focus-visible {
1085
- box-shadow: var(--m-focus-shadow);
1086
- outline: none;
1087
- }
1088
-
1089
- .m-orderlist__item--selected,
1090
- .m-picklist__item--selected {
1091
- background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
1092
- color: var(--m-color-primary);
1093
- font-weight: 500;
1094
- }
1095
-
1096
- .m-carousel__nav,
1097
- .m-gallery__nav {
1098
- background: var(--m-color-surface);
1099
- border: var(--m-border-width) solid var(--m-color-border);
1100
- border-radius: var(--m-radius-full, 999px);
1101
- color: var(--m-color-text);
1102
- cursor: pointer;
1103
- flex: 0 0 auto;
1104
- font: inherit;
1105
- height: var(--m-control-affix-size);
1106
- width: var(--m-control-affix-size);
1107
- }
1108
-
1109
- .m-carousel__nav:disabled,
1110
- .m-gallery__nav:disabled {
1111
- cursor: not-allowed;
1112
- opacity: var(--m-opacity-disabled);
1113
- }
1114
-
1115
- /* Shared hover/focus for remaining form triggers */
1116
- .m-inputotp__input:hover:not(:disabled):not(:focus),
1117
- .m-cascadeselect:not(.m-cascadeselect--open)
1118
- .m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1119
- .m-treeselect:not(.m-treeselect--open)
1120
- .m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1121
- .m-inputcolor__text:hover:not(:disabled):not(:focus),
1122
- .m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
1123
- .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
1124
- .m-inplace__display:hover:not(:focus-visible) {
1125
- border-color: var(--m-color-primary-hover);
1126
- }
1127
-
1128
- .m-inputotp__input:focus,
1129
- .m-inputotp__input:focus-visible,
1130
- .m-cascadeselect--open .m-cascadeselect__trigger,
1131
- .m-cascadeselect__trigger:focus,
1132
- .m-cascadeselect__trigger:focus-visible,
1133
- .m-treeselect--open .m-treeselect__trigger,
1134
- .m-treeselect__trigger:focus,
1135
- .m-treeselect__trigger:focus-visible,
1136
- .m-inputcolor__text:focus,
1137
- .m-inputcolor__text:focus-visible,
1138
- .m-inputtags:focus-within,
1139
- .m-togglebutton:focus-visible,
1140
- .m-selectbutton__button:focus-visible,
1141
- .m-splitbutton__main:focus-visible,
1142
- .m-splitbutton__trigger:focus-visible,
1143
- .m-inplace__display:focus-visible,
1144
- .m-pagination__button:focus-visible {
1145
- border-color: var(--m-color-primary);
1146
- box-shadow: var(--m-focus-shadow);
1147
- outline: none;
1148
- }
1149
-
1150
- .m-inputotp--invalid .m-inputotp__input:focus,
1151
- .m-inputotp--invalid .m-inputotp__input:focus-visible,
1152
- .m-inputtags--invalid:focus-within,
1153
- .m-inputcolor--invalid .m-inputcolor__text:focus,
1154
- .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1155
- border-color: var(--m-color-danger);
1156
- box-shadow: var(--m-focus-shadow-danger);
1157
- }
1158
-
1159
- .m-checkbox-group,
1160
- .m-radio-group {
1161
- display: flex;
1162
- flex-wrap: wrap;
1163
- gap: var(--m-space-3);
1164
- }
1165
-
1166
- .m-checkbox--small .m-checkbox__control,
1167
- .m-radio--small .m-radio__control {
1168
- height: 0.95rem;
1169
- width: 0.95rem;
1170
- }
1171
-
1172
- .m-checkbox--large .m-checkbox__control,
1173
- .m-radio--large .m-radio__control {
1174
- height: 1.35rem;
1175
- width: 1.35rem;
1176
- }
1177
-
1178
- .m-inputnumber__clear,
1179
- .m-autocomplete__clear {
1180
- background: transparent;
1181
- border: 0;
1182
- color: var(--m-color-text-muted);
1183
- cursor: pointer;
1184
- font: inherit;
1185
- line-height: 1;
1186
- }
1187
-
1188
- [data-m-motion="none"] *,
1189
- [data-m-motion="none"] *::before,
1190
- [data-m-motion="none"] *::after {
1191
- animation-duration: 0.01ms !important;
1192
- animation-iteration-count: 1 !important;
1193
- scroll-behavior: auto !important;
1194
- transition-duration: 0.01ms !important;
1195
- }
1196
-
1197
- [data-m-motion="reduced"] .m-progress-spinner,
1198
- [data-m-motion="reduced"] .m-progress-spinner__circle,
1199
- [data-m-motion="reduced"] .m-skeleton,
1200
- [data-m-motion="reduced"] .m-badge--processing,
1201
- [data-m-motion="reduced"] .m-icon--spin,
1202
- [data-m-motion="reduced"] .m-button__spinner,
1203
- [data-m-motion="reduced"] .m-select__loading-icon,
1204
- [data-m-motion="reduced"] .m-switch__loading-icon {
1205
- animation: none !important;
1206
- }
1207
-
1208
- .m-button {
1209
- /* Geometry */
1210
- --m-button-radius: var(--m-radius-control);
1211
- --m-button-border-width: var(--m-border-width);
1212
- --m-button-gap: var(--m-space-2);
1213
- --m-button-font-weight: var(--m-font-weight);
1214
- --m-button-font-size: var(--m-control-font-medium);
1215
- --m-button-height: var(--m-control-height-medium);
1216
- --m-button-padding-x: var(--m-button-padding-x-medium);
1217
- --m-button-padding-x-small: var(--m-control-padding-x-small);
1218
- --m-button-padding-x-medium: calc(
1219
- var(--m-control-padding-x-medium) + var(--m-space-1)
1220
- );
1221
- --m-button-padding-x-large: calc(
1222
- var(--m-control-padding-x-large) + var(--m-space-1)
1223
- );
1224
- --m-button-padding-x-round-extra: var(--m-space-2);
1225
-
1226
- /* Icon / spinner */
1227
- --m-button-icon-size: 1rem;
1228
- --m-button-icon-size-small: 0.875rem;
1229
- --m-button-icon-size-large: 1.25rem;
1230
- --m-button-spinner-size: 0.875rem;
1231
- --m-button-spinner-border-width: 2px;
1232
- --m-button-cn-letter-spacing: 0.3em;
1233
-
1234
- /* Soft fill opacities (theme-adaptive via surface mix) */
1235
- --m-button-fill-opacity: 10%;
1236
- --m-button-fill-opacity-hover: 16%;
1237
- --m-button-fill-opacity-active: 22%;
1238
- --m-button-fill-opacity-muted: 6%;
1239
- --m-button-fill-opacity-muted-hover: 10%;
1240
- --m-button-fill-opacity-muted-active: 14%;
1241
-
1242
- /* Interaction */
1243
- --m-button-loading-opacity: 0.72;
1244
- --m-button-press-scale: 0.97;
1245
- --m-button-press-duration: 160ms;
1246
- --m-button-ripple-duration: 560ms;
1247
- --m-button-ripple-opacity-start: 0.42;
1248
- --m-button-ripple-opacity-mid: 0.22;
1249
- --m-button-ghost-hover-opacity: 80%;
1250
-
1251
- /* Color axis defaults (overridden by --color-*) */
1252
- --m-button-color-base: var(--m-color-primary);
1253
- --m-button-color-hover: var(--m-color-primary-hover);
1254
- --m-button-color-active: var(--m-color-primary-active);
1255
- --m-button-color-light: color-mix(
1256
- in srgb,
1257
- var(--m-button-color-base) var(--m-button-fill-opacity),
1258
- var(--m-color-surface)
1259
- );
1260
- --m-button-color-light-hover: color-mix(
1261
- in srgb,
1262
- var(--m-button-color-base) var(--m-button-fill-opacity-hover),
1263
- var(--m-color-surface)
1264
- );
1265
- --m-button-color-light-active: color-mix(
1266
- in srgb,
1267
- var(--m-button-color-base) var(--m-button-fill-opacity-active),
1268
- var(--m-color-surface)
1269
- );
1270
- --m-button-on-color: var(--m-color-on-emphasis);
1271
-
1272
- /* Variant surface vars */
1273
- --m-button-bg: var(--m-color-surface);
1274
- --m-button-fg: var(--m-color-text);
1275
- --m-button-border: var(--m-color-border);
1276
- --m-button-hover-bg: var(--m-button-bg);
1277
- --m-button-hover-fg: var(--m-button-fg);
1278
- --m-button-hover-border: var(--m-button-border);
1279
- --m-button-active-bg: var(--m-button-bg);
1280
- --m-button-border-style: solid;
1281
-
1282
- --m-button-active-fg: var(--m-button-fg);
1283
- --m-button-active-border: var(--m-button-border);
1284
-
1285
- align-items: center;
1286
- background: var(--m-button-bg);
1287
- border: var(--m-button-border-width) var(--m-button-border-style)
1288
- var(--m-button-border);
1289
- border-radius: var(--m-button-radius);
1290
- color: var(--m-button-fg);
1291
- cursor: pointer;
1292
- display: inline-flex;
1293
- flex-direction: row;
1294
- font-family: var(--m-font-sans);
1295
- font-size: var(--m-button-font-size);
1296
- font-weight: var(--m-button-font-weight);
1297
- gap: var(--m-button-gap);
1298
- justify-content: center;
1299
- line-height: 1;
1300
- min-height: var(--m-button-height);
1301
- padding: 0 var(--m-button-padding-x);
1302
- position: relative;
1303
- text-decoration: none;
1304
- touch-action: manipulation;
1305
- transition:
1306
- background-color var(--m-motion-fast) var(--m-motion-ease),
1307
- border-color var(--m-motion-fast) var(--m-motion-ease),
1308
- color var(--m-motion-fast) var(--m-motion-ease),
1309
- box-shadow var(--m-motion-fast) var(--m-motion-ease),
1310
- opacity var(--m-motion-fast) var(--m-motion-ease),
1311
- transform var(--m-button-press-duration) var(--m-motion-ease);
1312
- user-select: none;
1313
- vertical-align: middle;
1314
- white-space: nowrap;
1315
- }
1316
-
1317
- @media (hover: hover) and (pointer: fine) {
1318
- .m-button:hover:not(:disabled):not(.m-button--disabled) {
1319
- background: var(--m-button-hover-bg);
1320
- border-color: var(--m-button-hover-border);
1321
- color: var(--m-button-hover-fg);
1322
- }
1323
- }
1324
-
1325
- .m-button:active:not(:disabled):not(.m-button--disabled):not(.m-button--loading) {
1326
- background: var(--m-button-active-bg);
1327
- border-color: var(--m-button-active-border);
1328
- color: var(--m-button-active-fg);
1329
- }
1330
-
1331
- .m-button--press:active:not(:disabled):not(.m-button--disabled) {
1332
- transform: scale(var(--m-button-press-scale));
1333
- }
1334
-
1335
- .m-button:focus {
1336
- outline: none;
1337
- }
1338
-
1339
- .m-button:focus-visible {
1340
- box-shadow: var(--m-focus-shadow);
1341
- outline: none;
1342
- }
1343
-
1344
- .m-button:disabled,
1345
- .m-button--disabled {
1346
- background: var(--m-color-bg-disabled);
1347
- border-color: var(--m-color-border);
1348
- color: var(--m-color-text-disabled);
1349
- cursor: not-allowed;
1350
- opacity: 1;
1351
- }
1352
-
1353
- .m-button--variant-text:disabled,
1354
- .m-button--variant-link:disabled,
1355
- .m-button--variant-text.m-button--disabled,
1356
- .m-button--variant-link.m-button--disabled,
1357
- .m-button--ghost:disabled,
1358
- .m-button--ghost.m-button--disabled {
1359
- background: transparent;
1360
- border-color: transparent;
1361
- }
1362
-
1363
- /* ---------- Color axis ---------- */
1364
-
1365
- .m-button--color-default {
1366
- --m-button-color-base: var(--m-color-text);
1367
- --m-button-color-hover: var(--m-color-primary-hover);
1368
- --m-button-color-active: var(--m-color-primary-active);
1369
- --m-button-color-light: color-mix(
1370
- in srgb,
1371
- var(--m-color-text) var(--m-button-fill-opacity-muted),
1372
- var(--m-color-surface)
1373
- );
1374
- --m-button-color-light-hover: color-mix(
1375
- in srgb,
1376
- var(--m-color-text) var(--m-button-fill-opacity-muted-hover),
1377
- var(--m-color-surface)
1378
- );
1379
- --m-button-color-light-active: color-mix(
1380
- in srgb,
1381
- var(--m-color-text) var(--m-button-fill-opacity-muted-active),
1382
- var(--m-color-surface)
1383
- );
1384
- --m-button-on-color: var(--m-color-contrast-fg);
1385
- --m-button-solid-bg: var(--m-color-contrast);
1386
- --m-button-solid-bg-hover: var(--m-color-contrast-hover);
1387
- --m-button-solid-bg-active: var(--m-color-contrast-active);
1388
- --m-button-outlined-border: var(--m-color-border);
1389
- --m-button-outlined-fg: var(--m-color-text);
1390
- --m-button-outlined-hover-border: var(--m-color-primary-hover);
1391
- --m-button-outlined-hover-fg: var(--m-color-primary-hover);
1392
- --m-button-outlined-bg: var(--m-color-surface);
1393
- /* Match ant default outlined/dashed: keep surface bg, only shift border/text. */
1394
- --m-button-outlined-hover-bg: var(--m-color-surface);
1395
- --m-button-outlined-active-bg: var(--m-color-surface);
1396
- }
1397
-
1398
- .m-button--color-primary {
1399
- --m-button-color-base: var(--m-color-primary);
1400
- --m-button-color-hover: var(--m-color-primary-hover);
1401
- --m-button-color-active: var(--m-color-primary-active);
1402
- --m-button-solid-bg: var(--m-color-primary);
1403
- --m-button-solid-bg-hover: var(--m-color-primary-hover);
1404
- --m-button-solid-bg-active: var(--m-color-primary-active);
1405
- --m-button-outlined-border: var(--m-color-primary);
1406
- --m-button-outlined-fg: var(--m-color-primary);
1407
- --m-button-outlined-hover-border: var(--m-color-primary-hover);
1408
- --m-button-outlined-hover-fg: var(--m-color-primary-hover);
1409
- --m-button-outlined-bg: var(--m-color-surface);
1410
- --m-button-outlined-hover-bg: var(--m-button-color-light);
1411
- }
1412
-
1413
- .m-button--color-danger {
1414
- --m-button-color-base: var(--m-color-danger);
1415
- --m-button-color-hover: color-mix(
1416
- in srgb,
1417
- var(--m-color-danger) 88%,
1418
- var(--m-color-text)
1419
- );
1420
- --m-button-color-active: color-mix(
1421
- in srgb,
1422
- var(--m-color-danger) 76%,
1423
- var(--m-color-text)
1424
- );
1425
- --m-button-solid-bg: var(--m-color-danger);
1426
- --m-button-solid-bg-hover: var(--m-button-color-hover);
1427
- --m-button-solid-bg-active: var(--m-button-color-active);
1428
- --m-button-outlined-border: var(--m-color-danger);
1429
- --m-button-outlined-fg: var(--m-color-danger);
1430
- --m-button-outlined-hover-border: var(--m-button-color-hover);
1431
- --m-button-outlined-hover-fg: var(--m-button-color-hover);
1432
- --m-button-outlined-bg: var(--m-color-surface);
1433
- --m-button-outlined-hover-bg: var(--m-button-color-light);
1434
- }
1435
-
1436
- .m-button--color-success {
1437
- --m-button-color-base: var(--m-color-success);
1438
- --m-button-color-hover: color-mix(
1439
- in srgb,
1440
- var(--m-color-success) 88%,
1441
- var(--m-color-text)
1442
- );
1443
- --m-button-color-active: color-mix(
1444
- in srgb,
1445
- var(--m-color-success) 76%,
1446
- var(--m-color-text)
1447
- );
1448
- --m-button-solid-bg: var(--m-color-success);
1449
- --m-button-solid-bg-hover: var(--m-button-color-hover);
1450
- --m-button-solid-bg-active: var(--m-button-color-active);
1451
- --m-button-outlined-border: var(--m-color-success);
1452
- --m-button-outlined-fg: var(--m-color-success);
1453
- --m-button-outlined-hover-border: var(--m-button-color-hover);
1454
- --m-button-outlined-hover-fg: var(--m-button-color-hover);
1455
- --m-button-outlined-bg: var(--m-color-surface);
1456
- --m-button-outlined-hover-bg: var(--m-button-color-light);
1457
- }
1458
-
1459
- .m-button--color-info {
1460
- --m-button-color-base: var(--m-color-info);
1461
- --m-button-color-hover: color-mix(
1462
- in srgb,
1463
- var(--m-color-info) 88%,
1464
- var(--m-color-text)
1465
- );
1466
- --m-button-color-active: color-mix(
1467
- in srgb,
1468
- var(--m-color-info) 76%,
1469
- var(--m-color-text)
1470
- );
1471
- --m-button-solid-bg: var(--m-color-info);
1472
- --m-button-solid-bg-hover: var(--m-button-color-hover);
1473
- --m-button-solid-bg-active: var(--m-button-color-active);
1474
- --m-button-outlined-border: var(--m-color-info);
1475
- --m-button-outlined-fg: var(--m-color-info);
1476
- --m-button-outlined-hover-border: var(--m-button-color-hover);
1477
- --m-button-outlined-hover-fg: var(--m-button-color-hover);
1478
- --m-button-outlined-bg: var(--m-color-surface);
1479
- --m-button-outlined-hover-bg: var(--m-button-color-light);
1480
- }
1481
-
1482
- .m-button--color-warning {
1483
- --m-button-color-base: var(--m-color-warn);
1484
- --m-button-color-hover: color-mix(
1485
- in srgb,
1486
- var(--m-color-warn) 88%,
1487
- var(--m-color-text)
1488
- );
1489
- --m-button-color-active: color-mix(
1490
- in srgb,
1491
- var(--m-color-warn) 76%,
1492
- var(--m-color-text)
1493
- );
1494
- --m-button-solid-bg: var(--m-color-warn);
1495
- --m-button-solid-bg-hover: var(--m-button-color-hover);
1496
- --m-button-solid-bg-active: var(--m-button-color-active);
1497
- --m-button-outlined-border: var(--m-color-warn);
1498
- --m-button-outlined-fg: var(--m-color-warn);
1499
- --m-button-outlined-hover-border: var(--m-button-color-hover);
1500
- --m-button-outlined-hover-fg: var(--m-button-color-hover);
1501
- --m-button-outlined-bg: var(--m-color-surface);
1502
- --m-button-outlined-hover-bg: var(--m-button-color-light);
1503
- }
1504
-
1505
- .m-button--color-help {
1506
- --m-button-color-base: var(--m-color-help);
1507
- --m-button-color-hover: color-mix(
1508
- in srgb,
1509
- var(--m-color-help) 88%,
1510
- var(--m-color-text)
1511
- );
1512
- --m-button-color-active: color-mix(
1513
- in srgb,
1514
- var(--m-color-help) 76%,
1515
- var(--m-color-text)
1516
- );
1517
- --m-button-solid-bg: var(--m-color-help);
1518
- --m-button-solid-bg-hover: var(--m-button-color-hover);
1519
- --m-button-solid-bg-active: var(--m-button-color-active);
1520
- --m-button-outlined-border: var(--m-color-help);
1521
- --m-button-outlined-fg: var(--m-color-help);
1522
- --m-button-outlined-hover-border: var(--m-button-color-hover);
1523
- --m-button-outlined-hover-fg: var(--m-button-color-hover);
1524
- --m-button-outlined-bg: var(--m-color-surface);
1525
- --m-button-outlined-hover-bg: var(--m-button-color-light);
1526
- }
1527
-
1528
- .m-button--color-contrast {
1529
- --m-button-color-base: var(--m-color-contrast);
1530
- --m-button-color-hover: var(--m-color-contrast-hover);
1531
- --m-button-color-active: var(--m-color-contrast-active);
1532
- --m-button-on-color: var(--m-color-contrast-fg);
1533
- --m-button-solid-bg: var(--m-color-contrast);
1534
- --m-button-solid-bg-hover: var(--m-color-contrast-hover);
1535
- --m-button-solid-bg-active: var(--m-color-contrast-active);
1536
- --m-button-outlined-border: var(--m-color-contrast);
1537
- --m-button-outlined-fg: var(--m-color-contrast);
1538
- --m-button-outlined-hover-border: var(--m-color-contrast-hover);
1539
- --m-button-outlined-hover-fg: var(--m-color-contrast-hover);
1540
- --m-button-outlined-bg: var(--m-color-surface);
1541
- --m-button-outlined-hover-bg: var(--m-button-color-light);
1542
- }
1543
-
1544
- .m-button--color-link {
1545
- --m-button-color-base: var(--m-color-primary);
1546
- --m-button-color-hover: var(--m-color-primary-hover);
1547
- --m-button-color-active: var(--m-color-primary-active);
1548
- }
1549
-
1550
- /* ---------- Variant axis ---------- */
1551
-
1552
- .m-button--variant-solid {
1553
- --m-button-bg: var(--m-button-solid-bg, var(--m-button-color-base));
1554
- --m-button-fg: var(--m-button-on-color);
1555
- --m-button-border: transparent;
1556
- --m-button-hover-bg: var(
1557
- --m-button-solid-bg-hover,
1558
- var(--m-button-color-hover)
1559
- );
1560
- --m-button-hover-fg: var(--m-button-on-color);
1561
- --m-button-hover-border: transparent;
1562
- --m-button-active-bg: var(
1563
- --m-button-solid-bg-active,
1564
- var(--m-button-color-active)
1565
- );
1566
- --m-button-active-fg: var(--m-button-on-color);
1567
- --m-button-active-border: transparent;
1568
- }
1569
-
1570
- .m-button--variant-outlined,
1571
- .m-button--variant-dashed {
1572
- --m-button-bg: var(--m-button-outlined-bg, var(--m-color-surface));
1573
- --m-button-fg: var(--m-button-outlined-fg, var(--m-button-color-base));
1574
- --m-button-border: var(
1575
- --m-button-outlined-border,
1576
- var(--m-button-color-base)
1577
- );
1578
- --m-button-hover-bg: var(
1579
- --m-button-outlined-hover-bg,
1580
- var(--m-button-color-light)
1581
- );
1582
- --m-button-hover-fg: var(
1583
- --m-button-outlined-hover-fg,
1584
- var(--m-button-color-hover)
1585
- );
1586
- --m-button-hover-border: var(
1587
- --m-button-outlined-hover-border,
1588
- var(--m-button-color-hover)
1589
- );
1590
- --m-button-active-bg: var(
1591
- --m-button-outlined-active-bg,
1592
- var(--m-button-color-light-active, var(--m-button-color-light))
1593
- );
1594
- --m-button-active-fg: var(
1595
- --m-button-color-active,
1596
- var(--m-button-hover-fg)
1597
- );
1598
- --m-button-active-border: var(
1599
- --m-button-color-active,
1600
- var(--m-button-hover-border)
1601
- );
1602
- }
1603
-
1604
- .m-button--variant-dashed {
1605
- --m-button-border-style: dashed;
1606
- }
1607
-
1608
- .m-button--variant-filled {
1609
- --m-button-bg: var(--m-button-color-light);
1610
- --m-button-fg: var(--m-button-color-base);
1611
- --m-button-border: transparent;
1612
- --m-button-hover-bg: var(--m-button-color-light-hover);
1613
- --m-button-hover-fg: var(--m-button-color-base);
1614
- --m-button-hover-border: transparent;
1615
- --m-button-active-bg: var(--m-button-color-light-active);
1616
- --m-button-active-fg: var(--m-button-color-base);
1617
- --m-button-active-border: transparent;
1618
- }
1619
-
1620
- .m-button--variant-text,
1621
- .m-button--variant-link {
1622
- --m-button-bg: transparent;
1623
- --m-button-fg: var(--m-button-color-base);
1624
- --m-button-border: transparent;
1625
- --m-button-hover-fg: var(--m-button-color-hover);
1626
- --m-button-hover-border: transparent;
1627
- --m-button-active-bg: transparent;
1628
- --m-button-active-fg: var(--m-button-color-active, var(--m-button-color-hover));
1629
- --m-button-active-border: transparent;
1630
- }
1631
-
1632
- .m-button--variant-text {
1633
- --m-button-hover-bg: var(--m-button-color-light);
1634
- --m-button-active-bg: var(--m-button-color-light-active);
1635
- }
1636
-
1637
- .m-button--variant-link {
1638
- --m-button-hover-bg: transparent;
1639
- --m-button-height: auto;
1640
- height: auto;
1641
- min-height: 0;
1642
- padding: 0;
1643
- }
1644
-
1645
- .m-button--variant-link:hover:not(:disabled):not(.m-button--disabled) {
1646
- text-decoration: underline;
1647
- }
1648
-
1649
- .m-button--color-default.m-button--variant-text {
1650
- --m-button-color-base: var(--m-color-text);
1651
- --m-button-color-hover: var(--m-color-text);
1652
- --m-button-hover-bg: var(--m-button-color-light);
1653
- --m-button-active-bg: var(--m-button-color-light-hover);
1654
- }
1655
-
1656
- .m-button--color-default.m-button--variant-filled {
1657
- --m-button-color-base: var(--m-color-text);
1658
- }
1659
-
1660
- .m-button--color-link.m-button--variant-link {
1661
- --m-button-color-base: var(--m-color-primary);
1662
- --m-button-color-hover: var(--m-color-primary-hover);
1663
- }
1664
-
1665
- /* Ghost: transparent fill on bordered variants */
1666
- .m-button--ghost {
1667
- --m-button-bg: transparent;
1668
- --m-button-hover-bg: transparent;
1669
- --m-button-active-bg: transparent;
1670
- }
1671
-
1672
- .m-button--ghost.m-button--variant-solid,
1673
- .m-button--ghost.m-button--variant-outlined,
1674
- .m-button--ghost.m-button--variant-dashed {
1675
- --m-button-fg: var(--m-button-color-base);
1676
- --m-button-border: var(--m-button-color-base);
1677
- --m-button-hover-fg: var(--m-button-color-hover);
1678
- --m-button-hover-border: var(--m-button-color-hover);
1679
- --m-button-active-fg: var(--m-button-color-active, var(--m-button-color-hover));
1680
- --m-button-active-border: var(--m-button-color-active, var(--m-button-color-hover));
1681
- }
1682
- .m-button--ghost.m-button--color-default {
1683
- --m-button-color-base: var(--m-color-on-emphasis);
1684
- --m-button-color-hover: color-mix(
1685
- in srgb,
1686
- var(--m-color-on-emphasis) var(--m-button-ghost-hover-opacity),
1687
- transparent
1688
- );
1689
- --m-button-fg: var(--m-color-on-emphasis);
1690
- --m-button-border: var(--m-color-on-emphasis);
1691
- --m-button-hover-fg: var(--m-button-color-hover);
1692
- --m-button-hover-border: var(--m-button-color-hover);
1693
- }
1694
-
1695
- /* ---------- Size / shape / layout ---------- */
1696
-
1697
- .m-button--small {
1698
- --m-button-icon-size: var(--m-button-icon-size-small);
1699
- --m-button-font-size: var(--m-control-font-small);
1700
- --m-button-height: var(--m-control-height-small);
1701
- --m-button-padding-x: var(--m-button-padding-x-small);
1702
- }
1703
-
1704
- .m-button--large {
1705
- --m-button-icon-size: var(--m-button-icon-size-large);
1706
- --m-button-font-size: var(--m-control-font-large);
1707
- --m-button-height: var(--m-control-height-large);
1708
- --m-button-padding-x: var(--m-button-padding-x-large);
1709
- }
1710
-
1711
- .m-button--block {
1712
- display: flex;
1713
- width: 100%;
1714
- }
1715
-
1716
- .m-button--shape-round {
1717
- --m-button-radius: var(--m-radius-full);
1718
- padding-inline: calc(
1719
- var(--m-button-padding-x) + var(--m-button-padding-x-round-extra)
1720
- );
1721
- }
1722
-
1723
- .m-button--shape-circle {
1724
- --m-button-radius: var(--m-radius-full);
1725
- min-width: var(--m-button-height);
1726
- padding-inline: 0;
1727
- width: var(--m-button-height);
1728
- }
1729
-
1730
- .m-button--shape-square {
1731
- --m-button-radius: 0;
1732
- }
1733
-
1734
- .m-button--icon-only {
1735
- gap: 0;
1736
- min-width: var(--m-button-height);
1737
- padding: 0;
1738
- width: var(--m-button-height);
1739
- }
1740
-
1741
- .m-button--icon-end {
1742
- flex-direction: row-reverse;
1743
- }
1744
-
1745
- .m-button--two-chinese-chars > .m-button__label {
1746
- letter-spacing: var(--m-button-cn-letter-spacing);
1747
- margin-inline-end: calc(var(--m-button-cn-letter-spacing) * -1);
1748
- }
1749
-
1750
- .m-button--loading {
1751
- cursor: default;
1752
- opacity: var(--m-button-loading-opacity);
1753
- pointer-events: none;
1754
- }
1755
-
1756
- /* ---------- Parts ---------- */
1757
-
1758
- .m-button__icon,
1759
- .m-button__label {
1760
- align-items: center;
1761
- display: inline-flex;
1762
- justify-content: center;
1763
- }
1764
-
1765
- .m-button__icon,
1766
- .m-button__label {
1767
- position: relative;
1768
- z-index: 1;
1769
- }
1770
-
1771
- .m-button__ripple {
1772
- border-radius: inherit;
1773
- inset: 0;
1774
- overflow: hidden;
1775
- pointer-events: none;
1776
- position: absolute;
1777
- z-index: 0;
1778
- }
1779
-
1780
- .m-button__ripple-wave {
1781
- background: currentColor;
1782
- border-radius: var(--m-radius-full);
1783
- opacity: 0;
1784
- pointer-events: none;
1785
- position: absolute;
1786
- transform: scale(0);
1787
- will-change: transform, opacity;
1788
- }
1789
-
1790
- .m-button__ripple-wave--fallback {
1791
- animation: m-button-ripple var(--m-button-ripple-duration)
1792
- var(--m-motion-ease) forwards;
1793
- }
1794
-
1795
- @keyframes m-button-ripple {
1796
- 0% {
1797
- opacity: var(--m-button-ripple-opacity-start);
1798
- transform: scale(0);
1799
- }
1800
- 55% {
1801
- opacity: var(--m-button-ripple-opacity-mid);
1802
- transform: scale(0.55);
1803
- }
1804
- 100% {
1805
- opacity: 0;
1806
- transform: scale(1);
1807
- }
1808
- }
1809
-
1810
- .m-button__icon {
1811
- flex: 0 0 auto;
1812
- height: var(--m-button-icon-size);
1813
- line-height: 0;
1814
- width: var(--m-button-icon-size);
1815
- }
1816
-
1817
- .m-button__icon :is(.m-icon, .m-button__icon-graphic, svg) {
1818
- display: block;
1819
- flex-shrink: 0;
1820
- height: 100%;
1821
- width: 100%;
1822
- }
1823
-
1824
- .m-button__icon .m-icon {
1825
- max-height: 100%;
1826
- max-width: 100%;
1827
- }
1828
-
1829
- .m-button__spinner {
1830
- animation: m-button-spin var(--m-motion-spin-fast) linear infinite;
1831
- border: var(--m-button-spinner-border-width) solid currentColor;
1832
- border-radius: var(--m-radius-full);
1833
- border-right-color: transparent;
1834
- height: var(--m-button-spinner-size);
1835
- width: var(--m-button-spinner-size);
1836
- }
1837
-
1838
- @keyframes m-button-spin {
1839
- to {
1840
- transform: rotate(360deg);
1841
- }
1842
- }
1843
-
1844
- @media (prefers-reduced-motion: reduce) {
1845
- .m-button {
1846
- --m-button-ripple-duration: 0ms;
1847
- transition-duration: 0ms;
1848
- }
1849
-
1850
- .m-button__spinner {
1851
- animation-duration: 0ms;
1852
- }
1853
- }
1854
-
1855
- :root[data-m-motion='reduced'] .m-button {
1856
- --m-button-ripple-duration: 280ms;
1857
- --m-button-press-duration: 120ms;
1858
- }
1859
-
1860
- :root[data-m-motion='none'] .m-button {
1861
- --m-button-ripple-duration: 0ms;
1862
- --m-button-press-duration: 0ms;
1863
- }
1864
-
1865
- /* ---------- Group ---------- */
1866
-
1867
- .m-button-group {
1868
- display: inline-flex;
1869
- vertical-align: middle;
1870
- }
1871
-
1872
- .m-button-group--block {
1873
- display: flex;
1874
- width: 100%;
1875
- }
1876
-
1877
- .m-button-group--block > .m-button {
1878
- flex: 1;
1879
- }
1880
-
1881
- .m-button-group > .m-button {
1882
- border-radius: 0;
1883
- margin: 0;
1884
- }
1885
-
1886
- .m-button-group > .m-button + .m-button {
1887
- margin-inline-start: calc(var(--m-border-width) * -1);
1888
- }
1889
-
1890
- .m-button-group > .m-button:hover,
1891
- .m-button-group > .m-button:focus-visible,
1892
- .m-button-group > .m-button:active {
1893
- position: relative;
1894
- z-index: 1;
1895
- }
1896
-
1897
- .m-button-group > .m-button:first-child {
1898
- border-end-start-radius: var(--m-radius-control);
1899
- border-start-start-radius: var(--m-radius-control);
1900
- }
1901
-
1902
- .m-button-group > .m-button:last-child {
1903
- border-end-end-radius: var(--m-radius-control);
1904
- border-start-end-radius: var(--m-radius-control);
1905
- }
1906
-
1907
- /* —— Feedback: Dialog —— */
1908
- .m-dialog button:focus {
1909
- outline: none;
1910
- }
1911
-
1912
- .m-dialog button:focus-visible {
1913
- box-shadow: var(--m-focus-shadow);
1914
- outline: none;
1915
- }
1916
-
1917
- .m-dialog-backdrop {
1918
- align-items: center;
1919
- background: transparent;
1920
- display: flex;
1921
- inset: 0;
1922
- justify-content: center;
1923
- padding: var(--m-space-4);
1924
- position: fixed;
1925
- z-index: var(--m-z-overlay);
1926
- }
1927
-
1928
- .m-dialog-zoom {
1929
- align-items: inherit;
1930
- display: flex;
1931
- inset: 0;
1932
- justify-content: inherit;
1933
- padding: inherit;
1934
- position: absolute;
1935
- transform-origin: var(--m-dialog-origin-x, 50%)
1936
- var(--m-dialog-origin-y, 50%);
1937
- }
1938
-
1939
- .m-dialog-backdrop--modal {
1940
- background: var(--m-overlay-scrim);
1941
- }
1942
-
1943
- .m-dialog-backdrop--top {
1944
- align-items: flex-start;
1945
- }
1946
-
1947
- .m-dialog-backdrop--bottom {
1948
- align-items: flex-end;
1949
- }
1950
-
1951
- .m-dialog-backdrop--left {
1952
- justify-content: flex-start;
1953
- }
1954
-
1955
- .m-dialog-backdrop--right {
1956
- justify-content: flex-end;
1957
- }
1958
-
1959
- .m-dialog-backdrop--topleft {
1960
- align-items: flex-start;
1961
- justify-content: flex-start;
1962
- }
1963
-
1964
- .m-dialog-backdrop--topright {
1965
- align-items: flex-start;
1966
- justify-content: flex-end;
1967
- }
1968
-
1969
- .m-dialog-backdrop--bottomleft {
1970
- align-items: flex-end;
1971
- justify-content: flex-start;
1972
- }
1973
-
1974
- .m-dialog-backdrop--bottomright {
1975
- align-items: flex-end;
1976
- justify-content: flex-end;
1977
- }
1978
-
1979
- .m-dialog {
1980
- --m-dialog-width: 32rem;
1981
- --m-dialog-max-height: min(90vh, 100%);
1982
- --m-dialog-radius: var(--m-radius-lg);
1983
- background: var(--m-color-surface);
1984
- border-radius: var(--m-dialog-radius);
1985
- box-shadow: var(--m-shadow-lg);
1986
- color: var(--m-color-text);
1987
- display: flex;
1988
- flex-direction: column;
1989
- max-height: var(--m-dialog-max-height);
1990
- max-width: var(--m-dialog-width);
1991
- width: min(100%, var(--m-dialog-width));
1992
- }
1993
-
1994
- .m-dialog-backdrop--maximized {
1995
- padding: 0;
1996
- }
1997
-
1998
- .m-dialog--maximized {
1999
- --m-dialog-radius: 0;
2000
- border-radius: var(--m-dialog-radius);
2001
- height: 100%;
2002
- max-height: 100%;
2003
- max-width: none;
2004
- width: 100%;
2005
- }
2006
-
2007
- .m-dialog__header,
2008
- .m-dialog__footer {
2009
- align-items: center;
2010
- display: flex;
2011
- justify-content: space-between;
2012
- padding: var(--m-space-4);
2013
- }
2014
-
2015
- .m-dialog__header {
2016
- border-bottom: var(--m-border-width) solid var(--m-color-split);
2017
- flex: 0 0 auto;
2018
- gap: var(--m-space-3);
2019
- }
2020
-
2021
- .m-dialog__header h2 {
2022
- font-size: var(--m-font-size-lg);
2023
- margin: 0;
2024
- }
2025
-
2026
- .m-dialog__heading {
2027
- align-items: center;
2028
- display: flex;
2029
- gap: var(--m-space-2);
2030
- min-width: 0;
2031
- }
2032
-
2033
- .m-dialog__type-icon {
2034
- color: var(--m-color-info);
2035
- flex-shrink: 0;
2036
- }
2037
-
2038
- .m-dialog--success .m-dialog__type-icon {
2039
- color: var(--m-color-success);
2040
- }
2041
-
2042
- .m-dialog--warning .m-dialog__type-icon {
2043
- color: var(--m-color-warning);
2044
- }
2045
-
2046
- .m-dialog--danger .m-dialog__type-icon {
2047
- color: var(--m-color-danger);
2048
- }
2049
-
2050
- .m-dialog--info .m-dialog__type-icon {
2051
- color: var(--m-color-info);
2052
- }
2053
-
2054
- .m-dialog__actions {
2055
- align-items: center;
2056
- display: flex;
2057
- flex: 0 0 auto;
2058
- gap: var(--m-space-1);
2059
- margin-left: auto;
2060
- }
2061
-
2062
- .m-dialog__action,
2063
- .m-dialog__header button {
2064
- align-items: center;
2065
- background: transparent;
2066
- border: 0;
2067
- border-radius: var(--m-radius-sm);
2068
- color: var(--m-color-text-muted);
2069
- cursor: pointer;
2070
- display: inline-flex;
2071
- font-size: var(--m-font-size-lg);
2072
- height: var(--m-control-affix-size);
2073
- justify-content: center;
2074
- line-height: 1;
2075
- transition:
2076
- background-color var(--m-motion-fast) var(--m-motion-ease),
2077
- color var(--m-motion-fast) var(--m-motion-ease),
2078
- opacity var(--m-motion-fast) var(--m-motion-ease);
2079
- width: var(--m-control-affix-size);
2080
- }
2081
-
2082
- .m-dialog__action:hover:not(:disabled),
2083
- .m-dialog__header button:hover:not(:disabled) {
2084
- background: color-mix(
2085
- in srgb,
2086
- var(--m-color-primary) 10%,
2087
- var(--m-color-surface)
2088
- );
2089
- color: var(--m-color-text);
2090
- }
2091
-
2092
- .m-dialog__action:focus-visible,
2093
- .m-dialog__header button:focus-visible {
2094
- box-shadow: var(--m-focus-shadow);
2095
- outline: none;
2096
- }
2097
-
2098
- .m-dialog__body {
2099
- flex: 1 1 auto;
2100
- overflow: auto;
2101
- overscroll-behavior: contain;
2102
- padding: var(--m-space-4);
2103
- }
2104
-
2105
- .m-dialog__action:disabled,
2106
- .m-dialog__header button:disabled {
2107
- cursor: not-allowed;
2108
- opacity: var(--m-opacity-disabled);
2109
- }
2110
-
2111
- .m-dialog__footer {
2112
- border-top: var(--m-border-width) solid var(--m-color-split);
2113
- flex: 0 0 auto;
2114
- }
2115
-
2116
- .m-dialog__footer--preset {
2117
- gap: var(--m-space-2);
2118
- justify-content: flex-end;
2119
- width: 100%;
2120
- }
2121
-
2122
- .m-dialog-enter-active {
2123
- transition: opacity var(--m-motion-enter) var(--m-motion-ease);
2124
- }
2125
-
2126
- .m-dialog-leave-active {
2127
- transition: opacity var(--m-motion-exit) var(--m-motion-ease);
2128
- }
2129
-
2130
- .m-dialog-enter-active .m-dialog-zoom,
2131
- .m-dialog-leave-active .m-dialog-zoom {
2132
- transition:
2133
- opacity var(--m-motion-enter) var(--m-motion-ease),
2134
- transform var(--m-motion-enter) var(--m-motion-ease);
2135
- }
2136
-
2137
- .m-dialog-leave-active .m-dialog-zoom {
2138
- transition:
2139
- opacity var(--m-motion-exit) var(--m-motion-ease),
2140
- transform var(--m-motion-exit) var(--m-motion-ease);
2141
- }
2142
-
2143
- .m-dialog-enter-from,
2144
- .m-dialog-leave-to {
2145
- opacity: 0;
2146
- }
2147
-
2148
- .m-dialog-enter-from .m-dialog-zoom,
2149
- .m-dialog-leave-to .m-dialog-zoom {
2150
- opacity: 0;
2151
- transform: scale(0.95);
2152
- }
2153
-
2154
- /*
2155
- * Generic presets put Vue Transition classes on the backdrop. Keep the mask as
2156
- * opacity-only and drive transform on `.m-dialog-zoom` (same structure as `dialog`).
2157
- */
2158
- .m-dialog-backdrop.m-fade-enter-from,
2159
- .m-dialog-backdrop.m-fade-leave-to,
2160
- .m-dialog-backdrop.m-scale-fade-enter-from,
2161
- .m-dialog-backdrop.m-scale-fade-leave-to,
2162
- .m-dialog-backdrop.m-slide-fade-enter-from,
2163
- .m-dialog-backdrop.m-slide-fade-leave-to,
2164
- .m-dialog-backdrop.m-zoom-enter-from,
2165
- .m-dialog-backdrop.m-zoom-leave-to,
2166
- .m-dialog-backdrop.m-slide-up-enter-from,
2167
- .m-dialog-backdrop.m-slide-up-leave-to,
2168
- .m-dialog-backdrop.m-slide-down-enter-from,
2169
- .m-dialog-backdrop.m-slide-down-leave-to,
2170
- .m-dialog-backdrop.m-slide-left-enter-from,
2171
- .m-dialog-backdrop.m-slide-left-leave-to,
2172
- .m-dialog-backdrop.m-slide-right-enter-from,
2173
- .m-dialog-backdrop.m-slide-right-leave-to {
2174
- transform: none;
2175
- }
2176
-
2177
- .m-fade-enter-active .m-dialog-zoom,
2178
- .m-scale-fade-enter-active .m-dialog-zoom,
2179
- .m-slide-fade-enter-active .m-dialog-zoom,
2180
- .m-zoom-enter-active .m-dialog-zoom,
2181
- .m-slide-up-enter-active .m-dialog-zoom,
2182
- .m-slide-down-enter-active .m-dialog-zoom,
2183
- .m-slide-left-enter-active .m-dialog-zoom,
2184
- .m-slide-right-enter-active .m-dialog-zoom {
2185
- transition:
2186
- opacity var(--m-motion-enter) var(--m-motion-ease),
2187
- transform var(--m-motion-enter) var(--m-motion-ease);
2188
- }
2189
-
2190
- .m-fade-leave-active .m-dialog-zoom,
2191
- .m-scale-fade-leave-active .m-dialog-zoom,
2192
- .m-slide-fade-leave-active .m-dialog-zoom,
2193
- .m-zoom-leave-active .m-dialog-zoom,
2194
- .m-slide-up-leave-active .m-dialog-zoom,
2195
- .m-slide-down-leave-active .m-dialog-zoom,
2196
- .m-slide-left-leave-active .m-dialog-zoom,
2197
- .m-slide-right-leave-active .m-dialog-zoom {
2198
- transition:
2199
- opacity var(--m-motion-exit) var(--m-motion-ease),
2200
- transform var(--m-motion-exit) var(--m-motion-ease);
2201
- }
2202
-
2203
- .m-fade-enter-from .m-dialog-zoom,
2204
- .m-fade-leave-to .m-dialog-zoom {
2205
- opacity: 0;
2206
- }
2207
-
2208
- .m-scale-fade-enter-from .m-dialog-zoom,
2209
- .m-scale-fade-leave-to .m-dialog-zoom {
2210
- opacity: 0;
2211
- transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
2212
- }
2213
-
2214
- .m-slide-fade-enter-from .m-dialog-zoom,
2215
- .m-slide-fade-leave-to .m-dialog-zoom {
2216
- opacity: 0;
2217
- transform: translateY(calc(var(--m-motion-distance) * -1));
2218
- }
2219
-
2220
- .m-zoom-enter-from .m-dialog-zoom,
2221
- .m-zoom-leave-to .m-dialog-zoom {
2222
- opacity: 0;
2223
- transform: scale(0.95);
2224
- }
2225
-
2226
- .m-slide-up-enter-from .m-dialog-zoom,
2227
- .m-slide-up-leave-to .m-dialog-zoom {
2228
- opacity: 0;
2229
- transform: translateY(var(--m-motion-distance));
2230
- }
2231
-
2232
- .m-slide-down-enter-from .m-dialog-zoom,
2233
- .m-slide-down-leave-to .m-dialog-zoom {
2234
- opacity: 0;
2235
- transform: translateY(calc(var(--m-motion-distance) * -1));
2236
- }
2237
-
2238
- .m-slide-left-enter-from .m-dialog-zoom,
2239
- .m-slide-left-leave-to .m-dialog-zoom {
2240
- opacity: 0;
2241
- transform: translateX(var(--m-motion-distance));
2242
- }
1
+ :root {
2
+ /* Default morya palette (--m-* token names) */
3
+ --m-color-primary: #1677ff;
4
+ --m-color-primary-hover: #4096ff;
5
+ --m-color-primary-active: #0958d9;
6
+ --m-color-surface: #ffffff;
7
+ --m-color-text: rgba(0, 0, 0, 0.88);
8
+ --m-color-text-muted: rgba(0, 0, 0, 0.45);
9
+ --m-color-border: #d9d9d9;
10
+ --m-color-split: #f0f0f0;
11
+ --m-color-focus-ring: #1677ff;
12
+ /* Soft translucent control-outline ring (primary bg composited over container) */
13
+ --m-color-control-outline: rgba(5, 145, 255, 0.1);
14
+ --m-color-control-outline-danger: rgba(255, 38, 5, 0.06);
15
+ --m-color-control-outline-warning: rgba(255, 215, 5, 0.1);
16
+ /* Control sizing: medium control height 32px */
17
+ --m-control-height-small: 24px;
18
+ --m-control-height-medium: 32px;
19
+ --m-control-height-large: 40px;
20
+ --m-control-font-small: 14px;
21
+ --m-control-font-medium: 14px;
22
+ --m-control-font-large: 15px;
23
+ --m-control-padding-x-small: 10px;
24
+ --m-control-padding-x-medium: 15px;
25
+ --m-control-padding-x-large: 16px;
26
+
27
+ --m-radius-control: 6px;
28
+ --m-border-width: 1px;
29
+ --m-focus-outline-width: 2px;
30
+ --m-focus-shadow: 0 0 0 var(--m-focus-outline-width) var(--m-color-control-outline);
31
+ --m-focus-shadow-danger: 0 0 0 var(--m-focus-outline-width)
32
+ var(--m-color-control-outline-danger);
33
+ --m-focus-shadow-warning: 0 0 0 var(--m-focus-outline-width)
34
+ var(--m-color-control-outline-warning);
35
+ --m-color-success: #52c41a;
36
+ --m-color-info: #1677ff;
37
+ --m-color-warning: #faad14;
38
+ --m-color-warn: var(--m-color-warning);
39
+ --m-color-help: #9333ea;
40
+ --m-color-danger: #ff4d4f;
41
+ --m-color-contrast: rgba(0, 0, 0, 0.88);
42
+ --m-color-contrast-fg: #ffffff;
43
+ --m-color-contrast-hover: #1f1f1f;
44
+ --m-color-contrast-active: #141414;
45
+ --m-color-on-emphasis: #ffffff;
46
+ --m-color-on-primary: var(--m-color-on-emphasis);
47
+ --m-overlay-scrim: rgb(0 0 0 / 0.45);
48
+ --m-shadow-sm:
49
+ 0 1px 2px 0 rgb(0 0 0 / 0.03), 0 1px 6px -1px rgb(0 0 0 / 0.02),
50
+ 0 2px 4px 0 rgb(0 0 0 / 0.02);
51
+ --m-shadow-md:
52
+ 0 6px 16px 0 rgb(0 0 0 / 0.08), 0 3px 6px -4px rgb(0 0 0 / 0.12),
53
+ 0 9px 28px 8px rgb(0 0 0 / 0.05);
54
+ --m-shadow-lg:
55
+ 0 6px 16px 0 rgb(0 0 0 / 0.08), 0 3px 6px -4px rgb(0 0 0 / 0.12),
56
+ 0 9px 28px 8px rgb(0 0 0 / 0.05);
57
+ --m-shadow-raised:
58
+ 0 1px 2px -2px rgb(0 0 0 / 0.16), 0 3px 6px 0 rgb(0 0 0 / 0.12),
59
+ 0 5px 12px 4px rgb(0 0 0 / 0.09);
60
+ --m-shadow-sticky: 6px 0 16px -8px rgb(0 0 0 / 0.08);
61
+ --m-shadow-sticky-end: -6px 0 16px -8px rgb(0 0 0 / 0.08);
62
+
63
+ /* Typography scale (component text, not control-height fonts) */
64
+ --m-font-size-xs: 0.75rem;
65
+ --m-font-size-sm: 0.8125rem;
66
+ --m-font-size-md: 0.875rem;
67
+ --m-font-size-lg: 1.125rem;
68
+ --m-line-height-sm: 1.6667;
69
+ --m-line-height-md: 1.5714;
70
+ --m-line-height-lg: 1.5;
71
+ /* Display scale (page titles, KPI figures) */
72
+ --m-font-size-xl: 1.25rem;
73
+ --m-font-size-2xl: 1.5rem;
74
+ --m-font-size-3xl: 1.75rem;
75
+ --m-opacity-disabled: 0.55;
76
+ --m-color-text-disabled: rgba(0, 0, 0, 0.25);
77
+ --m-color-bg-disabled: rgba(0, 0, 0, 0.04);
78
+ --m-font-weight: 400;
79
+ --m-font-weight-medium: 500;
80
+ --m-font-weight-strong: 600;
81
+ /* Layering: override --m-z-base via ConfigProvider / createMoryaUI */
82
+ --m-z-base: 1000;
83
+ --m-z-overlay: var(--m-z-base);
84
+ --m-z-overlay-raised: calc(var(--m-z-base) + 1);
85
+ --m-z-dropdown: calc(var(--m-z-base) + 50);
86
+ --m-z-tooltip: calc(var(--m-z-base) + 60);
87
+ --m-z-toast: calc(var(--m-z-base) + 100);
88
+ --m-z-popper: 40;
89
+ --m-z-sticky: 10;
90
+
91
+ /* Affix hitbox tracks control height so small/compact shells do not overflow */
92
+ --m-control-affix-size: calc(
93
+ var(--m-control-height-medium) - 2 * var(--m-border-width)
94
+ );
95
+ --m-control-affix-gap: 2.35rem;
96
+ --m-control-affix-padding: 2.5rem;
97
+ --m-meter-track-height: var(--m-space-5);
98
+ --m-tree-toggler-size: var(--m-checkbox-control-size);
99
+ --m-nav-rail-width: 12.5rem;
100
+ --m-nav-rail-collapsed-width: 5rem;
101
+ --m-layout-header-height: calc(
102
+ var(--m-control-height-medium) + 2 * var(--m-space-3)
103
+ );
104
+ --m-layout-footer-height: calc(
105
+ var(--m-control-height-medium) + 2 * var(--m-space-2)
106
+ );
107
+ --m-space-1: 0.25rem;
108
+ --m-space-2: 0.5rem;
109
+ --m-space-3: 0.75rem;
110
+ --m-space-4: 1rem;
111
+ --m-space-5: 1.25rem;
112
+ --m-space-6: 1.5rem;
113
+ --m-space-8: 2rem;
114
+ --m-radius-sm: 0.25rem;
115
+ --m-radius-md: 0.5rem;
116
+ --m-radius-lg: 0.5rem;
117
+ --m-radius-full: 9999px;
118
+ --m-radius-pill: var(--m-radius-full);
119
+ --m-font-sans:
120
+ -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
121
+ Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
122
+ "Segoe UI Symbol", "Noto Color Emoji";
123
+ --m-motion-fast: 150ms;
124
+ --m-motion-normal: 250ms;
125
+ --m-motion-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
126
+ --m-motion-enter: 200ms;
127
+ --m-motion-exit: 150ms;
128
+ --m-motion-distance: 0.5rem;
129
+ --m-motion-spin: 1s;
130
+ --m-motion-spin-dash: 1.5s;
131
+ --m-motion-spin-fast: 0.8s;
132
+ --m-motion-spin-medium: 0.7s;
133
+ --m-motion-skeleton: 1.4s;
134
+ --m-motion-pulse: 1.2s;
135
+ --m-motion-scrollbar-show: 340ms;
136
+ --m-motion-scrollbar-hide: 120ms;
137
+ --m-motion-loading-aurora: 3s;
138
+ --m-motion-loading-bounce: 0.6s;
139
+ --m-motion-loading-pulse: 1.8s;
140
+ --m-motion-loading-stardust: 1.6s;
141
+ --m-motion-loading-circular-rotate: 2s;
142
+ --m-dataview-grid-min: 10rem;
143
+ --m-tree-indent: 0.7rem;
144
+ --m-tree-indent-padding: var(--m-space-3);
145
+ --m-layout-trigger-bar-height: 4.5rem;
146
+ --m-layout-trigger-bar-offset: 1.75rem;
147
+ --m-layout-trigger-bar-width: 2rem;
148
+ --m-layout-trigger-bar-top: 2.25rem;
149
+ --m-timeline-event-min-height: 4rem;
150
+ --m-timeline-marker-size: 1.5rem;
151
+ --m-tag-font-size-small: var(--m-font-size-xs);
152
+ --m-slider-tooltip-offset: 1.5rem;
153
+ --m-slider-tooltip-padding-block: 0.15rem;
154
+ --m-slider-tooltip-padding-inline: 0.4rem;
155
+ --m-rating-star-size-small: 1rem;
156
+ --m-rating-star-size-medium: 1.25rem;
157
+ --m-rating-star-size-large: 1.5rem;
158
+ --m-rating-star-padding: 0.15rem;
159
+ --m-slider-marks-inset: 0.9rem;
160
+ --m-slider-marks-side: 0.5rem;
161
+ --m-stepper-connector-color: var(--m-color-border);
162
+
163
+ /* Table */
164
+ --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
165
+ --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 3.5%, var(--m-color-surface));
166
+ --m-table-border-color: var(--m-color-split);
167
+ --m-table-header-bg: var(--m-color-fill-light);
168
+ --m-table-header-text: var(--m-color-text);
169
+ --m-table-text: var(--m-color-text);
170
+ --m-table-row-bg: var(--m-color-surface);
171
+ --m-table-row-hover-bg: var(--m-color-fill-light);
172
+ --m-table-row-striped-bg: var(--m-color-fill-lighter);
173
+ --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 10%, var(--m-color-surface));
174
+ --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
175
+ --m-table-expanded-bg: var(--m-color-fill-lighter);
176
+ --m-table-font-size: var(--m-font-size-md);
177
+ --m-table-row-height: 40px;
178
+ --m-table-cell-line-height: 23px;
179
+ --m-table-cell-padding-inline: 12px;
180
+ }
181
+
182
+ :root[data-m-motion="reduced"] {
183
+ --m-motion-fast: 80ms;
184
+ --m-motion-normal: 120ms;
185
+ --m-motion-enter: 100ms;
186
+ --m-motion-exit: 80ms;
187
+ --m-motion-distance: 0;
188
+ /* Looping indicators: keep a short pulse so state is still perceptible */
189
+ --m-motion-spin: 0ms;
190
+ --m-motion-spin-dash: 0ms;
191
+ --m-motion-spin-fast: 0ms;
192
+ --m-motion-spin-medium: 0ms;
193
+ --m-motion-skeleton: 0ms;
194
+ --m-motion-pulse: 0ms;
195
+ --m-motion-scrollbar-show: 160ms;
196
+ --m-motion-scrollbar-hide: 80ms;
197
+ --m-motion-loading-aurora: 0ms;
198
+ --m-motion-loading-bounce: 0ms;
199
+ --m-motion-loading-pulse: 0ms;
200
+ --m-motion-loading-stardust: 0ms;
201
+ --m-motion-loading-circular-rotate: 0ms;
202
+ }
203
+
204
+ :root[data-m-motion="none"] {
205
+ --m-motion-fast: 0ms;
206
+ --m-motion-normal: 0ms;
207
+ --m-motion-enter: 0ms;
208
+ --m-motion-exit: 0ms;
209
+ --m-motion-distance: 0;
210
+ --m-motion-spin: 0ms;
211
+ --m-motion-spin-dash: 0ms;
212
+ --m-motion-spin-fast: 0ms;
213
+ --m-motion-spin-medium: 0ms;
214
+ --m-motion-skeleton: 0ms;
215
+ --m-motion-pulse: 0ms;
216
+ --m-motion-scrollbar-show: 0ms;
217
+ --m-motion-scrollbar-hide: 0ms;
218
+ --m-motion-loading-aurora: 0ms;
219
+ --m-motion-loading-bounce: 0ms;
220
+ --m-motion-loading-pulse: 0ms;
221
+ --m-motion-loading-stardust: 0ms;
222
+ --m-motion-loading-circular-rotate: 0ms;
223
+ }
224
+
225
+ /*
226
+ * Global motion policy (complements per-component rules):
227
+ * - `reduced`: keep short paint transitions; stop loops
228
+ * and layout/transform size animation.
229
+ * - `none`: zero all transition/animation durations.
230
+ */
231
+
232
+ [data-m-motion="reduced"] *,
233
+ [data-m-motion="reduced"] *::before,
234
+ [data-m-motion="reduced"] *::after {
235
+ animation-duration: 0.01ms !important;
236
+ animation-iteration-count: 1 !important;
237
+ transition-property: background-color, border-color, color, opacity, box-shadow, outline,
238
+ fill, stroke, stroke-dashoffset !important;
239
+ }
240
+
241
+ [data-m-motion="none"] *,
242
+ [data-m-motion="none"] *::before,
243
+ [data-m-motion="none"] *::after {
244
+ animation-duration: 0.01ms !important;
245
+ animation-iteration-count: 1 !important;
246
+ transition-duration: 0.01ms !important;
247
+ scroll-behavior: auto !important;
248
+ }
249
+
250
+ /* Off-screen looping indicators (usePauseOffscreen → data-m-anim-paused) */
251
+ [data-m-anim-paused],
252
+ [data-m-anim-paused]::before,
253
+ [data-m-anim-paused]::after,
254
+ [data-m-anim-paused] *,
255
+ [data-m-anim-paused] *::before,
256
+ [data-m-anim-paused] *::after {
257
+ animation-play-state: paused !important;
258
+ }
259
+
260
+ /* Global density: scales spacing + control heights (WD tokens) */
261
+ :root,
262
+ [data-m-density="comfortable"] {
263
+ --m-density-scale: 1;
264
+ --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-2));
265
+ --m-checkbox-control-size: 1.125rem;
266
+ }
267
+
268
+ [data-m-density="compact"] {
269
+ --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-1));
270
+ --m-control-affix-padding: 2.15rem;
271
+ --m-control-affix-gap: 2rem;
272
+ --m-checkbox-control-size: 1rem;
273
+ --m-nav-rail-width: 15rem;
274
+ --m-nav-rail-collapsed-width: 4rem;
275
+ --m-space-1: 0.2rem;
276
+ --m-space-2: 0.4rem;
277
+ --m-space-3: 0.6rem;
278
+ --m-space-4: 0.85rem;
279
+ --m-space-5: 1.05rem;
280
+ --m-space-6: 1.25rem;
281
+ --m-space-8: 1.7rem;
282
+ --m-control-height-small: 24px;
283
+ --m-control-height-medium: 28px;
284
+ --m-control-height-large: 34px;
285
+ --m-control-font-small: 13px;
286
+ --m-control-font-medium: 13px;
287
+ --m-control-font-large: 14px;
288
+ --m-control-padding-x-small: 8px;
289
+ --m-control-padding-x-medium: 10px;
290
+ --m-control-padding-x-large: 12px;
291
+ --m-table-row-height: 36px;
292
+ --m-table-cell-line-height: 20px;
293
+ --m-table-cell-padding-inline: 10px;
294
+ --m-table-font-size: var(--m-font-size-sm);
295
+ }
296
+
297
+ [data-m-density="spacious"] {
298
+ --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-3));
299
+ --m-control-affix-padding: 2.85rem;
300
+ --m-control-affix-gap: 2.65rem;
301
+ --m-checkbox-control-size: 1.25rem;
302
+ --m-nav-rail-width: 18rem;
303
+ --m-nav-rail-collapsed-width: 5.5rem;
304
+ --m-space-1: 0.3rem;
305
+ --m-space-2: 0.6rem;
306
+ --m-space-3: 0.9rem;
307
+ --m-space-4: 1.15rem;
308
+ --m-space-5: 1.45rem;
309
+ --m-space-6: 1.75rem;
310
+ --m-space-8: 2.35rem;
311
+ --m-control-height-small: 32px;
312
+ --m-control-height-medium: 40px;
313
+ --m-control-height-large: 46px;
314
+ --m-control-font-small: 14px;
315
+ --m-control-font-medium: 15px;
316
+ --m-control-font-large: 16px;
317
+ --m-control-padding-x-small: 12px;
318
+ --m-control-padding-x-medium: 14px;
319
+ --m-control-padding-x-large: 16px;
320
+ --m-table-row-height: 48px;
321
+ --m-table-cell-line-height: 26px;
322
+ --m-table-cell-padding-inline: 16px;
323
+ --m-table-font-size: 1rem;
324
+ }
325
+
326
+ [data-m-density="compact"] .m-layout-header {
327
+ --m-layout-header-height: 3rem;
328
+ }
329
+
330
+ [data-m-density="compact"] .m-layout-footer {
331
+ --m-layout-footer-height: 2.5rem;
332
+ }
333
+
334
+ [data-m-density="spacious"] .m-layout-header {
335
+ --m-layout-header-height: 4rem;
336
+ }
337
+
338
+ [data-m-density="spacious"] .m-layout-footer {
339
+ --m-layout-footer-height: 3.5rem;
340
+ }
341
+
342
+ [data-theme="dark"] {
343
+ /* Dark theme solids on dark surfaces (readable mid tones) */
344
+ --m-color-primary: #1668dc;
345
+ --m-color-primary-hover: #3c89e8;
346
+ --m-color-primary-active: #1554ad;
347
+ --m-color-surface: #141414;
348
+ --m-color-text: rgba(255, 255, 255, 0.85);
349
+ --m-color-text-muted: rgba(255, 255, 255, 0.45);
350
+ --m-color-text-disabled: rgba(255, 255, 255, 0.3);
351
+ --m-color-bg-disabled: rgba(255, 255, 255, 0.08);
352
+ --m-color-border: #424242;
353
+ --m-color-split: #303030;
354
+ --m-color-focus-ring: #3c89e8;
355
+ /* Dark: getAlphaColor(color*Bg, colorBgContainer) */
356
+ --m-color-control-outline: rgba(23, 117, 249, 0.31);
357
+ --m-color-control-outline-danger: rgba(249, 75, 78, 0.31);
358
+ --m-color-control-outline-warning: rgba(250, 173, 20, 0.3);
359
+ --m-focus-shadow: 0 0 0 var(--m-focus-outline-width) var(--m-color-control-outline);
360
+ --m-focus-shadow-danger: 0 0 0 var(--m-focus-outline-width)
361
+ var(--m-color-control-outline-danger);
362
+ --m-focus-shadow-warning: 0 0 0 var(--m-focus-outline-width)
363
+ var(--m-color-control-outline-warning);
364
+ /* Mid solids: keep ≥~4.5:1 with --m-color-on-emphasis on dark surfaces */
365
+ --m-color-success: #49aa19;
366
+ --m-color-info: #1668dc;
367
+ --m-color-warning: #d89614;
368
+ --m-color-warn: var(--m-color-warning);
369
+ --m-color-help: #7e22ce;
370
+ --m-color-danger: #dc4446;
371
+ --m-color-contrast: rgba(255, 255, 255, 0.85);
372
+ --m-color-contrast-fg: #141414;
373
+ --m-color-contrast-hover: #f5f5f5;
374
+ --m-color-contrast-active: #d9d9d9;
375
+ --m-overlay-scrim: rgb(0 0 0 / 0.65);
376
+ --m-shadow-sm:
377
+ 0 1px 2px 0 rgb(0 0 0 / 0.16), 0 1px 6px -1px rgb(0 0 0 / 0.12),
378
+ 0 2px 4px 0 rgb(0 0 0 / 0.08);
379
+ --m-shadow-md:
380
+ 0 6px 16px 0 rgb(0 0 0 / 0.32), 0 3px 6px -4px rgb(0 0 0 / 0.48),
381
+ 0 9px 28px 8px rgb(0 0 0 / 0.2);
382
+ --m-shadow-lg:
383
+ 0 6px 16px 0 rgb(0 0 0 / 0.32), 0 3px 6px -4px rgb(0 0 0 / 0.48),
384
+ 0 9px 28px 8px rgb(0 0 0 / 0.2);
385
+ --m-shadow-raised:
386
+ 0 1px 2px -2px rgb(0 0 0 / 0.64), 0 3px 6px 0 rgb(0 0 0 / 0.48),
387
+ 0 5px 12px 4px rgb(0 0 0 / 0.36);
388
+ --m-shadow-sticky: 6px 0 16px -8px rgb(0 0 0 / 0.45);
389
+ --m-shadow-sticky-end: -6px 0 16px -8px rgb(0 0 0 / 0.45);
390
+
391
+ --m-table-border-color: var(--m-color-split);
392
+ --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 10%, var(--m-color-surface));
393
+ --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
394
+ --m-table-header-bg: var(--m-color-fill-light);
395
+ --m-table-row-bg: var(--m-color-surface);
396
+ --m-table-row-hover-bg: color-mix(in srgb, var(--m-color-text) 8%, var(--m-color-surface));
397
+ --m-table-row-striped-bg: var(--m-color-fill-lighter);
398
+ --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 16%, var(--m-color-surface));
399
+ --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 20%, var(--m-color-surface));
400
+ --m-table-expanded-bg: var(--m-color-fill-lighter);
401
+ }
2243
402
 
2244
- .m-slide-right-enter-from .m-dialog-zoom,
2245
- .m-slide-right-leave-to .m-dialog-zoom {
2246
- opacity: 0;
2247
- transform: translateX(calc(var(--m-motion-distance) * -1));
2248
- }
403
+ /* Shared tokens consumption, type, focus, and mixed selectors. */
404
+
405
+ :root {
406
+ /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
407
+ --m-menu-min-width: 12rem;
408
+ }
409
+
410
+ .m-button,
411
+ .m-input,
412
+ .m-card,
413
+ .m-dialog,
414
+ .m-drawer,
415
+ .m-popover,
416
+ .m-accordion,
417
+ .m-scrollbar,
418
+ .m-panel,
419
+ .m-fieldset,
420
+ .m-flex,
421
+ .m-space,
422
+ .m-grid,
423
+ .m-layout,
424
+ .m-layout-header,
425
+ .m-layout-footer,
426
+ .m-layout-sider,
427
+ .m-splitter,
428
+ .m-stepper,
429
+ .m-toolbar,
430
+ .m-page-content,
431
+ .m-page-header,
432
+ .m-page-toolbar,
433
+ .m-menu,
434
+ .m-menubar,
435
+ .m-contextmenu,
436
+ .m-tieredmenu,
437
+ .m-dropdown,
438
+ .m-breadcrumb,
439
+ .m-tabs,
440
+ .m-datepicker,
441
+ .m-listbox,
442
+ .m-togglebutton,
443
+ .m-select,
444
+ .m-textarea,
445
+ .m-selectbutton,
446
+ .m-inputotp,
447
+ .m-knob,
448
+ .m-autocomplete,
449
+ .m-splitbutton,
450
+ .m-tree,
451
+ .m-timeline,
452
+ .m-dataview,
453
+ .m-confirmpopup,
454
+ .m-scrolltop,
455
+ .m-blockui,
456
+ .m-inplace,
457
+ .m-message,
458
+ .m-toast,
459
+ .m-tooltip,
460
+ .m-empty,
461
+ .m-result,
462
+ .m-progress-spinner,
463
+ .m-cascadeselect,
464
+ .m-treeselect,
465
+ .m-inputcolor,
466
+ .m-inputtags,
467
+ .m-label,
468
+ .m-speeddial,
469
+ .m-orderlist,
470
+ .m-picklist,
471
+ .m-virtualscroller,
472
+ .m-megamenu,
473
+ .m-dock,
474
+ .m-sidebar,
475
+ .m-commandmenu,
476
+ .m-fileupload,
477
+ .m-carousel,
478
+ .m-gallery,
479
+ .m-metergroup,
480
+ .m-fluid,
481
+ .m-terminal {
482
+ font-family: var(--m-font-sans);
483
+ box-sizing: border-box;
484
+ }
485
+
486
+ .m-input:disabled,
487
+ .m-textarea:disabled,
488
+ .m-password__input:disabled,
489
+ .m-inputnumber__input:disabled,
490
+ .m-inputotp__input:disabled,
491
+ .m-inputcolor__text:disabled,
492
+ .m-inputcolor__swatch:disabled,
493
+ .m-inputtags--disabled {
494
+ background-color: var(--m-color-bg-disabled);
495
+ color: var(--m-color-text-disabled);
496
+ cursor: not-allowed;
497
+ opacity: 1;
498
+ }
499
+
500
+ .m-input-field__control--prefixed .m-input:disabled,
501
+ .m-input-field__control--suffixed .m-input:disabled,
502
+ .m-input-field__control--clearable .m-input:disabled,
503
+ .m-password--disabled .m-password__input,
504
+ .m-inputnumber--disabled .m-inputnumber__input,
505
+ .m-datepicker--disabled .m-datepicker__input,
506
+ .m-icon-field--anchored .m-input:disabled,
507
+ .m-icon-field--anchored .m-textarea:disabled {
508
+ opacity: 1;
509
+ }
510
+
511
+ .m-input::placeholder,
512
+ .m-textarea::placeholder,
513
+ .m-password__input::placeholder,
514
+ .m-inputnumber__input::placeholder,
515
+ .m-inputtags__input::placeholder,
516
+ .m-inputcolor__text::placeholder {
517
+ color: var(--m-color-text-muted);
518
+ opacity: 1;
519
+ }
520
+
521
+ .m-input-field__meta,
522
+ .m-textarea-field__meta,
523
+ .m-password-field__meta {
524
+ align-items: baseline;
525
+ display: flex;
526
+ gap: var(--m-space-2);
527
+ justify-content: space-between;
528
+ }
529
+
530
+ .m-input-field__meta:not(:has(.m-input-field__help)),
531
+ .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
532
+ .m-password-field__meta:not(:has(.m-password__feedback)) {
533
+ justify-content: flex-end;
534
+ }
535
+
536
+ .m-input-field__count,
537
+ .m-textarea-field__count,
538
+ .m-password-field__count {
539
+ color: var(--m-color-text-muted);
540
+ flex: 0 0 auto;
541
+ font-size: var(--m-font-size-xs);
542
+ margin-left: auto;
543
+ }
544
+
545
+ .m-dropdown__item--parent {
546
+ align-items: center;
547
+ display: flex;
548
+ justify-content: space-between;
549
+ width: 100%;
550
+ }
551
+
552
+ .m-dropdown__icon,
553
+ .m-dropdown__caret,
554
+ .m-menu__icon,
555
+ .m-menubar__icon {
556
+ flex-shrink: 0;
557
+ }
558
+
559
+ .m-dropdown__submenu-wrap {
560
+ position: relative;
561
+ }
562
+
563
+ .m-dropdown__submenu {
564
+ --m-dropdown-submenu-max-height: min(18rem, 45vh);
565
+ background: var(--m-color-surface);
566
+ border: var(--m-border-width) solid var(--m-color-border);
567
+ border-radius: var(--m-radius-md);
568
+ box-shadow: var(--m-shadow-md);
569
+ max-height: var(--m-dropdown-submenu-max-height);
570
+ max-width: calc(100vw - 2 * var(--m-space-4));
571
+ min-width: 10rem;
572
+ overflow: hidden;
573
+ padding: var(--m-space-1);
574
+ /* Same as .m-dropdown__menu: size to content instead of being clamped
575
+ by the space left of the anchor in the viewport. */
576
+ width: max-content;
577
+ }
578
+
579
+ .m-dropdown__submenu--teleported {
580
+ position: fixed;
581
+ z-index: var(--m-z-dropdown);
582
+ }
583
+
584
+ .m-dropdown__submenu-scroll {
585
+ max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
586
+ min-height: 0;
587
+ }
588
+
589
+ .m-dropdown__submenu-view {
590
+ display: grid;
591
+ gap: var(--m-space-1);
592
+ }
593
+
594
+ .m-fade-enter-active,
595
+ .m-fade-leave-active {
596
+ transition: opacity var(--m-motion-exit) var(--m-motion-ease);
597
+ }
598
+
599
+ .m-fade-enter-from,
600
+ .m-fade-leave-to {
601
+ opacity: 0;
602
+ }
603
+
604
+ .m-scale-fade-enter-active {
605
+ transition:
606
+ opacity var(--m-motion-enter) var(--m-motion-ease),
607
+ transform var(--m-motion-enter) var(--m-motion-ease);
608
+ }
609
+
610
+ .m-scale-fade-leave-active {
611
+ transition:
612
+ opacity var(--m-motion-exit) var(--m-motion-ease),
613
+ transform var(--m-motion-exit) var(--m-motion-ease);
614
+ }
615
+
616
+ .m-scale-fade-enter-from,
617
+ .m-scale-fade-leave-to {
618
+ opacity: 0;
619
+ transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
620
+ }
621
+
622
+ .m-slide-fade-enter-active {
623
+ transition:
624
+ opacity var(--m-motion-enter) var(--m-motion-ease),
625
+ transform var(--m-motion-enter) var(--m-motion-ease);
626
+ }
627
+
628
+ .m-slide-fade-leave-active {
629
+ transition:
630
+ opacity var(--m-motion-exit) var(--m-motion-ease),
631
+ transform var(--m-motion-exit) var(--m-motion-ease);
632
+ }
633
+
634
+ .m-slide-fade-enter-from,
635
+ .m-slide-fade-leave-to {
636
+ opacity: 0;
637
+ transform: translateY(calc(var(--m-motion-distance) * -1));
638
+ }
639
+
640
+ /* Generic center zoom (opacity + scale on the transitioning root) */
641
+ .m-zoom-enter-active {
642
+ transition:
643
+ opacity var(--m-motion-enter) var(--m-motion-ease),
644
+ transform var(--m-motion-enter) var(--m-motion-ease);
645
+ }
646
+
647
+ .m-zoom-leave-active {
648
+ transition:
649
+ opacity var(--m-motion-exit) var(--m-motion-ease),
650
+ transform var(--m-motion-exit) var(--m-motion-ease);
651
+ }
652
+
653
+ .m-zoom-enter-from,
654
+ .m-zoom-leave-to {
655
+ opacity: 0;
656
+ transform: scale(0.95);
657
+ }
658
+
659
+ .m-slide-up-enter-active,
660
+ .m-slide-down-enter-active,
661
+ .m-slide-left-enter-active,
662
+ .m-slide-right-enter-active {
663
+ transition:
664
+ opacity var(--m-motion-enter) var(--m-motion-ease),
665
+ transform var(--m-motion-enter) var(--m-motion-ease);
666
+ }
667
+
668
+ .m-slide-up-leave-active,
669
+ .m-slide-down-leave-active,
670
+ .m-slide-left-leave-active,
671
+ .m-slide-right-leave-active {
672
+ transition:
673
+ opacity var(--m-motion-exit) var(--m-motion-ease),
674
+ transform var(--m-motion-exit) var(--m-motion-ease);
675
+ }
676
+
677
+ .m-slide-up-enter-from,
678
+ .m-slide-up-leave-to {
679
+ opacity: 0;
680
+ transform: translateY(var(--m-motion-distance));
681
+ }
682
+
683
+ .m-slide-down-enter-from,
684
+ .m-slide-down-leave-to {
685
+ opacity: 0;
686
+ transform: translateY(calc(var(--m-motion-distance) * -1));
687
+ }
688
+
689
+ .m-slide-left-enter-from,
690
+ .m-slide-left-leave-to {
691
+ opacity: 0;
692
+ transform: translateX(var(--m-motion-distance));
693
+ }
694
+
695
+ .m-slide-right-enter-from,
696
+ .m-slide-right-leave-to {
697
+ opacity: 0;
698
+ transform: translateX(calc(var(--m-motion-distance) * -1));
699
+ }
700
+
701
+ [data-m-motion="reduced"] .m-fade-enter-active,
702
+ [data-m-motion="reduced"] .m-fade-leave-active,
703
+ [data-m-motion="reduced"] .m-scale-fade-enter-active,
704
+ [data-m-motion="reduced"] .m-scale-fade-leave-active,
705
+ [data-m-motion="reduced"] .m-slide-fade-enter-active,
706
+ [data-m-motion="reduced"] .m-slide-fade-leave-active,
707
+ [data-m-motion="reduced"] .m-zoom-enter-active,
708
+ [data-m-motion="reduced"] .m-zoom-leave-active,
709
+ [data-m-motion="reduced"] .m-slide-up-enter-active,
710
+ [data-m-motion="reduced"] .m-slide-up-leave-active,
711
+ [data-m-motion="reduced"] .m-slide-down-enter-active,
712
+ [data-m-motion="reduced"] .m-slide-down-leave-active,
713
+ [data-m-motion="reduced"] .m-slide-left-enter-active,
714
+ [data-m-motion="reduced"] .m-slide-left-leave-active,
715
+ [data-m-motion="reduced"] .m-slide-right-enter-active,
716
+ [data-m-motion="reduced"] .m-slide-right-leave-active,
717
+ [data-m-motion="none"] .m-fade-enter-active,
718
+ [data-m-motion="none"] .m-fade-leave-active,
719
+ [data-m-motion="none"] .m-scale-fade-enter-active,
720
+ [data-m-motion="none"] .m-scale-fade-leave-active,
721
+ [data-m-motion="none"] .m-slide-fade-enter-active,
722
+ [data-m-motion="none"] .m-slide-fade-leave-active,
723
+ [data-m-motion="none"] .m-zoom-enter-active,
724
+ [data-m-motion="none"] .m-zoom-leave-active,
725
+ [data-m-motion="none"] .m-slide-up-enter-active,
726
+ [data-m-motion="none"] .m-slide-up-leave-active,
727
+ [data-m-motion="none"] .m-slide-down-enter-active,
728
+ [data-m-motion="none"] .m-slide-down-leave-active,
729
+ [data-m-motion="none"] .m-slide-left-enter-active,
730
+ [data-m-motion="none"] .m-slide-left-leave-active,
731
+ [data-m-motion="none"] .m-slide-right-enter-active,
732
+ [data-m-motion="none"] .m-slide-right-leave-active {
733
+ transition: none;
734
+ }
735
+
736
+ [data-m-motion="reduced"] .m-scale-fade-enter-from,
737
+ [data-m-motion="reduced"] .m-scale-fade-leave-to,
738
+ [data-m-motion="reduced"] .m-slide-fade-enter-from,
739
+ [data-m-motion="reduced"] .m-slide-fade-leave-to,
740
+ [data-m-motion="reduced"] .m-zoom-enter-from,
741
+ [data-m-motion="reduced"] .m-zoom-leave-to,
742
+ [data-m-motion="reduced"] .m-slide-up-enter-from,
743
+ [data-m-motion="reduced"] .m-slide-up-leave-to,
744
+ [data-m-motion="reduced"] .m-slide-down-enter-from,
745
+ [data-m-motion="reduced"] .m-slide-down-leave-to,
746
+ [data-m-motion="reduced"] .m-slide-left-enter-from,
747
+ [data-m-motion="reduced"] .m-slide-left-leave-to,
748
+ [data-m-motion="reduced"] .m-slide-right-enter-from,
749
+ [data-m-motion="reduced"] .m-slide-right-leave-to,
750
+ [data-m-motion="none"] .m-scale-fade-enter-from,
751
+ [data-m-motion="none"] .m-scale-fade-leave-to,
752
+ [data-m-motion="none"] .m-slide-fade-enter-from,
753
+ [data-m-motion="none"] .m-slide-fade-leave-to,
754
+ [data-m-motion="none"] .m-zoom-enter-from,
755
+ [data-m-motion="none"] .m-zoom-leave-to,
756
+ [data-m-motion="none"] .m-slide-up-enter-from,
757
+ [data-m-motion="none"] .m-slide-up-leave-to,
758
+ [data-m-motion="none"] .m-slide-down-enter-from,
759
+ [data-m-motion="none"] .m-slide-down-leave-to,
760
+ [data-m-motion="none"] .m-slide-left-enter-from,
761
+ [data-m-motion="none"] .m-slide-left-leave-to,
762
+ [data-m-motion="none"] .m-slide-right-enter-from,
763
+ [data-m-motion="none"] .m-slide-right-leave-to {
764
+ transform: none;
765
+ }
766
+
767
+ /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
768
+ @keyframes m-progress-spinner-rotate {
769
+ 100% {
770
+ transform: rotate(360deg);
771
+ }
772
+ }
773
+
774
+ .m-checkbox,
775
+ .m-radio,
776
+ .m-switch {
777
+ align-items: center;
778
+ color: var(--m-color-text);
779
+ cursor: pointer;
780
+ display: inline-flex;
781
+ font-family: var(--m-font-sans);
782
+ gap: var(--m-space-2);
783
+ /* 与输入框圆角保持一致,配合 MScrollbar 使用 */
784
+ position: relative;
785
+ }
786
+
787
+ .m-checkbox--disabled,
788
+ .m-radio--disabled,
789
+ .m-switch--disabled {
790
+ color: var(--m-color-text-disabled);
791
+ cursor: not-allowed;
792
+ opacity: 1;
793
+ }
794
+
795
+ .m-checkbox--invalid .m-checkbox__control,
796
+ .m-radio--invalid .m-radio__control {
797
+ border-color: var(--m-color-danger);
798
+ }
799
+
800
+ .m-checkbox__input,
801
+ .m-radio__input,
802
+ .m-switch__input {
803
+ clip: rect(0, 0, 0, 0);
804
+ clip-path: inset(50%);
805
+ height: 1px;
806
+ margin: -1px;
807
+ overflow: hidden;
808
+ opacity: 0;
809
+ position: absolute;
810
+ white-space: nowrap;
811
+ width: 1px;
812
+ }
813
+
814
+ .m-checkbox__control,
815
+ .m-radio__control {
816
+ align-items: center;
817
+ background: var(--m-color-surface);
818
+ border: var(--m-border-width) solid var(--m-color-border);
819
+ display: inline-flex;
820
+ flex: 0 0 auto;
821
+ height: var(--m-checkbox-control-size, 1.125rem);
822
+ justify-content: center;
823
+ transition:
824
+ background-color var(--m-motion-fast) var(--m-motion-ease),
825
+ border-color var(--m-motion-fast) var(--m-motion-ease),
826
+ box-shadow var(--m-motion-fast) var(--m-motion-ease);
827
+ width: var(--m-checkbox-control-size, 1.125rem);
828
+ }
829
+
830
+ .m-checkbox__input:checked + .m-checkbox__control,
831
+ .m-radio__input:checked + .m-radio__control {
832
+ background: var(--m-color-primary);
833
+ border-color: var(--m-color-primary);
834
+ }
835
+
836
+ .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
837
+ .m-radio:not(.m-radio--disabled):hover .m-radio__control {
838
+ border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
839
+ }
840
+
841
+ .m-checkbox__input:focus-visible + .m-checkbox__control,
842
+ .m-radio__input:focus-visible + .m-radio__control,
843
+ .m-switch__input:focus-visible + .m-switch__track {
844
+ box-shadow: var(--m-focus-shadow);
845
+ outline: none;
846
+ }
847
+
848
+ .m-checkbox__label,
849
+ .m-radio__label,
850
+ .m-switch__label {
851
+ font-size: var(--m-font-size-md);
852
+ }
853
+
854
+ .m-textarea-field,
855
+ .m-select-field {
856
+ display: grid;
857
+ font-family: var(--m-font-sans);
858
+ gap: var(--m-space-2);
859
+ max-width: 100%;
860
+ min-width: var(--m-menu-min-width);
861
+ position: relative;
862
+ width: fit-content;
863
+ }
864
+
865
+ .m-textarea-field--fluid,
866
+ .m-select-field--fluid {
867
+ width: 100%;
868
+ }
869
+
870
+ .m-textarea-field__label,
871
+ .m-select-field__label {
872
+ color: var(--m-color-text);
873
+ font-family: var(--m-font-sans);
874
+ font-size: var(--m-font-size-md);
875
+ font-weight: 500;
876
+ }
877
+
878
+ .m-textarea-field__help,
879
+ .m-select-field__help {
880
+ color: var(--m-color-text-muted);
881
+ font-size: var(--m-font-size-xs);
882
+ }
883
+
884
+ .m-textarea-field__help--invalid,
885
+ .m-select-field__help--invalid {
886
+ color: var(--m-color-danger);
887
+ }
888
+
889
+ .m-textarea,
890
+ .m-select {
891
+ background: var(--m-color-surface);
892
+ border: var(--m-border-width) solid var(--m-color-border);
893
+ border-radius: var(--m-radius-control);
894
+ color: var(--m-color-text);
895
+ font: inherit;
896
+ transition:
897
+ border-color var(--m-motion-fast) var(--m-motion-ease),
898
+ box-shadow var(--m-motion-fast) var(--m-motion-ease),
899
+ background-color var(--m-motion-fast) var(--m-motion-ease);
900
+ width: 100%;
901
+ }
902
+
903
+ .m-textarea--invalid:focus,
904
+ .m-textarea--invalid:focus-visible,
905
+ .m-select--invalid.m-select--open,
906
+ .m-select--invalid:focus,
907
+ .m-select--invalid:focus-visible {
908
+ border-color: var(--m-color-danger);
909
+ box-shadow: var(--m-focus-shadow-danger);
910
+ }
911
+
912
+ .m-textarea:disabled,
913
+ .m-select:disabled,
914
+ .m-select--disabled {
915
+ background-color: var(--m-color-bg-disabled);
916
+ color: var(--m-color-text-disabled);
917
+ cursor: not-allowed;
918
+ opacity: 1;
919
+ }
920
+
921
+ .m-inputgroup > .m-input,
922
+ .m-inputgroup > .m-input-field,
923
+ .m-inputgroup > .m-password-field,
924
+ .m-inputgroup > .m-inputnumber-field {
925
+ flex: 1 1 auto;
926
+ min-width: 0;
927
+ }
928
+
929
+ .m-inputgroup > .m-input-field,
930
+ .m-inputgroup > .m-password-field,
931
+ .m-inputgroup > .m-inputnumber-field {
932
+ display: flex;
933
+ flex-direction: column;
934
+ gap: 0;
935
+ }
936
+
937
+ .m-inputgroup > .m-input,
938
+ .m-inputgroup .m-input,
939
+ .m-inputgroup .m-password,
940
+ .m-inputgroup .m-inputnumber__input-wrap,
941
+ .m-inputgroup .m-input-field__control--prefixed,
942
+ .m-inputgroup .m-input-field__control--suffixed,
943
+ .m-inputgroup .m-input-field__control--clearable {
944
+ border-radius: 0;
945
+ width: 100%;
946
+ }
947
+
948
+ .m-inputgroup > :first-child.m-input,
949
+ .m-inputgroup > :first-child .m-input,
950
+ .m-inputgroup > :first-child .m-password,
951
+ .m-inputgroup > :first-child .m-inputnumber__input-wrap,
952
+ .m-inputgroup > :first-child .m-input-field__control--prefixed,
953
+ .m-inputgroup > :first-child .m-input-field__control--suffixed,
954
+ .m-inputgroup > :first-child .m-input-field__control--clearable,
955
+ .m-inputgroup > :first-child.m-inputgroup-addon {
956
+ border-bottom-left-radius: var(--m-radius-control);
957
+ border-top-left-radius: var(--m-radius-control);
958
+ }
959
+
960
+ .m-inputgroup > :last-child.m-input,
961
+ .m-inputgroup > :last-child .m-input,
962
+ .m-inputgroup > :last-child .m-password,
963
+ .m-inputgroup > :last-child .m-inputnumber__input-wrap,
964
+ .m-inputgroup > :last-child .m-input-field__control--prefixed,
965
+ .m-inputgroup > :last-child .m-input-field__control--suffixed,
966
+ .m-inputgroup > :last-child .m-input-field__control--clearable,
967
+ .m-inputgroup > :last-child.m-inputgroup-addon {
968
+ border-bottom-right-radius: var(--m-radius-control);
969
+ border-top-right-radius: var(--m-radius-control);
970
+ }
971
+
972
+ .m-inputgroup > .m-inputgroup-addon + .m-input,
973
+ .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
974
+ .m-inputgroup > .m-input + .m-inputgroup-addon,
975
+ .m-inputgroup > .m-input-field + .m-inputgroup-addon {
976
+ margin-left: calc(var(--m-border-width) * -1);
977
+ }
978
+
979
+ .m-layout__scrollbar > .m-scrollbar__wrap {
980
+ height: 100%;
981
+ overflow-x: hidden;
982
+ }
983
+
984
+ .m-layout-sider__scrollbar > .m-scrollbar__wrap {
985
+ height: 100%;
986
+ overflow-x: hidden;
987
+ }
988
+
989
+ .m-terminal__scrollbar > .m-scrollbar__wrap {
990
+ height: 100%;
991
+ overflow-x: hidden;
992
+ }
993
+
994
+ .m-scroll-body.m-scrollbar {
995
+ min-height: 0;
996
+ min-width: 0;
997
+ }
998
+
999
+ /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
1000
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
1001
+ width: 100%;
1002
+ }
1003
+
1004
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
1005
+ overflow: auto;
1006
+ }
1007
+
1008
+ .m-orderlist__btn,
1009
+ .m-picklist__btn {
1010
+ align-items: center;
1011
+ background: var(--m-color-surface);
1012
+ border: var(--m-border-width) solid var(--m-color-border);
1013
+ border-radius: var(--m-radius-sm);
1014
+ color: var(--m-color-text);
1015
+ cursor: pointer;
1016
+ display: inline-flex;
1017
+ font: inherit;
1018
+ gap: 0;
1019
+ justify-content: center;
1020
+ min-height: var(--m-control-height-small, 1.75rem);
1021
+ min-width: var(--m-control-affix-size);
1022
+ padding: var(--m-space-1) var(--m-space-2);
1023
+ }
1024
+
1025
+ .m-orderlist__btn:hover:not(:disabled),
1026
+ .m-picklist__btn:hover:not(:disabled) {
1027
+ border-color: var(--m-color-primary);
1028
+ color: var(--m-color-primary);
1029
+ }
1030
+
1031
+ .m-orderlist__btn:disabled,
1032
+ .m-picklist__btn:disabled {
1033
+ cursor: not-allowed;
1034
+ opacity: var(--m-opacity-disabled);
1035
+ }
1036
+
1037
+ .m-orderlist__btn:focus-visible,
1038
+ .m-picklist__btn:focus-visible {
1039
+ border-color: var(--m-color-primary);
1040
+ box-shadow: var(--m-focus-shadow);
1041
+ outline: none;
1042
+ }
1043
+
1044
+ .m-picklist__btn .m-icon + .m-icon {
1045
+ margin-left: -0.35rem;
1046
+ }
1047
+
1048
+ .m-orderlist__scrollbar,
1049
+ .m-picklist__scrollbar {
1050
+ flex: 1;
1051
+ max-height: 16rem;
1052
+ min-height: 12rem;
1053
+ min-width: var(--m-menu-min-width);
1054
+ }
1055
+
1056
+ .m-orderlist__list,
1057
+ .m-picklist__list {
1058
+ background: var(--m-color-surface);
1059
+ border: var(--m-border-width) solid var(--m-color-border);
1060
+ border-radius: var(--m-radius-md);
1061
+ padding: var(--m-space-1);
1062
+ }
1063
+
1064
+ .m-orderlist__options,
1065
+ .m-picklist__options {
1066
+ list-style: none;
1067
+ margin: 0;
1068
+ padding: 0;
1069
+ }
1070
+
1071
+ .m-orderlist__item,
1072
+ .m-picklist__item {
1073
+ border-radius: var(--m-radius-sm);
1074
+ cursor: pointer;
1075
+ padding: var(--m-space-2) var(--m-space-3);
1076
+ }
1077
+
1078
+ .m-orderlist__item:hover,
1079
+ .m-picklist__item:hover {
1080
+ background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
1081
+ }
1082
+
1083
+ .m-orderlist__item:focus-visible,
1084
+ .m-picklist__item:focus-visible {
1085
+ box-shadow: var(--m-focus-shadow);
1086
+ outline: none;
1087
+ }
1088
+
1089
+ .m-orderlist__item--selected,
1090
+ .m-picklist__item--selected {
1091
+ background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
1092
+ color: var(--m-color-primary);
1093
+ font-weight: 500;
1094
+ }
1095
+
1096
+ .m-carousel__nav,
1097
+ .m-gallery__nav {
1098
+ background: var(--m-color-surface);
1099
+ border: var(--m-border-width) solid var(--m-color-border);
1100
+ border-radius: var(--m-radius-full, 999px);
1101
+ color: var(--m-color-text);
1102
+ cursor: pointer;
1103
+ flex: 0 0 auto;
1104
+ font: inherit;
1105
+ height: var(--m-control-affix-size);
1106
+ width: var(--m-control-affix-size);
1107
+ }
1108
+
1109
+ .m-carousel__nav:disabled,
1110
+ .m-gallery__nav:disabled {
1111
+ cursor: not-allowed;
1112
+ opacity: var(--m-opacity-disabled);
1113
+ }
1114
+
1115
+ /* Shared hover/focus for remaining form triggers */
1116
+ .m-inputotp__input:hover:not(:disabled):not(:focus),
1117
+ .m-cascadeselect:not(.m-cascadeselect--open)
1118
+ .m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1119
+ .m-treeselect:not(.m-treeselect--open)
1120
+ .m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1121
+ .m-inputcolor__text:hover:not(:disabled):not(:focus),
1122
+ .m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
1123
+ .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
1124
+ .m-inplace__display:hover:not(:focus-visible) {
1125
+ border-color: var(--m-color-primary-hover);
1126
+ }
1127
+
1128
+ .m-inputotp__input:focus,
1129
+ .m-inputotp__input:focus-visible,
1130
+ .m-cascadeselect--open .m-cascadeselect__trigger,
1131
+ .m-cascadeselect__trigger:focus,
1132
+ .m-cascadeselect__trigger:focus-visible,
1133
+ .m-treeselect--open .m-treeselect__trigger,
1134
+ .m-treeselect__trigger:focus,
1135
+ .m-treeselect__trigger:focus-visible,
1136
+ .m-inputcolor__text:focus,
1137
+ .m-inputcolor__text:focus-visible,
1138
+ .m-inputtags:focus-within,
1139
+ .m-togglebutton:focus-visible,
1140
+ .m-selectbutton__button:focus-visible,
1141
+ .m-splitbutton__main:focus-visible,
1142
+ .m-splitbutton__trigger:focus-visible,
1143
+ .m-inplace__display:focus-visible,
1144
+ .m-pagination__button:focus-visible {
1145
+ border-color: var(--m-color-primary);
1146
+ box-shadow: var(--m-focus-shadow);
1147
+ outline: none;
1148
+ }
1149
+
1150
+ .m-inputotp--invalid .m-inputotp__input:focus,
1151
+ .m-inputotp--invalid .m-inputotp__input:focus-visible,
1152
+ .m-inputtags--invalid:focus-within,
1153
+ .m-inputcolor--invalid .m-inputcolor__text:focus,
1154
+ .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1155
+ border-color: var(--m-color-danger);
1156
+ box-shadow: var(--m-focus-shadow-danger);
1157
+ }
1158
+
1159
+ .m-checkbox-group,
1160
+ .m-radio-group {
1161
+ display: flex;
1162
+ flex-wrap: wrap;
1163
+ gap: var(--m-space-3);
1164
+ }
1165
+
1166
+ .m-checkbox--small .m-checkbox__control,
1167
+ .m-radio--small .m-radio__control {
1168
+ height: 0.95rem;
1169
+ width: 0.95rem;
1170
+ }
1171
+
1172
+ .m-checkbox--large .m-checkbox__control,
1173
+ .m-radio--large .m-radio__control {
1174
+ height: 1.35rem;
1175
+ width: 1.35rem;
1176
+ }
1177
+
1178
+ .m-inputnumber__clear,
1179
+ .m-autocomplete__clear {
1180
+ background: transparent;
1181
+ border: 0;
1182
+ color: var(--m-color-text-muted);
1183
+ cursor: pointer;
1184
+ font: inherit;
1185
+ line-height: 1;
1186
+ }
1187
+
1188
+ [data-m-motion="none"] *,
1189
+ [data-m-motion="none"] *::before,
1190
+ [data-m-motion="none"] *::after {
1191
+ animation-duration: 0.01ms !important;
1192
+ animation-iteration-count: 1 !important;
1193
+ scroll-behavior: auto !important;
1194
+ transition-duration: 0.01ms !important;
1195
+ }
1196
+
1197
+ [data-m-motion="reduced"] .m-progress-spinner,
1198
+ [data-m-motion="reduced"] .m-progress-spinner__circle,
1199
+ [data-m-motion="reduced"] .m-skeleton,
1200
+ [data-m-motion="reduced"] .m-badge--processing,
1201
+ [data-m-motion="reduced"] .m-icon--spin,
1202
+ [data-m-motion="reduced"] .m-button__spinner,
1203
+ [data-m-motion="reduced"] .m-select__loading-icon,
1204
+ [data-m-motion="reduced"] .m-switch__loading-icon {
1205
+ animation: none !important;
1206
+ }
2249
1207
 
2250
- [data-m-motion="reduced"] .m-dialog-enter-active,
2251
- [data-m-motion="reduced"] .m-dialog-leave-active,
2252
- [data-m-motion="reduced"] .m-dialog-enter-active .m-dialog-zoom,
2253
- [data-m-motion="reduced"] .m-dialog-leave-active .m-dialog-zoom,
2254
- [data-m-motion="reduced"] .m-fade-enter-active .m-dialog-zoom,
2255
- [data-m-motion="reduced"] .m-fade-leave-active .m-dialog-zoom,
2256
- [data-m-motion="reduced"] .m-scale-fade-enter-active .m-dialog-zoom,
2257
- [data-m-motion="reduced"] .m-scale-fade-leave-active .m-dialog-zoom,
2258
- [data-m-motion="reduced"] .m-slide-fade-enter-active .m-dialog-zoom,
2259
- [data-m-motion="reduced"] .m-slide-fade-leave-active .m-dialog-zoom,
2260
- [data-m-motion="reduced"] .m-zoom-enter-active .m-dialog-zoom,
2261
- [data-m-motion="reduced"] .m-zoom-leave-active .m-dialog-zoom,
2262
- [data-m-motion="reduced"] .m-slide-up-enter-active .m-dialog-zoom,
2263
- [data-m-motion="reduced"] .m-slide-up-leave-active .m-dialog-zoom,
2264
- [data-m-motion="reduced"] .m-slide-down-enter-active .m-dialog-zoom,
2265
- [data-m-motion="reduced"] .m-slide-down-leave-active .m-dialog-zoom,
2266
- [data-m-motion="reduced"] .m-slide-left-enter-active .m-dialog-zoom,
2267
- [data-m-motion="reduced"] .m-slide-left-leave-active .m-dialog-zoom,
2268
- [data-m-motion="reduced"] .m-slide-right-enter-active .m-dialog-zoom,
2269
- [data-m-motion="reduced"] .m-slide-right-leave-active .m-dialog-zoom,
2270
- [data-m-motion="none"] .m-dialog-enter-active,
2271
- [data-m-motion="none"] .m-dialog-leave-active,
2272
- [data-m-motion="none"] .m-dialog-enter-active .m-dialog-zoom,
2273
- [data-m-motion="none"] .m-dialog-leave-active .m-dialog-zoom,
2274
- [data-m-motion="none"] .m-fade-enter-active .m-dialog-zoom,
2275
- [data-m-motion="none"] .m-fade-leave-active .m-dialog-zoom,
2276
- [data-m-motion="none"] .m-scale-fade-enter-active .m-dialog-zoom,
2277
- [data-m-motion="none"] .m-scale-fade-leave-active .m-dialog-zoom,
2278
- [data-m-motion="none"] .m-slide-fade-enter-active .m-dialog-zoom,
2279
- [data-m-motion="none"] .m-slide-fade-leave-active .m-dialog-zoom,
2280
- [data-m-motion="none"] .m-zoom-enter-active .m-dialog-zoom,
2281
- [data-m-motion="none"] .m-zoom-leave-active .m-dialog-zoom,
2282
- [data-m-motion="none"] .m-slide-up-enter-active .m-dialog-zoom,
2283
- [data-m-motion="none"] .m-slide-up-leave-active .m-dialog-zoom,
2284
- [data-m-motion="none"] .m-slide-down-enter-active .m-dialog-zoom,
2285
- [data-m-motion="none"] .m-slide-down-leave-active .m-dialog-zoom,
2286
- [data-m-motion="none"] .m-slide-left-enter-active .m-dialog-zoom,
2287
- [data-m-motion="none"] .m-slide-left-leave-active .m-dialog-zoom,
2288
- [data-m-motion="none"] .m-slide-right-enter-active .m-dialog-zoom,
2289
- [data-m-motion="none"] .m-slide-right-leave-active .m-dialog-zoom {
2290
- transition: none;
2291
- }
1208
+ .m-button {
1209
+ /* Geometry */
1210
+ --m-button-radius: var(--m-radius-control);
1211
+ --m-button-border-width: var(--m-border-width);
1212
+ --m-button-gap: var(--m-space-2);
1213
+ --m-button-font-weight: var(--m-font-weight);
1214
+ --m-button-font-size: var(--m-control-font-medium);
1215
+ --m-button-height: var(--m-control-height-medium);
1216
+ --m-button-padding-x: var(--m-button-padding-x-medium);
1217
+ --m-button-padding-x-small: var(--m-control-padding-x-small);
1218
+ --m-button-padding-x-medium: calc(
1219
+ var(--m-control-padding-x-medium) + var(--m-space-1)
1220
+ );
1221
+ --m-button-padding-x-large: calc(
1222
+ var(--m-control-padding-x-large) + var(--m-space-1)
1223
+ );
1224
+ --m-button-padding-x-round-extra: var(--m-space-2);
1225
+
1226
+ /* Icon / spinner */
1227
+ --m-button-icon-size: 1rem;
1228
+ --m-button-icon-size-small: 0.875rem;
1229
+ --m-button-icon-size-large: 1.25rem;
1230
+ --m-button-spinner-size: 0.875rem;
1231
+ --m-button-spinner-border-width: 2px;
1232
+ --m-button-cn-letter-spacing: 0.3em;
1233
+
1234
+ /* Soft fill opacities (theme-adaptive via surface mix) */
1235
+ --m-button-fill-opacity: 10%;
1236
+ --m-button-fill-opacity-hover: 16%;
1237
+ --m-button-fill-opacity-active: 22%;
1238
+ --m-button-fill-opacity-muted: 6%;
1239
+ --m-button-fill-opacity-muted-hover: 10%;
1240
+ --m-button-fill-opacity-muted-active: 14%;
1241
+
1242
+ /* Interaction */
1243
+ --m-button-loading-opacity: 0.72;
1244
+ --m-button-press-scale: 0.97;
1245
+ --m-button-press-duration: 160ms;
1246
+ --m-button-ripple-duration: 560ms;
1247
+ --m-button-ripple-opacity-start: 0.42;
1248
+ --m-button-ripple-opacity-mid: 0.22;
1249
+ --m-button-ghost-hover-opacity: 80%;
1250
+
1251
+ /* Color axis defaults (overridden by --color-*) */
1252
+ --m-button-color-base: var(--m-color-primary);
1253
+ --m-button-color-hover: var(--m-color-primary-hover);
1254
+ --m-button-color-active: var(--m-color-primary-active);
1255
+ --m-button-color-light: color-mix(
1256
+ in srgb,
1257
+ var(--m-button-color-base) var(--m-button-fill-opacity),
1258
+ var(--m-color-surface)
1259
+ );
1260
+ --m-button-color-light-hover: color-mix(
1261
+ in srgb,
1262
+ var(--m-button-color-base) var(--m-button-fill-opacity-hover),
1263
+ var(--m-color-surface)
1264
+ );
1265
+ --m-button-color-light-active: color-mix(
1266
+ in srgb,
1267
+ var(--m-button-color-base) var(--m-button-fill-opacity-active),
1268
+ var(--m-color-surface)
1269
+ );
1270
+ --m-button-on-color: var(--m-color-on-emphasis);
1271
+
1272
+ /* Variant surface vars */
1273
+ --m-button-bg: var(--m-color-surface);
1274
+ --m-button-fg: var(--m-color-text);
1275
+ --m-button-border: var(--m-color-border);
1276
+ --m-button-hover-bg: var(--m-button-bg);
1277
+ --m-button-hover-fg: var(--m-button-fg);
1278
+ --m-button-hover-border: var(--m-button-border);
1279
+ --m-button-active-bg: var(--m-button-bg);
1280
+ --m-button-border-style: solid;
1281
+
1282
+ --m-button-active-fg: var(--m-button-fg);
1283
+ --m-button-active-border: var(--m-button-border);
1284
+
1285
+ align-items: center;
1286
+ background: var(--m-button-bg);
1287
+ border: var(--m-button-border-width) var(--m-button-border-style)
1288
+ var(--m-button-border);
1289
+ border-radius: var(--m-button-radius);
1290
+ color: var(--m-button-fg);
1291
+ cursor: pointer;
1292
+ display: inline-flex;
1293
+ flex-direction: row;
1294
+ font-family: var(--m-font-sans);
1295
+ font-size: var(--m-button-font-size);
1296
+ font-weight: var(--m-button-font-weight);
1297
+ gap: var(--m-button-gap);
1298
+ justify-content: center;
1299
+ line-height: 1;
1300
+ min-height: var(--m-button-height);
1301
+ padding: 0 var(--m-button-padding-x);
1302
+ position: relative;
1303
+ text-decoration: none;
1304
+ touch-action: manipulation;
1305
+ transition:
1306
+ background-color var(--m-motion-fast) var(--m-motion-ease),
1307
+ border-color var(--m-motion-fast) var(--m-motion-ease),
1308
+ color var(--m-motion-fast) var(--m-motion-ease),
1309
+ box-shadow var(--m-motion-fast) var(--m-motion-ease),
1310
+ opacity var(--m-motion-fast) var(--m-motion-ease),
1311
+ transform var(--m-button-press-duration) var(--m-motion-ease);
1312
+ user-select: none;
1313
+ vertical-align: middle;
1314
+ white-space: nowrap;
1315
+ }
1316
+
1317
+ @media (hover: hover) and (pointer: fine) {
1318
+ .m-button:hover:not(:disabled):not(.m-button--disabled) {
1319
+ background: var(--m-button-hover-bg);
1320
+ border-color: var(--m-button-hover-border);
1321
+ color: var(--m-button-hover-fg);
1322
+ }
1323
+ }
1324
+
1325
+ .m-button:active:not(:disabled):not(.m-button--disabled):not(.m-button--loading) {
1326
+ background: var(--m-button-active-bg);
1327
+ border-color: var(--m-button-active-border);
1328
+ color: var(--m-button-active-fg);
1329
+ }
1330
+
1331
+ .m-button--press:active:not(:disabled):not(.m-button--disabled) {
1332
+ transform: scale(var(--m-button-press-scale));
1333
+ }
1334
+
1335
+ .m-button:focus {
1336
+ outline: none;
1337
+ }
1338
+
1339
+ .m-button:focus-visible {
1340
+ box-shadow: var(--m-focus-shadow);
1341
+ outline: none;
1342
+ }
1343
+
1344
+ .m-button:disabled,
1345
+ .m-button--disabled {
1346
+ background: var(--m-color-bg-disabled);
1347
+ border-color: var(--m-color-border);
1348
+ color: var(--m-color-text-disabled);
1349
+ cursor: not-allowed;
1350
+ opacity: 1;
1351
+ }
1352
+
1353
+ .m-button--variant-text:disabled,
1354
+ .m-button--variant-link:disabled,
1355
+ .m-button--variant-text.m-button--disabled,
1356
+ .m-button--variant-link.m-button--disabled,
1357
+ .m-button--ghost:disabled,
1358
+ .m-button--ghost.m-button--disabled {
1359
+ background: transparent;
1360
+ border-color: transparent;
1361
+ }
1362
+
1363
+ /* ---------- Color axis ---------- */
1364
+
1365
+ .m-button--color-default {
1366
+ --m-button-color-base: var(--m-color-text);
1367
+ --m-button-color-hover: var(--m-color-primary-hover);
1368
+ --m-button-color-active: var(--m-color-primary-active);
1369
+ --m-button-color-light: color-mix(
1370
+ in srgb,
1371
+ var(--m-color-text) var(--m-button-fill-opacity-muted),
1372
+ var(--m-color-surface)
1373
+ );
1374
+ --m-button-color-light-hover: color-mix(
1375
+ in srgb,
1376
+ var(--m-color-text) var(--m-button-fill-opacity-muted-hover),
1377
+ var(--m-color-surface)
1378
+ );
1379
+ --m-button-color-light-active: color-mix(
1380
+ in srgb,
1381
+ var(--m-color-text) var(--m-button-fill-opacity-muted-active),
1382
+ var(--m-color-surface)
1383
+ );
1384
+ --m-button-on-color: var(--m-color-contrast-fg);
1385
+ --m-button-solid-bg: var(--m-color-contrast);
1386
+ --m-button-solid-bg-hover: var(--m-color-contrast-hover);
1387
+ --m-button-solid-bg-active: var(--m-color-contrast-active);
1388
+ --m-button-outlined-border: var(--m-color-border);
1389
+ --m-button-outlined-fg: var(--m-color-text);
1390
+ --m-button-outlined-hover-border: var(--m-color-primary-hover);
1391
+ --m-button-outlined-hover-fg: var(--m-color-primary-hover);
1392
+ --m-button-outlined-bg: var(--m-color-surface);
1393
+ /* Match ant default outlined/dashed: keep surface bg, only shift border/text. */
1394
+ --m-button-outlined-hover-bg: var(--m-color-surface);
1395
+ --m-button-outlined-active-bg: var(--m-color-surface);
1396
+ }
1397
+
1398
+ .m-button--color-primary {
1399
+ --m-button-color-base: var(--m-color-primary);
1400
+ --m-button-color-hover: var(--m-color-primary-hover);
1401
+ --m-button-color-active: var(--m-color-primary-active);
1402
+ --m-button-solid-bg: var(--m-color-primary);
1403
+ --m-button-solid-bg-hover: var(--m-color-primary-hover);
1404
+ --m-button-solid-bg-active: var(--m-color-primary-active);
1405
+ --m-button-outlined-border: var(--m-color-primary);
1406
+ --m-button-outlined-fg: var(--m-color-primary);
1407
+ --m-button-outlined-hover-border: var(--m-color-primary-hover);
1408
+ --m-button-outlined-hover-fg: var(--m-color-primary-hover);
1409
+ --m-button-outlined-bg: var(--m-color-surface);
1410
+ --m-button-outlined-hover-bg: var(--m-button-color-light);
1411
+ }
1412
+
1413
+ .m-button--color-danger {
1414
+ --m-button-color-base: var(--m-color-danger);
1415
+ --m-button-color-hover: color-mix(
1416
+ in srgb,
1417
+ var(--m-color-danger) 88%,
1418
+ var(--m-color-text)
1419
+ );
1420
+ --m-button-color-active: color-mix(
1421
+ in srgb,
1422
+ var(--m-color-danger) 76%,
1423
+ var(--m-color-text)
1424
+ );
1425
+ --m-button-solid-bg: var(--m-color-danger);
1426
+ --m-button-solid-bg-hover: var(--m-button-color-hover);
1427
+ --m-button-solid-bg-active: var(--m-button-color-active);
1428
+ --m-button-outlined-border: var(--m-color-danger);
1429
+ --m-button-outlined-fg: var(--m-color-danger);
1430
+ --m-button-outlined-hover-border: var(--m-button-color-hover);
1431
+ --m-button-outlined-hover-fg: var(--m-button-color-hover);
1432
+ --m-button-outlined-bg: var(--m-color-surface);
1433
+ --m-button-outlined-hover-bg: var(--m-button-color-light);
1434
+ }
1435
+
1436
+ .m-button--color-success {
1437
+ --m-button-color-base: var(--m-color-success);
1438
+ --m-button-color-hover: color-mix(
1439
+ in srgb,
1440
+ var(--m-color-success) 88%,
1441
+ var(--m-color-text)
1442
+ );
1443
+ --m-button-color-active: color-mix(
1444
+ in srgb,
1445
+ var(--m-color-success) 76%,
1446
+ var(--m-color-text)
1447
+ );
1448
+ --m-button-solid-bg: var(--m-color-success);
1449
+ --m-button-solid-bg-hover: var(--m-button-color-hover);
1450
+ --m-button-solid-bg-active: var(--m-button-color-active);
1451
+ --m-button-outlined-border: var(--m-color-success);
1452
+ --m-button-outlined-fg: var(--m-color-success);
1453
+ --m-button-outlined-hover-border: var(--m-button-color-hover);
1454
+ --m-button-outlined-hover-fg: var(--m-button-color-hover);
1455
+ --m-button-outlined-bg: var(--m-color-surface);
1456
+ --m-button-outlined-hover-bg: var(--m-button-color-light);
1457
+ }
1458
+
1459
+ .m-button--color-info {
1460
+ --m-button-color-base: var(--m-color-info);
1461
+ --m-button-color-hover: color-mix(
1462
+ in srgb,
1463
+ var(--m-color-info) 88%,
1464
+ var(--m-color-text)
1465
+ );
1466
+ --m-button-color-active: color-mix(
1467
+ in srgb,
1468
+ var(--m-color-info) 76%,
1469
+ var(--m-color-text)
1470
+ );
1471
+ --m-button-solid-bg: var(--m-color-info);
1472
+ --m-button-solid-bg-hover: var(--m-button-color-hover);
1473
+ --m-button-solid-bg-active: var(--m-button-color-active);
1474
+ --m-button-outlined-border: var(--m-color-info);
1475
+ --m-button-outlined-fg: var(--m-color-info);
1476
+ --m-button-outlined-hover-border: var(--m-button-color-hover);
1477
+ --m-button-outlined-hover-fg: var(--m-button-color-hover);
1478
+ --m-button-outlined-bg: var(--m-color-surface);
1479
+ --m-button-outlined-hover-bg: var(--m-button-color-light);
1480
+ }
1481
+
1482
+ .m-button--color-warning {
1483
+ --m-button-color-base: var(--m-color-warn);
1484
+ --m-button-color-hover: color-mix(
1485
+ in srgb,
1486
+ var(--m-color-warn) 88%,
1487
+ var(--m-color-text)
1488
+ );
1489
+ --m-button-color-active: color-mix(
1490
+ in srgb,
1491
+ var(--m-color-warn) 76%,
1492
+ var(--m-color-text)
1493
+ );
1494
+ --m-button-solid-bg: var(--m-color-warn);
1495
+ --m-button-solid-bg-hover: var(--m-button-color-hover);
1496
+ --m-button-solid-bg-active: var(--m-button-color-active);
1497
+ --m-button-outlined-border: var(--m-color-warn);
1498
+ --m-button-outlined-fg: var(--m-color-warn);
1499
+ --m-button-outlined-hover-border: var(--m-button-color-hover);
1500
+ --m-button-outlined-hover-fg: var(--m-button-color-hover);
1501
+ --m-button-outlined-bg: var(--m-color-surface);
1502
+ --m-button-outlined-hover-bg: var(--m-button-color-light);
1503
+ }
1504
+
1505
+ .m-button--color-help {
1506
+ --m-button-color-base: var(--m-color-help);
1507
+ --m-button-color-hover: color-mix(
1508
+ in srgb,
1509
+ var(--m-color-help) 88%,
1510
+ var(--m-color-text)
1511
+ );
1512
+ --m-button-color-active: color-mix(
1513
+ in srgb,
1514
+ var(--m-color-help) 76%,
1515
+ var(--m-color-text)
1516
+ );
1517
+ --m-button-solid-bg: var(--m-color-help);
1518
+ --m-button-solid-bg-hover: var(--m-button-color-hover);
1519
+ --m-button-solid-bg-active: var(--m-button-color-active);
1520
+ --m-button-outlined-border: var(--m-color-help);
1521
+ --m-button-outlined-fg: var(--m-color-help);
1522
+ --m-button-outlined-hover-border: var(--m-button-color-hover);
1523
+ --m-button-outlined-hover-fg: var(--m-button-color-hover);
1524
+ --m-button-outlined-bg: var(--m-color-surface);
1525
+ --m-button-outlined-hover-bg: var(--m-button-color-light);
1526
+ }
1527
+
1528
+ .m-button--color-contrast {
1529
+ --m-button-color-base: var(--m-color-contrast);
1530
+ --m-button-color-hover: var(--m-color-contrast-hover);
1531
+ --m-button-color-active: var(--m-color-contrast-active);
1532
+ --m-button-on-color: var(--m-color-contrast-fg);
1533
+ --m-button-solid-bg: var(--m-color-contrast);
1534
+ --m-button-solid-bg-hover: var(--m-color-contrast-hover);
1535
+ --m-button-solid-bg-active: var(--m-color-contrast-active);
1536
+ --m-button-outlined-border: var(--m-color-contrast);
1537
+ --m-button-outlined-fg: var(--m-color-contrast);
1538
+ --m-button-outlined-hover-border: var(--m-color-contrast-hover);
1539
+ --m-button-outlined-hover-fg: var(--m-color-contrast-hover);
1540
+ --m-button-outlined-bg: var(--m-color-surface);
1541
+ --m-button-outlined-hover-bg: var(--m-button-color-light);
1542
+ }
1543
+
1544
+ .m-button--color-link {
1545
+ --m-button-color-base: var(--m-color-primary);
1546
+ --m-button-color-hover: var(--m-color-primary-hover);
1547
+ --m-button-color-active: var(--m-color-primary-active);
1548
+ }
1549
+
1550
+ /* ---------- Variant axis ---------- */
1551
+
1552
+ .m-button--variant-solid {
1553
+ --m-button-bg: var(--m-button-solid-bg, var(--m-button-color-base));
1554
+ --m-button-fg: var(--m-button-on-color);
1555
+ --m-button-border: transparent;
1556
+ --m-button-hover-bg: var(
1557
+ --m-button-solid-bg-hover,
1558
+ var(--m-button-color-hover)
1559
+ );
1560
+ --m-button-hover-fg: var(--m-button-on-color);
1561
+ --m-button-hover-border: transparent;
1562
+ --m-button-active-bg: var(
1563
+ --m-button-solid-bg-active,
1564
+ var(--m-button-color-active)
1565
+ );
1566
+ --m-button-active-fg: var(--m-button-on-color);
1567
+ --m-button-active-border: transparent;
1568
+ }
1569
+
1570
+ .m-button--variant-outlined,
1571
+ .m-button--variant-dashed {
1572
+ --m-button-bg: var(--m-button-outlined-bg, var(--m-color-surface));
1573
+ --m-button-fg: var(--m-button-outlined-fg, var(--m-button-color-base));
1574
+ --m-button-border: var(
1575
+ --m-button-outlined-border,
1576
+ var(--m-button-color-base)
1577
+ );
1578
+ --m-button-hover-bg: var(
1579
+ --m-button-outlined-hover-bg,
1580
+ var(--m-button-color-light)
1581
+ );
1582
+ --m-button-hover-fg: var(
1583
+ --m-button-outlined-hover-fg,
1584
+ var(--m-button-color-hover)
1585
+ );
1586
+ --m-button-hover-border: var(
1587
+ --m-button-outlined-hover-border,
1588
+ var(--m-button-color-hover)
1589
+ );
1590
+ --m-button-active-bg: var(
1591
+ --m-button-outlined-active-bg,
1592
+ var(--m-button-color-light-active, var(--m-button-color-light))
1593
+ );
1594
+ --m-button-active-fg: var(
1595
+ --m-button-color-active,
1596
+ var(--m-button-hover-fg)
1597
+ );
1598
+ --m-button-active-border: var(
1599
+ --m-button-color-active,
1600
+ var(--m-button-hover-border)
1601
+ );
1602
+ }
1603
+
1604
+ .m-button--variant-dashed {
1605
+ --m-button-border-style: dashed;
1606
+ }
1607
+
1608
+ .m-button--variant-filled {
1609
+ --m-button-bg: var(--m-button-color-light);
1610
+ --m-button-fg: var(--m-button-color-base);
1611
+ --m-button-border: transparent;
1612
+ --m-button-hover-bg: var(--m-button-color-light-hover);
1613
+ --m-button-hover-fg: var(--m-button-color-base);
1614
+ --m-button-hover-border: transparent;
1615
+ --m-button-active-bg: var(--m-button-color-light-active);
1616
+ --m-button-active-fg: var(--m-button-color-base);
1617
+ --m-button-active-border: transparent;
1618
+ }
1619
+
1620
+ .m-button--variant-text,
1621
+ .m-button--variant-link {
1622
+ --m-button-bg: transparent;
1623
+ --m-button-fg: var(--m-button-color-base);
1624
+ --m-button-border: transparent;
1625
+ --m-button-hover-fg: var(--m-button-color-hover);
1626
+ --m-button-hover-border: transparent;
1627
+ --m-button-active-bg: transparent;
1628
+ --m-button-active-fg: var(--m-button-color-active, var(--m-button-color-hover));
1629
+ --m-button-active-border: transparent;
1630
+ }
1631
+
1632
+ .m-button--variant-text {
1633
+ --m-button-hover-bg: var(--m-button-color-light);
1634
+ --m-button-active-bg: var(--m-button-color-light-active);
1635
+ }
1636
+
1637
+ .m-button--variant-link {
1638
+ --m-button-hover-bg: transparent;
1639
+ --m-button-height: auto;
1640
+ height: auto;
1641
+ min-height: 0;
1642
+ padding: 0;
1643
+ }
1644
+
1645
+ .m-button--variant-link:hover:not(:disabled):not(.m-button--disabled) {
1646
+ text-decoration: underline;
1647
+ }
1648
+
1649
+ .m-button--color-default.m-button--variant-text {
1650
+ --m-button-color-base: var(--m-color-text);
1651
+ --m-button-color-hover: var(--m-color-text);
1652
+ --m-button-hover-bg: var(--m-button-color-light);
1653
+ --m-button-active-bg: var(--m-button-color-light-hover);
1654
+ }
1655
+
1656
+ .m-button--color-default.m-button--variant-filled {
1657
+ --m-button-color-base: var(--m-color-text);
1658
+ }
1659
+
1660
+ .m-button--color-link.m-button--variant-link {
1661
+ --m-button-color-base: var(--m-color-primary);
1662
+ --m-button-color-hover: var(--m-color-primary-hover);
1663
+ }
1664
+
1665
+ /* Ghost: transparent fill on bordered variants */
1666
+ .m-button--ghost {
1667
+ --m-button-bg: transparent;
1668
+ --m-button-hover-bg: transparent;
1669
+ --m-button-active-bg: transparent;
1670
+ }
1671
+
1672
+ .m-button--ghost.m-button--variant-solid,
1673
+ .m-button--ghost.m-button--variant-outlined,
1674
+ .m-button--ghost.m-button--variant-dashed {
1675
+ --m-button-fg: var(--m-button-color-base);
1676
+ --m-button-border: var(--m-button-color-base);
1677
+ --m-button-hover-fg: var(--m-button-color-hover);
1678
+ --m-button-hover-border: var(--m-button-color-hover);
1679
+ --m-button-active-fg: var(--m-button-color-active, var(--m-button-color-hover));
1680
+ --m-button-active-border: var(--m-button-color-active, var(--m-button-color-hover));
1681
+ }
1682
+ .m-button--ghost.m-button--color-default {
1683
+ --m-button-color-base: var(--m-color-on-emphasis);
1684
+ --m-button-color-hover: color-mix(
1685
+ in srgb,
1686
+ var(--m-color-on-emphasis) var(--m-button-ghost-hover-opacity),
1687
+ transparent
1688
+ );
1689
+ --m-button-fg: var(--m-color-on-emphasis);
1690
+ --m-button-border: var(--m-color-on-emphasis);
1691
+ --m-button-hover-fg: var(--m-button-color-hover);
1692
+ --m-button-hover-border: var(--m-button-color-hover);
1693
+ }
1694
+
1695
+ /* ---------- Size / shape / layout ---------- */
1696
+
1697
+ .m-button--small {
1698
+ --m-button-icon-size: var(--m-button-icon-size-small);
1699
+ --m-button-font-size: var(--m-control-font-small);
1700
+ --m-button-height: var(--m-control-height-small);
1701
+ --m-button-padding-x: var(--m-button-padding-x-small);
1702
+ }
1703
+
1704
+ .m-button--large {
1705
+ --m-button-icon-size: var(--m-button-icon-size-large);
1706
+ --m-button-font-size: var(--m-control-font-large);
1707
+ --m-button-height: var(--m-control-height-large);
1708
+ --m-button-padding-x: var(--m-button-padding-x-large);
1709
+ }
1710
+
1711
+ .m-button--block {
1712
+ display: flex;
1713
+ width: 100%;
1714
+ }
1715
+
1716
+ .m-button--shape-round {
1717
+ --m-button-radius: var(--m-radius-full);
1718
+ padding-inline: calc(
1719
+ var(--m-button-padding-x) + var(--m-button-padding-x-round-extra)
1720
+ );
1721
+ }
1722
+
1723
+ .m-button--shape-circle {
1724
+ --m-button-radius: var(--m-radius-full);
1725
+ min-width: var(--m-button-height);
1726
+ padding-inline: 0;
1727
+ width: var(--m-button-height);
1728
+ }
1729
+
1730
+ .m-button--shape-square {
1731
+ --m-button-radius: 0;
1732
+ }
1733
+
1734
+ .m-button--icon-only {
1735
+ gap: 0;
1736
+ min-width: var(--m-button-height);
1737
+ padding: 0;
1738
+ width: var(--m-button-height);
1739
+ }
1740
+
1741
+ .m-button--icon-end {
1742
+ flex-direction: row-reverse;
1743
+ }
1744
+
1745
+ .m-button--two-chinese-chars > .m-button__label {
1746
+ letter-spacing: var(--m-button-cn-letter-spacing);
1747
+ margin-inline-end: calc(var(--m-button-cn-letter-spacing) * -1);
1748
+ }
1749
+
1750
+ .m-button--loading {
1751
+ cursor: default;
1752
+ opacity: var(--m-button-loading-opacity);
1753
+ pointer-events: none;
1754
+ }
1755
+
1756
+ /* ---------- Parts ---------- */
1757
+
1758
+ .m-button__icon,
1759
+ .m-button__label {
1760
+ align-items: center;
1761
+ display: inline-flex;
1762
+ justify-content: center;
1763
+ }
1764
+
1765
+ .m-button__icon,
1766
+ .m-button__label {
1767
+ position: relative;
1768
+ z-index: 1;
1769
+ }
1770
+
1771
+ .m-button__ripple {
1772
+ border-radius: inherit;
1773
+ inset: 0;
1774
+ overflow: hidden;
1775
+ pointer-events: none;
1776
+ position: absolute;
1777
+ z-index: 0;
1778
+ }
1779
+
1780
+ .m-button__ripple-wave {
1781
+ background: currentColor;
1782
+ border-radius: var(--m-radius-full);
1783
+ opacity: 0;
1784
+ pointer-events: none;
1785
+ position: absolute;
1786
+ transform: scale(0);
1787
+ will-change: transform, opacity;
1788
+ }
1789
+
1790
+ .m-button__ripple-wave--fallback {
1791
+ animation: m-button-ripple var(--m-button-ripple-duration)
1792
+ var(--m-motion-ease) forwards;
1793
+ }
1794
+
1795
+ @keyframes m-button-ripple {
1796
+ 0% {
1797
+ opacity: var(--m-button-ripple-opacity-start);
1798
+ transform: scale(0);
1799
+ }
1800
+ 55% {
1801
+ opacity: var(--m-button-ripple-opacity-mid);
1802
+ transform: scale(0.55);
1803
+ }
1804
+ 100% {
1805
+ opacity: 0;
1806
+ transform: scale(1);
1807
+ }
1808
+ }
1809
+
1810
+ .m-button__icon {
1811
+ flex: 0 0 auto;
1812
+ height: var(--m-button-icon-size);
1813
+ line-height: 0;
1814
+ width: var(--m-button-icon-size);
1815
+ }
1816
+
1817
+ .m-button__icon :is(.m-icon, .m-button__icon-graphic, svg) {
1818
+ display: block;
1819
+ flex-shrink: 0;
1820
+ height: 100%;
1821
+ width: 100%;
1822
+ }
1823
+
1824
+ .m-button__icon .m-icon {
1825
+ max-height: 100%;
1826
+ max-width: 100%;
1827
+ }
1828
+
1829
+ .m-button__spinner {
1830
+ animation: m-button-spin var(--m-motion-spin-fast) linear infinite;
1831
+ border: var(--m-button-spinner-border-width) solid currentColor;
1832
+ border-radius: var(--m-radius-full);
1833
+ border-right-color: transparent;
1834
+ height: var(--m-button-spinner-size);
1835
+ width: var(--m-button-spinner-size);
1836
+ }
1837
+
1838
+ @keyframes m-button-spin {
1839
+ to {
1840
+ transform: rotate(360deg);
1841
+ }
1842
+ }
1843
+
1844
+ @media (prefers-reduced-motion: reduce) {
1845
+ .m-button {
1846
+ --m-button-ripple-duration: 0ms;
1847
+ transition-duration: 0ms;
1848
+ }
1849
+
1850
+ .m-button__spinner {
1851
+ animation-duration: 0ms;
1852
+ }
1853
+ }
1854
+
1855
+ :root[data-m-motion='reduced'] .m-button {
1856
+ --m-button-ripple-duration: 280ms;
1857
+ --m-button-press-duration: 120ms;
1858
+ }
1859
+
1860
+ :root[data-m-motion='none'] .m-button {
1861
+ --m-button-ripple-duration: 0ms;
1862
+ --m-button-press-duration: 0ms;
1863
+ }
1864
+
1865
+ /* ---------- Group ---------- */
1866
+
1867
+ .m-button-group {
1868
+ display: inline-flex;
1869
+ vertical-align: middle;
1870
+ }
1871
+
1872
+ .m-button-group--block {
1873
+ display: flex;
1874
+ width: 100%;
1875
+ }
1876
+
1877
+ .m-button-group--block > .m-button {
1878
+ flex: 1;
1879
+ }
1880
+
1881
+ .m-button-group > .m-button {
1882
+ border-radius: 0;
1883
+ margin: 0;
1884
+ }
1885
+
1886
+ .m-button-group > .m-button + .m-button {
1887
+ margin-inline-start: calc(var(--m-border-width) * -1);
1888
+ }
1889
+
1890
+ .m-button-group > .m-button:hover,
1891
+ .m-button-group > .m-button:focus-visible,
1892
+ .m-button-group > .m-button:active {
1893
+ position: relative;
1894
+ z-index: 1;
1895
+ }
1896
+
1897
+ .m-button-group > .m-button:first-child {
1898
+ border-end-start-radius: var(--m-radius-control);
1899
+ border-start-start-radius: var(--m-radius-control);
1900
+ }
1901
+
1902
+ .m-button-group > .m-button:last-child {
1903
+ border-end-end-radius: var(--m-radius-control);
1904
+ border-start-end-radius: var(--m-radius-control);
1905
+ }
2292
1906
 
2293
- [data-m-motion="reduced"] .m-dialog-enter-from .m-dialog-zoom,
2294
- [data-m-motion="reduced"] .m-dialog-leave-to .m-dialog-zoom,
2295
- [data-m-motion="reduced"] .m-scale-fade-enter-from .m-dialog-zoom,
2296
- [data-m-motion="reduced"] .m-scale-fade-leave-to .m-dialog-zoom,
2297
- [data-m-motion="reduced"] .m-slide-fade-enter-from .m-dialog-zoom,
2298
- [data-m-motion="reduced"] .m-slide-fade-leave-to .m-dialog-zoom,
2299
- [data-m-motion="reduced"] .m-zoom-enter-from .m-dialog-zoom,
2300
- [data-m-motion="reduced"] .m-zoom-leave-to .m-dialog-zoom,
2301
- [data-m-motion="reduced"] .m-slide-up-enter-from .m-dialog-zoom,
2302
- [data-m-motion="reduced"] .m-slide-up-leave-to .m-dialog-zoom,
2303
- [data-m-motion="reduced"] .m-slide-down-enter-from .m-dialog-zoom,
2304
- [data-m-motion="reduced"] .m-slide-down-leave-to .m-dialog-zoom,
2305
- [data-m-motion="reduced"] .m-slide-left-enter-from .m-dialog-zoom,
2306
- [data-m-motion="reduced"] .m-slide-left-leave-to .m-dialog-zoom,
2307
- [data-m-motion="reduced"] .m-slide-right-enter-from .m-dialog-zoom,
2308
- [data-m-motion="reduced"] .m-slide-right-leave-to .m-dialog-zoom,
2309
- [data-m-motion="none"] .m-dialog-enter-from .m-dialog-zoom,
2310
- [data-m-motion="none"] .m-dialog-leave-to .m-dialog-zoom,
2311
- [data-m-motion="none"] .m-scale-fade-enter-from .m-dialog-zoom,
2312
- [data-m-motion="none"] .m-scale-fade-leave-to .m-dialog-zoom,
2313
- [data-m-motion="none"] .m-slide-fade-enter-from .m-dialog-zoom,
2314
- [data-m-motion="none"] .m-slide-fade-leave-to .m-dialog-zoom,
2315
- [data-m-motion="none"] .m-zoom-enter-from .m-dialog-zoom,
2316
- [data-m-motion="none"] .m-zoom-leave-to .m-dialog-zoom,
2317
- [data-m-motion="none"] .m-slide-up-enter-from .m-dialog-zoom,
2318
- [data-m-motion="none"] .m-slide-up-leave-to .m-dialog-zoom,
2319
- [data-m-motion="none"] .m-slide-down-enter-from .m-dialog-zoom,
2320
- [data-m-motion="none"] .m-slide-down-leave-to .m-dialog-zoom,
2321
- [data-m-motion="none"] .m-slide-left-enter-from .m-dialog-zoom,
2322
- [data-m-motion="none"] .m-slide-left-leave-to .m-dialog-zoom,
2323
- [data-m-motion="none"] .m-slide-right-enter-from .m-dialog-zoom,
2324
- [data-m-motion="none"] .m-slide-right-leave-to .m-dialog-zoom {
2325
- transform: none;
2326
- }
1907
+ /* —— Feedback: Dialog —— */
1908
+ .m-dialog button:focus {
1909
+ outline: none;
1910
+ }
1911
+
1912
+ .m-dialog button:focus-visible {
1913
+ box-shadow: var(--m-focus-shadow);
1914
+ outline: none;
1915
+ }
1916
+
1917
+ .m-dialog-backdrop {
1918
+ align-items: center;
1919
+ background: transparent;
1920
+ display: flex;
1921
+ inset: 0;
1922
+ justify-content: center;
1923
+ padding: var(--m-space-4);
1924
+ position: fixed;
1925
+ z-index: var(--m-z-overlay);
1926
+ }
1927
+
1928
+ .m-dialog-zoom {
1929
+ align-items: inherit;
1930
+ display: flex;
1931
+ inset: 0;
1932
+ justify-content: inherit;
1933
+ padding: inherit;
1934
+ position: absolute;
1935
+ transform-origin: var(--m-dialog-origin-x, 50%)
1936
+ var(--m-dialog-origin-y, 50%);
1937
+ }
1938
+
1939
+ .m-dialog-backdrop--modal {
1940
+ background: var(--m-overlay-scrim);
1941
+ }
1942
+
1943
+ .m-dialog-backdrop--top {
1944
+ align-items: flex-start;
1945
+ }
1946
+
1947
+ .m-dialog-backdrop--bottom {
1948
+ align-items: flex-end;
1949
+ }
1950
+
1951
+ .m-dialog-backdrop--left {
1952
+ justify-content: flex-start;
1953
+ }
1954
+
1955
+ .m-dialog-backdrop--right {
1956
+ justify-content: flex-end;
1957
+ }
1958
+
1959
+ .m-dialog-backdrop--topleft {
1960
+ align-items: flex-start;
1961
+ justify-content: flex-start;
1962
+ }
1963
+
1964
+ .m-dialog-backdrop--topright {
1965
+ align-items: flex-start;
1966
+ justify-content: flex-end;
1967
+ }
1968
+
1969
+ .m-dialog-backdrop--bottomleft {
1970
+ align-items: flex-end;
1971
+ justify-content: flex-start;
1972
+ }
1973
+
1974
+ .m-dialog-backdrop--bottomright {
1975
+ align-items: flex-end;
1976
+ justify-content: flex-end;
1977
+ }
1978
+
1979
+ .m-dialog {
1980
+ --m-dialog-width: 32rem;
1981
+ --m-dialog-max-height: min(90vh, 100%);
1982
+ --m-dialog-radius: var(--m-radius-lg);
1983
+ background: var(--m-color-surface);
1984
+ border-radius: var(--m-dialog-radius);
1985
+ box-shadow: var(--m-shadow-lg);
1986
+ color: var(--m-color-text);
1987
+ display: flex;
1988
+ flex-direction: column;
1989
+ max-height: var(--m-dialog-max-height);
1990
+ max-width: var(--m-dialog-width);
1991
+ width: min(100%, var(--m-dialog-width));
1992
+ }
1993
+
1994
+ .m-dialog-backdrop--maximized {
1995
+ padding: 0;
1996
+ }
1997
+
1998
+ .m-dialog--maximized {
1999
+ --m-dialog-radius: 0;
2000
+ border-radius: var(--m-dialog-radius);
2001
+ height: 100%;
2002
+ max-height: 100%;
2003
+ max-width: none;
2004
+ width: 100%;
2005
+ }
2006
+
2007
+ .m-dialog__header,
2008
+ .m-dialog__footer {
2009
+ align-items: center;
2010
+ display: flex;
2011
+ justify-content: space-between;
2012
+ padding: var(--m-space-4);
2013
+ }
2014
+
2015
+ .m-dialog__header {
2016
+ border-bottom: var(--m-border-width) solid var(--m-color-split);
2017
+ flex: 0 0 auto;
2018
+ gap: var(--m-space-3);
2019
+ }
2020
+
2021
+ .m-dialog__header h2 {
2022
+ font-size: var(--m-font-size-lg);
2023
+ margin: 0;
2024
+ }
2025
+
2026
+ .m-dialog__heading {
2027
+ align-items: center;
2028
+ display: flex;
2029
+ gap: var(--m-space-2);
2030
+ min-width: 0;
2031
+ }
2032
+
2033
+ .m-dialog__type-icon {
2034
+ color: var(--m-color-info);
2035
+ flex-shrink: 0;
2036
+ }
2037
+
2038
+ .m-dialog--success .m-dialog__type-icon {
2039
+ color: var(--m-color-success);
2040
+ }
2041
+
2042
+ .m-dialog--warning .m-dialog__type-icon {
2043
+ color: var(--m-color-warning);
2044
+ }
2045
+
2046
+ .m-dialog--danger .m-dialog__type-icon {
2047
+ color: var(--m-color-danger);
2048
+ }
2049
+
2050
+ .m-dialog--info .m-dialog__type-icon {
2051
+ color: var(--m-color-info);
2052
+ }
2053
+
2054
+ .m-dialog__actions {
2055
+ align-items: center;
2056
+ display: flex;
2057
+ flex: 0 0 auto;
2058
+ gap: var(--m-space-1);
2059
+ margin-left: auto;
2060
+ }
2061
+
2062
+ .m-dialog__action,
2063
+ .m-dialog__header button {
2064
+ align-items: center;
2065
+ background: transparent;
2066
+ border: 0;
2067
+ border-radius: var(--m-radius-sm);
2068
+ color: var(--m-color-text-muted);
2069
+ cursor: pointer;
2070
+ display: inline-flex;
2071
+ font-size: var(--m-font-size-lg);
2072
+ height: var(--m-control-affix-size);
2073
+ justify-content: center;
2074
+ line-height: 1;
2075
+ transition:
2076
+ background-color var(--m-motion-fast) var(--m-motion-ease),
2077
+ color var(--m-motion-fast) var(--m-motion-ease),
2078
+ opacity var(--m-motion-fast) var(--m-motion-ease);
2079
+ width: var(--m-control-affix-size);
2080
+ }
2081
+
2082
+ .m-dialog__action:hover:not(:disabled),
2083
+ .m-dialog__header button:hover:not(:disabled) {
2084
+ background: color-mix(
2085
+ in srgb,
2086
+ var(--m-color-primary) 10%,
2087
+ var(--m-color-surface)
2088
+ );
2089
+ color: var(--m-color-text);
2090
+ }
2091
+
2092
+ .m-dialog__action:focus-visible,
2093
+ .m-dialog__header button:focus-visible {
2094
+ box-shadow: var(--m-focus-shadow);
2095
+ outline: none;
2096
+ }
2097
+
2098
+ .m-dialog__body {
2099
+ flex: 1 1 auto;
2100
+ overflow: auto;
2101
+ overscroll-behavior: contain;
2102
+ padding: var(--m-space-4);
2103
+ }
2104
+
2105
+ .m-dialog__action:disabled,
2106
+ .m-dialog__header button:disabled {
2107
+ cursor: not-allowed;
2108
+ opacity: var(--m-opacity-disabled);
2109
+ }
2110
+
2111
+ .m-dialog__footer {
2112
+ border-top: var(--m-border-width) solid var(--m-color-split);
2113
+ flex: 0 0 auto;
2114
+ }
2115
+
2116
+ .m-dialog__footer--preset {
2117
+ gap: var(--m-space-2);
2118
+ justify-content: flex-end;
2119
+ width: 100%;
2120
+ }
2121
+
2122
+ .m-dialog-enter-active {
2123
+ transition: opacity var(--m-motion-enter) var(--m-motion-ease);
2124
+ }
2125
+
2126
+ .m-dialog-leave-active {
2127
+ transition: opacity var(--m-motion-exit) var(--m-motion-ease);
2128
+ }
2129
+
2130
+ .m-dialog-enter-active .m-dialog-zoom,
2131
+ .m-dialog-leave-active .m-dialog-zoom {
2132
+ transition:
2133
+ opacity var(--m-motion-enter) var(--m-motion-ease),
2134
+ transform var(--m-motion-enter) var(--m-motion-ease);
2135
+ }
2136
+
2137
+ .m-dialog-leave-active .m-dialog-zoom {
2138
+ transition:
2139
+ opacity var(--m-motion-exit) var(--m-motion-ease),
2140
+ transform var(--m-motion-exit) var(--m-motion-ease);
2141
+ }
2142
+
2143
+ .m-dialog-enter-from,
2144
+ .m-dialog-leave-to {
2145
+ opacity: 0;
2146
+ }
2147
+
2148
+ .m-dialog-enter-from .m-dialog-zoom,
2149
+ .m-dialog-leave-to .m-dialog-zoom {
2150
+ opacity: 0;
2151
+ transform: scale(0.95);
2152
+ }
2153
+
2154
+ /*
2155
+ * Generic presets put Vue Transition classes on the backdrop. Keep the mask as
2156
+ * opacity-only and drive transform on `.m-dialog-zoom` (same structure as `dialog`).
2157
+ */
2158
+ .m-dialog-backdrop.m-fade-enter-from,
2159
+ .m-dialog-backdrop.m-fade-leave-to,
2160
+ .m-dialog-backdrop.m-scale-fade-enter-from,
2161
+ .m-dialog-backdrop.m-scale-fade-leave-to,
2162
+ .m-dialog-backdrop.m-slide-fade-enter-from,
2163
+ .m-dialog-backdrop.m-slide-fade-leave-to,
2164
+ .m-dialog-backdrop.m-zoom-enter-from,
2165
+ .m-dialog-backdrop.m-zoom-leave-to,
2166
+ .m-dialog-backdrop.m-slide-up-enter-from,
2167
+ .m-dialog-backdrop.m-slide-up-leave-to,
2168
+ .m-dialog-backdrop.m-slide-down-enter-from,
2169
+ .m-dialog-backdrop.m-slide-down-leave-to,
2170
+ .m-dialog-backdrop.m-slide-left-enter-from,
2171
+ .m-dialog-backdrop.m-slide-left-leave-to,
2172
+ .m-dialog-backdrop.m-slide-right-enter-from,
2173
+ .m-dialog-backdrop.m-slide-right-leave-to {
2174
+ transform: none;
2175
+ }
2176
+
2177
+ .m-fade-enter-active .m-dialog-zoom,
2178
+ .m-scale-fade-enter-active .m-dialog-zoom,
2179
+ .m-slide-fade-enter-active .m-dialog-zoom,
2180
+ .m-zoom-enter-active .m-dialog-zoom,
2181
+ .m-slide-up-enter-active .m-dialog-zoom,
2182
+ .m-slide-down-enter-active .m-dialog-zoom,
2183
+ .m-slide-left-enter-active .m-dialog-zoom,
2184
+ .m-slide-right-enter-active .m-dialog-zoom {
2185
+ transition:
2186
+ opacity var(--m-motion-enter) var(--m-motion-ease),
2187
+ transform var(--m-motion-enter) var(--m-motion-ease);
2188
+ }
2189
+
2190
+ .m-fade-leave-active .m-dialog-zoom,
2191
+ .m-scale-fade-leave-active .m-dialog-zoom,
2192
+ .m-slide-fade-leave-active .m-dialog-zoom,
2193
+ .m-zoom-leave-active .m-dialog-zoom,
2194
+ .m-slide-up-leave-active .m-dialog-zoom,
2195
+ .m-slide-down-leave-active .m-dialog-zoom,
2196
+ .m-slide-left-leave-active .m-dialog-zoom,
2197
+ .m-slide-right-leave-active .m-dialog-zoom {
2198
+ transition:
2199
+ opacity var(--m-motion-exit) var(--m-motion-ease),
2200
+ transform var(--m-motion-exit) var(--m-motion-ease);
2201
+ }
2202
+
2203
+ .m-fade-enter-from .m-dialog-zoom,
2204
+ .m-fade-leave-to .m-dialog-zoom {
2205
+ opacity: 0;
2206
+ }
2207
+
2208
+ .m-scale-fade-enter-from .m-dialog-zoom,
2209
+ .m-scale-fade-leave-to .m-dialog-zoom {
2210
+ opacity: 0;
2211
+ transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
2212
+ }
2213
+
2214
+ .m-slide-fade-enter-from .m-dialog-zoom,
2215
+ .m-slide-fade-leave-to .m-dialog-zoom {
2216
+ opacity: 0;
2217
+ transform: translateY(calc(var(--m-motion-distance) * -1));
2218
+ }
2219
+
2220
+ .m-zoom-enter-from .m-dialog-zoom,
2221
+ .m-zoom-leave-to .m-dialog-zoom {
2222
+ opacity: 0;
2223
+ transform: scale(0.95);
2224
+ }
2225
+
2226
+ .m-slide-up-enter-from .m-dialog-zoom,
2227
+ .m-slide-up-leave-to .m-dialog-zoom {
2228
+ opacity: 0;
2229
+ transform: translateY(var(--m-motion-distance));
2230
+ }
2231
+
2232
+ .m-slide-down-enter-from .m-dialog-zoom,
2233
+ .m-slide-down-leave-to .m-dialog-zoom {
2234
+ opacity: 0;
2235
+ transform: translateY(calc(var(--m-motion-distance) * -1));
2236
+ }
2237
+
2238
+ .m-slide-left-enter-from .m-dialog-zoom,
2239
+ .m-slide-left-leave-to .m-dialog-zoom {
2240
+ opacity: 0;
2241
+ transform: translateX(var(--m-motion-distance));
2242
+ }
2243
+
2244
+ .m-slide-right-enter-from .m-dialog-zoom,
2245
+ .m-slide-right-leave-to .m-dialog-zoom {
2246
+ opacity: 0;
2247
+ transform: translateX(calc(var(--m-motion-distance) * -1));
2248
+ }
2249
+
2250
+ [data-m-motion="reduced"] .m-dialog-enter-active,
2251
+ [data-m-motion="reduced"] .m-dialog-leave-active,
2252
+ [data-m-motion="reduced"] .m-dialog-enter-active .m-dialog-zoom,
2253
+ [data-m-motion="reduced"] .m-dialog-leave-active .m-dialog-zoom,
2254
+ [data-m-motion="reduced"] .m-fade-enter-active .m-dialog-zoom,
2255
+ [data-m-motion="reduced"] .m-fade-leave-active .m-dialog-zoom,
2256
+ [data-m-motion="reduced"] .m-scale-fade-enter-active .m-dialog-zoom,
2257
+ [data-m-motion="reduced"] .m-scale-fade-leave-active .m-dialog-zoom,
2258
+ [data-m-motion="reduced"] .m-slide-fade-enter-active .m-dialog-zoom,
2259
+ [data-m-motion="reduced"] .m-slide-fade-leave-active .m-dialog-zoom,
2260
+ [data-m-motion="reduced"] .m-zoom-enter-active .m-dialog-zoom,
2261
+ [data-m-motion="reduced"] .m-zoom-leave-active .m-dialog-zoom,
2262
+ [data-m-motion="reduced"] .m-slide-up-enter-active .m-dialog-zoom,
2263
+ [data-m-motion="reduced"] .m-slide-up-leave-active .m-dialog-zoom,
2264
+ [data-m-motion="reduced"] .m-slide-down-enter-active .m-dialog-zoom,
2265
+ [data-m-motion="reduced"] .m-slide-down-leave-active .m-dialog-zoom,
2266
+ [data-m-motion="reduced"] .m-slide-left-enter-active .m-dialog-zoom,
2267
+ [data-m-motion="reduced"] .m-slide-left-leave-active .m-dialog-zoom,
2268
+ [data-m-motion="reduced"] .m-slide-right-enter-active .m-dialog-zoom,
2269
+ [data-m-motion="reduced"] .m-slide-right-leave-active .m-dialog-zoom,
2270
+ [data-m-motion="none"] .m-dialog-enter-active,
2271
+ [data-m-motion="none"] .m-dialog-leave-active,
2272
+ [data-m-motion="none"] .m-dialog-enter-active .m-dialog-zoom,
2273
+ [data-m-motion="none"] .m-dialog-leave-active .m-dialog-zoom,
2274
+ [data-m-motion="none"] .m-fade-enter-active .m-dialog-zoom,
2275
+ [data-m-motion="none"] .m-fade-leave-active .m-dialog-zoom,
2276
+ [data-m-motion="none"] .m-scale-fade-enter-active .m-dialog-zoom,
2277
+ [data-m-motion="none"] .m-scale-fade-leave-active .m-dialog-zoom,
2278
+ [data-m-motion="none"] .m-slide-fade-enter-active .m-dialog-zoom,
2279
+ [data-m-motion="none"] .m-slide-fade-leave-active .m-dialog-zoom,
2280
+ [data-m-motion="none"] .m-zoom-enter-active .m-dialog-zoom,
2281
+ [data-m-motion="none"] .m-zoom-leave-active .m-dialog-zoom,
2282
+ [data-m-motion="none"] .m-slide-up-enter-active .m-dialog-zoom,
2283
+ [data-m-motion="none"] .m-slide-up-leave-active .m-dialog-zoom,
2284
+ [data-m-motion="none"] .m-slide-down-enter-active .m-dialog-zoom,
2285
+ [data-m-motion="none"] .m-slide-down-leave-active .m-dialog-zoom,
2286
+ [data-m-motion="none"] .m-slide-left-enter-active .m-dialog-zoom,
2287
+ [data-m-motion="none"] .m-slide-left-leave-active .m-dialog-zoom,
2288
+ [data-m-motion="none"] .m-slide-right-enter-active .m-dialog-zoom,
2289
+ [data-m-motion="none"] .m-slide-right-leave-active .m-dialog-zoom {
2290
+ transition: none;
2291
+ }
2292
+
2293
+ [data-m-motion="reduced"] .m-dialog-enter-from .m-dialog-zoom,
2294
+ [data-m-motion="reduced"] .m-dialog-leave-to .m-dialog-zoom,
2295
+ [data-m-motion="reduced"] .m-scale-fade-enter-from .m-dialog-zoom,
2296
+ [data-m-motion="reduced"] .m-scale-fade-leave-to .m-dialog-zoom,
2297
+ [data-m-motion="reduced"] .m-slide-fade-enter-from .m-dialog-zoom,
2298
+ [data-m-motion="reduced"] .m-slide-fade-leave-to .m-dialog-zoom,
2299
+ [data-m-motion="reduced"] .m-zoom-enter-from .m-dialog-zoom,
2300
+ [data-m-motion="reduced"] .m-zoom-leave-to .m-dialog-zoom,
2301
+ [data-m-motion="reduced"] .m-slide-up-enter-from .m-dialog-zoom,
2302
+ [data-m-motion="reduced"] .m-slide-up-leave-to .m-dialog-zoom,
2303
+ [data-m-motion="reduced"] .m-slide-down-enter-from .m-dialog-zoom,
2304
+ [data-m-motion="reduced"] .m-slide-down-leave-to .m-dialog-zoom,
2305
+ [data-m-motion="reduced"] .m-slide-left-enter-from .m-dialog-zoom,
2306
+ [data-m-motion="reduced"] .m-slide-left-leave-to .m-dialog-zoom,
2307
+ [data-m-motion="reduced"] .m-slide-right-enter-from .m-dialog-zoom,
2308
+ [data-m-motion="reduced"] .m-slide-right-leave-to .m-dialog-zoom,
2309
+ [data-m-motion="none"] .m-dialog-enter-from .m-dialog-zoom,
2310
+ [data-m-motion="none"] .m-dialog-leave-to .m-dialog-zoom,
2311
+ [data-m-motion="none"] .m-scale-fade-enter-from .m-dialog-zoom,
2312
+ [data-m-motion="none"] .m-scale-fade-leave-to .m-dialog-zoom,
2313
+ [data-m-motion="none"] .m-slide-fade-enter-from .m-dialog-zoom,
2314
+ [data-m-motion="none"] .m-slide-fade-leave-to .m-dialog-zoom,
2315
+ [data-m-motion="none"] .m-zoom-enter-from .m-dialog-zoom,
2316
+ [data-m-motion="none"] .m-zoom-leave-to .m-dialog-zoom,
2317
+ [data-m-motion="none"] .m-slide-up-enter-from .m-dialog-zoom,
2318
+ [data-m-motion="none"] .m-slide-up-leave-to .m-dialog-zoom,
2319
+ [data-m-motion="none"] .m-slide-down-enter-from .m-dialog-zoom,
2320
+ [data-m-motion="none"] .m-slide-down-leave-to .m-dialog-zoom,
2321
+ [data-m-motion="none"] .m-slide-left-enter-from .m-dialog-zoom,
2322
+ [data-m-motion="none"] .m-slide-left-leave-to .m-dialog-zoom,
2323
+ [data-m-motion="none"] .m-slide-right-enter-from .m-dialog-zoom,
2324
+ [data-m-motion="none"] .m-slide-right-leave-to .m-dialog-zoom {
2325
+ transform: none;
2326
+ }
2327
2327
 
2328
2328
  .m-icon {
2329
2329
  color: currentColor;
@@ -2374,27 +2374,27 @@
2374
2374
  animation: none;
2375
2375
  }
2376
2376
 
2377
- /* —— Feedback: ConfirmDialog —— */
2378
- .m-confirmdialog {
2379
- --m-confirmdialog-width: 28rem;
2380
- max-width: min(var(--m-confirmdialog-width), calc(100vw - 2 * var(--m-space-4)));
2381
- }
2382
-
2383
- .m-confirmdialog__footer {
2384
- display: flex;
2385
- gap: var(--m-space-2);
2386
- justify-content: flex-end;
2387
- }
2388
-
2389
- .m-confirmdialog__message {
2390
- align-items: flex-start;
2391
- color: var(--m-color-text);
2392
- display: flex;
2393
- gap: var(--m-space-3);
2394
- line-height: 1.5;
2395
- }
2396
-
2397
- .m-confirmdialog__copy {
2398
- flex: 1 1 auto;
2399
- min-width: 0;
2400
- }
2377
+ /* —— Feedback: ConfirmDialog —— */
2378
+ .m-confirmdialog {
2379
+ --m-confirmdialog-width: 28rem;
2380
+ max-width: min(var(--m-confirmdialog-width), calc(100vw - 2 * var(--m-space-4)));
2381
+ }
2382
+
2383
+ .m-confirmdialog__footer {
2384
+ display: flex;
2385
+ gap: var(--m-space-2);
2386
+ justify-content: flex-end;
2387
+ }
2388
+
2389
+ .m-confirmdialog__message {
2390
+ align-items: flex-start;
2391
+ color: var(--m-color-text);
2392
+ display: flex;
2393
+ gap: var(--m-space-3);
2394
+ line-height: 1.5;
2395
+ }
2396
+
2397
+ .m-confirmdialog__copy {
2398
+ flex: 1 1 auto;
2399
+ min-width: 0;
2400
+ }