morya-ui 0.3.4 → 0.3.6

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 (249) hide show
  1. package/CHANGELOG.md +536 -523
  2. package/LICENSE +21 -21
  3. package/README.md +150 -150
  4. package/README.zh-CN.md +150 -150
  5. package/dist/{Button-gBiRj7wz.js → Button-3vJoiEQC.js} +1 -1
  6. package/dist/{Checkbox-BzbAUfyZ.js → Checkbox-B2gcDJHM.js} +1 -1
  7. package/dist/{Empty-C5tndBOm.js → Empty-5pTDp3ZM.js} +1 -1
  8. package/dist/{FlyoutSubmenu-H_741alW.js → FlyoutSubmenu-C_OrDaPN.js} +1 -1
  9. package/dist/{Loading-qS2Yv_gm.js → Loading-Ba-Js5-u.js} +3 -3
  10. package/dist/{Pagination-Bvv2qvEK.js → Pagination-lJ7cce6g.js} +2 -2
  11. package/dist/{Popover-rnZG_ap0.js → Popover-CQ2VYpFJ.js} +2 -2
  12. package/dist/{Radio-rF6zdR5Y.js → Radio-BbJ_Jyil.js} +1 -1
  13. package/dist/{Select-CiXd074W.js → Select-DyxORH6Q.js} +3 -3
  14. package/dist/{Tooltip-B02o9BOW.js → Tooltip-D3WUemno.js} +2 -2
  15. package/dist/accordion/style.css +1148 -1148
  16. package/dist/auto-complete/index.js +3 -3
  17. package/dist/auto-complete/style.css +1690 -1690
  18. package/dist/avatar/style.css +1261 -1261
  19. package/dist/badge/style.css +1315 -1315
  20. package/dist/block-ui/index.js +1 -1
  21. package/dist/block-ui/style.css +1148 -1148
  22. package/dist/breadcrumb/index.js +1 -1
  23. package/dist/breadcrumb/style.css +1148 -1148
  24. package/dist/button/index.js +1 -1
  25. package/dist/button/style.css +2138 -2138
  26. package/dist/card/style.css +1148 -1148
  27. package/dist/carousel/index.js +1 -1
  28. package/dist/carousel/style.css +1249 -1249
  29. package/dist/cascade-select/index.js +3 -3
  30. package/dist/cascade-select/style.css +1839 -1839
  31. package/dist/checkbox/index.js +1 -1
  32. package/dist/checkbox/style.css +1148 -1148
  33. package/dist/chip/index.js +1 -1
  34. package/dist/chip/style.css +1292 -1292
  35. package/dist/command-menu/index.js +3 -3
  36. package/dist/command-menu/style.css +1381 -1381
  37. package/dist/components/AutoComplete/styles.css +209 -209
  38. package/dist/components/Avatar/styles.css +113 -113
  39. package/dist/components/Badge/styles.css +165 -165
  40. package/dist/components/Button/styles.css +962 -962
  41. package/dist/components/Carousel/styles.css +101 -101
  42. package/dist/components/CascadeSelect/styles.css +157 -157
  43. package/dist/components/Chip/styles.css +144 -144
  44. package/dist/components/CommandMenu/styles.css +102 -102
  45. package/dist/components/ConfigProvider/styles.css +6 -6
  46. package/dist/components/ConfirmDialog/styles.css +24 -24
  47. package/dist/components/ConfirmPopup/styles.css +35 -35
  48. package/dist/components/ContextMenu/styles.css +138 -138
  49. package/dist/components/DatePicker/styles.css +335 -335
  50. package/dist/components/Dialog/styles.css +421 -421
  51. package/dist/components/Dock/styles.css +84 -84
  52. package/dist/components/Drawer/styles.css +334 -334
  53. package/dist/components/Dropdown/styles.css +130 -130
  54. package/dist/components/Empty/styles.css +146 -146
  55. package/dist/components/FileUpload/styles.css +359 -359
  56. package/dist/components/Form/styles.css +114 -114
  57. package/dist/components/Gallery/styles.css +100 -100
  58. package/dist/components/Input/styles.css +356 -356
  59. package/dist/components/InputColor/styles.css +129 -129
  60. package/dist/components/InputNumber/styles.css +261 -261
  61. package/dist/components/InputPassword/styles.css +178 -178
  62. package/dist/components/InputTags/styles.css +112 -112
  63. package/dist/components/Layout/styles.css +433 -433
  64. package/dist/components/Loading/styles.css +378 -378
  65. package/dist/components/MegaMenu/styles.css +97 -97
  66. package/dist/components/Menu/styles.css +564 -564
  67. package/dist/components/Menubar/styles.css +144 -144
  68. package/dist/components/Message/styles.css +250 -250
  69. package/dist/components/MeterGroup/styles.css +49 -49
  70. package/dist/components/Page/PageFilters.vue.d.ts +5 -3
  71. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  72. package/dist/components/Page/styles.css +430 -412
  73. package/dist/components/Page/types.d.ts +2 -2
  74. package/dist/components/Page/types.d.ts.map +1 -1
  75. package/dist/components/Pagination/styles.css +105 -105
  76. package/dist/components/Popover/styles.css +92 -92
  77. package/dist/components/Result/styles.css +146 -146
  78. package/dist/components/Scrollbar/styles.css +131 -131
  79. package/dist/components/Select/styles.css +192 -192
  80. package/dist/components/SelectButton/styles.css +105 -105
  81. package/dist/components/Sidebar/styles.css +74 -74
  82. package/dist/components/Slider/styles.css +211 -211
  83. package/dist/components/SplitButton/styles.css +216 -216
  84. package/dist/components/Status/styles.css +191 -191
  85. package/dist/components/Stepper/styles.css +135 -135
  86. package/dist/components/Switch/styles.css +129 -129
  87. package/dist/components/Tabs/styles.css +131 -131
  88. package/dist/components/Terminal/styles.css +74 -74
  89. package/dist/components/Textarea/styles.css +126 -126
  90. package/dist/components/TieredMenu/styles.css +125 -125
  91. package/dist/components/Timeline/styles.css +159 -159
  92. package/dist/components/TreeSelect/styles.css +161 -161
  93. package/dist/components/TreeTable/styles.css +97 -97
  94. package/dist/components/VirtualScroller/styles.css +27 -27
  95. package/dist/{config-CapALqt3.js → config-De8ueCY-.js} +2 -0
  96. package/dist/config-provider/index.js +1 -1
  97. package/dist/config-provider/style.css +2472 -2472
  98. package/dist/confirm-dialog/index.js +4 -4
  99. package/dist/confirm-dialog/style.css +2555 -2555
  100. package/dist/confirm-popup/index.js +4 -4
  101. package/dist/confirm-popup/style.css +2145 -2145
  102. package/dist/context-menu/index.js +3 -3
  103. package/dist/context-menu/style.css +1417 -1417
  104. package/dist/data-view/index.js +3 -3
  105. package/dist/data-view/style.css +1631 -1631
  106. package/dist/date-picker/index.js +3 -3
  107. package/dist/date-picker/style.css +1483 -1483
  108. package/dist/dialog/index.js +4 -4
  109. package/dist/dialog/style.css +2531 -2531
  110. package/dist/divider/style.css +1148 -1148
  111. package/dist/dock/style.css +1232 -1232
  112. package/dist/drawer/index.js +3 -3
  113. package/dist/drawer/style.css +1482 -1482
  114. package/dist/dropdown/index.js +4 -4
  115. package/dist/dropdown/style.css +1409 -1409
  116. package/dist/empty/index.js +1 -1
  117. package/dist/empty/style.css +1294 -1294
  118. package/dist/fieldset/style.css +1148 -1148
  119. package/dist/file-upload/index.js +1 -1
  120. package/dist/file-upload/style.css +1507 -1507
  121. package/dist/flex/index.js +1 -1
  122. package/dist/flex/style.css +1148 -1148
  123. package/dist/float-label/style.css +1148 -1148
  124. package/dist/fluid/style.css +1148 -1148
  125. package/dist/form/index.js +1 -1
  126. package/dist/form/style.css +1264 -1264
  127. package/dist/gallery/index.js +1 -1
  128. package/dist/gallery/style.css +1379 -1379
  129. package/dist/grid/style.css +1148 -1148
  130. package/dist/icon/style.css +1148 -1148
  131. package/dist/icon-field/style.css +1504 -1504
  132. package/dist/index.js +84 -69
  133. package/dist/inplace/style.css +1148 -1148
  134. package/dist/input/index.js +2 -2
  135. package/dist/input/style.css +1504 -1504
  136. package/dist/input-color/index.js +2 -2
  137. package/dist/input-color/style.css +1279 -1279
  138. package/dist/input-group/style.css +1148 -1148
  139. package/dist/input-number/index.js +2 -2
  140. package/dist/input-number/style.css +1409 -1409
  141. package/dist/input-otp/index.js +2 -2
  142. package/dist/input-otp/style.css +1148 -1148
  143. package/dist/input-password/index.js +2 -2
  144. package/dist/input-password/style.css +1326 -1326
  145. package/dist/input-tags/index.js +2 -2
  146. package/dist/input-tags/style.css +1260 -1260
  147. package/dist/knob/style.css +1148 -1148
  148. package/dist/label/style.css +1148 -1148
  149. package/dist/layout/index.js +1 -1
  150. package/dist/layout/style.css +1712 -1712
  151. package/dist/listbox/index.js +2 -2
  152. package/dist/listbox/style.css +1306 -1306
  153. package/dist/loading/index.js +1 -1
  154. package/dist/loading/style.css +1528 -1528
  155. package/dist/locale/en-US.d.ts.map +1 -1
  156. package/dist/locale/types.d.ts +4 -0
  157. package/dist/locale/types.d.ts.map +1 -1
  158. package/dist/locale/zh-CN.d.ts.map +1 -1
  159. package/dist/{locale-Bzm2nbEp.js → locale-xavS6-Hw.js} +1 -1
  160. package/dist/mega-menu/index.js +3 -3
  161. package/dist/mega-menu/style.css +1245 -1245
  162. package/dist/menu/index.js +4 -4
  163. package/dist/menu/style.css +2001 -2001
  164. package/dist/menubar/index.js +3 -3
  165. package/dist/menubar/style.css +1423 -1423
  166. package/dist/message/index.js +3 -3
  167. package/dist/message/style.css +1398 -1398
  168. package/dist/meter-group/style.css +1199 -1199
  169. package/dist/order-list/index.js +1 -1
  170. package/dist/order-list/style.css +1148 -1148
  171. package/dist/page/index.js +63 -52
  172. package/dist/page/style.css +2806 -2788
  173. package/dist/pagination/index.js +1 -1
  174. package/dist/pagination/style.css +1445 -1445
  175. package/dist/panel/index.js +1 -1
  176. package/dist/panel/style.css +1148 -1148
  177. package/dist/pick-list/index.js +1 -1
  178. package/dist/pick-list/style.css +1148 -1148
  179. package/dist/popover/index.js +1 -1
  180. package/dist/popover/style.css +1242 -1242
  181. package/dist/progress-bar/style.css +1148 -1148
  182. package/dist/progress-spinner/index.js +1 -1
  183. package/dist/progress-spinner/style.css +1148 -1148
  184. package/dist/radio/index.js +1 -1
  185. package/dist/radio/style.css +1148 -1148
  186. package/dist/rating/index.js +2 -2
  187. package/dist/rating/style.css +1148 -1148
  188. package/dist/result/index.js +1 -1
  189. package/dist/result/style.css +1294 -1294
  190. package/dist/scroll-top/index.js +2 -2
  191. package/dist/scroll-top/style.css +1279 -1279
  192. package/dist/scrollbar/style.css +1281 -1281
  193. package/dist/select/index.js +1 -1
  194. package/dist/select/style.css +1901 -1901
  195. package/dist/select-button/index.js +1 -1
  196. package/dist/select-button/style.css +1255 -1255
  197. package/dist/shared/styles/control-affix-icon.css +110 -110
  198. package/dist/shared/styles/control-suffix.css +118 -118
  199. package/dist/shared/styles/select-overlay.css +175 -175
  200. package/dist/sidebar/index.js +1 -1
  201. package/dist/sidebar/style.css +1222 -1222
  202. package/dist/skeleton/style.css +1148 -1148
  203. package/dist/slider/index.js +2 -2
  204. package/dist/slider/style.css +1361 -1361
  205. package/dist/space/index.js +1 -1
  206. package/dist/space/style.css +1148 -1148
  207. package/dist/speed-dial/index.js +3 -3
  208. package/dist/speed-dial/style.css +1148 -1148
  209. package/dist/split-button/index.js +3 -3
  210. package/dist/split-button/style.css +2326 -2326
  211. package/dist/splitter/index.js +1 -1
  212. package/dist/splitter/style.css +1148 -1148
  213. package/dist/status/index.js +1 -1
  214. package/dist/status/style.css +1339 -1339
  215. package/dist/stepper/style.css +1283 -1283
  216. package/dist/styles/base.css +790 -790
  217. package/dist/styles.css +1 -1
  218. package/dist/switch/index.js +1 -1
  219. package/dist/switch/style.css +1279 -1279
  220. package/dist/table/index.js +7 -7
  221. package/dist/table/style.css +1812 -1812
  222. package/dist/tabs/index.js +1 -1
  223. package/dist/tabs/style.css +1410 -1410
  224. package/dist/tag/index.js +2 -2
  225. package/dist/tag/style.css +1148 -1148
  226. package/dist/terminal/index.js +1 -1
  227. package/dist/terminal/style.css +1224 -1224
  228. package/dist/textarea/index.js +2 -2
  229. package/dist/textarea/style.css +1274 -1274
  230. package/dist/theme/styles.css +358 -358
  231. package/dist/tiered-menu/index.js +3 -3
  232. package/dist/tiered-menu/style.css +1404 -1404
  233. package/dist/timeline/style.css +1438 -1438
  234. package/dist/toast/index.js +3 -3
  235. package/dist/toast/style.css +1148 -1148
  236. package/dist/toggle-button/index.js +1 -1
  237. package/dist/toggle-button/style.css +1148 -1148
  238. package/dist/toolbar/style.css +1148 -1148
  239. package/dist/tooltip/index.js +1 -1
  240. package/dist/tooltip/style.css +1148 -1148
  241. package/dist/tree/index.js +2 -2
  242. package/dist/tree/style.css +1148 -1148
  243. package/dist/tree-select/index.js +4 -4
  244. package/dist/tree-select/style.css +1843 -1843
  245. package/dist/tree-table/index.js +1 -1
  246. package/dist/tree-table/style.css +1245 -1245
  247. package/dist/{useMotionTransition-95Y79FoL.js → useMotionTransition-tW0yeJsy.js} +1 -1
  248. package/dist/virtual-scroller/style.css +1309 -1309
  249. package/package.json +29 -31
