morya-ui 0.3.3 → 0.3.5

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