morya-ui 0.4.2 → 0.4.4

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