@@ -1,1152 +1,1152 @@
1
- :root {
2
- --m-color-primary: #2563eb;
3
- --m-color-primary-hover: #1d4ed8;
4
- --m-color-surface: #ffffff;
5
- --m-color-text: #0f172a;
6
- --m-color-text-muted: #64748b;
7
- --m-color-border: #e2e8f0;
8
- --m-color-focus-ring: #2563eb;
9
- /* Naive-inspired control sizing (tiny omitted; medium = default) */
10
- --m-control-height-small: 28px;
11
- --m-control-height-medium: 34px;
12
- --m-control-height-large: 40px;
13
- --m-control-font-small: 14px;
14
- --m-control-font-medium: 14px;
15
- --m-control-font-large: 15px;
16
- --m-control-padding-x-small: 10px;
17
- --m-control-padding-x-medium: 12px;
18
- --m-control-padding-x-large: 14px;
19
-
20
- --m-radius-control: 3px;
21
- --m-border-width: 1px;
22
- --m-focus-shadow: 0 0 0 2px
23
- color-mix(in srgb, var(--m-color-primary) 20%, transparent);
24
- --m-focus-shadow-danger: 0 0 0 2px
25
- color-mix(in srgb, var(--m-color-danger) 20%, transparent);
26
- --m-color-success: #159570;
27
- --m-color-info: #2563eb;
28
- --m-color-warning: #d97706;
29
- --m-color-warn: var(--m-color-warning);
30
- --m-color-help: #9333ea;
31
- --m-color-danger: #dc2626;
32
- --m-color-contrast: #0f172a;
33
- --m-color-contrast-fg: #ffffff;
34
- --m-color-contrast-hover: #1e293b;
35
- --m-color-contrast-active: #020617;
36
- --m-color-on-emphasis: #ffffff;
37
- --m-overlay-scrim: rgb(15 23 42 / 0.55);
38
- --m-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.25);
39
- --m-shadow-md: 0 0.75rem 2rem rgb(15 23 42 / 0.16);
40
- --m-shadow-lg: 0 1rem 3rem rgb(15 23 42 / 0.25);
41
- --m-shadow-raised: 0 0.25rem 0.75rem
42
- color-mix(in srgb, var(--m-color-text) 14%, transparent);
43
- --m-shadow-sticky: 4px 0 8px
44
- color-mix(in srgb, var(--m-color-text) 6%, transparent);
45
- --m-shadow-sticky-end: -4px 0 8px
46
- color-mix(in srgb, var(--m-color-text) 6%, transparent);
47
-
48
- /* Typography scale (component text, not control-height fonts) */
49
- --m-font-size-xs: 0.75rem;
50
- --m-font-size-sm: 0.8125rem;
51
- --m-font-size-md: 0.875rem;
52
- --m-font-size-lg: 1.125rem;
53
- /* Display scale (page titles, KPI figures) */
54
- --m-font-size-xl: 1.25rem;
55
- --m-font-size-2xl: 1.5rem;
56
- --m-font-size-3xl: 1.75rem;
57
- --m-opacity-disabled: 0.55;
58
- /* Layering: override --m-z-base via ConfigProvider / createMoryaUI */
59
- --m-z-base: 1000;
60
- --m-z-overlay: var(--m-z-base);
61
- --m-z-overlay-raised: calc(var(--m-z-base) + 1);
62
- --m-z-dropdown: calc(var(--m-z-base) + 50);
63
- --m-z-tooltip: calc(var(--m-z-base) + 60);
64
- --m-z-toast: calc(var(--m-z-base) + 100);
65
- --m-z-popper: 40;
66
-
67
- /* Affix hitbox tracks control height so small/compact shells do not overflow */
68
- --m-control-affix-size: calc(
69
- var(--m-control-height-medium) - 2 * var(--m-border-width)
70
- );
71
- --m-control-affix-gap: 2.35rem;
72
- --m-control-affix-padding: 2.5rem;
73
- --m-meter-track-height: var(--m-space-5);
74
- --m-tree-toggler-size: var(--m-checkbox-control-size);
75
- --m-nav-rail-width: 12.5rem;
76
- --m-nav-rail-collapsed-width: 4rem;
77
- --m-layout-header-height: calc(
78
- var(--m-control-height-medium) + 2 * var(--m-space-3)
79
- );
80
- --m-layout-footer-height: calc(
81
- var(--m-control-height-medium) + 2 * var(--m-space-2)
82
- );
83
- --m-space-1: 0.25rem;
84
- --m-space-2: 0.5rem;
85
- --m-space-3: 0.75rem;
86
- --m-space-4: 1rem;
87
- --m-space-5: 1.25rem;
88
- --m-space-6: 1.5rem;
89
- --m-space-8: 2rem;
90
- --m-radius-sm: 0.25rem;
91
- --m-radius-md: 0.5rem;
92
- --m-radius-lg: 0.75rem;
93
- --m-radius-full: 9999px;
94
- --m-font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
95
- --m-motion-fast: 150ms;
96
- --m-motion-normal: 250ms;
97
- --m-motion-ease: cubic-bezier(0.2, 0, 0, 1);
98
- --m-motion-enter: 180ms;
99
- --m-motion-exit: 130ms;
100
- --m-motion-distance: 1rem;
101
- --m-motion-spin: 1s;
102
- --m-motion-spin-dash: 1.5s;
103
- --m-motion-spin-fast: 0.8s;
104
- --m-motion-spin-medium: 0.7s;
105
- --m-motion-skeleton: 1.4s;
106
- --m-motion-pulse: 1.2s;
107
- --m-motion-scrollbar-show: 340ms;
108
- --m-motion-scrollbar-hide: 120ms;
109
- --m-motion-loading-aurora: 3s;
110
- --m-motion-loading-bounce: 0.6s;
111
- --m-motion-loading-pulse: 1.8s;
112
- --m-motion-loading-stardust: 1.6s;
113
- --m-motion-loading-circular-rotate: 2s;
114
- --m-dataview-grid-min: 10rem;
115
- --m-tree-indent: 0.7rem;
116
- --m-tree-indent-padding: var(--m-space-3);
117
- --m-layout-trigger-bar-height: 4.5rem;
118
- --m-layout-trigger-bar-offset: 1.75rem;
119
- --m-layout-trigger-bar-width: 2rem;
120
- --m-layout-trigger-bar-top: 2.25rem;
121
- --m-timeline-event-min-height: 4rem;
122
- --m-timeline-marker-size: 1.5rem;
123
- --m-tag-font-size-small: var(--m-font-size-xs);
124
- --m-slider-tooltip-offset: 1.5rem;
125
- --m-slider-tooltip-padding-block: 0.15rem;
126
- --m-slider-tooltip-padding-inline: 0.4rem;
127
- --m-rating-star-size-small: 1rem;
128
- --m-rating-star-size-medium: 1.25rem;
129
- --m-rating-star-size-large: 1.5rem;
130
- --m-rating-star-padding: 0.15rem;
131
- --m-slider-marks-inset: 0.9rem;
132
- --m-slider-marks-side: 0.5rem;
133
- --m-stepper-connector-color: var(--m-color-border);
134
-
135
- /* Table (Element Plus–aligned) */
136
- --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
137
- --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 3.5%, var(--m-color-surface));
138
- --m-table-border-color: var(--m-color-border);
139
- --m-table-header-bg: var(--m-color-fill-light);
140
- --m-table-header-text: var(--m-color-text);
141
- --m-table-text: var(--m-color-text);
142
- --m-table-row-bg: var(--m-color-surface);
143
- --m-table-row-hover-bg: var(--m-color-fill-light);
144
- --m-table-row-striped-bg: var(--m-color-fill-lighter);
145
- --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 10%, var(--m-color-surface));
146
- --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
147
- --m-table-expanded-bg: var(--m-color-fill-lighter);
148
- --m-table-font-size: var(--m-font-size-md);
149
- --m-table-row-height: 40px;
150
- --m-table-cell-line-height: 23px;
151
- --m-table-cell-padding-inline: 12px;
152
- }
153
-
154
- :root[data-m-motion="reduced"] {
155
- --m-motion-fast: 80ms;
156
- --m-motion-normal: 120ms;
157
- --m-motion-enter: 100ms;
158
- --m-motion-exit: 80ms;
159
- --m-motion-distance: 0;
160
- /* Looping indicators: keep a short pulse so state is still perceptible */
161
- --m-motion-spin: 0ms;
162
- --m-motion-spin-dash: 0ms;
163
- --m-motion-spin-fast: 0ms;
164
- --m-motion-spin-medium: 0ms;
165
- --m-motion-skeleton: 0ms;
166
- --m-motion-pulse: 0ms;
167
- --m-motion-scrollbar-show: 160ms;
168
- --m-motion-scrollbar-hide: 80ms;
169
- --m-motion-loading-aurora: 0ms;
170
- --m-motion-loading-bounce: 0ms;
171
- --m-motion-loading-pulse: 0ms;
172
- --m-motion-loading-stardust: 0ms;
173
- --m-motion-loading-circular-rotate: 0ms;
174
- }
175
-
176
- :root[data-m-motion="none"] {
177
- --m-motion-fast: 0ms;
178
- --m-motion-normal: 0ms;
179
- --m-motion-enter: 0ms;
180
- --m-motion-exit: 0ms;
181
- --m-motion-distance: 0;
182
- --m-motion-spin: 0ms;
183
- --m-motion-spin-dash: 0ms;
184
- --m-motion-spin-fast: 0ms;
185
- --m-motion-spin-medium: 0ms;
186
- --m-motion-skeleton: 0ms;
187
- --m-motion-pulse: 0ms;
188
- --m-motion-scrollbar-show: 0ms;
189
- --m-motion-scrollbar-hide: 0ms;
190
- --m-motion-loading-aurora: 0ms;
191
- --m-motion-loading-bounce: 0ms;
192
- --m-motion-loading-pulse: 0ms;
193
- --m-motion-loading-stardust: 0ms;
194
- --m-motion-loading-circular-rotate: 0ms;
195
- }
196
-
197
- /*
198
- * Global motion policy (complements per-component rules):
199
- * - `reduced`: keep short paint transitions; stop loops
200
- * and layout/transform size animation.
201
- * - `none`: zero all transition/animation durations.
202
- */
203
-
204
- [data-m-motion="reduced"] *,
205
- [data-m-motion="reduced"] *::before,
206
- [data-m-motion="reduced"] *::after {
207
- animation-duration: 0.01ms !important;
208
- animation-iteration-count: 1 !important;
209
- transition-property: background-color, border-color, color, opacity, box-shadow, outline,
210
- fill, stroke, stroke-dashoffset !important;
211
- }
212
-
213
- [data-m-motion="none"] *,
214
- [data-m-motion="none"] *::before,
215
- [data-m-motion="none"] *::after {
216
- animation-duration: 0.01ms !important;
217
- animation-iteration-count: 1 !important;
218
- transition-duration: 0.01ms !important;
219
- scroll-behavior: auto !important;
220
- }
221
-
222
- /* Off-screen looping indicators (usePauseOffscreen → data-m-anim-paused) */
223
- [data-m-anim-paused],
224
- [data-m-anim-paused]::before,
225
- [data-m-anim-paused]::after,
226
- [data-m-anim-paused] *,
227
- [data-m-anim-paused] *::before,
228
- [data-m-anim-paused] *::after {
229
- animation-play-state: paused !important;
230
- }
231
-
232
- /* Global density: scales spacing + control heights (Vuetify-inspired, WD tokens) */
233
- :root,
234
- [data-m-density="comfortable"] {
235
- --m-density-scale: 1;
236
- --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-2));
237
- --m-checkbox-control-size: 1.125rem;
238
- }
239
-
240
- [data-m-density="compact"] {
241
- --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-1));
242
- --m-control-affix-padding: 2.15rem;
243
- --m-control-affix-gap: 2rem;
244
- --m-checkbox-control-size: 1rem;
245
- --m-nav-rail-width: 15rem;
246
- --m-nav-rail-collapsed-width: 3.25rem;
247
- --m-space-1: 0.2rem;
248
- --m-space-2: 0.4rem;
249
- --m-space-3: 0.6rem;
250
- --m-space-4: 0.85rem;
251
- --m-space-5: 1.05rem;
252
- --m-space-6: 1.25rem;
253
- --m-space-8: 1.7rem;
254
- --m-control-height-small: 24px;
255
- --m-control-height-medium: 28px;
256
- --m-control-height-large: 34px;
257
- --m-control-font-small: 13px;
258
- --m-control-font-medium: 13px;
259
- --m-control-font-large: 14px;
260
- --m-control-padding-x-small: 8px;
261
- --m-control-padding-x-medium: 10px;
262
- --m-control-padding-x-large: 12px;
263
- --m-table-row-height: 36px;
264
- --m-table-cell-line-height: 20px;
265
- --m-table-cell-padding-inline: 10px;
266
- --m-table-font-size: var(--m-font-size-sm);
267
- }
268
-
269
- [data-m-density="spacious"] {
270
- --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-3));
271
- --m-control-affix-padding: 2.85rem;
272
- --m-control-affix-gap: 2.65rem;
273
- --m-checkbox-control-size: 1.25rem;
274
- --m-nav-rail-width: 18rem;
275
- --m-nav-rail-collapsed-width: 4.5rem;
276
- --m-space-1: 0.3rem;
277
- --m-space-2: 0.6rem;
278
- --m-space-3: 0.9rem;
279
- --m-space-4: 1.15rem;
280
- --m-space-5: 1.45rem;
281
- --m-space-6: 1.75rem;
282
- --m-space-8: 2.35rem;
283
- --m-control-height-small: 32px;
284
- --m-control-height-medium: 40px;
285
- --m-control-height-large: 46px;
286
- --m-control-font-small: 14px;
287
- --m-control-font-medium: 15px;
288
- --m-control-font-large: 16px;
289
- --m-control-padding-x-small: 12px;
290
- --m-control-padding-x-medium: 14px;
291
- --m-control-padding-x-large: 16px;
292
- --m-table-row-height: 48px;
293
- --m-table-cell-line-height: 26px;
294
- --m-table-cell-padding-inline: 16px;
295
- --m-table-font-size: 1rem;
296
- }
297
-
298
- [data-m-density="compact"] .m-layout-header {
299
- --m-layout-header-height: 3rem;
300
- }
301
-
302
- [data-m-density="compact"] .m-layout-footer {
303
- --m-layout-footer-height: 2.5rem;
304
- }
305
-
306
- [data-m-density="spacious"] .m-layout-header {
307
- --m-layout-header-height: 4rem;
308
- }
309
-
310
- [data-m-density="spacious"] .m-layout-footer {
311
- --m-layout-footer-height: 3.5rem;
312
- }
313
-
314
- [data-theme="dark"] {
315
- --m-color-primary: #60a5fa;
316
- --m-color-primary-hover: #93c5fd;
317
- --m-color-surface: #0f172a;
318
- --m-color-text: #f8fafc;
319
- --m-color-text-muted: #94a3b8;
320
- --m-color-border: #334155;
321
- --m-color-focus-ring: #93c5fd;
322
- --m-focus-shadow: 0 0 0 2px
323
- color-mix(in srgb, var(--m-color-primary) 28%, transparent);
324
- --m-focus-shadow-danger: 0 0 0 2px
325
- color-mix(in srgb, var(--m-color-danger) 28%, transparent);
326
- /* Mid solids: keep ≥~4.5:1 with --m-color-on-emphasis on dark surfaces */
327
- --m-color-success: #0f766e;
328
- --m-color-info: #1d4ed8;
329
- --m-color-warning: #b45309;
330
- --m-color-warn: var(--m-color-warning);
331
- --m-color-help: #7e22ce;
332
- --m-color-danger: #dc2626;
333
- --m-color-contrast: #f8fafc;
334
- --m-color-contrast-fg: #0f172a;
335
- --m-color-contrast-hover: #e2e8f0;
336
- --m-color-contrast-active: #cbd5e1;
337
- --m-overlay-scrim: rgb(2 6 23 / 0.72);
338
- --m-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.45);
339
- --m-shadow-md: 0 0.75rem 2rem rgb(0 0 0 / 0.45);
340
- --m-shadow-lg: 0 1rem 3rem rgb(0 0 0 / 0.55);
341
- --m-shadow-raised: 0 0.25rem 0.75rem
342
- color-mix(in srgb, var(--m-color-text) 22%, transparent);
343
- --m-shadow-sticky: 4px 0 8px
344
- color-mix(in srgb, #000 35%, transparent);
345
- --m-shadow-sticky-end: -4px 0 8px
346
- color-mix(in srgb, #000 35%, transparent);
347
-
348
- --m-table-border-color: color-mix(in srgb, var(--m-color-border) 88%, var(--m-color-text));
349
- --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 10%, var(--m-color-surface));
350
- --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
351
- --m-table-header-bg: var(--m-color-fill-light);
352
- --m-table-row-bg: var(--m-color-surface);
353
- --m-table-row-hover-bg: color-mix(in srgb, var(--m-color-text) 8%, var(--m-color-surface));
354
- --m-table-row-striped-bg: var(--m-color-fill-lighter);
355
- --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 16%, var(--m-color-surface));
356
- --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 20%, var(--m-color-surface));
357
- --m-table-expanded-bg: var(--m-color-fill-lighter);
358
- }
1
+ :root {
2
+ --m-color-primary: #2563eb;
3
+ --m-color-primary-hover: #1d4ed8;
4
+ --m-color-surface: #ffffff;
5
+ --m-color-text: #0f172a;
6
+ --m-color-text-muted: #64748b;
7
+ --m-color-border: #e2e8f0;
8
+ --m-color-focus-ring: #2563eb;
9
+ /* Naive-inspired control sizing (tiny omitted; medium = default) */
10
+ --m-control-height-small: 28px;
11
+ --m-control-height-medium: 34px;
12
+ --m-control-height-large: 40px;
13
+ --m-control-font-small: 14px;
14
+ --m-control-font-medium: 14px;
15
+ --m-control-font-large: 15px;
16
+ --m-control-padding-x-small: 10px;
17
+ --m-control-padding-x-medium: 12px;
18
+ --m-control-padding-x-large: 14px;
359
19
 
360
- /* Shared tokens consumption, type, focus, and mixed selectors. */
361
-
362
- :root {
363
- /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
364
- --m-menu-min-width: 12rem;
365
- }
366
-
367
- .m-button,
368
- .m-input,
369
- .m-card,
370
- .m-dialog,
371
- .m-drawer,
372
- .m-popover,
373
- .m-accordion,
374
- .m-scrollbar,
375
- .m-panel,
376
- .m-fieldset,
377
- .m-flex,
378
- .m-space,
379
- .m-grid,
380
- .m-layout,
381
- .m-layout-header,
382
- .m-layout-footer,
383
- .m-layout-sider,
384
- .m-splitter,
385
- .m-stepper,
386
- .m-toolbar,
387
- .m-page-content,
388
- .m-page-header,
389
- .m-page-toolbar,
390
- .m-menu,
391
- .m-menubar,
392
- .m-contextmenu,
393
- .m-tieredmenu,
394
- .m-dropdown,
395
- .m-breadcrumb,
396
- .m-tabs,
397
- .m-datepicker,
398
- .m-listbox,
399
- .m-togglebutton,
400
- .m-select,
401
- .m-textarea,
402
- .m-selectbutton,
403
- .m-inputotp,
404
- .m-knob,
405
- .m-autocomplete,
406
- .m-splitbutton,
407
- .m-tree,
408
- .m-timeline,
409
- .m-dataview,
410
- .m-confirmpopup,
411
- .m-scrolltop,
412
- .m-blockui,
413
- .m-inplace,
414
- .m-message,
415
- .m-toast,
416
- .m-tooltip,
417
- .m-empty,
418
- .m-result,
419
- .m-progress-spinner,
420
- .m-cascadeselect,
421
- .m-treeselect,
422
- .m-inputcolor,
423
- .m-inputtags,
424
- .m-label,
425
- .m-speeddial,
426
- .m-orderlist,
427
- .m-picklist,
428
- .m-virtualscroller,
429
- .m-treetable,
430
- .m-megamenu,
431
- .m-dock,
432
- .m-sidebar,
433
- .m-commandmenu,
434
- .m-fileupload,
435
- .m-carousel,
436
- .m-gallery,
437
- .m-metergroup,
438
- .m-fluid,
439
- .m-terminal {
440
- font-family: var(--m-font-sans);
441
- box-sizing: border-box;
442
- }
443
-
444
- .m-button:disabled,
445
- .m-input:disabled,
446
- .m-password__input:disabled,
447
- .m-inputnumber__input:disabled,
448
- .m-inputotp__input:disabled,
449
- .m-inputcolor__text:disabled,
450
- .m-inputcolor__swatch:disabled,
451
- .m-inputtags--disabled {
452
- cursor: not-allowed;
453
- opacity: var(--m-opacity-disabled);
454
- }
455
-
456
- .m-input-field__control--prefixed .m-input:disabled,
457
- .m-input-field__control--suffixed .m-input:disabled,
458
- .m-input-field__control--clearable .m-input:disabled,
459
- .m-password--disabled .m-password__input,
460
- .m-inputnumber--disabled .m-inputnumber__input,
461
- .m-datepicker--disabled .m-datepicker__input,
462
- .m-icon-field--anchored .m-input:disabled,
463
- .m-icon-field--anchored .m-textarea:disabled {
464
- opacity: 1;
465
- }
466
-
467
- .m-input::placeholder,
468
- .m-textarea::placeholder,
469
- .m-password__input::placeholder,
470
- .m-inputnumber__input::placeholder,
471
- .m-inputtags__input::placeholder,
472
- .m-inputcolor__text::placeholder {
473
- color: var(--m-color-text-muted);
474
- opacity: 1;
475
- }
476
-
477
- .m-input-field__meta,
478
- .m-textarea-field__meta,
479
- .m-password-field__meta {
480
- align-items: baseline;
481
- display: flex;
482
- gap: var(--m-space-2);
483
- justify-content: space-between;
484
- }
485
-
486
- .m-input-field__meta:not(:has(.m-input-field__help)),
487
- .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
488
- .m-password-field__meta:not(:has(.m-password__feedback)) {
489
- justify-content: flex-end;
490
- }
491
-
492
- .m-input-field__count,
493
- .m-textarea-field__count,
494
- .m-password-field__count {
495
- color: var(--m-color-text-muted);
496
- flex: 0 0 auto;
497
- font-size: var(--m-font-size-xs);
498
- margin-left: auto;
499
- }
500
-
501
- .m-dropdown__item--parent {
502
- align-items: center;
503
- display: flex;
504
- justify-content: space-between;
505
- width: 100%;
506
- }
507
-
508
- .m-dropdown__icon,
509
- .m-dropdown__caret,
510
- .m-menu__icon,
511
- .m-menubar__icon {
512
- flex-shrink: 0;
513
- }
514
-
515
- .m-dropdown__submenu-wrap {
516
- position: relative;
517
- }
518
-
519
- .m-dropdown__submenu {
520
- --m-dropdown-submenu-max-height: min(18rem, 45vh);
521
- background: var(--m-color-surface);
522
- border: var(--m-border-width) solid var(--m-color-border);
523
- border-radius: var(--m-radius-md);
524
- box-shadow: var(--m-shadow-md);
525
- max-height: var(--m-dropdown-submenu-max-height);
526
- max-width: calc(100vw - 2 * var(--m-space-4));
527
- min-width: 10rem;
528
- overflow: hidden;
529
- padding: var(--m-space-1);
530
- /* Same as .m-dropdown__menu: size to content instead of being clamped
531
- by the space left of the anchor in the viewport. */
532
- width: max-content;
533
- }
534
-
535
- .m-dropdown__submenu--teleported {
536
- position: fixed;
537
- z-index: var(--m-z-dropdown);
538
- }
539
-
540
- .m-dropdown__submenu-scroll {
541
- max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
542
- min-height: 0;
543
- }
544
-
545
- .m-dropdown__submenu-view {
546
- display: grid;
547
- gap: var(--m-space-1);
548
- }
549
-
550
- .m-fade-enter-active,
551
- .m-fade-leave-active {
552
- transition: opacity var(--m-motion-exit) var(--m-motion-ease);
553
- }
554
-
555
- .m-fade-enter-from,
556
- .m-fade-leave-to {
557
- opacity: 0;
558
- }
559
-
560
- .m-scale-fade-enter-active {
561
- transition:
562
- opacity var(--m-motion-enter) var(--m-motion-ease),
563
- transform var(--m-motion-enter) var(--m-motion-ease);
564
- }
565
-
566
- .m-scale-fade-leave-active {
567
- transition:
568
- opacity var(--m-motion-exit) var(--m-motion-ease),
569
- transform var(--m-motion-exit) var(--m-motion-ease);
570
- }
571
-
572
- .m-scale-fade-enter-from,
573
- .m-scale-fade-leave-to {
574
- opacity: 0;
575
- transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
576
- }
577
-
578
- .m-slide-fade-enter-active {
579
- transition:
580
- opacity var(--m-motion-enter) var(--m-motion-ease),
581
- transform var(--m-motion-enter) var(--m-motion-ease);
582
- }
583
-
584
- .m-slide-fade-leave-active {
585
- transition:
586
- opacity var(--m-motion-exit) var(--m-motion-ease),
587
- transform var(--m-motion-exit) var(--m-motion-ease);
588
- }
589
-
590
- .m-slide-fade-enter-from,
591
- .m-slide-fade-leave-to {
592
- opacity: 0;
593
- transform: translateY(calc(var(--m-motion-distance) * -1));
594
- }
595
-
596
- /* Generic center zoom (opacity + scale on the transitioning root) */
597
- .m-zoom-enter-active {
598
- transition:
599
- opacity var(--m-motion-enter) var(--m-motion-ease),
600
- transform var(--m-motion-enter) var(--m-motion-ease);
601
- }
602
-
603
- .m-zoom-leave-active {
604
- transition:
605
- opacity var(--m-motion-exit) var(--m-motion-ease),
606
- transform var(--m-motion-exit) var(--m-motion-ease);
607
- }
608
-
609
- .m-zoom-enter-from,
610
- .m-zoom-leave-to {
611
- opacity: 0;
612
- transform: scale(0.95);
613
- }
614
-
615
- .m-slide-up-enter-active,
616
- .m-slide-down-enter-active,
617
- .m-slide-left-enter-active,
618
- .m-slide-right-enter-active {
619
- transition:
620
- opacity var(--m-motion-enter) var(--m-motion-ease),
621
- transform var(--m-motion-enter) var(--m-motion-ease);
622
- }
623
-
624
- .m-slide-up-leave-active,
625
- .m-slide-down-leave-active,
626
- .m-slide-left-leave-active,
627
- .m-slide-right-leave-active {
628
- transition:
629
- opacity var(--m-motion-exit) var(--m-motion-ease),
630
- transform var(--m-motion-exit) var(--m-motion-ease);
631
- }
632
-
633
- .m-slide-up-enter-from,
634
- .m-slide-up-leave-to {
635
- opacity: 0;
636
- transform: translateY(var(--m-motion-distance));
637
- }
638
-
639
- .m-slide-down-enter-from,
640
- .m-slide-down-leave-to {
641
- opacity: 0;
642
- transform: translateY(calc(var(--m-motion-distance) * -1));
643
- }
644
-
645
- .m-slide-left-enter-from,
646
- .m-slide-left-leave-to {
647
- opacity: 0;
648
- transform: translateX(var(--m-motion-distance));
649
- }
650
-
651
- .m-slide-right-enter-from,
652
- .m-slide-right-leave-to {
653
- opacity: 0;
654
- transform: translateX(calc(var(--m-motion-distance) * -1));
655
- }
656
-
657
- [data-m-motion="reduced"] .m-fade-enter-active,
658
- [data-m-motion="reduced"] .m-fade-leave-active,
659
- [data-m-motion="reduced"] .m-scale-fade-enter-active,
660
- [data-m-motion="reduced"] .m-scale-fade-leave-active,
661
- [data-m-motion="reduced"] .m-slide-fade-enter-active,
662
- [data-m-motion="reduced"] .m-slide-fade-leave-active,
663
- [data-m-motion="reduced"] .m-zoom-enter-active,
664
- [data-m-motion="reduced"] .m-zoom-leave-active,
665
- [data-m-motion="reduced"] .m-slide-up-enter-active,
666
- [data-m-motion="reduced"] .m-slide-up-leave-active,
667
- [data-m-motion="reduced"] .m-slide-down-enter-active,
668
- [data-m-motion="reduced"] .m-slide-down-leave-active,
669
- [data-m-motion="reduced"] .m-slide-left-enter-active,
670
- [data-m-motion="reduced"] .m-slide-left-leave-active,
671
- [data-m-motion="reduced"] .m-slide-right-enter-active,
672
- [data-m-motion="reduced"] .m-slide-right-leave-active,
673
- [data-m-motion="none"] .m-fade-enter-active,
674
- [data-m-motion="none"] .m-fade-leave-active,
675
- [data-m-motion="none"] .m-scale-fade-enter-active,
676
- [data-m-motion="none"] .m-scale-fade-leave-active,
677
- [data-m-motion="none"] .m-slide-fade-enter-active,
678
- [data-m-motion="none"] .m-slide-fade-leave-active,
679
- [data-m-motion="none"] .m-zoom-enter-active,
680
- [data-m-motion="none"] .m-zoom-leave-active,
681
- [data-m-motion="none"] .m-slide-up-enter-active,
682
- [data-m-motion="none"] .m-slide-up-leave-active,
683
- [data-m-motion="none"] .m-slide-down-enter-active,
684
- [data-m-motion="none"] .m-slide-down-leave-active,
685
- [data-m-motion="none"] .m-slide-left-enter-active,
686
- [data-m-motion="none"] .m-slide-left-leave-active,
687
- [data-m-motion="none"] .m-slide-right-enter-active,
688
- [data-m-motion="none"] .m-slide-right-leave-active {
689
- transition: none;
690
- }
691
-
692
- [data-m-motion="reduced"] .m-scale-fade-enter-from,
693
- [data-m-motion="reduced"] .m-scale-fade-leave-to,
694
- [data-m-motion="reduced"] .m-slide-fade-enter-from,
695
- [data-m-motion="reduced"] .m-slide-fade-leave-to,
696
- [data-m-motion="reduced"] .m-zoom-enter-from,
697
- [data-m-motion="reduced"] .m-zoom-leave-to,
698
- [data-m-motion="reduced"] .m-slide-up-enter-from,
699
- [data-m-motion="reduced"] .m-slide-up-leave-to,
700
- [data-m-motion="reduced"] .m-slide-down-enter-from,
701
- [data-m-motion="reduced"] .m-slide-down-leave-to,
702
- [data-m-motion="reduced"] .m-slide-left-enter-from,
703
- [data-m-motion="reduced"] .m-slide-left-leave-to,
704
- [data-m-motion="reduced"] .m-slide-right-enter-from,
705
- [data-m-motion="reduced"] .m-slide-right-leave-to,
706
- [data-m-motion="none"] .m-scale-fade-enter-from,
707
- [data-m-motion="none"] .m-scale-fade-leave-to,
708
- [data-m-motion="none"] .m-slide-fade-enter-from,
709
- [data-m-motion="none"] .m-slide-fade-leave-to,
710
- [data-m-motion="none"] .m-zoom-enter-from,
711
- [data-m-motion="none"] .m-zoom-leave-to,
712
- [data-m-motion="none"] .m-slide-up-enter-from,
713
- [data-m-motion="none"] .m-slide-up-leave-to,
714
- [data-m-motion="none"] .m-slide-down-enter-from,
715
- [data-m-motion="none"] .m-slide-down-leave-to,
716
- [data-m-motion="none"] .m-slide-left-enter-from,
717
- [data-m-motion="none"] .m-slide-left-leave-to,
718
- [data-m-motion="none"] .m-slide-right-enter-from,
719
- [data-m-motion="none"] .m-slide-right-leave-to {
720
- transform: none;
721
- }
722
-
723
- /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
724
- @keyframes m-progress-spinner-rotate {
725
- 100% {
726
- transform: rotate(360deg);
727
- }
728
- }
729
-
730
- .m-checkbox,
731
- .m-radio,
732
- .m-switch {
733
- align-items: center;
734
- color: var(--m-color-text);
735
- cursor: pointer;
736
- display: inline-flex;
737
- font-family: var(--m-font-sans);
738
- gap: var(--m-space-2);
739
- /* 避免绝对定位 input 挂到上层 MScrollbar,聚焦时把滚动容器拽回顶部 */
740
- position: relative;
741
- }
742
-
743
- .m-checkbox--disabled,
744
- .m-radio--disabled,
745
- .m-switch--disabled {
746
- color: var(--m-color-text-muted);
747
- cursor: not-allowed;
748
- opacity: var(--m-opacity-disabled);
749
- }
750
-
751
- .m-checkbox--invalid .m-checkbox__control,
752
- .m-radio--invalid .m-radio__control {
753
- border-color: var(--m-color-danger);
754
- }
755
-
756
- .m-checkbox__input,
757
- .m-radio__input,
758
- .m-switch__input {
759
- clip: rect(0, 0, 0, 0);
760
- clip-path: inset(50%);
761
- height: 1px;
762
- margin: -1px;
763
- overflow: hidden;
764
- opacity: 0;
765
- position: absolute;
766
- white-space: nowrap;
767
- width: 1px;
768
- }
769
-
770
- .m-checkbox__control,
771
- .m-radio__control {
772
- align-items: center;
773
- background: var(--m-color-surface);
774
- border: var(--m-border-width) solid var(--m-color-border);
775
- display: inline-flex;
776
- flex: 0 0 auto;
777
- height: var(--m-checkbox-control-size, 1.125rem);
778
- justify-content: center;
779
- transition:
780
- background-color var(--m-motion-fast) var(--m-motion-ease),
781
- border-color var(--m-motion-fast) var(--m-motion-ease),
782
- box-shadow var(--m-motion-fast) var(--m-motion-ease);
783
- width: var(--m-checkbox-control-size, 1.125rem);
784
- }
785
-
786
- .m-checkbox__input:checked + .m-checkbox__control,
787
- .m-radio__input:checked + .m-radio__control {
788
- background: var(--m-color-primary);
789
- border-color: var(--m-color-primary);
790
- }
791
-
792
- .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
793
- .m-radio:not(.m-radio--disabled):hover .m-radio__control {
794
- border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
795
- }
796
-
797
- .m-checkbox__input:focus-visible + .m-checkbox__control,
798
- .m-radio__input:focus-visible + .m-radio__control,
799
- .m-switch__input:focus-visible + .m-switch__track {
800
- box-shadow: var(--m-focus-shadow);
801
- outline: none;
802
- }
803
-
804
- .m-checkbox__label,
805
- .m-radio__label,
806
- .m-switch__label {
807
- font-size: var(--m-font-size-md);
808
- }
809
-
810
- .m-textarea-field,
811
- .m-select-field {
812
- display: grid;
813
- font-family: var(--m-font-sans);
814
- gap: var(--m-space-2);
815
- max-width: 100%;
816
- min-width: var(--m-menu-min-width);
817
- position: relative;
818
- width: fit-content;
819
- }
820
-
821
- .m-textarea-field--fluid,
822
- .m-select-field--fluid {
823
- width: 100%;
824
- }
825
-
826
- .m-textarea-field__label,
827
- .m-select-field__label {
828
- color: var(--m-color-text);
829
- font-family: var(--m-font-sans);
830
- font-size: var(--m-font-size-md);
831
- font-weight: 600;
832
- }
833
-
834
- .m-textarea-field__help,
835
- .m-select-field__help {
836
- color: var(--m-color-text-muted);
837
- font-size: var(--m-font-size-xs);
838
- }
839
-
840
- .m-textarea-field__help--invalid,
841
- .m-select-field__help--invalid {
842
- color: var(--m-color-danger);
843
- }
844
-
845
- .m-textarea,
846
- .m-select {
847
- background: var(--m-color-surface);
848
- border: var(--m-border-width) solid var(--m-color-border);
849
- border-radius: var(--m-radius-control);
850
- color: var(--m-color-text);
851
- font: inherit;
852
- transition:
853
- border-color var(--m-motion-fast) var(--m-motion-ease),
854
- box-shadow var(--m-motion-fast) var(--m-motion-ease),
855
- background-color var(--m-motion-fast) var(--m-motion-ease);
856
- width: 100%;
857
- }
858
-
859
- .m-textarea--invalid:focus-visible,
860
- .m-select--invalid.m-select--open,
861
- .m-select--invalid:focus-visible {
862
- border-color: var(--m-color-danger);
863
- box-shadow: var(--m-focus-shadow-danger);
864
- }
865
-
866
- .m-textarea:disabled,
867
- .m-select:disabled,
868
- .m-select--disabled {
869
- cursor: not-allowed;
870
- opacity: var(--m-opacity-disabled);
871
- }
872
-
873
- .m-inputgroup > .m-input,
874
- .m-inputgroup > .m-input-field,
875
- .m-inputgroup > .m-password-field,
876
- .m-inputgroup > .m-inputnumber-field {
877
- flex: 1 1 auto;
878
- min-width: 0;
879
- }
880
-
881
- .m-inputgroup > .m-input-field,
882
- .m-inputgroup > .m-password-field,
883
- .m-inputgroup > .m-inputnumber-field {
884
- display: flex;
885
- flex-direction: column;
886
- gap: 0;
887
- }
888
-
889
- .m-inputgroup > .m-input,
890
- .m-inputgroup .m-input,
891
- .m-inputgroup .m-password,
892
- .m-inputgroup .m-inputnumber__input-wrap,
893
- .m-inputgroup .m-input-field__control--prefixed,
894
- .m-inputgroup .m-input-field__control--suffixed,
895
- .m-inputgroup .m-input-field__control--clearable {
896
- border-radius: 0;
897
- width: 100%;
898
- }
899
-
900
- .m-inputgroup > :first-child.m-input,
901
- .m-inputgroup > :first-child .m-input,
902
- .m-inputgroup > :first-child .m-password,
903
- .m-inputgroup > :first-child .m-inputnumber__input-wrap,
904
- .m-inputgroup > :first-child .m-input-field__control--prefixed,
905
- .m-inputgroup > :first-child .m-input-field__control--suffixed,
906
- .m-inputgroup > :first-child .m-input-field__control--clearable,
907
- .m-inputgroup > :first-child.m-inputgroup-addon {
908
- border-bottom-left-radius: var(--m-radius-control);
909
- border-top-left-radius: var(--m-radius-control);
910
- }
911
-
912
- .m-inputgroup > :last-child.m-input,
913
- .m-inputgroup > :last-child .m-input,
914
- .m-inputgroup > :last-child .m-password,
915
- .m-inputgroup > :last-child .m-inputnumber__input-wrap,
916
- .m-inputgroup > :last-child .m-input-field__control--prefixed,
917
- .m-inputgroup > :last-child .m-input-field__control--suffixed,
918
- .m-inputgroup > :last-child .m-input-field__control--clearable,
919
- .m-inputgroup > :last-child.m-inputgroup-addon {
920
- border-bottom-right-radius: var(--m-radius-control);
921
- border-top-right-radius: var(--m-radius-control);
922
- }
923
-
924
- .m-inputgroup > .m-inputgroup-addon + .m-input,
925
- .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
926
- .m-inputgroup > .m-input + .m-inputgroup-addon,
927
- .m-inputgroup > .m-input-field + .m-inputgroup-addon {
928
- margin-left: calc(var(--m-border-width) * -1);
929
- }
930
-
931
- .m-layout__scrollbar > .m-scrollbar__wrap {
932
- height: 100%;
933
- overflow-x: hidden;
934
- }
935
-
936
- .m-layout-sider__scrollbar > .m-scrollbar__wrap {
937
- height: 100%;
938
- overflow-x: hidden;
939
- }
940
-
941
- .m-treetable__scrollbar > .m-scrollbar__wrap,
942
- .m-terminal__scrollbar > .m-scrollbar__wrap {
943
- height: 100%;
944
- overflow-x: hidden;
945
- }
946
-
947
- .m-scroll-body.m-scrollbar {
948
- min-height: 0;
949
- min-width: 0;
950
- }
951
-
952
- /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
953
- .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
954
- width: 100%;
955
- }
956
-
957
- .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
958
- overflow: auto;
959
- }
960
-
961
- .m-orderlist__btn,
962
- .m-picklist__btn {
963
- align-items: center;
964
- background: var(--m-color-surface);
965
- border: var(--m-border-width) solid var(--m-color-border);
966
- border-radius: var(--m-radius-sm);
967
- color: var(--m-color-text);
968
- cursor: pointer;
969
- display: inline-flex;
970
- font: inherit;
971
- gap: 0;
972
- justify-content: center;
973
- min-height: var(--m-control-height-small, 1.75rem);
974
- min-width: var(--m-control-affix-size);
975
- padding: var(--m-space-1) var(--m-space-2);
976
- }
977
-
978
- .m-orderlist__btn:hover:not(:disabled),
979
- .m-picklist__btn:hover:not(:disabled) {
980
- border-color: var(--m-color-primary);
981
- color: var(--m-color-primary);
982
- }
983
-
984
- .m-orderlist__btn:disabled,
985
- .m-picklist__btn:disabled {
986
- cursor: not-allowed;
987
- opacity: var(--m-opacity-disabled);
988
- }
989
-
990
- .m-orderlist__btn:focus-visible,
991
- .m-picklist__btn:focus-visible {
992
- border-color: var(--m-color-primary);
993
- box-shadow: var(--m-focus-shadow);
994
- outline: none;
995
- }
996
-
997
- .m-picklist__btn .m-icon + .m-icon {
998
- margin-left: -0.35rem;
999
- }
1000
-
1001
- .m-orderlist__scrollbar,
1002
- .m-picklist__scrollbar {
1003
- flex: 1;
1004
- max-height: 16rem;
1005
- min-height: 12rem;
1006
- min-width: var(--m-menu-min-width);
1007
- }
1008
-
1009
- .m-orderlist__list,
1010
- .m-picklist__list {
1011
- background: var(--m-color-surface);
1012
- border: var(--m-border-width) solid var(--m-color-border);
1013
- border-radius: var(--m-radius-md);
1014
- padding: var(--m-space-1);
1015
- }
1016
-
1017
- .m-orderlist__options,
1018
- .m-picklist__options {
1019
- list-style: none;
1020
- margin: 0;
1021
- padding: 0;
1022
- }
1023
-
1024
- .m-orderlist__item,
1025
- .m-picklist__item {
1026
- border-radius: var(--m-radius-sm);
1027
- cursor: pointer;
1028
- padding: var(--m-space-2) var(--m-space-3);
1029
- }
1030
-
1031
- .m-orderlist__item:hover,
1032
- .m-picklist__item:hover {
1033
- background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
1034
- }
1035
-
1036
- .m-orderlist__item:focus-visible,
1037
- .m-picklist__item:focus-visible {
1038
- box-shadow: var(--m-focus-shadow);
1039
- outline: none;
1040
- }
1041
-
1042
- .m-orderlist__item--selected,
1043
- .m-picklist__item--selected {
1044
- background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
1045
- color: var(--m-color-primary);
1046
- font-weight: 600;
1047
- }
1048
-
1049
- .m-carousel__nav,
1050
- .m-gallery__nav {
1051
- background: var(--m-color-surface);
1052
- border: var(--m-border-width) solid var(--m-color-border);
1053
- border-radius: var(--m-radius-full, 999px);
1054
- color: var(--m-color-text);
1055
- cursor: pointer;
1056
- flex: 0 0 auto;
1057
- font: inherit;
1058
- height: var(--m-control-affix-size);
1059
- width: var(--m-control-affix-size);
1060
- }
1061
-
1062
- .m-carousel__nav:disabled,
1063
- .m-gallery__nav:disabled {
1064
- cursor: not-allowed;
1065
- opacity: var(--m-opacity-disabled);
1066
- }
1067
-
1068
- /* Shared Naive-like hover/focus for remaining form triggers */
1069
- .m-inputotp__input:hover:not(:disabled):not(:focus),
1070
- .m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
1071
- .m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
1072
- .m-inputcolor__text:hover:not(:disabled):not(:focus),
1073
- .m-inputtags:hover:not(.m-inputtags--disabled),
1074
- .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked),
1075
- .m-inplace__display:hover {
1076
- border-color: var(--m-color-primary-hover);
1077
- }
1078
-
1079
- .m-inputotp__input:focus-visible,
1080
- .m-cascadeselect__trigger:focus-visible,
1081
- .m-treeselect__trigger:focus-visible,
1082
- .m-inputcolor__text:focus-visible,
1083
- .m-inputtags:focus-within,
1084
- .m-togglebutton:focus-visible,
1085
- .m-selectbutton__button:focus-visible,
1086
- .m-splitbutton__main:focus-visible,
1087
- .m-splitbutton__trigger:focus-visible,
1088
- .m-inplace__display:focus-visible,
1089
- .m-pagination__button:focus-visible {
1090
- border-color: var(--m-color-primary-hover);
1091
- box-shadow: var(--m-focus-shadow);
1092
- outline: none;
1093
- }
1094
-
1095
- .m-inputotp--invalid .m-inputotp__input:focus-visible,
1096
- .m-inputtags--invalid:focus-within,
1097
- .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1098
- border-color: var(--m-color-danger);
1099
- box-shadow: var(--m-focus-shadow-danger);
1100
- }
1101
-
1102
- .m-checkbox-group,
1103
- .m-radio-group {
1104
- display: flex;
1105
- flex-wrap: wrap;
1106
- gap: var(--m-space-3);
1107
- }
1108
-
1109
- .m-checkbox--small .m-checkbox__control,
1110
- .m-radio--small .m-radio__control {
1111
- height: 0.95rem;
1112
- width: 0.95rem;
1113
- }
1114
-
1115
- .m-checkbox--large .m-checkbox__control,
1116
- .m-radio--large .m-radio__control {
1117
- height: 1.35rem;
1118
- width: 1.35rem;
1119
- }
1120
-
1121
- .m-inputnumber__clear,
1122
- .m-autocomplete__clear {
1123
- background: transparent;
1124
- border: 0;
1125
- color: var(--m-color-text-muted);
1126
- cursor: pointer;
1127
- font: inherit;
1128
- line-height: 1;
1129
- }
1130
-
1131
- [data-m-motion="none"] *,
1132
- [data-m-motion="none"] *::before,
1133
- [data-m-motion="none"] *::after {
1134
- animation-duration: 0.01ms !important;
1135
- animation-iteration-count: 1 !important;
1136
- scroll-behavior: auto !important;
1137
- transition-duration: 0.01ms !important;
1138
- }
1139
-
1140
- [data-m-motion="reduced"] .m-progress-spinner,
1141
- [data-m-motion="reduced"] .m-progress-spinner__circle,
1142
- [data-m-motion="reduced"] .m-skeleton,
1143
- [data-m-motion="reduced"] .m-badge--processing,
1144
- [data-m-motion="reduced"] .m-icon--spin,
1145
- [data-m-motion="reduced"] .m-button__spinner,
1146
- [data-m-motion="reduced"] .m-select__loading-icon,
1147
- [data-m-motion="reduced"] .m-switch__loading-icon {
1148
- animation: none !important;
1149
- }
20
+ --m-radius-control: 3px;
21
+ --m-border-width: 1px;
22
+ --m-focus-shadow: 0 0 0 2px
23
+ color-mix(in srgb, var(--m-color-primary) 20%, transparent);
24
+ --m-focus-shadow-danger: 0 0 0 2px
25
+ color-mix(in srgb, var(--m-color-danger) 20%, transparent);
26
+ --m-color-success: #159570;
27
+ --m-color-info: #2563eb;
28
+ --m-color-warning: #d97706;
29
+ --m-color-warn: var(--m-color-warning);
30
+ --m-color-help: #9333ea;
31
+ --m-color-danger: #dc2626;
32
+ --m-color-contrast: #0f172a;
33
+ --m-color-contrast-fg: #ffffff;
34
+ --m-color-contrast-hover: #1e293b;
35
+ --m-color-contrast-active: #020617;
36
+ --m-color-on-emphasis: #ffffff;
37
+ --m-overlay-scrim: rgb(15 23 42 / 0.55);
38
+ --m-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.25);
39
+ --m-shadow-md: 0 0.75rem 2rem rgb(15 23 42 / 0.16);
40
+ --m-shadow-lg: 0 1rem 3rem rgb(15 23 42 / 0.25);
41
+ --m-shadow-raised: 0 0.25rem 0.75rem
42
+ color-mix(in srgb, var(--m-color-text) 14%, transparent);
43
+ --m-shadow-sticky: 4px 0 8px
44
+ color-mix(in srgb, var(--m-color-text) 6%, transparent);
45
+ --m-shadow-sticky-end: -4px 0 8px
46
+ color-mix(in srgb, var(--m-color-text) 6%, transparent);
47
+
48
+ /* Typography scale (component text, not control-height fonts) */
49
+ --m-font-size-xs: 0.75rem;
50
+ --m-font-size-sm: 0.8125rem;
51
+ --m-font-size-md: 0.875rem;
52
+ --m-font-size-lg: 1.125rem;
53
+ /* Display scale (page titles, KPI figures) */
54
+ --m-font-size-xl: 1.25rem;
55
+ --m-font-size-2xl: 1.5rem;
56
+ --m-font-size-3xl: 1.75rem;
57
+ --m-opacity-disabled: 0.55;
58
+ /* Layering: override --m-z-base via ConfigProvider / createMoryaUI */
59
+ --m-z-base: 1000;
60
+ --m-z-overlay: var(--m-z-base);
61
+ --m-z-overlay-raised: calc(var(--m-z-base) + 1);
62
+ --m-z-dropdown: calc(var(--m-z-base) + 50);
63
+ --m-z-tooltip: calc(var(--m-z-base) + 60);
64
+ --m-z-toast: calc(var(--m-z-base) + 100);
65
+ --m-z-popper: 40;
66
+
67
+ /* Affix hitbox tracks control height so small/compact shells do not overflow */
68
+ --m-control-affix-size: calc(
69
+ var(--m-control-height-medium) - 2 * var(--m-border-width)
70
+ );
71
+ --m-control-affix-gap: 2.35rem;
72
+ --m-control-affix-padding: 2.5rem;
73
+ --m-meter-track-height: var(--m-space-5);
74
+ --m-tree-toggler-size: var(--m-checkbox-control-size);
75
+ --m-nav-rail-width: 12.5rem;
76
+ --m-nav-rail-collapsed-width: 4rem;
77
+ --m-layout-header-height: calc(
78
+ var(--m-control-height-medium) + 2 * var(--m-space-3)
79
+ );
80
+ --m-layout-footer-height: calc(
81
+ var(--m-control-height-medium) + 2 * var(--m-space-2)
82
+ );
83
+ --m-space-1: 0.25rem;
84
+ --m-space-2: 0.5rem;
85
+ --m-space-3: 0.75rem;
86
+ --m-space-4: 1rem;
87
+ --m-space-5: 1.25rem;
88
+ --m-space-6: 1.5rem;
89
+ --m-space-8: 2rem;
90
+ --m-radius-sm: 0.25rem;
91
+ --m-radius-md: 0.5rem;
92
+ --m-radius-lg: 0.75rem;
93
+ --m-radius-full: 9999px;
94
+ --m-font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
95
+ --m-motion-fast: 150ms;
96
+ --m-motion-normal: 250ms;
97
+ --m-motion-ease: cubic-bezier(0.2, 0, 0, 1);
98
+ --m-motion-enter: 180ms;
99
+ --m-motion-exit: 130ms;
100
+ --m-motion-distance: 1rem;
101
+ --m-motion-spin: 1s;
102
+ --m-motion-spin-dash: 1.5s;
103
+ --m-motion-spin-fast: 0.8s;
104
+ --m-motion-spin-medium: 0.7s;
105
+ --m-motion-skeleton: 1.4s;
106
+ --m-motion-pulse: 1.2s;
107
+ --m-motion-scrollbar-show: 340ms;
108
+ --m-motion-scrollbar-hide: 120ms;
109
+ --m-motion-loading-aurora: 3s;
110
+ --m-motion-loading-bounce: 0.6s;
111
+ --m-motion-loading-pulse: 1.8s;
112
+ --m-motion-loading-stardust: 1.6s;
113
+ --m-motion-loading-circular-rotate: 2s;
114
+ --m-dataview-grid-min: 10rem;
115
+ --m-tree-indent: 0.7rem;
116
+ --m-tree-indent-padding: var(--m-space-3);
117
+ --m-layout-trigger-bar-height: 4.5rem;
118
+ --m-layout-trigger-bar-offset: 1.75rem;
119
+ --m-layout-trigger-bar-width: 2rem;
120
+ --m-layout-trigger-bar-top: 2.25rem;
121
+ --m-timeline-event-min-height: 4rem;
122
+ --m-timeline-marker-size: 1.5rem;
123
+ --m-tag-font-size-small: var(--m-font-size-xs);
124
+ --m-slider-tooltip-offset: 1.5rem;
125
+ --m-slider-tooltip-padding-block: 0.15rem;
126
+ --m-slider-tooltip-padding-inline: 0.4rem;
127
+ --m-rating-star-size-small: 1rem;
128
+ --m-rating-star-size-medium: 1.25rem;
129
+ --m-rating-star-size-large: 1.5rem;
130
+ --m-rating-star-padding: 0.15rem;
131
+ --m-slider-marks-inset: 0.9rem;
132
+ --m-slider-marks-side: 0.5rem;
133
+ --m-stepper-connector-color: var(--m-color-border);
134
+
135
+ /* Table (Element Plus–aligned) */
136
+ --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
137
+ --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 3.5%, var(--m-color-surface));
138
+ --m-table-border-color: var(--m-color-border);
139
+ --m-table-header-bg: var(--m-color-fill-light);
140
+ --m-table-header-text: var(--m-color-text);
141
+ --m-table-text: var(--m-color-text);
142
+ --m-table-row-bg: var(--m-color-surface);
143
+ --m-table-row-hover-bg: var(--m-color-fill-light);
144
+ --m-table-row-striped-bg: var(--m-color-fill-lighter);
145
+ --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 10%, var(--m-color-surface));
146
+ --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
147
+ --m-table-expanded-bg: var(--m-color-fill-lighter);
148
+ --m-table-font-size: var(--m-font-size-md);
149
+ --m-table-row-height: 40px;
150
+ --m-table-cell-line-height: 23px;
151
+ --m-table-cell-padding-inline: 12px;
152
+ }
153
+
154
+ :root[data-m-motion="reduced"] {
155
+ --m-motion-fast: 80ms;
156
+ --m-motion-normal: 120ms;
157
+ --m-motion-enter: 100ms;
158
+ --m-motion-exit: 80ms;
159
+ --m-motion-distance: 0;
160
+ /* Looping indicators: keep a short pulse so state is still perceptible */
161
+ --m-motion-spin: 0ms;
162
+ --m-motion-spin-dash: 0ms;
163
+ --m-motion-spin-fast: 0ms;
164
+ --m-motion-spin-medium: 0ms;
165
+ --m-motion-skeleton: 0ms;
166
+ --m-motion-pulse: 0ms;
167
+ --m-motion-scrollbar-show: 160ms;
168
+ --m-motion-scrollbar-hide: 80ms;
169
+ --m-motion-loading-aurora: 0ms;
170
+ --m-motion-loading-bounce: 0ms;
171
+ --m-motion-loading-pulse: 0ms;
172
+ --m-motion-loading-stardust: 0ms;
173
+ --m-motion-loading-circular-rotate: 0ms;
174
+ }
175
+
176
+ :root[data-m-motion="none"] {
177
+ --m-motion-fast: 0ms;
178
+ --m-motion-normal: 0ms;
179
+ --m-motion-enter: 0ms;
180
+ --m-motion-exit: 0ms;
181
+ --m-motion-distance: 0;
182
+ --m-motion-spin: 0ms;
183
+ --m-motion-spin-dash: 0ms;
184
+ --m-motion-spin-fast: 0ms;
185
+ --m-motion-spin-medium: 0ms;
186
+ --m-motion-skeleton: 0ms;
187
+ --m-motion-pulse: 0ms;
188
+ --m-motion-scrollbar-show: 0ms;
189
+ --m-motion-scrollbar-hide: 0ms;
190
+ --m-motion-loading-aurora: 0ms;
191
+ --m-motion-loading-bounce: 0ms;
192
+ --m-motion-loading-pulse: 0ms;
193
+ --m-motion-loading-stardust: 0ms;
194
+ --m-motion-loading-circular-rotate: 0ms;
195
+ }
196
+
197
+ /*
198
+ * Global motion policy (complements per-component rules):
199
+ * - `reduced`: keep short paint transitions; stop loops
200
+ * and layout/transform size animation.
201
+ * - `none`: zero all transition/animation durations.
202
+ */
203
+
204
+ [data-m-motion="reduced"] *,
205
+ [data-m-motion="reduced"] *::before,
206
+ [data-m-motion="reduced"] *::after {
207
+ animation-duration: 0.01ms !important;
208
+ animation-iteration-count: 1 !important;
209
+ transition-property: background-color, border-color, color, opacity, box-shadow, outline,
210
+ fill, stroke, stroke-dashoffset !important;
211
+ }
212
+
213
+ [data-m-motion="none"] *,
214
+ [data-m-motion="none"] *::before,
215
+ [data-m-motion="none"] *::after {
216
+ animation-duration: 0.01ms !important;
217
+ animation-iteration-count: 1 !important;
218
+ transition-duration: 0.01ms !important;
219
+ scroll-behavior: auto !important;
220
+ }
221
+
222
+ /* Off-screen looping indicators (usePauseOffscreen → data-m-anim-paused) */
223
+ [data-m-anim-paused],
224
+ [data-m-anim-paused]::before,
225
+ [data-m-anim-paused]::after,
226
+ [data-m-anim-paused] *,
227
+ [data-m-anim-paused] *::before,
228
+ [data-m-anim-paused] *::after {
229
+ animation-play-state: paused !important;
230
+ }
231
+
232
+ /* Global density: scales spacing + control heights (Vuetify-inspired, WD tokens) */
233
+ :root,
234
+ [data-m-density="comfortable"] {
235
+ --m-density-scale: 1;
236
+ --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-2));
237
+ --m-checkbox-control-size: 1.125rem;
238
+ }
239
+
240
+ [data-m-density="compact"] {
241
+ --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-1));
242
+ --m-control-affix-padding: 2.15rem;
243
+ --m-control-affix-gap: 2rem;
244
+ --m-checkbox-control-size: 1rem;
245
+ --m-nav-rail-width: 15rem;
246
+ --m-nav-rail-collapsed-width: 3.25rem;
247
+ --m-space-1: 0.2rem;
248
+ --m-space-2: 0.4rem;
249
+ --m-space-3: 0.6rem;
250
+ --m-space-4: 0.85rem;
251
+ --m-space-5: 1.05rem;
252
+ --m-space-6: 1.25rem;
253
+ --m-space-8: 1.7rem;
254
+ --m-control-height-small: 24px;
255
+ --m-control-height-medium: 28px;
256
+ --m-control-height-large: 34px;
257
+ --m-control-font-small: 13px;
258
+ --m-control-font-medium: 13px;
259
+ --m-control-font-large: 14px;
260
+ --m-control-padding-x-small: 8px;
261
+ --m-control-padding-x-medium: 10px;
262
+ --m-control-padding-x-large: 12px;
263
+ --m-table-row-height: 36px;
264
+ --m-table-cell-line-height: 20px;
265
+ --m-table-cell-padding-inline: 10px;
266
+ --m-table-font-size: var(--m-font-size-sm);
267
+ }
268
+
269
+ [data-m-density="spacious"] {
270
+ --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-3));
271
+ --m-control-affix-padding: 2.85rem;
272
+ --m-control-affix-gap: 2.65rem;
273
+ --m-checkbox-control-size: 1.25rem;
274
+ --m-nav-rail-width: 18rem;
275
+ --m-nav-rail-collapsed-width: 4.5rem;
276
+ --m-space-1: 0.3rem;
277
+ --m-space-2: 0.6rem;
278
+ --m-space-3: 0.9rem;
279
+ --m-space-4: 1.15rem;
280
+ --m-space-5: 1.45rem;
281
+ --m-space-6: 1.75rem;
282
+ --m-space-8: 2.35rem;
283
+ --m-control-height-small: 32px;
284
+ --m-control-height-medium: 40px;
285
+ --m-control-height-large: 46px;
286
+ --m-control-font-small: 14px;
287
+ --m-control-font-medium: 15px;
288
+ --m-control-font-large: 16px;
289
+ --m-control-padding-x-small: 12px;
290
+ --m-control-padding-x-medium: 14px;
291
+ --m-control-padding-x-large: 16px;
292
+ --m-table-row-height: 48px;
293
+ --m-table-cell-line-height: 26px;
294
+ --m-table-cell-padding-inline: 16px;
295
+ --m-table-font-size: 1rem;
296
+ }
297
+
298
+ [data-m-density="compact"] .m-layout-header {
299
+ --m-layout-header-height: 3rem;
300
+ }
301
+
302
+ [data-m-density="compact"] .m-layout-footer {
303
+ --m-layout-footer-height: 2.5rem;
304
+ }
305
+
306
+ [data-m-density="spacious"] .m-layout-header {
307
+ --m-layout-header-height: 4rem;
308
+ }
309
+
310
+ [data-m-density="spacious"] .m-layout-footer {
311
+ --m-layout-footer-height: 3.5rem;
312
+ }
313
+
314
+ [data-theme="dark"] {
315
+ --m-color-primary: #60a5fa;
316
+ --m-color-primary-hover: #93c5fd;
317
+ --m-color-surface: #0f172a;
318
+ --m-color-text: #f8fafc;
319
+ --m-color-text-muted: #94a3b8;
320
+ --m-color-border: #334155;
321
+ --m-color-focus-ring: #93c5fd;
322
+ --m-focus-shadow: 0 0 0 2px
323
+ color-mix(in srgb, var(--m-color-primary) 28%, transparent);
324
+ --m-focus-shadow-danger: 0 0 0 2px
325
+ color-mix(in srgb, var(--m-color-danger) 28%, transparent);
326
+ /* Mid solids: keep ≥~4.5:1 with --m-color-on-emphasis on dark surfaces */
327
+ --m-color-success: #0f766e;
328
+ --m-color-info: #1d4ed8;
329
+ --m-color-warning: #b45309;
330
+ --m-color-warn: var(--m-color-warning);
331
+ --m-color-help: #7e22ce;
332
+ --m-color-danger: #dc2626;
333
+ --m-color-contrast: #f8fafc;
334
+ --m-color-contrast-fg: #0f172a;
335
+ --m-color-contrast-hover: #e2e8f0;
336
+ --m-color-contrast-active: #cbd5e1;
337
+ --m-overlay-scrim: rgb(2 6 23 / 0.72);
338
+ --m-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.45);
339
+ --m-shadow-md: 0 0.75rem 2rem rgb(0 0 0 / 0.45);
340
+ --m-shadow-lg: 0 1rem 3rem rgb(0 0 0 / 0.55);
341
+ --m-shadow-raised: 0 0.25rem 0.75rem
342
+ color-mix(in srgb, var(--m-color-text) 22%, transparent);
343
+ --m-shadow-sticky: 4px 0 8px
344
+ color-mix(in srgb, #000 35%, transparent);
345
+ --m-shadow-sticky-end: -4px 0 8px
346
+ color-mix(in srgb, #000 35%, transparent);
347
+
348
+ --m-table-border-color: color-mix(in srgb, var(--m-color-border) 88%, var(--m-color-text));
349
+ --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 10%, var(--m-color-surface));
350
+ --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
351
+ --m-table-header-bg: var(--m-color-fill-light);
352
+ --m-table-row-bg: var(--m-color-surface);
353
+ --m-table-row-hover-bg: color-mix(in srgb, var(--m-color-text) 8%, var(--m-color-surface));
354
+ --m-table-row-striped-bg: var(--m-color-fill-lighter);
355
+ --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 16%, var(--m-color-surface));
356
+ --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 20%, var(--m-color-surface));
357
+ --m-table-expanded-bg: var(--m-color-fill-lighter);
358
+ }
359
+
360
+ /* Shared tokens consumption, type, focus, and mixed selectors. */
361
+
362
+ :root {
363
+ /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
364
+ --m-menu-min-width: 12rem;
365
+ }
366
+
367
+ .m-button,
368
+ .m-input,
369
+ .m-card,
370
+ .m-dialog,
371
+ .m-drawer,
372
+ .m-popover,
373
+ .m-accordion,
374
+ .m-scrollbar,
375
+ .m-panel,
376
+ .m-fieldset,
377
+ .m-flex,
378
+ .m-space,
379
+ .m-grid,
380
+ .m-layout,
381
+ .m-layout-header,
382
+ .m-layout-footer,
383
+ .m-layout-sider,
384
+ .m-splitter,
385
+ .m-stepper,
386
+ .m-toolbar,
387
+ .m-page-content,
388
+ .m-page-header,
389
+ .m-page-toolbar,
390
+ .m-menu,
391
+ .m-menubar,
392
+ .m-contextmenu,
393
+ .m-tieredmenu,
394
+ .m-dropdown,
395
+ .m-breadcrumb,
396
+ .m-tabs,
397
+ .m-datepicker,
398
+ .m-listbox,
399
+ .m-togglebutton,
400
+ .m-select,
401
+ .m-textarea,
402
+ .m-selectbutton,
403
+ .m-inputotp,
404
+ .m-knob,
405
+ .m-autocomplete,
406
+ .m-splitbutton,
407
+ .m-tree,
408
+ .m-timeline,
409
+ .m-dataview,
410
+ .m-confirmpopup,
411
+ .m-scrolltop,
412
+ .m-blockui,
413
+ .m-inplace,
414
+ .m-message,
415
+ .m-toast,
416
+ .m-tooltip,
417
+ .m-empty,
418
+ .m-result,
419
+ .m-progress-spinner,
420
+ .m-cascadeselect,
421
+ .m-treeselect,
422
+ .m-inputcolor,
423
+ .m-inputtags,
424
+ .m-label,
425
+ .m-speeddial,
426
+ .m-orderlist,
427
+ .m-picklist,
428
+ .m-virtualscroller,
429
+ .m-treetable,
430
+ .m-megamenu,
431
+ .m-dock,
432
+ .m-sidebar,
433
+ .m-commandmenu,
434
+ .m-fileupload,
435
+ .m-carousel,
436
+ .m-gallery,
437
+ .m-metergroup,
438
+ .m-fluid,
439
+ .m-terminal {
440
+ font-family: var(--m-font-sans);
441
+ box-sizing: border-box;
442
+ }
443
+
444
+ .m-button:disabled,
445
+ .m-input:disabled,
446
+ .m-password__input:disabled,
447
+ .m-inputnumber__input:disabled,
448
+ .m-inputotp__input:disabled,
449
+ .m-inputcolor__text:disabled,
450
+ .m-inputcolor__swatch:disabled,
451
+ .m-inputtags--disabled {
452
+ cursor: not-allowed;
453
+ opacity: var(--m-opacity-disabled);
454
+ }
455
+
456
+ .m-input-field__control--prefixed .m-input:disabled,
457
+ .m-input-field__control--suffixed .m-input:disabled,
458
+ .m-input-field__control--clearable .m-input:disabled,
459
+ .m-password--disabled .m-password__input,
460
+ .m-inputnumber--disabled .m-inputnumber__input,
461
+ .m-datepicker--disabled .m-datepicker__input,
462
+ .m-icon-field--anchored .m-input:disabled,
463
+ .m-icon-field--anchored .m-textarea:disabled {
464
+ opacity: 1;
465
+ }
466
+
467
+ .m-input::placeholder,
468
+ .m-textarea::placeholder,
469
+ .m-password__input::placeholder,
470
+ .m-inputnumber__input::placeholder,
471
+ .m-inputtags__input::placeholder,
472
+ .m-inputcolor__text::placeholder {
473
+ color: var(--m-color-text-muted);
474
+ opacity: 1;
475
+ }
476
+
477
+ .m-input-field__meta,
478
+ .m-textarea-field__meta,
479
+ .m-password-field__meta {
480
+ align-items: baseline;
481
+ display: flex;
482
+ gap: var(--m-space-2);
483
+ justify-content: space-between;
484
+ }
485
+
486
+ .m-input-field__meta:not(:has(.m-input-field__help)),
487
+ .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
488
+ .m-password-field__meta:not(:has(.m-password__feedback)) {
489
+ justify-content: flex-end;
490
+ }
491
+
492
+ .m-input-field__count,
493
+ .m-textarea-field__count,
494
+ .m-password-field__count {
495
+ color: var(--m-color-text-muted);
496
+ flex: 0 0 auto;
497
+ font-size: var(--m-font-size-xs);
498
+ margin-left: auto;
499
+ }
500
+
501
+ .m-dropdown__item--parent {
502
+ align-items: center;
503
+ display: flex;
504
+ justify-content: space-between;
505
+ width: 100%;
506
+ }
507
+
508
+ .m-dropdown__icon,
509
+ .m-dropdown__caret,
510
+ .m-menu__icon,
511
+ .m-menubar__icon {
512
+ flex-shrink: 0;
513
+ }
514
+
515
+ .m-dropdown__submenu-wrap {
516
+ position: relative;
517
+ }
518
+
519
+ .m-dropdown__submenu {
520
+ --m-dropdown-submenu-max-height: min(18rem, 45vh);
521
+ background: var(--m-color-surface);
522
+ border: var(--m-border-width) solid var(--m-color-border);
523
+ border-radius: var(--m-radius-md);
524
+ box-shadow: var(--m-shadow-md);
525
+ max-height: var(--m-dropdown-submenu-max-height);
526
+ max-width: calc(100vw - 2 * var(--m-space-4));
527
+ min-width: 10rem;
528
+ overflow: hidden;
529
+ padding: var(--m-space-1);
530
+ /* Same as .m-dropdown__menu: size to content instead of being clamped
531
+ by the space left of the anchor in the viewport. */
532
+ width: max-content;
533
+ }
534
+
535
+ .m-dropdown__submenu--teleported {
536
+ position: fixed;
537
+ z-index: var(--m-z-dropdown);
538
+ }
539
+
540
+ .m-dropdown__submenu-scroll {
541
+ max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
542
+ min-height: 0;
543
+ }
544
+
545
+ .m-dropdown__submenu-view {
546
+ display: grid;
547
+ gap: var(--m-space-1);
548
+ }
549
+
550
+ .m-fade-enter-active,
551
+ .m-fade-leave-active {
552
+ transition: opacity var(--m-motion-exit) var(--m-motion-ease);
553
+ }
554
+
555
+ .m-fade-enter-from,
556
+ .m-fade-leave-to {
557
+ opacity: 0;
558
+ }
559
+
560
+ .m-scale-fade-enter-active {
561
+ transition:
562
+ opacity var(--m-motion-enter) var(--m-motion-ease),
563
+ transform var(--m-motion-enter) var(--m-motion-ease);
564
+ }
565
+
566
+ .m-scale-fade-leave-active {
567
+ transition:
568
+ opacity var(--m-motion-exit) var(--m-motion-ease),
569
+ transform var(--m-motion-exit) var(--m-motion-ease);
570
+ }
571
+
572
+ .m-scale-fade-enter-from,
573
+ .m-scale-fade-leave-to {
574
+ opacity: 0;
575
+ transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
576
+ }
577
+
578
+ .m-slide-fade-enter-active {
579
+ transition:
580
+ opacity var(--m-motion-enter) var(--m-motion-ease),
581
+ transform var(--m-motion-enter) var(--m-motion-ease);
582
+ }
583
+
584
+ .m-slide-fade-leave-active {
585
+ transition:
586
+ opacity var(--m-motion-exit) var(--m-motion-ease),
587
+ transform var(--m-motion-exit) var(--m-motion-ease);
588
+ }
589
+
590
+ .m-slide-fade-enter-from,
591
+ .m-slide-fade-leave-to {
592
+ opacity: 0;
593
+ transform: translateY(calc(var(--m-motion-distance) * -1));
594
+ }
595
+
596
+ /* Generic center zoom (opacity + scale on the transitioning root) */
597
+ .m-zoom-enter-active {
598
+ transition:
599
+ opacity var(--m-motion-enter) var(--m-motion-ease),
600
+ transform var(--m-motion-enter) var(--m-motion-ease);
601
+ }
602
+
603
+ .m-zoom-leave-active {
604
+ transition:
605
+ opacity var(--m-motion-exit) var(--m-motion-ease),
606
+ transform var(--m-motion-exit) var(--m-motion-ease);
607
+ }
608
+
609
+ .m-zoom-enter-from,
610
+ .m-zoom-leave-to {
611
+ opacity: 0;
612
+ transform: scale(0.95);
613
+ }
614
+
615
+ .m-slide-up-enter-active,
616
+ .m-slide-down-enter-active,
617
+ .m-slide-left-enter-active,
618
+ .m-slide-right-enter-active {
619
+ transition:
620
+ opacity var(--m-motion-enter) var(--m-motion-ease),
621
+ transform var(--m-motion-enter) var(--m-motion-ease);
622
+ }
623
+
624
+ .m-slide-up-leave-active,
625
+ .m-slide-down-leave-active,
626
+ .m-slide-left-leave-active,
627
+ .m-slide-right-leave-active {
628
+ transition:
629
+ opacity var(--m-motion-exit) var(--m-motion-ease),
630
+ transform var(--m-motion-exit) var(--m-motion-ease);
631
+ }
632
+
633
+ .m-slide-up-enter-from,
634
+ .m-slide-up-leave-to {
635
+ opacity: 0;
636
+ transform: translateY(var(--m-motion-distance));
637
+ }
638
+
639
+ .m-slide-down-enter-from,
640
+ .m-slide-down-leave-to {
641
+ opacity: 0;
642
+ transform: translateY(calc(var(--m-motion-distance) * -1));
643
+ }
644
+
645
+ .m-slide-left-enter-from,
646
+ .m-slide-left-leave-to {
647
+ opacity: 0;
648
+ transform: translateX(var(--m-motion-distance));
649
+ }
650
+
651
+ .m-slide-right-enter-from,
652
+ .m-slide-right-leave-to {
653
+ opacity: 0;
654
+ transform: translateX(calc(var(--m-motion-distance) * -1));
655
+ }
656
+
657
+ [data-m-motion="reduced"] .m-fade-enter-active,
658
+ [data-m-motion="reduced"] .m-fade-leave-active,
659
+ [data-m-motion="reduced"] .m-scale-fade-enter-active,
660
+ [data-m-motion="reduced"] .m-scale-fade-leave-active,
661
+ [data-m-motion="reduced"] .m-slide-fade-enter-active,
662
+ [data-m-motion="reduced"] .m-slide-fade-leave-active,
663
+ [data-m-motion="reduced"] .m-zoom-enter-active,
664
+ [data-m-motion="reduced"] .m-zoom-leave-active,
665
+ [data-m-motion="reduced"] .m-slide-up-enter-active,
666
+ [data-m-motion="reduced"] .m-slide-up-leave-active,
667
+ [data-m-motion="reduced"] .m-slide-down-enter-active,
668
+ [data-m-motion="reduced"] .m-slide-down-leave-active,
669
+ [data-m-motion="reduced"] .m-slide-left-enter-active,
670
+ [data-m-motion="reduced"] .m-slide-left-leave-active,
671
+ [data-m-motion="reduced"] .m-slide-right-enter-active,
672
+ [data-m-motion="reduced"] .m-slide-right-leave-active,
673
+ [data-m-motion="none"] .m-fade-enter-active,
674
+ [data-m-motion="none"] .m-fade-leave-active,
675
+ [data-m-motion="none"] .m-scale-fade-enter-active,
676
+ [data-m-motion="none"] .m-scale-fade-leave-active,
677
+ [data-m-motion="none"] .m-slide-fade-enter-active,
678
+ [data-m-motion="none"] .m-slide-fade-leave-active,
679
+ [data-m-motion="none"] .m-zoom-enter-active,
680
+ [data-m-motion="none"] .m-zoom-leave-active,
681
+ [data-m-motion="none"] .m-slide-up-enter-active,
682
+ [data-m-motion="none"] .m-slide-up-leave-active,
683
+ [data-m-motion="none"] .m-slide-down-enter-active,
684
+ [data-m-motion="none"] .m-slide-down-leave-active,
685
+ [data-m-motion="none"] .m-slide-left-enter-active,
686
+ [data-m-motion="none"] .m-slide-left-leave-active,
687
+ [data-m-motion="none"] .m-slide-right-enter-active,
688
+ [data-m-motion="none"] .m-slide-right-leave-active {
689
+ transition: none;
690
+ }
691
+
692
+ [data-m-motion="reduced"] .m-scale-fade-enter-from,
693
+ [data-m-motion="reduced"] .m-scale-fade-leave-to,
694
+ [data-m-motion="reduced"] .m-slide-fade-enter-from,
695
+ [data-m-motion="reduced"] .m-slide-fade-leave-to,
696
+ [data-m-motion="reduced"] .m-zoom-enter-from,
697
+ [data-m-motion="reduced"] .m-zoom-leave-to,
698
+ [data-m-motion="reduced"] .m-slide-up-enter-from,
699
+ [data-m-motion="reduced"] .m-slide-up-leave-to,
700
+ [data-m-motion="reduced"] .m-slide-down-enter-from,
701
+ [data-m-motion="reduced"] .m-slide-down-leave-to,
702
+ [data-m-motion="reduced"] .m-slide-left-enter-from,
703
+ [data-m-motion="reduced"] .m-slide-left-leave-to,
704
+ [data-m-motion="reduced"] .m-slide-right-enter-from,
705
+ [data-m-motion="reduced"] .m-slide-right-leave-to,
706
+ [data-m-motion="none"] .m-scale-fade-enter-from,
707
+ [data-m-motion="none"] .m-scale-fade-leave-to,
708
+ [data-m-motion="none"] .m-slide-fade-enter-from,
709
+ [data-m-motion="none"] .m-slide-fade-leave-to,
710
+ [data-m-motion="none"] .m-zoom-enter-from,
711
+ [data-m-motion="none"] .m-zoom-leave-to,
712
+ [data-m-motion="none"] .m-slide-up-enter-from,
713
+ [data-m-motion="none"] .m-slide-up-leave-to,
714
+ [data-m-motion="none"] .m-slide-down-enter-from,
715
+ [data-m-motion="none"] .m-slide-down-leave-to,
716
+ [data-m-motion="none"] .m-slide-left-enter-from,
717
+ [data-m-motion="none"] .m-slide-left-leave-to,
718
+ [data-m-motion="none"] .m-slide-right-enter-from,
719
+ [data-m-motion="none"] .m-slide-right-leave-to {
720
+ transform: none;
721
+ }
722
+
723
+ /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
724
+ @keyframes m-progress-spinner-rotate {
725
+ 100% {
726
+ transform: rotate(360deg);
727
+ }
728
+ }
729
+
730
+ .m-checkbox,
731
+ .m-radio,
732
+ .m-switch {
733
+ align-items: center;
734
+ color: var(--m-color-text);
735
+ cursor: pointer;
736
+ display: inline-flex;
737
+ font-family: var(--m-font-sans);
738
+ gap: var(--m-space-2);
739
+ /* 避免绝对定位 input 挂到上层 MScrollbar,聚焦时把滚动容器拽回顶部 */
740
+ position: relative;
741
+ }
742
+
743
+ .m-checkbox--disabled,
744
+ .m-radio--disabled,
745
+ .m-switch--disabled {
746
+ color: var(--m-color-text-muted);
747
+ cursor: not-allowed;
748
+ opacity: var(--m-opacity-disabled);
749
+ }
750
+
751
+ .m-checkbox--invalid .m-checkbox__control,
752
+ .m-radio--invalid .m-radio__control {
753
+ border-color: var(--m-color-danger);
754
+ }
755
+
756
+ .m-checkbox__input,
757
+ .m-radio__input,
758
+ .m-switch__input {
759
+ clip: rect(0, 0, 0, 0);
760
+ clip-path: inset(50%);
761
+ height: 1px;
762
+ margin: -1px;
763
+ overflow: hidden;
764
+ opacity: 0;
765
+ position: absolute;
766
+ white-space: nowrap;
767
+ width: 1px;
768
+ }
769
+
770
+ .m-checkbox__control,
771
+ .m-radio__control {
772
+ align-items: center;
773
+ background: var(--m-color-surface);
774
+ border: var(--m-border-width) solid var(--m-color-border);
775
+ display: inline-flex;
776
+ flex: 0 0 auto;
777
+ height: var(--m-checkbox-control-size, 1.125rem);
778
+ justify-content: center;
779
+ transition:
780
+ background-color var(--m-motion-fast) var(--m-motion-ease),
781
+ border-color var(--m-motion-fast) var(--m-motion-ease),
782
+ box-shadow var(--m-motion-fast) var(--m-motion-ease);
783
+ width: var(--m-checkbox-control-size, 1.125rem);
784
+ }
785
+
786
+ .m-checkbox__input:checked + .m-checkbox__control,
787
+ .m-radio__input:checked + .m-radio__control {
788
+ background: var(--m-color-primary);
789
+ border-color: var(--m-color-primary);
790
+ }
791
+
792
+ .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
793
+ .m-radio:not(.m-radio--disabled):hover .m-radio__control {
794
+ border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
795
+ }
796
+
797
+ .m-checkbox__input:focus-visible + .m-checkbox__control,
798
+ .m-radio__input:focus-visible + .m-radio__control,
799
+ .m-switch__input:focus-visible + .m-switch__track {
800
+ box-shadow: var(--m-focus-shadow);
801
+ outline: none;
802
+ }
803
+
804
+ .m-checkbox__label,
805
+ .m-radio__label,
806
+ .m-switch__label {
807
+ font-size: var(--m-font-size-md);
808
+ }
809
+
810
+ .m-textarea-field,
811
+ .m-select-field {
812
+ display: grid;
813
+ font-family: var(--m-font-sans);
814
+ gap: var(--m-space-2);
815
+ max-width: 100%;
816
+ min-width: var(--m-menu-min-width);
817
+ position: relative;
818
+ width: fit-content;
819
+ }
820
+
821
+ .m-textarea-field--fluid,
822
+ .m-select-field--fluid {
823
+ width: 100%;
824
+ }
825
+
826
+ .m-textarea-field__label,
827
+ .m-select-field__label {
828
+ color: var(--m-color-text);
829
+ font-family: var(--m-font-sans);
830
+ font-size: var(--m-font-size-md);
831
+ font-weight: 600;
832
+ }
833
+
834
+ .m-textarea-field__help,
835
+ .m-select-field__help {
836
+ color: var(--m-color-text-muted);
837
+ font-size: var(--m-font-size-xs);
838
+ }
839
+
840
+ .m-textarea-field__help--invalid,
841
+ .m-select-field__help--invalid {
842
+ color: var(--m-color-danger);
843
+ }
844
+
845
+ .m-textarea,
846
+ .m-select {
847
+ background: var(--m-color-surface);
848
+ border: var(--m-border-width) solid var(--m-color-border);
849
+ border-radius: var(--m-radius-control);
850
+ color: var(--m-color-text);
851
+ font: inherit;
852
+ transition:
853
+ border-color var(--m-motion-fast) var(--m-motion-ease),
854
+ box-shadow var(--m-motion-fast) var(--m-motion-ease),
855
+ background-color var(--m-motion-fast) var(--m-motion-ease);
856
+ width: 100%;
857
+ }
858
+
859
+ .m-textarea--invalid:focus-visible,
860
+ .m-select--invalid.m-select--open,
861
+ .m-select--invalid:focus-visible {
862
+ border-color: var(--m-color-danger);
863
+ box-shadow: var(--m-focus-shadow-danger);
864
+ }
865
+
866
+ .m-textarea:disabled,
867
+ .m-select:disabled,
868
+ .m-select--disabled {
869
+ cursor: not-allowed;
870
+ opacity: var(--m-opacity-disabled);
871
+ }
872
+
873
+ .m-inputgroup > .m-input,
874
+ .m-inputgroup > .m-input-field,
875
+ .m-inputgroup > .m-password-field,
876
+ .m-inputgroup > .m-inputnumber-field {
877
+ flex: 1 1 auto;
878
+ min-width: 0;
879
+ }
880
+
881
+ .m-inputgroup > .m-input-field,
882
+ .m-inputgroup > .m-password-field,
883
+ .m-inputgroup > .m-inputnumber-field {
884
+ display: flex;
885
+ flex-direction: column;
886
+ gap: 0;
887
+ }
888
+
889
+ .m-inputgroup > .m-input,
890
+ .m-inputgroup .m-input,
891
+ .m-inputgroup .m-password,
892
+ .m-inputgroup .m-inputnumber__input-wrap,
893
+ .m-inputgroup .m-input-field__control--prefixed,
894
+ .m-inputgroup .m-input-field__control--suffixed,
895
+ .m-inputgroup .m-input-field__control--clearable {
896
+ border-radius: 0;
897
+ width: 100%;
898
+ }
899
+
900
+ .m-inputgroup > :first-child.m-input,
901
+ .m-inputgroup > :first-child .m-input,
902
+ .m-inputgroup > :first-child .m-password,
903
+ .m-inputgroup > :first-child .m-inputnumber__input-wrap,
904
+ .m-inputgroup > :first-child .m-input-field__control--prefixed,
905
+ .m-inputgroup > :first-child .m-input-field__control--suffixed,
906
+ .m-inputgroup > :first-child .m-input-field__control--clearable,
907
+ .m-inputgroup > :first-child.m-inputgroup-addon {
908
+ border-bottom-left-radius: var(--m-radius-control);
909
+ border-top-left-radius: var(--m-radius-control);
910
+ }
911
+
912
+ .m-inputgroup > :last-child.m-input,
913
+ .m-inputgroup > :last-child .m-input,
914
+ .m-inputgroup > :last-child .m-password,
915
+ .m-inputgroup > :last-child .m-inputnumber__input-wrap,
916
+ .m-inputgroup > :last-child .m-input-field__control--prefixed,
917
+ .m-inputgroup > :last-child .m-input-field__control--suffixed,
918
+ .m-inputgroup > :last-child .m-input-field__control--clearable,
919
+ .m-inputgroup > :last-child.m-inputgroup-addon {
920
+ border-bottom-right-radius: var(--m-radius-control);
921
+ border-top-right-radius: var(--m-radius-control);
922
+ }
923
+
924
+ .m-inputgroup > .m-inputgroup-addon + .m-input,
925
+ .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
926
+ .m-inputgroup > .m-input + .m-inputgroup-addon,
927
+ .m-inputgroup > .m-input-field + .m-inputgroup-addon {
928
+ margin-left: calc(var(--m-border-width) * -1);
929
+ }
930
+
931
+ .m-layout__scrollbar > .m-scrollbar__wrap {
932
+ height: 100%;
933
+ overflow-x: hidden;
934
+ }
935
+
936
+ .m-layout-sider__scrollbar > .m-scrollbar__wrap {
937
+ height: 100%;
938
+ overflow-x: hidden;
939
+ }
940
+
941
+ .m-treetable__scrollbar > .m-scrollbar__wrap,
942
+ .m-terminal__scrollbar > .m-scrollbar__wrap {
943
+ height: 100%;
944
+ overflow-x: hidden;
945
+ }
946
+
947
+ .m-scroll-body.m-scrollbar {
948
+ min-height: 0;
949
+ min-width: 0;
950
+ }
951
+
952
+ /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
953
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
954
+ width: 100%;
955
+ }
956
+
957
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
958
+ overflow: auto;
959
+ }
960
+
961
+ .m-orderlist__btn,
962
+ .m-picklist__btn {
963
+ align-items: center;
964
+ background: var(--m-color-surface);
965
+ border: var(--m-border-width) solid var(--m-color-border);
966
+ border-radius: var(--m-radius-sm);
967
+ color: var(--m-color-text);
968
+ cursor: pointer;
969
+ display: inline-flex;
970
+ font: inherit;
971
+ gap: 0;
972
+ justify-content: center;
973
+ min-height: var(--m-control-height-small, 1.75rem);
974
+ min-width: var(--m-control-affix-size);
975
+ padding: var(--m-space-1) var(--m-space-2);
976
+ }
977
+
978
+ .m-orderlist__btn:hover:not(:disabled),
979
+ .m-picklist__btn:hover:not(:disabled) {
980
+ border-color: var(--m-color-primary);
981
+ color: var(--m-color-primary);
982
+ }
983
+
984
+ .m-orderlist__btn:disabled,
985
+ .m-picklist__btn:disabled {
986
+ cursor: not-allowed;
987
+ opacity: var(--m-opacity-disabled);
988
+ }
989
+
990
+ .m-orderlist__btn:focus-visible,
991
+ .m-picklist__btn:focus-visible {
992
+ border-color: var(--m-color-primary);
993
+ box-shadow: var(--m-focus-shadow);
994
+ outline: none;
995
+ }
996
+
997
+ .m-picklist__btn .m-icon + .m-icon {
998
+ margin-left: -0.35rem;
999
+ }
1000
+
1001
+ .m-orderlist__scrollbar,
1002
+ .m-picklist__scrollbar {
1003
+ flex: 1;
1004
+ max-height: 16rem;
1005
+ min-height: 12rem;
1006
+ min-width: var(--m-menu-min-width);
1007
+ }
1008
+
1009
+ .m-orderlist__list,
1010
+ .m-picklist__list {
1011
+ background: var(--m-color-surface);
1012
+ border: var(--m-border-width) solid var(--m-color-border);
1013
+ border-radius: var(--m-radius-md);
1014
+ padding: var(--m-space-1);
1015
+ }
1016
+
1017
+ .m-orderlist__options,
1018
+ .m-picklist__options {
1019
+ list-style: none;
1020
+ margin: 0;
1021
+ padding: 0;
1022
+ }
1023
+
1024
+ .m-orderlist__item,
1025
+ .m-picklist__item {
1026
+ border-radius: var(--m-radius-sm);
1027
+ cursor: pointer;
1028
+ padding: var(--m-space-2) var(--m-space-3);
1029
+ }
1030
+
1031
+ .m-orderlist__item:hover,
1032
+ .m-picklist__item:hover {
1033
+ background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
1034
+ }
1035
+
1036
+ .m-orderlist__item:focus-visible,
1037
+ .m-picklist__item:focus-visible {
1038
+ box-shadow: var(--m-focus-shadow);
1039
+ outline: none;
1040
+ }
1041
+
1042
+ .m-orderlist__item--selected,
1043
+ .m-picklist__item--selected {
1044
+ background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
1045
+ color: var(--m-color-primary);
1046
+ font-weight: 600;
1047
+ }
1048
+
1049
+ .m-carousel__nav,
1050
+ .m-gallery__nav {
1051
+ background: var(--m-color-surface);
1052
+ border: var(--m-border-width) solid var(--m-color-border);
1053
+ border-radius: var(--m-radius-full, 999px);
1054
+ color: var(--m-color-text);
1055
+ cursor: pointer;
1056
+ flex: 0 0 auto;
1057
+ font: inherit;
1058
+ height: var(--m-control-affix-size);
1059
+ width: var(--m-control-affix-size);
1060
+ }
1061
+
1062
+ .m-carousel__nav:disabled,
1063
+ .m-gallery__nav:disabled {
1064
+ cursor: not-allowed;
1065
+ opacity: var(--m-opacity-disabled);
1066
+ }
1067
+
1068
+ /* Shared Naive-like hover/focus for remaining form triggers */
1069
+ .m-inputotp__input:hover:not(:disabled):not(:focus),
1070
+ .m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
1071
+ .m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
1072
+ .m-inputcolor__text:hover:not(:disabled):not(:focus),
1073
+ .m-inputtags:hover:not(.m-inputtags--disabled),
1074
+ .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked),
1075
+ .m-inplace__display:hover {
1076
+ border-color: var(--m-color-primary-hover);
1077
+ }
1078
+
1079
+ .m-inputotp__input:focus-visible,
1080
+ .m-cascadeselect__trigger:focus-visible,
1081
+ .m-treeselect__trigger:focus-visible,
1082
+ .m-inputcolor__text:focus-visible,
1083
+ .m-inputtags:focus-within,
1084
+ .m-togglebutton:focus-visible,
1085
+ .m-selectbutton__button:focus-visible,
1086
+ .m-splitbutton__main:focus-visible,
1087
+ .m-splitbutton__trigger:focus-visible,
1088
+ .m-inplace__display:focus-visible,
1089
+ .m-pagination__button:focus-visible {
1090
+ border-color: var(--m-color-primary-hover);
1091
+ box-shadow: var(--m-focus-shadow);
1092
+ outline: none;
1093
+ }
1094
+
1095
+ .m-inputotp--invalid .m-inputotp__input:focus-visible,
1096
+ .m-inputtags--invalid:focus-within,
1097
+ .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1098
+ border-color: var(--m-color-danger);
1099
+ box-shadow: var(--m-focus-shadow-danger);
1100
+ }
1101
+
1102
+ .m-checkbox-group,
1103
+ .m-radio-group {
1104
+ display: flex;
1105
+ flex-wrap: wrap;
1106
+ gap: var(--m-space-3);
1107
+ }
1108
+
1109
+ .m-checkbox--small .m-checkbox__control,
1110
+ .m-radio--small .m-radio__control {
1111
+ height: 0.95rem;
1112
+ width: 0.95rem;
1113
+ }
1114
+
1115
+ .m-checkbox--large .m-checkbox__control,
1116
+ .m-radio--large .m-radio__control {
1117
+ height: 1.35rem;
1118
+ width: 1.35rem;
1119
+ }
1120
+
1121
+ .m-inputnumber__clear,
1122
+ .m-autocomplete__clear {
1123
+ background: transparent;
1124
+ border: 0;
1125
+ color: var(--m-color-text-muted);
1126
+ cursor: pointer;
1127
+ font: inherit;
1128
+ line-height: 1;
1129
+ }
1130
+
1131
+ [data-m-motion="none"] *,
1132
+ [data-m-motion="none"] *::before,
1133
+ [data-m-motion="none"] *::after {
1134
+ animation-duration: 0.01ms !important;
1135
+ animation-iteration-count: 1 !important;
1136
+ scroll-behavior: auto !important;
1137
+ transition-duration: 0.01ms !important;
1138
+ }
1139
+
1140
+ [data-m-motion="reduced"] .m-progress-spinner,
1141
+ [data-m-motion="reduced"] .m-progress-spinner__circle,
1142
+ [data-m-motion="reduced"] .m-skeleton,
1143
+ [data-m-motion="reduced"] .m-badge--processing,
1144
+ [data-m-motion="reduced"] .m-icon--spin,
1145
+ [data-m-motion="reduced"] .m-button__spinner,
1146
+ [data-m-motion="reduced"] .m-select__loading-icon,
1147
+ [data-m-motion="reduced"] .m-switch__loading-icon {
1148
+ animation: none !important;
1149
+ }
1150
1150
 
1151
1151
  .m-icon {
1152
1152
  color: currentColor;
@@ -1197,260 +1197,260 @@
1197
1197
  animation: none;
1198
1198
  }
1199
1199
 
1200
- .m-scrollbar {
1201
- --m-scrollbar-track-size: 6px;
1202
- --m-scrollbar-inset: 0.125rem;
1203
- --m-scrollbar-bg: color-mix(
1204
- in srgb,
1205
- var(--m-color-text) 28%,
1206
- transparent
1207
- );
1208
- --m-scrollbar-hover-bg: color-mix(
1209
- in srgb,
1210
- var(--m-color-text) 45%,
1211
- transparent
1212
- );
1213
- --m-scrollbar-opacity: 0.5;
1214
- --m-scrollbar-hover-opacity: 0.8;
1215
- min-height: 0;
1216
- overflow: hidden;
1217
- position: relative;
1218
- }
1219
-
1220
- .m-scrollbar--fill {
1221
- height: 100%;
1222
- min-height: 0;
1223
- min-width: 0;
1224
- width: 100%;
1225
- }
1226
-
1227
- .m-scrollbar__wrap {
1228
- overflow: auto;
1229
- }
1230
-
1231
- .m-scrollbar--fill .m-scrollbar__wrap {
1232
- height: 100%;
1233
- min-height: 0;
1234
- min-width: 0;
1235
- width: 100%;
1236
- }
1237
-
1238
- .m-scrollbar--fit-content.m-scrollbar--fill {
1239
- height: auto;
1240
- }
1241
-
1242
- .m-scrollbar--fit-content.m-scrollbar--fill .m-scrollbar__wrap {
1243
- height: auto;
1244
- max-height: inherit;
1245
- max-width: inherit;
1246
- }
1247
-
1248
- .m-scrollbar__wrap--hidden-default {
1249
- scrollbar-width: none;
1250
- }
1251
-
1252
- .m-scrollbar__wrap--hidden-default::-webkit-scrollbar {
1253
- display: none;
1254
- }
1255
-
1256
- .m-scrollbar__view {
1257
- box-sizing: border-box;
1258
- }
1259
-
1260
- .m-scrollbar__bar {
1261
- border-radius: var(--m-radius-sm);
1262
- bottom: var(--m-scrollbar-inset);
1263
- position: absolute;
1264
- right: var(--m-scrollbar-inset);
1265
- z-index: 1;
1266
- }
1267
-
1268
- .m-scrollbar__bar--vertical {
1269
- top: var(--m-scrollbar-inset);
1270
- width: var(--m-scrollbar-track-size);
1271
- }
1272
-
1273
- .m-scrollbar__bar--vertical > .m-scrollbar__thumb {
1274
- width: 100%;
1275
- }
1276
-
1277
- .m-scrollbar__bar--horizontal {
1278
- height: var(--m-scrollbar-track-size);
1279
- left: var(--m-scrollbar-inset);
1280
- }
1281
-
1282
- .m-scrollbar__bar--horizontal > .m-scrollbar__thumb {
1283
- height: 100%;
1284
- }
1285
-
1286
- .m-scrollbar__bar:focus-visible {
1287
- box-shadow: var(--m-focus-shadow);
1288
- outline: none;
1289
- outline-offset: 1px;
1290
- }
1291
-
1292
- .m-scrollbar__thumb {
1293
- background-color: var(--m-scrollbar-bg);
1294
- border-radius: inherit;
1295
- cursor: pointer;
1296
- display: block;
1297
- height: 0;
1298
- opacity: var(--m-scrollbar-opacity);
1299
- position: relative;
1300
- transition:
1301
- background-color var(--m-motion-fast) var(--m-motion-ease),
1302
- opacity var(--m-motion-fast) var(--m-motion-ease);
1303
- width: 0;
1304
- }
1305
-
1306
- .m-scrollbar__thumb:hover {
1307
- background-color: var(--m-scrollbar-hover-bg);
1308
- opacity: var(--m-scrollbar-hover-opacity);
1309
- }
1310
-
1311
- .m-scrollbar-fade-enter-active {
1312
- transition: opacity var(--m-motion-scrollbar-show) var(--m-motion-ease);
1313
- }
1314
-
1315
- .m-scrollbar-fade-leave-active {
1316
- transition: opacity var(--m-motion-scrollbar-hide) var(--m-motion-ease);
1317
- }
1318
-
1319
- .m-scrollbar-fade-enter-from,
1320
- .m-scrollbar-fade-leave-to {
1321
- opacity: 0;
1322
- }
1323
-
1324
- :root[data-m-motion='none'] .m-scrollbar__thumb,
1325
- :root[data-m-motion='none'] .m-scrollbar-fade-enter-active,
1326
- :root[data-m-motion='none'] .m-scrollbar-fade-leave-active,
1327
- :root[data-m-motion='reduced'] .m-scrollbar-fade-enter-active,
1328
- :root[data-m-motion='reduced'] .m-scrollbar-fade-leave-active {
1329
- transition: none;
1330
- }
1200
+ .m-scrollbar {
1201
+ --m-scrollbar-track-size: 6px;
1202
+ --m-scrollbar-inset: 0.125rem;
1203
+ --m-scrollbar-bg: color-mix(
1204
+ in srgb,
1205
+ var(--m-color-text) 28%,
1206
+ transparent
1207
+ );
1208
+ --m-scrollbar-hover-bg: color-mix(
1209
+ in srgb,
1210
+ var(--m-color-text) 45%,
1211
+ transparent
1212
+ );
1213
+ --m-scrollbar-opacity: 0.5;
1214
+ --m-scrollbar-hover-opacity: 0.8;
1215
+ min-height: 0;
1216
+ overflow: hidden;
1217
+ position: relative;
1218
+ }
1331
1219
 
1332
- /* —— Navigation: TieredMenu —— */
1333
- .m-tieredmenu {
1334
- --m-tieredmenu-submenu-min-width: var(--m-menu-min-width, 10rem);
1335
- --m-tieredmenu-min-width: var(--m-menu-min-width);
1336
- --m-tieredmenu-item-gap: var(--m-space-1);
1337
- --m-tieredmenu-max-height: min(18rem, 45vh);
1338
- background: var(--m-color-surface);
1339
- border: var(--m-border-width) solid var(--m-color-border);
1340
- border-radius: var(--m-radius-md);
1341
- display: flex;
1342
- flex-direction: column;
1343
- gap: var(--m-tieredmenu-item-gap);
1344
- max-height: var(--m-tieredmenu-max-height);
1345
- min-width: var(--m-tieredmenu-min-width);
1346
- overflow: hidden;
1347
- padding: var(--m-space-1);
1348
- position: relative;
1349
- }
1350
-
1351
- .m-tieredmenu__scroll {
1352
- max-height: 100%;
1353
- min-height: 0;
1354
- }
1355
-
1356
- .m-tieredmenu__scroll-view {
1357
- display: flex;
1358
- flex-direction: column;
1359
- gap: var(--m-tieredmenu-item-gap);
1360
- }
1361
-
1362
- .m-tieredmenu--popup {
1363
- box-shadow: var(--m-shadow-md);
1364
- position: absolute;
1365
- z-index: var(--m-z-popper);
1366
- }
1367
-
1368
- .m-tieredmenu--teleported {
1369
- position: fixed;
1370
- z-index: var(--m-z-dropdown);
1371
- }
1372
-
1373
- .m-tieredmenu__row {
1374
- position: relative;
1375
- }
1376
-
1377
- .m-tieredmenu__item {
1378
- align-items: center;
1379
- background: transparent;
1380
- border: 0;
1381
- border-radius: var(--m-radius-sm);
1382
- box-sizing: border-box;
1383
- color: var(--m-color-text);
1384
- cursor: pointer;
1385
- display: flex;
1386
- font-family: var(--m-font-sans);
1387
- justify-content: space-between;
1388
- min-height: var(--m-menu-item-height);
1389
- padding: var(--m-space-2) var(--m-space-3);
1390
- text-align: start;
1391
- transition:
1392
- background-color var(--m-motion-fast) var(--m-motion-ease),
1393
- color var(--m-motion-fast) var(--m-motion-ease),
1394
- opacity var(--m-motion-fast) var(--m-motion-ease);
1395
- width: 100%;
1396
- }
1397
-
1398
- .m-tieredmenu__item:hover:not(:disabled) {
1399
- background: color-mix(
1400
- in srgb,
1401
- var(--m-color-primary) 10%,
1402
- var(--m-color-surface)
1403
- );
1404
- }
1405
-
1406
- .m-tieredmenu__item:disabled {
1407
- cursor: not-allowed;
1408
- opacity: var(--m-opacity-disabled);
1409
- }
1410
-
1411
- .m-tieredmenu__item:focus-visible {
1412
- box-shadow: var(--m-focus-shadow);
1413
- outline: none;
1414
- }
1415
-
1416
- .m-tieredmenu__caret {
1417
- color: var(--m-color-text-muted);
1418
- font-size: var(--m-font-size-xs);
1419
- }
1420
-
1421
- .m-tieredmenu__submenu {
1422
- --m-tieredmenu-submenu-max-height: min(18rem, 45vh);
1423
- background: var(--m-color-surface);
1424
- border: var(--m-border-width) solid var(--m-color-border);
1425
- border-radius: var(--m-radius-md);
1426
- box-shadow: var(--m-shadow-md);
1427
- display: flex;
1428
- flex-direction: column;
1429
- gap: var(--m-tieredmenu-item-gap);
1430
- max-height: var(--m-tieredmenu-submenu-max-height);
1431
- min-width: var(--m-tieredmenu-submenu-min-width);
1432
- overflow: hidden;
1433
- padding: var(--m-space-1);
1434
- }
1435
-
1436
- .m-tieredmenu__submenu--teleported {
1437
- position: fixed;
1438
- z-index: var(--m-z-dropdown);
1439
- }
1440
-
1441
- .m-tieredmenu__submenu-scroll {
1442
- max-height: calc(var(--m-tieredmenu-submenu-max-height) - var(--m-space-2));
1443
- min-height: 0;
1444
- }
1445
-
1446
- .m-tieredmenu__submenu-view {
1447
- display: flex;
1448
- flex-direction: column;
1449
- gap: var(--m-tieredmenu-item-gap);
1450
- }
1451
-
1452
- .m-tieredmenu__separator {
1453
- background: var(--m-color-border);
1454
- height: var(--m-border-width);
1455
- margin: var(--m-space-1) 0;
1456
- }
1220
+ .m-scrollbar--fill {
1221
+ height: 100%;
1222
+ min-height: 0;
1223
+ min-width: 0;
1224
+ width: 100%;
1225
+ }
1226
+
1227
+ .m-scrollbar__wrap {
1228
+ overflow: auto;
1229
+ }
1230
+
1231
+ .m-scrollbar--fill .m-scrollbar__wrap {
1232
+ height: 100%;
1233
+ min-height: 0;
1234
+ min-width: 0;
1235
+ width: 100%;
1236
+ }
1237
+
1238
+ .m-scrollbar--fit-content.m-scrollbar--fill {
1239
+ height: auto;
1240
+ }
1241
+
1242
+ .m-scrollbar--fit-content.m-scrollbar--fill .m-scrollbar__wrap {
1243
+ height: auto;
1244
+ max-height: inherit;
1245
+ max-width: inherit;
1246
+ }
1247
+
1248
+ .m-scrollbar__wrap--hidden-default {
1249
+ scrollbar-width: none;
1250
+ }
1251
+
1252
+ .m-scrollbar__wrap--hidden-default::-webkit-scrollbar {
1253
+ display: none;
1254
+ }
1255
+
1256
+ .m-scrollbar__view {
1257
+ box-sizing: border-box;
1258
+ }
1259
+
1260
+ .m-scrollbar__bar {
1261
+ border-radius: var(--m-radius-sm);
1262
+ bottom: var(--m-scrollbar-inset);
1263
+ position: absolute;
1264
+ right: var(--m-scrollbar-inset);
1265
+ z-index: 1;
1266
+ }
1267
+
1268
+ .m-scrollbar__bar--vertical {
1269
+ top: var(--m-scrollbar-inset);
1270
+ width: var(--m-scrollbar-track-size);
1271
+ }
1272
+
1273
+ .m-scrollbar__bar--vertical > .m-scrollbar__thumb {
1274
+ width: 100%;
1275
+ }
1276
+
1277
+ .m-scrollbar__bar--horizontal {
1278
+ height: var(--m-scrollbar-track-size);
1279
+ left: var(--m-scrollbar-inset);
1280
+ }
1281
+
1282
+ .m-scrollbar__bar--horizontal > .m-scrollbar__thumb {
1283
+ height: 100%;
1284
+ }
1285
+
1286
+ .m-scrollbar__bar:focus-visible {
1287
+ box-shadow: var(--m-focus-shadow);
1288
+ outline: none;
1289
+ outline-offset: 1px;
1290
+ }
1291
+
1292
+ .m-scrollbar__thumb {
1293
+ background-color: var(--m-scrollbar-bg);
1294
+ border-radius: inherit;
1295
+ cursor: pointer;
1296
+ display: block;
1297
+ height: 0;
1298
+ opacity: var(--m-scrollbar-opacity);
1299
+ position: relative;
1300
+ transition:
1301
+ background-color var(--m-motion-fast) var(--m-motion-ease),
1302
+ opacity var(--m-motion-fast) var(--m-motion-ease);
1303
+ width: 0;
1304
+ }
1305
+
1306
+ .m-scrollbar__thumb:hover {
1307
+ background-color: var(--m-scrollbar-hover-bg);
1308
+ opacity: var(--m-scrollbar-hover-opacity);
1309
+ }
1310
+
1311
+ .m-scrollbar-fade-enter-active {
1312
+ transition: opacity var(--m-motion-scrollbar-show) var(--m-motion-ease);
1313
+ }
1314
+
1315
+ .m-scrollbar-fade-leave-active {
1316
+ transition: opacity var(--m-motion-scrollbar-hide) var(--m-motion-ease);
1317
+ }
1318
+
1319
+ .m-scrollbar-fade-enter-from,
1320
+ .m-scrollbar-fade-leave-to {
1321
+ opacity: 0;
1322
+ }
1323
+
1324
+ :root[data-m-motion='none'] .m-scrollbar__thumb,
1325
+ :root[data-m-motion='none'] .m-scrollbar-fade-enter-active,
1326
+ :root[data-m-motion='none'] .m-scrollbar-fade-leave-active,
1327
+ :root[data-m-motion='reduced'] .m-scrollbar-fade-enter-active,
1328
+ :root[data-m-motion='reduced'] .m-scrollbar-fade-leave-active {
1329
+ transition: none;
1330
+ }
1331
+
1332
+ /* —— Navigation: TieredMenu —— */
1333
+ .m-tieredmenu {
1334
+ --m-tieredmenu-submenu-min-width: var(--m-menu-min-width, 10rem);
1335
+ --m-tieredmenu-min-width: var(--m-menu-min-width);
1336
+ --m-tieredmenu-item-gap: var(--m-space-1);
1337
+ --m-tieredmenu-max-height: min(18rem, 45vh);
1338
+ background: var(--m-color-surface);
1339
+ border: var(--m-border-width) solid var(--m-color-border);
1340
+ border-radius: var(--m-radius-md);
1341
+ display: flex;
1342
+ flex-direction: column;
1343
+ gap: var(--m-tieredmenu-item-gap);
1344
+ max-height: var(--m-tieredmenu-max-height);
1345
+ min-width: var(--m-tieredmenu-min-width);
1346
+ overflow: hidden;
1347
+ padding: var(--m-space-1);
1348
+ position: relative;
1349
+ }
1350
+
1351
+ .m-tieredmenu__scroll {
1352
+ max-height: 100%;
1353
+ min-height: 0;
1354
+ }
1355
+
1356
+ .m-tieredmenu__scroll-view {
1357
+ display: flex;
1358
+ flex-direction: column;
1359
+ gap: var(--m-tieredmenu-item-gap);
1360
+ }
1361
+
1362
+ .m-tieredmenu--popup {
1363
+ box-shadow: var(--m-shadow-md);
1364
+ position: absolute;
1365
+ z-index: var(--m-z-popper);
1366
+ }
1367
+
1368
+ .m-tieredmenu--teleported {
1369
+ position: fixed;
1370
+ z-index: var(--m-z-dropdown);
1371
+ }
1372
+
1373
+ .m-tieredmenu__row {
1374
+ position: relative;
1375
+ }
1376
+
1377
+ .m-tieredmenu__item {
1378
+ align-items: center;
1379
+ background: transparent;
1380
+ border: 0;
1381
+ border-radius: var(--m-radius-sm);
1382
+ box-sizing: border-box;
1383
+ color: var(--m-color-text);
1384
+ cursor: pointer;
1385
+ display: flex;
1386
+ font-family: var(--m-font-sans);
1387
+ justify-content: space-between;
1388
+ min-height: var(--m-menu-item-height);
1389
+ padding: var(--m-space-2) var(--m-space-3);
1390
+ text-align: start;
1391
+ transition:
1392
+ background-color var(--m-motion-fast) var(--m-motion-ease),
1393
+ color var(--m-motion-fast) var(--m-motion-ease),
1394
+ opacity var(--m-motion-fast) var(--m-motion-ease);
1395
+ width: 100%;
1396
+ }
1397
+
1398
+ .m-tieredmenu__item:hover:not(:disabled) {
1399
+ background: color-mix(
1400
+ in srgb,
1401
+ var(--m-color-primary) 10%,
1402
+ var(--m-color-surface)
1403
+ );
1404
+ }
1405
+
1406
+ .m-tieredmenu__item:disabled {
1407
+ cursor: not-allowed;
1408
+ opacity: var(--m-opacity-disabled);
1409
+ }
1410
+
1411
+ .m-tieredmenu__item:focus-visible {
1412
+ box-shadow: var(--m-focus-shadow);
1413
+ outline: none;
1414
+ }
1415
+
1416
+ .m-tieredmenu__caret {
1417
+ color: var(--m-color-text-muted);
1418
+ font-size: var(--m-font-size-xs);
1419
+ }
1420
+
1421
+ .m-tieredmenu__submenu {
1422
+ --m-tieredmenu-submenu-max-height: min(18rem, 45vh);
1423
+ background: var(--m-color-surface);
1424
+ border: var(--m-border-width) solid var(--m-color-border);
1425
+ border-radius: var(--m-radius-md);
1426
+ box-shadow: var(--m-shadow-md);
1427
+ display: flex;
1428
+ flex-direction: column;
1429
+ gap: var(--m-tieredmenu-item-gap);
1430
+ max-height: var(--m-tieredmenu-submenu-max-height);
1431
+ min-width: var(--m-tieredmenu-submenu-min-width);
1432
+ overflow: hidden;
1433
+ padding: var(--m-space-1);
1434
+ }
1435
+
1436
+ .m-tieredmenu__submenu--teleported {
1437
+ position: fixed;
1438
+ z-index: var(--m-z-dropdown);
1439
+ }
1440
+
1441
+ .m-tieredmenu__submenu-scroll {
1442
+ max-height: calc(var(--m-tieredmenu-submenu-max-height) - var(--m-space-2));
1443
+ min-height: 0;
1444
+ }
1445
+
1446
+ .m-tieredmenu__submenu-view {
1447
+ display: flex;
1448
+ flex-direction: column;
1449
+ gap: var(--m-tieredmenu-item-gap);
1450
+ }
1451
+
1452
+ .m-tieredmenu__separator {
1453
+ background: var(--m-color-border);
1454
+ height: var(--m-border-width);
1455
+ margin: var(--m-space-1) 0;
1456
+ }