morya-ui 0.3.5 → 0.3.7

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 (259) hide show
  1. package/CHANGELOG.md +573 -523
  2. package/LICENSE +21 -21
  3. package/README.md +150 -150
  4. package/README.zh-CN.md +150 -150
  5. package/dist/Input-DQiiKSm3.js +174 -0
  6. package/dist/accordion/style.css +1146 -1148
  7. package/dist/auto-complete/style.css +1688 -1690
  8. package/dist/avatar/style.css +1259 -1261
  9. package/dist/badge/style.css +1313 -1315
  10. package/dist/block-ui/style.css +1146 -1148
  11. package/dist/breadcrumb/style.css +1146 -1148
  12. package/dist/button/style.css +2136 -2138
  13. package/dist/card/style.css +1146 -1148
  14. package/dist/carousel/style.css +1247 -1249
  15. package/dist/cascade-select/style.css +1837 -1839
  16. package/dist/checkbox/style.css +1146 -1148
  17. package/dist/chip/style.css +1290 -1292
  18. package/dist/command-menu/style.css +1379 -1381
  19. package/dist/component-registry.d.ts.map +1 -1
  20. package/dist/components/AutoComplete/styles.css +209 -209
  21. package/dist/components/Avatar/styles.css +113 -113
  22. package/dist/components/Badge/styles.css +165 -165
  23. package/dist/components/Button/styles.css +962 -962
  24. package/dist/components/Carousel/styles.css +101 -101
  25. package/dist/components/CascadeSelect/styles.css +157 -157
  26. package/dist/components/Chip/styles.css +144 -144
  27. package/dist/components/CommandMenu/styles.css +102 -102
  28. package/dist/components/ConfigProvider/styles.css +6 -6
  29. package/dist/components/ConfirmDialog/styles.css +24 -24
  30. package/dist/components/ConfirmPopup/styles.css +35 -35
  31. package/dist/components/ContextMenu/styles.css +138 -138
  32. package/dist/components/DatePicker/styles.css +335 -335
  33. package/dist/components/Dialog/styles.css +421 -421
  34. package/dist/components/Dock/styles.css +84 -84
  35. package/dist/components/Drawer/Drawer.vue.d.ts +3 -1
  36. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  37. package/dist/components/Drawer/styles.css +346 -334
  38. package/dist/components/Dropdown/styles.css +130 -130
  39. package/dist/components/Empty/styles.css +146 -146
  40. package/dist/components/FileUpload/styles.css +359 -359
  41. package/dist/components/Form/styles.css +114 -114
  42. package/dist/components/Gallery/styles.css +100 -100
  43. package/dist/components/Input/styles.css +356 -356
  44. package/dist/components/InputColor/styles.css +129 -129
  45. package/dist/components/InputNumber/styles.css +261 -261
  46. package/dist/components/InputPassword/styles.css +178 -178
  47. package/dist/components/InputTags/styles.css +112 -112
  48. package/dist/components/Layout/styles.css +433 -433
  49. package/dist/components/Loading/styles.css +378 -378
  50. package/dist/components/MegaMenu/styles.css +97 -97
  51. package/dist/components/Menu/styles.css +564 -564
  52. package/dist/components/Menubar/styles.css +144 -144
  53. package/dist/components/Message/styles.css +250 -250
  54. package/dist/components/MeterGroup/styles.css +49 -49
  55. package/dist/components/Page/styles.css +430 -430
  56. package/dist/components/Pagination/styles.css +105 -105
  57. package/dist/components/Popover/styles.css +92 -92
  58. package/dist/components/Result/styles.css +146 -146
  59. package/dist/components/Scrollbar/styles.css +131 -131
  60. package/dist/components/Select/styles.css +192 -192
  61. package/dist/components/SelectButton/styles.css +105 -105
  62. package/dist/components/Sidebar/styles.css +74 -74
  63. package/dist/components/Slider/styles.css +211 -211
  64. package/dist/components/SplitButton/styles.css +216 -216
  65. package/dist/components/Status/styles.css +191 -191
  66. package/dist/components/Stepper/styles.css +135 -135
  67. package/dist/components/Switch/styles.css +129 -129
  68. package/dist/components/Table/Table.vue.d.ts +188 -733
  69. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  70. package/dist/components/Table/columns/keys.d.ts +13 -0
  71. package/dist/components/Table/columns/keys.d.ts.map +1 -0
  72. package/dist/components/Table/{hooks → columns}/useFixedColumn.d.ts +1 -1
  73. package/dist/components/Table/columns/useFixedColumn.d.ts.map +1 -0
  74. package/dist/components/Table/columns/useHeaders.d.ts +37 -0
  75. package/dist/components/Table/columns/useHeaders.d.ts.map +1 -0
  76. package/dist/components/Table/core/layout.d.ts +26 -0
  77. package/dist/components/Table/core/layout.d.ts.map +1 -0
  78. package/dist/components/Table/core/normalize.d.ts +30 -0
  79. package/dist/components/Table/core/normalize.d.ts.map +1 -0
  80. package/dist/components/Table/{tableQuery.d.ts → core/tableQuery.d.ts} +3 -2
  81. package/dist/components/Table/core/tableQuery.d.ts.map +1 -0
  82. package/dist/components/Table/core/tree.d.ts +31 -0
  83. package/dist/components/Table/core/tree.d.ts.map +1 -0
  84. package/dist/components/Table/core/treeSelection.d.ts +35 -0
  85. package/dist/components/Table/core/treeSelection.d.ts.map +1 -0
  86. package/dist/components/Table/core/utils.d.ts +15 -0
  87. package/dist/components/Table/core/utils.d.ts.map +1 -0
  88. package/dist/components/Table/hooks/index.d.ts +14 -10
  89. package/dist/components/Table/hooks/index.d.ts.map +1 -1
  90. package/dist/components/Table/index.d.ts +1 -1
  91. package/dist/components/Table/index.d.ts.map +1 -1
  92. package/dist/components/Table/render/TableDefaultCell.vue.d.ts +11 -0
  93. package/dist/components/Table/render/TableDefaultCell.vue.d.ts.map +1 -0
  94. package/dist/components/Table/render/TableHeaderFilter.vue.d.ts +20 -0
  95. package/dist/components/Table/render/TableHeaderFilter.vue.d.ts.map +1 -0
  96. package/dist/components/Table/render/TableLoadingLine.vue.d.ts.map +1 -0
  97. package/dist/components/Table/render/TableTbody.vue.d.ts +154 -0
  98. package/dist/components/Table/render/TableTbody.vue.d.ts.map +1 -0
  99. package/dist/components/Table/render/TableThead.vue.d.ts +76 -0
  100. package/dist/components/Table/render/TableThead.vue.d.ts.map +1 -0
  101. package/dist/components/Table/{hooks → state}/internal.d.ts +8 -2
  102. package/dist/components/Table/state/internal.d.ts.map +1 -0
  103. package/dist/components/Table/state/useClickRow.d.ts +7 -0
  104. package/dist/components/Table/state/useClickRow.d.ts.map +1 -0
  105. package/dist/components/Table/state/useColumnResize.d.ts +11 -0
  106. package/dist/components/Table/state/useColumnResize.d.ts.map +1 -0
  107. package/dist/components/Table/state/useExpandableRow.d.ts +25 -0
  108. package/dist/components/Table/state/useExpandableRow.d.ts.map +1 -0
  109. package/dist/components/Table/state/usePageItems.d.ts +15 -0
  110. package/dist/components/Table/state/usePageItems.d.ts.map +1 -0
  111. package/dist/components/Table/{hooks → state}/usePagination.d.ts.map +1 -1
  112. package/dist/components/Table/{hooks → state}/useRows.d.ts +2 -2
  113. package/dist/components/Table/{hooks → state}/useRows.d.ts.map +1 -1
  114. package/dist/components/Table/state/useServerOptions.d.ts.map +1 -0
  115. package/dist/components/Table/{hooks → state}/useTotalItems.d.ts +2 -2
  116. package/dist/components/Table/{hooks → state}/useTotalItems.d.ts.map +1 -1
  117. package/dist/components/Table/state/useTreeRows.d.ts +21 -0
  118. package/dist/components/Table/state/useTreeRows.d.ts.map +1 -0
  119. package/dist/components/Table/state/useVirtualRows.d.ts +23 -0
  120. package/dist/components/Table/state/useVirtualRows.d.ts.map +1 -0
  121. package/dist/components/Table/styles.css +182 -6
  122. package/dist/components/Table/types.d.ts +108 -25
  123. package/dist/components/Table/types.d.ts.map +1 -1
  124. package/dist/components/Tabs/styles.css +131 -131
  125. package/dist/components/Terminal/styles.css +74 -74
  126. package/dist/components/Textarea/styles.css +126 -126
  127. package/dist/components/TieredMenu/styles.css +125 -125
  128. package/dist/components/Timeline/styles.css +159 -159
  129. package/dist/components/Tree/Tree.vue.d.ts +2 -2
  130. package/dist/components/TreeSelect/TreeSelect.vue.d.ts +1 -1
  131. package/dist/components/TreeSelect/styles.css +161 -161
  132. package/dist/components/VirtualScroller/styles.css +27 -27
  133. package/dist/config-provider/style.css +2470 -2472
  134. package/dist/confirm-dialog/style.css +2553 -2555
  135. package/dist/confirm-popup/style.css +2143 -2145
  136. package/dist/context-menu/style.css +1415 -1417
  137. package/dist/data-view/style.css +1629 -1631
  138. package/dist/date-picker/style.css +1481 -1483
  139. package/dist/dialog/style.css +2529 -2531
  140. package/dist/divider/style.css +1146 -1148
  141. package/dist/dock/style.css +1230 -1232
  142. package/dist/drawer/index.js +57 -50
  143. package/dist/drawer/style.css +1492 -1482
  144. package/dist/dropdown/style.css +1407 -1409
  145. package/dist/empty/style.css +1292 -1294
  146. package/dist/fieldset/style.css +1146 -1148
  147. package/dist/file-upload/style.css +1505 -1507
  148. package/dist/flex/style.css +1146 -1148
  149. package/dist/float-label/style.css +1146 -1148
  150. package/dist/fluid/style.css +1146 -1148
  151. package/dist/form/style.css +1262 -1264
  152. package/dist/gallery/style.css +1377 -1379
  153. package/dist/grid/style.css +1146 -1148
  154. package/dist/icon/style.css +1146 -1148
  155. package/dist/icon-field/style.css +1502 -1504
  156. package/dist/index.d.ts +1 -3
  157. package/dist/index.d.ts.map +1 -1
  158. package/dist/index.js +4899 -3591
  159. package/dist/inplace/style.css +1146 -1148
  160. package/dist/input/index.js +2 -174
  161. package/dist/input/style.css +1502 -1504
  162. package/dist/input-color/style.css +1277 -1279
  163. package/dist/input-group/style.css +1146 -1148
  164. package/dist/input-number/style.css +1407 -1409
  165. package/dist/input-otp/style.css +1146 -1148
  166. package/dist/input-password/style.css +1324 -1326
  167. package/dist/input-tags/style.css +1258 -1260
  168. package/dist/knob/style.css +1146 -1148
  169. package/dist/label/style.css +1146 -1148
  170. package/dist/layout/style.css +1710 -1712
  171. package/dist/listbox/style.css +1304 -1306
  172. package/dist/loading/style.css +1526 -1528
  173. package/dist/mega-menu/style.css +1243 -1245
  174. package/dist/menu/style.css +1999 -2001
  175. package/dist/menubar/style.css +1421 -1423
  176. package/dist/message/style.css +1396 -1398
  177. package/dist/meter-group/style.css +1197 -1199
  178. package/dist/order-list/style.css +1146 -1148
  179. package/dist/page/style.css +2802 -2804
  180. package/dist/pagination/style.css +1443 -1445
  181. package/dist/panel/style.css +1146 -1148
  182. package/dist/pick-list/style.css +1146 -1148
  183. package/dist/popover/style.css +1240 -1242
  184. package/dist/progress-bar/style.css +1146 -1148
  185. package/dist/progress-spinner/style.css +1146 -1148
  186. package/dist/radio/style.css +1146 -1148
  187. package/dist/rating/style.css +1146 -1148
  188. package/dist/resolver-map.d.ts.map +1 -1
  189. package/dist/resolver.js +0 -1
  190. package/dist/result/style.css +1292 -1294
  191. package/dist/scroll-top/style.css +1277 -1279
  192. package/dist/scrollbar/style.css +1279 -1281
  193. package/dist/select/style.css +1899 -1901
  194. package/dist/select-button/style.css +1253 -1255
  195. package/dist/shared/styles/control-affix-icon.css +110 -110
  196. package/dist/shared/styles/control-suffix.css +118 -118
  197. package/dist/shared/styles/select-overlay.css +175 -175
  198. package/dist/sidebar/style.css +1220 -1222
  199. package/dist/skeleton/style.css +1146 -1148
  200. package/dist/slider/style.css +1359 -1361
  201. package/dist/space/style.css +1146 -1148
  202. package/dist/speed-dial/style.css +1146 -1148
  203. package/dist/split-button/style.css +2324 -2326
  204. package/dist/splitter/style.css +1146 -1148
  205. package/dist/status/style.css +1337 -1339
  206. package/dist/stepper/style.css +1281 -1283
  207. package/dist/styles/base.css +788 -790
  208. package/dist/styles.css +1 -1
  209. package/dist/switch/style.css +1277 -1279
  210. package/dist/table/index.js +2027 -601
  211. package/dist/table/style.css +1940 -1917
  212. package/dist/table/style.js +0 -4
  213. package/dist/tabs/style.css +1408 -1410
  214. package/dist/tag/style.css +1146 -1148
  215. package/dist/terminal/style.css +1222 -1224
  216. package/dist/textarea/style.css +1272 -1274
  217. package/dist/theme/styles.css +358 -358
  218. package/dist/tiered-menu/style.css +1402 -1404
  219. package/dist/timeline/style.css +1436 -1438
  220. package/dist/toast/style.css +1146 -1148
  221. package/dist/toggle-button/style.css +1146 -1148
  222. package/dist/toolbar/style.css +1146 -1148
  223. package/dist/tooltip/style.css +1146 -1148
  224. package/dist/tree/style.css +1146 -1148
  225. package/dist/tree-select/style.css +1841 -1843
  226. package/dist/virtual-scroller/style.css +1307 -1309
  227. package/package.json +1 -8
  228. package/dist/components/Table/TableLoadingLine.vue.d.ts.map +0 -1
  229. package/dist/components/Table/hooks/internal.d.ts.map +0 -1
  230. package/dist/components/Table/hooks/useClickRow.d.ts +0 -7
  231. package/dist/components/Table/hooks/useClickRow.d.ts.map +0 -1
  232. package/dist/components/Table/hooks/useExpandableRow.d.ts +0 -9
  233. package/dist/components/Table/hooks/useExpandableRow.d.ts.map +0 -1
  234. package/dist/components/Table/hooks/useFixedColumn.d.ts.map +0 -1
  235. package/dist/components/Table/hooks/useHeaders.d.ts +0 -14
  236. package/dist/components/Table/hooks/useHeaders.d.ts.map +0 -1
  237. package/dist/components/Table/hooks/usePageItems.d.ts +0 -17
  238. package/dist/components/Table/hooks/usePageItems.d.ts.map +0 -1
  239. package/dist/components/Table/hooks/useServerOptions.d.ts.map +0 -1
  240. package/dist/components/Table/normalize.d.ts +0 -9
  241. package/dist/components/Table/normalize.d.ts.map +0 -1
  242. package/dist/components/Table/tableQuery.d.ts.map +0 -1
  243. package/dist/components/Table/utils.d.ts +0 -10
  244. package/dist/components/Table/utils.d.ts.map +0 -1
  245. package/dist/components/TreeTable/TreeTable.vue.d.ts +0 -24
  246. package/dist/components/TreeTable/TreeTable.vue.d.ts.map +0 -1
  247. package/dist/components/TreeTable/TreeTableRow.vue.d.ts +0 -17
  248. package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +0 -1
  249. package/dist/components/TreeTable/index.d.ts +0 -3
  250. package/dist/components/TreeTable/index.d.ts.map +0 -1
  251. package/dist/components/TreeTable/styles.css +0 -97
  252. package/dist/components/TreeTable/types.d.ts +0 -25
  253. package/dist/components/TreeTable/types.d.ts.map +0 -1
  254. package/dist/tree-table/index.js +0 -128
  255. package/dist/tree-table/style.css +0 -1296
  256. package/dist/tree-table/style.js +0 -4
  257. /package/dist/components/Table/{TableLoadingLine.vue.d.ts → render/TableLoadingLine.vue.d.ts} +0 -0
  258. /package/dist/components/Table/{hooks → state}/usePagination.d.ts +0 -0
  259. /package/dist/components/Table/{hooks → state}/useServerOptions.d.ts +0 -0
@@ -1,2041 +1,2039 @@
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 0 6px rgba(0, 0, 0, 0.12);
39
+ --m-shadow-md: 0 0 12px rgba(0, 0, 0, 0.12);
40
+ --m-shadow-lg: 0 12px 32px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.08);
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);
1150
47
 
1151
- .m-icon {
1152
- color: currentColor;
1153
- display: inline-flex;
1154
- flex-shrink: 0;
1155
- height: 1rem;
1156
- line-height: 0;
1157
- vertical-align: middle;
1158
- width: 1rem;
1159
- }
1160
-
1161
- .m-icon svg {
1162
- display: block;
1163
- height: 100%;
1164
- width: 100%;
1165
- }
1166
-
1167
- .m-icon--sm,
1168
- .m-icon--small {
1169
- height: 0.875rem;
1170
- width: 0.875rem;
1171
- }
1172
-
1173
- .m-icon--md,
1174
- .m-icon--normal {
1175
- height: 1rem;
1176
- width: 1rem;
1177
- }
1178
-
1179
- .m-icon--lg,
1180
- .m-icon--large {
1181
- height: 1.25rem;
1182
- width: 1.25rem;
1183
- }
1184
-
1185
- .m-icon--spin svg {
1186
- animation: m-icon-spin var(--m-motion-spin-fast) linear infinite;
1187
- }
1188
-
1189
- @keyframes m-icon-spin {
1190
- to {
1191
- transform: rotate(360deg);
1192
- }
1193
- }
1194
-
1195
- :root[data-m-motion='none'] .m-icon--spin svg,
1196
- :root[data-m-motion='reduced'] .m-icon--spin svg {
1197
- animation: none;
1198
- }
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;
1199
66
 
1200
- /* —— Feedback: Popover —— */
1201
- .m-popover {
1202
- --m-popover-min-width: 12rem;
1203
- display: inline-flex;
1204
- position: relative;
1205
- }
1206
-
1207
- .m-popover__trigger {
1208
- display: inline-flex;
1209
- }
1210
-
1211
- .m-popover__content {
1212
- background: var(--m-color-surface);
1213
- border: var(--m-border-width) solid var(--m-color-border);
1214
- border-radius: var(--m-radius-md);
1215
- box-shadow: var(--m-shadow-md);
1216
- color: var(--m-color-text);
1217
- min-width: var(--m-popover-min-width);
1218
- overscroll-behavior: contain;
1219
- padding: var(--m-space-3);
1220
- position: absolute;
1221
- z-index: var(--m-z-popper);
1222
- }
1223
-
1224
- /*
1225
- * Placement uses the independent `translate` property so scale-fade's
1226
- * `transform` (opacity + scale/slide) can compose without fighting layout.
1227
- */
1228
- .m-popover__content--top {
1229
- bottom: calc(100% + var(--m-space-2));
1230
- left: 50%;
1231
- transform-origin: bottom center;
1232
- translate: -50% 0;
1233
- }
1234
-
1235
- .m-popover__content--bottom {
1236
- left: 50%;
1237
- top: calc(100% + var(--m-space-2));
1238
- transform-origin: top center;
1239
- translate: -50% 0;
1240
- }
1241
-
1242
- .m-popover__content--left {
1243
- right: calc(100% + var(--m-space-2));
1244
- top: 50%;
1245
- transform-origin: right center;
1246
- translate: 0 -50%;
1247
- }
1248
-
1249
- .m-popover__content--right {
1250
- left: calc(100% + var(--m-space-2));
1251
- top: 50%;
1252
- transform-origin: left center;
1253
- translate: 0 -50%;
1254
- }
1255
-
1256
- .m-popover__content--right-start {
1257
- left: calc(100% + var(--m-space-2));
1258
- top: 0;
1259
- transform-origin: top left;
1260
- }
1261
-
1262
- .m-popover__content--left-start {
1263
- right: calc(100% + var(--m-space-2));
1264
- top: 0;
1265
- transform-origin: top right;
1266
- }
1267
-
1268
- .m-popover__content--bottom-start {
1269
- left: 0;
1270
- top: calc(100% + var(--m-space-2));
1271
- transform-origin: top left;
1272
- }
1273
-
1274
- .m-popover__content--bottom-end {
1275
- right: 0;
1276
- top: calc(100% + var(--m-space-2));
1277
- transform-origin: top right;
1278
- }
1279
-
1280
- .m-popover__content--teleported {
1281
- bottom: auto;
1282
- left: auto;
1283
- overscroll-behavior: contain;
1284
- position: fixed;
1285
- right: auto;
1286
- top: auto;
1287
- /* Reset non-teleport placement translates; inline `translate` from
1288
- computeFloatingOverlayStyle provides the teleported alignment. */
1289
- translate: none;
1290
- z-index: var(--m-z-tooltip);
1291
- }
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 */
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 0 6px rgba(0, 0, 0, 0.12);
339
+ --m-shadow-md: 0 0 12px rgba(0, 0, 0, 0.12);
340
+ --m-shadow-lg: 0 12px 32px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.08);
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-megamenu,
430
+ .m-dock,
431
+ .m-sidebar,
432
+ .m-commandmenu,
433
+ .m-fileupload,
434
+ .m-carousel,
435
+ .m-gallery,
436
+ .m-metergroup,
437
+ .m-fluid,
438
+ .m-terminal {
439
+ font-family: var(--m-font-sans);
440
+ box-sizing: border-box;
441
+ }
442
+
443
+ .m-button:disabled,
444
+ .m-input:disabled,
445
+ .m-password__input:disabled,
446
+ .m-inputnumber__input:disabled,
447
+ .m-inputotp__input:disabled,
448
+ .m-inputcolor__text:disabled,
449
+ .m-inputcolor__swatch:disabled,
450
+ .m-inputtags--disabled {
451
+ cursor: not-allowed;
452
+ opacity: var(--m-opacity-disabled);
453
+ }
454
+
455
+ .m-input-field__control--prefixed .m-input:disabled,
456
+ .m-input-field__control--suffixed .m-input:disabled,
457
+ .m-input-field__control--clearable .m-input:disabled,
458
+ .m-password--disabled .m-password__input,
459
+ .m-inputnumber--disabled .m-inputnumber__input,
460
+ .m-datepicker--disabled .m-datepicker__input,
461
+ .m-icon-field--anchored .m-input:disabled,
462
+ .m-icon-field--anchored .m-textarea:disabled {
463
+ opacity: 1;
464
+ }
465
+
466
+ .m-input::placeholder,
467
+ .m-textarea::placeholder,
468
+ .m-password__input::placeholder,
469
+ .m-inputnumber__input::placeholder,
470
+ .m-inputtags__input::placeholder,
471
+ .m-inputcolor__text::placeholder {
472
+ color: var(--m-color-text-muted);
473
+ opacity: 1;
474
+ }
475
+
476
+ .m-input-field__meta,
477
+ .m-textarea-field__meta,
478
+ .m-password-field__meta {
479
+ align-items: baseline;
480
+ display: flex;
481
+ gap: var(--m-space-2);
482
+ justify-content: space-between;
483
+ }
484
+
485
+ .m-input-field__meta:not(:has(.m-input-field__help)),
486
+ .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
487
+ .m-password-field__meta:not(:has(.m-password__feedback)) {
488
+ justify-content: flex-end;
489
+ }
490
+
491
+ .m-input-field__count,
492
+ .m-textarea-field__count,
493
+ .m-password-field__count {
494
+ color: var(--m-color-text-muted);
495
+ flex: 0 0 auto;
496
+ font-size: var(--m-font-size-xs);
497
+ margin-left: auto;
498
+ }
499
+
500
+ .m-dropdown__item--parent {
501
+ align-items: center;
502
+ display: flex;
503
+ justify-content: space-between;
504
+ width: 100%;
505
+ }
506
+
507
+ .m-dropdown__icon,
508
+ .m-dropdown__caret,
509
+ .m-menu__icon,
510
+ .m-menubar__icon {
511
+ flex-shrink: 0;
512
+ }
513
+
514
+ .m-dropdown__submenu-wrap {
515
+ position: relative;
516
+ }
517
+
518
+ .m-dropdown__submenu {
519
+ --m-dropdown-submenu-max-height: min(18rem, 45vh);
520
+ background: var(--m-color-surface);
521
+ border: var(--m-border-width) solid var(--m-color-border);
522
+ border-radius: var(--m-radius-md);
523
+ box-shadow: var(--m-shadow-md);
524
+ max-height: var(--m-dropdown-submenu-max-height);
525
+ max-width: calc(100vw - 2 * var(--m-space-4));
526
+ min-width: 10rem;
527
+ overflow: hidden;
528
+ padding: var(--m-space-1);
529
+ /* Same as .m-dropdown__menu: size to content instead of being clamped
530
+ by the space left of the anchor in the viewport. */
531
+ width: max-content;
532
+ }
533
+
534
+ .m-dropdown__submenu--teleported {
535
+ position: fixed;
536
+ z-index: var(--m-z-dropdown);
537
+ }
538
+
539
+ .m-dropdown__submenu-scroll {
540
+ max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
541
+ min-height: 0;
542
+ }
543
+
544
+ .m-dropdown__submenu-view {
545
+ display: grid;
546
+ gap: var(--m-space-1);
547
+ }
548
+
549
+ .m-fade-enter-active,
550
+ .m-fade-leave-active {
551
+ transition: opacity var(--m-motion-exit) var(--m-motion-ease);
552
+ }
553
+
554
+ .m-fade-enter-from,
555
+ .m-fade-leave-to {
556
+ opacity: 0;
557
+ }
558
+
559
+ .m-scale-fade-enter-active {
560
+ transition:
561
+ opacity var(--m-motion-enter) var(--m-motion-ease),
562
+ transform var(--m-motion-enter) var(--m-motion-ease);
563
+ }
564
+
565
+ .m-scale-fade-leave-active {
566
+ transition:
567
+ opacity var(--m-motion-exit) var(--m-motion-ease),
568
+ transform var(--m-motion-exit) var(--m-motion-ease);
569
+ }
570
+
571
+ .m-scale-fade-enter-from,
572
+ .m-scale-fade-leave-to {
573
+ opacity: 0;
574
+ transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
575
+ }
1292
576
 
1293
- .m-scrollbar {
1294
- --m-scrollbar-track-size: 6px;
1295
- --m-scrollbar-inset: 0.125rem;
1296
- --m-scrollbar-bg: color-mix(
1297
- in srgb,
1298
- var(--m-color-text) 28%,
1299
- transparent
1300
- );
1301
- --m-scrollbar-hover-bg: color-mix(
1302
- in srgb,
1303
- var(--m-color-text) 45%,
1304
- transparent
1305
- );
1306
- --m-scrollbar-opacity: 0.5;
1307
- --m-scrollbar-hover-opacity: 0.8;
1308
- min-height: 0;
1309
- overflow: hidden;
1310
- position: relative;
1311
- }
1312
-
1313
- .m-scrollbar--fill {
1314
- height: 100%;
1315
- min-height: 0;
1316
- min-width: 0;
1317
- width: 100%;
1318
- }
1319
-
1320
- .m-scrollbar__wrap {
1321
- overflow: auto;
1322
- }
1323
-
1324
- .m-scrollbar--fill .m-scrollbar__wrap {
1325
- height: 100%;
1326
- min-height: 0;
1327
- min-width: 0;
1328
- width: 100%;
1329
- }
1330
-
1331
- .m-scrollbar--fit-content.m-scrollbar--fill {
1332
- height: auto;
1333
- }
1334
-
1335
- .m-scrollbar--fit-content.m-scrollbar--fill .m-scrollbar__wrap {
1336
- height: auto;
1337
- max-height: inherit;
1338
- max-width: inherit;
1339
- }
1340
-
1341
- .m-scrollbar__wrap--hidden-default {
1342
- scrollbar-width: none;
1343
- }
1344
-
1345
- .m-scrollbar__wrap--hidden-default::-webkit-scrollbar {
1346
- display: none;
1347
- }
1348
-
1349
- .m-scrollbar__view {
1350
- box-sizing: border-box;
1351
- }
1352
-
1353
- .m-scrollbar__bar {
1354
- border-radius: var(--m-radius-sm);
1355
- bottom: var(--m-scrollbar-inset);
1356
- position: absolute;
1357
- right: var(--m-scrollbar-inset);
1358
- z-index: 1;
1359
- }
1360
-
1361
- .m-scrollbar__bar--vertical {
1362
- top: var(--m-scrollbar-inset);
1363
- width: var(--m-scrollbar-track-size);
1364
- }
1365
-
1366
- .m-scrollbar__bar--vertical > .m-scrollbar__thumb {
1367
- width: 100%;
1368
- }
1369
-
1370
- .m-scrollbar__bar--horizontal {
1371
- height: var(--m-scrollbar-track-size);
1372
- left: var(--m-scrollbar-inset);
1373
- }
1374
-
1375
- .m-scrollbar__bar--horizontal > .m-scrollbar__thumb {
1376
- height: 100%;
1377
- }
1378
-
1379
- .m-scrollbar__bar:focus-visible {
1380
- box-shadow: var(--m-focus-shadow);
1381
- outline: none;
1382
- outline-offset: 1px;
1383
- }
1384
-
1385
- .m-scrollbar__thumb {
1386
- background-color: var(--m-scrollbar-bg);
1387
- border-radius: inherit;
1388
- cursor: pointer;
1389
- display: block;
1390
- height: 0;
1391
- opacity: var(--m-scrollbar-opacity);
1392
- position: relative;
1393
- transition:
1394
- background-color var(--m-motion-fast) var(--m-motion-ease),
1395
- opacity var(--m-motion-fast) var(--m-motion-ease);
1396
- width: 0;
1397
- }
1398
-
1399
- .m-scrollbar__thumb:hover {
1400
- background-color: var(--m-scrollbar-hover-bg);
1401
- opacity: var(--m-scrollbar-hover-opacity);
1402
- }
1403
-
1404
- .m-scrollbar-fade-enter-active {
1405
- transition: opacity var(--m-motion-scrollbar-show) var(--m-motion-ease);
1406
- }
1407
-
1408
- .m-scrollbar-fade-leave-active {
1409
- transition: opacity var(--m-motion-scrollbar-hide) var(--m-motion-ease);
1410
- }
1411
-
1412
- .m-scrollbar-fade-enter-from,
1413
- .m-scrollbar-fade-leave-to {
1414
- opacity: 0;
1415
- }
1416
-
1417
- :root[data-m-motion='none'] .m-scrollbar__thumb,
1418
- :root[data-m-motion='none'] .m-scrollbar-fade-enter-active,
1419
- :root[data-m-motion='none'] .m-scrollbar-fade-leave-active,
1420
- :root[data-m-motion='reduced'] .m-scrollbar-fade-enter-active,
1421
- :root[data-m-motion='reduced'] .m-scrollbar-fade-leave-active {
1422
- transition: none;
1423
- }
577
+ .m-slide-fade-enter-active {
578
+ transition:
579
+ opacity var(--m-motion-enter) var(--m-motion-ease),
580
+ transform var(--m-motion-enter) var(--m-motion-ease);
581
+ }
1424
582
 
1425
- /* —— Feedback: Tooltip —— */
1426
- .m-tooltip {
1427
- display: inline-flex;
1428
- position: relative;
1429
- }
1430
-
1431
- .m-tooltip__content {
1432
- background: var(--m-color-text);
1433
- border-radius: var(--m-radius-sm);
1434
- color: var(--m-color-surface);
1435
- font-family: var(--m-font-sans);
1436
- font-size: var(--m-font-size-xs);
1437
- left: 50%;
1438
- line-height: 1.35;
1439
- padding: var(--m-space-2) var(--m-space-3);
1440
- pointer-events: none;
1441
- position: absolute;
1442
- transform: translateX(-50%);
1443
- white-space: nowrap;
1444
- z-index: var(--m-z-popper);
1445
- }
1446
-
1447
- .m-tooltip__content--top {
1448
- bottom: calc(100% + var(--m-space-2));
1449
- }
1450
-
1451
- .m-tooltip__content--bottom {
1452
- top: calc(100% + var(--m-space-2));
1453
- }
1454
-
1455
- .m-tooltip__content--left {
1456
- left: auto;
1457
- right: calc(100% + var(--m-space-2));
1458
- top: 50%;
1459
- transform: translateY(-50%);
1460
- }
1461
-
1462
- .m-tooltip__content--right {
1463
- left: calc(100% + var(--m-space-2));
1464
- top: 50%;
1465
- transform: translateY(-50%);
1466
- }
1467
-
1468
- .m-tooltip__content--teleported {
1469
- bottom: auto;
1470
- left: auto;
1471
- position: fixed;
1472
- right: auto;
1473
- top: auto;
1474
- white-space: normal;
1475
- z-index: var(--m-z-tooltip);
1476
- }
583
+ .m-slide-fade-leave-active {
584
+ transition:
585
+ opacity var(--m-motion-exit) var(--m-motion-ease),
586
+ transform var(--m-motion-exit) var(--m-motion-ease);
587
+ }
1477
588
 
1478
- /* —— Menu —— */
1479
- .m-menu {
1480
- --m-menu-indent: var(--m-space-3);
1481
- --m-menu-root-indent: var(--m-space-4);
1482
- --m-menu-submenu-gap: var(--m-space-2);
1483
- --m-menu-submenu-inset: var(--m-space-2);
1484
- --m-menu-item-radius: var(--m-radius-md);
1485
- --m-menu-color: transparent;
1486
- --m-menu-item-color-hover: color-mix(
1487
- in srgb,
1488
- var(--m-color-text) 6%,
1489
- var(--m-color-surface)
1490
- );
1491
- --m-menu-item-color-active: color-mix(
1492
- in srgb,
1493
- var(--m-color-primary) 10%,
1494
- var(--m-color-surface)
1495
- );
1496
- --m-menu-item-text: var(--m-color-text);
1497
- --m-menu-item-text-active: var(--m-color-primary);
1498
- --m-menu-item-text-child-active: var(--m-color-primary);
1499
- --m-menu-item-icon: var(--m-color-text);
1500
- --m-menu-item-icon-active: var(--m-color-primary);
1501
- --m-menu-arrow: var(--m-color-text-muted);
1502
-
1503
- background: var(--m-menu-color);
1504
- border: var(--m-border-width) solid var(--m-color-border);
1505
- border-radius: var(--m-radius-md);
1506
- box-sizing: border-box;
1507
- color: var(--m-menu-item-text);
1508
- display: flex;
1509
- flex-direction: column;
1510
- font-size: var(--m-font-size-sm);
1511
- min-width: 10rem;
1512
- overflow: hidden;
1513
- padding: 0 0 var(--m-space-1);
1514
- user-select: none;
1515
- }
1516
-
1517
- .m-menu--embedded {
1518
- background: transparent;
1519
- border: 0;
1520
- border-radius: 0;
1521
- min-width: 0;
1522
- /* Keep a block inset so the first item does not sit on a brand rule or sider edge.
1523
- Horizontal embed resets this below. */
1524
- padding-block: var(--m-space-2);
1525
- padding-inline: 0;
1526
- width: 100%;
1527
- }
1528
-
1529
- .m-menu--flyout {
1530
- --m-menu-flyout-gap: var(--m-space-1);
1531
- --m-menu-flyout-item-height: var(--m-menu-item-height);
1532
- --m-menu-flyout-padding: var(--m-space-2);
1533
- --m-menu-flyout-radius: var(--m-radius-md);
1534
-
1535
- background: var(--m-color-surface);
1536
- border: var(--m-border-width) solid color-mix(in srgb, var(--m-color-border) 88%, transparent);
1537
- border-radius: var(--m-menu-flyout-radius);
1538
- box-shadow: var(--m-shadow-lg);
1539
- box-sizing: border-box;
1540
- min-width: 11.5rem;
1541
- overflow: hidden;
1542
- padding: var(--m-menu-flyout-padding);
1543
- }
1544
-
1545
- .m-menu--popup {
1546
- --m-menu-popup-max-height: min(18rem, 45vh);
1547
- box-shadow: var(--m-shadow-md);
1548
- display: flex;
1549
- flex-direction: column;
1550
- max-height: var(--m-menu-popup-max-height);
1551
- max-width: calc(100vw - 2 * var(--m-space-4));
1552
- overflow: hidden;
1553
- padding: var(--m-space-1) 0 var(--m-space-2);
1554
- position: absolute;
1555
- /* Grow with the content: shrink-to-fit would clamp to the anchor width
1556
- (the containing block) when not teleported. */
1557
- width: max-content;
1558
- z-index: var(--m-z-popper);
1559
- }
1560
-
1561
- .m-menu--popup .m-menu__scroll {
1562
- max-height: 100%;
1563
- min-height: 0;
1564
- }
1565
-
1566
- .m-menu-popup {
1567
- display: inline-flex;
1568
- position: relative;
1569
- }
1570
-
1571
- .m-menu-popup__anchor {
1572
- display: inline-flex;
1573
- }
1574
-
1575
- .m-menu-popup .m-menu--popup:not(.m-menu--teleported) {
1576
- left: 0;
1577
- /* Keep the in-place popup at least as wide as its anchor. */
1578
- min-width: 100%;
1579
- top: calc(100% + var(--m-space-2));
1580
- }
1581
-
1582
- .m-menu--teleported {
1583
- position: fixed;
1584
- z-index: var(--m-z-dropdown);
1585
- }
1586
-
1587
- .m-menu--horizontal {
1588
- --m-menu-horizontal-gap: var(--m-space-1);
1589
- --m-menu-horizontal-height: var(--m-menu-item-height);
1590
-
1591
- align-items: stretch;
1592
- flex-direction: row;
1593
- flex-wrap: nowrap;
1594
- gap: var(--m-menu-horizontal-gap);
1595
- max-width: 100%;
1596
- min-width: 0;
1597
- overflow: visible;
1598
- padding: var(--m-space-1) var(--m-space-2);
1599
- width: auto;
1600
- }
1601
-
1602
- .m-menu--horizontal.m-menu--embedded {
1603
- padding: 0;
1604
- }
1605
-
1606
- .m-menu--horizontal .m-menu__item,
1607
- .m-menu--horizontal .m-menu__item--submenu {
1608
- margin-top: 0;
1609
- }
1610
-
1611
- .m-menu--horizontal .m-menu__item--horizontal {
1612
- display: flex;
1613
- align-items: stretch;
1614
- }
1615
-
1616
- .m-menu--horizontal .m-popover,
1617
- .m-menu--horizontal .m-menu__collapsed-popover {
1618
- display: flex;
1619
- align-items: stretch;
1620
- height: 100%;
1621
- }
1622
-
1623
- .m-menu--horizontal .m-popover__trigger {
1624
- display: flex;
1625
- align-items: stretch;
1626
- height: 100%;
1627
- }
1628
-
1629
- .m-menu--horizontal .m-menu__item-content {
1630
- align-items: center;
1631
- border-bottom: none;
1632
- border-radius: var(--m-radius-control);
1633
- font-weight: 500;
1634
- height: var(--m-menu-horizontal-height);
1635
- padding-inline: var(--m-space-3);
1636
- white-space: nowrap;
1637
- }
1638
-
1639
- .m-menu--horizontal .m-menu__item-content::before {
1640
- border-radius: var(--m-radius-control);
1641
- display: block;
1642
- inset: 0;
1643
- }
1644
-
1645
- .m-menu--horizontal .m-menu__item-content--selected::before,
1646
- .m-menu--horizontal .m-menu__item-content--child-active::before {
1647
- background: var(--m-menu-item-color-active) !important;
1648
- }
1649
-
1650
- .m-menu--horizontal .m-menu__item-content--selected,
1651
- .m-menu--horizontal .m-menu__item-content--child-active {
1652
- border-bottom-color: transparent;
1653
- }
1654
-
1655
- .m-menu--horizontal .m-menu__item-content--selected .m-menu__label,
1656
- .m-menu--horizontal .m-menu__item-content--child-active .m-menu__label,
1657
- .m-menu--horizontal .m-menu__item-content--selected .m-menu__arrow,
1658
- .m-menu--horizontal .m-menu__item-content--child-active .m-menu__arrow {
1659
- color: var(--m-menu-item-text-active);
1660
- }
1661
-
1662
- .m-menu--horizontal .m-menu__arrow {
1663
- margin-inline-start: var(--m-space-1);
1664
- }
1665
-
1666
- .m-menu--horizontal .m-menu__submenu {
1667
- display: none;
1668
- }
1669
-
1670
- .m-menu--inverted {
1671
- --m-menu-item-color-hover: color-mix(
1672
- in srgb,
1673
- var(--m-color-contrast-fg) 8%,
1674
- transparent
1675
- );
1676
- --m-menu-item-color-active: var(--m-color-primary);
1677
- --m-menu-item-text: color-mix(
1678
- in srgb,
1679
- var(--m-color-contrast-fg) 82%,
1680
- transparent
1681
- );
1682
- --m-menu-item-text-active: var(--m-color-contrast-fg);
1683
- --m-menu-item-text-child-active: var(--m-color-contrast-fg);
1684
- --m-menu-item-icon: color-mix(
1685
- in srgb,
1686
- var(--m-color-contrast-fg) 82%,
1687
- transparent
1688
- );
1689
- --m-menu-item-icon-active: var(--m-color-contrast-fg);
1690
- --m-menu-arrow: color-mix(
1691
- in srgb,
1692
- var(--m-color-contrast-fg) 72%,
1693
- transparent
1694
- );
1695
- }
1696
-
1697
- /* —— Collapsed (icon rail) —— */
1698
- .m-menu--collapsed {
1699
- padding: var(--m-space-1) 0;
1700
- }
1701
-
1702
- .m-menu--collapsed .m-menu__label,
1703
- .m-menu--collapsed .m-menu__arrow {
1704
- display: none;
1705
- }
1706
-
1707
- .m-menu--collapsed .m-menu__item {
1708
- margin-top: var(--m-space-1);
1709
- }
1710
-
1711
- .m-menu--collapsed .m-menu__item .m-tooltip,
1712
- .m-menu--collapsed .m-menu__collapsed-popover .m-tooltip {
1713
- display: flex;
1714
- width: 100%;
1715
- }
1716
-
1717
- .m-menu--collapsed .m-menu__item-content {
1718
- align-items: center;
1719
- display: flex;
1720
- grid-template-areas: none;
1721
- grid-template-columns: unset;
1722
- height: var(--m-menu-item-height);
1723
- justify-content: center;
1724
- padding-inline: 0 !important;
1725
- width: 100%;
1726
- }
1727
-
1728
- .m-menu--collapsed .m-menu__item-content::before {
1729
- inset: 0 var(--m-space-2);
1730
- }
1731
-
1732
- .m-menu--collapsed .m-menu__icon {
1733
- height: 1.375rem;
1734
- margin-inline: 0;
1735
- width: 1.375rem;
1736
- }
1737
-
1738
- .m-menu--collapsed .m-menu__icon .m-icon {
1739
- height: 1.375rem;
1740
- width: 1.375rem;
1741
- }
1742
-
1743
- .m-menu--collapsed .m-menu__item-content--selected::before,
1744
- .m-menu--collapsed .m-menu__item-content--child-active::before {
1745
- background: var(--m-menu-item-color-active) !important;
1746
- }
1747
-
1748
- .m-menu__item {
1749
- margin-top: 0.375rem;
1750
- position: relative;
1751
- }
1752
-
1753
- .m-menu__item:first-child {
1754
- margin-top: 0;
1755
- }
1756
-
1757
- .m-menu__item-content {
1758
- align-items: center;
1759
- border-radius: var(--m-menu-item-radius);
1760
- box-sizing: border-box;
1761
- color: var(--m-menu-item-text);
1762
- cursor: pointer;
1763
- display: grid;
1764
- grid-template-areas: "icon label arrow";
1765
- grid-template-columns: auto minmax(0, 1fr) auto;
1766
- height: var(--m-menu-item-height);
1767
- line-height: 1.75;
1768
- padding-inline-end: 0.75rem;
1769
- position: relative;
1770
- text-decoration: none;
1771
- transition:
1772
- color var(--m-motion-fast) var(--m-motion-ease),
1773
- background-color var(--m-motion-fast) var(--m-motion-ease),
1774
- padding-inline-start var(--m-motion-fast) var(--m-motion-ease);
1775
- }
1776
-
1777
- /* RouterLink / <a> must not keep browser link chrome (blue + underline). */
1778
- a.m-menu__item-content,
1779
- a.m-menu__item-content:link,
1780
- a.m-menu__item-content:visited,
1781
- a.m-menu__item-content:hover,
1782
- a.m-menu__item-content:active {
1783
- color: var(--m-menu-item-text);
1784
- text-decoration: none;
1785
- }
1786
-
1787
- .m-menu__item-content--no-icon {
1788
- grid-template-areas: "label arrow";
1789
- grid-template-columns: minmax(0, 1fr) auto;
1790
- }
1791
-
1792
- .m-menu__item-content::before {
1793
- background: transparent;
1794
- border-radius: var(--m-menu-item-radius);
1795
- content: "";
1796
- inset: 0 0.5rem;
1797
- pointer-events: none;
1798
- position: absolute;
1799
- transition: background-color var(--m-motion-fast) var(--m-motion-ease);
1800
- z-index: 0;
1801
- }
1802
-
1803
- .m-menu__item-content > * {
1804
- position: relative;
1805
- z-index: 1;
1806
- }
1807
-
1808
- .m-menu__item-content:hover:not(.m-menu__item-content--disabled)::before,
1809
- .m-menu__item-content:focus-visible:not(.m-menu__item-content--disabled)::before,
1810
- .m-menu__item-content--active:not(.m-menu__item-content--disabled)::before {
1811
- background: var(--m-menu-item-color-hover);
1812
- }
1813
-
1814
- .m-menu__item-content--selected::before {
1815
- background: var(--m-menu-item-color-active) !important;
1816
- }
1817
-
1818
- .m-menu__item-content--selected,
1819
- a.m-menu__item-content--selected,
1820
- a.m-menu__item-content--selected:link,
1821
- a.m-menu__item-content--selected:visited {
1822
- color: var(--m-menu-item-text-active);
1823
- }
1824
-
1825
- .m-menu__item-content--selected .m-menu__label,
1826
- .m-menu__item-content--selected .m-menu__icon,
1827
- .m-menu__item-content--selected .m-menu__arrow {
1828
- color: var(--m-menu-item-text-active);
1829
- }
1830
-
1831
- .m-menu__item-content--child-active .m-menu__label,
1832
- .m-menu__item-content--child-active .m-menu__icon,
1833
- .m-menu__item-content--child-active .m-menu__arrow {
1834
- color: var(--m-menu-item-text-child-active);
1835
- }
1836
-
1837
- .m-menu--inverted .m-menu__item-content--selected::before {
1838
- background: var(--m-menu-item-color-active) !important;
1839
- }
1840
-
1841
- .m-menu__item-content--disabled {
1842
- cursor: not-allowed;
1843
- opacity: var(--m-opacity-disabled);
1844
- }
1845
-
1846
- .m-menu__item-content:focus-visible {
1847
- outline: none;
1848
- }
1849
-
1850
- .m-menu__item-content:focus-visible::before {
1851
- box-shadow: var(--m-focus-shadow);
1852
- }
1853
-
1854
- .m-menu__icon {
1855
- align-items: center;
1856
- color: var(--m-menu-item-icon);
1857
- display: inline-flex;
1858
- flex-shrink: 0;
1859
- grid-area: icon;
1860
- height: 1.25rem;
1861
- justify-content: center;
1862
- margin-inline-end: 0.5rem;
1863
- width: 1.25rem;
1864
- }
1865
-
1866
- .m-menu__icon .m-icon {
1867
- height: 1.25rem;
1868
- width: 1.25rem;
1869
- }
1870
-
1871
- .m-menu__item-content--selected .m-menu__icon,
1872
- .m-menu__item-content--child-active .m-menu__icon {
1873
- color: var(--m-menu-item-icon-active);
1874
- }
1875
-
1876
- .m-menu__label {
1877
- color: inherit;
1878
- grid-area: label;
1879
- min-width: 0;
1880
- overflow: hidden;
1881
- text-overflow: ellipsis;
1882
- white-space: nowrap;
1883
- }
1884
-
1885
- .m-menu__arrow {
1886
- align-items: center;
1887
- color: var(--m-menu-arrow);
589
+ .m-slide-fade-enter-from,
590
+ .m-slide-fade-leave-to {
591
+ opacity: 0;
592
+ transform: translateY(calc(var(--m-motion-distance) * -1));
593
+ }
594
+
595
+ /* Generic center zoom (opacity + scale on the transitioning root) */
596
+ .m-zoom-enter-active {
597
+ transition:
598
+ opacity var(--m-motion-enter) var(--m-motion-ease),
599
+ transform var(--m-motion-enter) var(--m-motion-ease);
600
+ }
601
+
602
+ .m-zoom-leave-active {
603
+ transition:
604
+ opacity var(--m-motion-exit) var(--m-motion-ease),
605
+ transform var(--m-motion-exit) var(--m-motion-ease);
606
+ }
607
+
608
+ .m-zoom-enter-from,
609
+ .m-zoom-leave-to {
610
+ opacity: 0;
611
+ transform: scale(0.95);
612
+ }
613
+
614
+ .m-slide-up-enter-active,
615
+ .m-slide-down-enter-active,
616
+ .m-slide-left-enter-active,
617
+ .m-slide-right-enter-active {
618
+ transition:
619
+ opacity var(--m-motion-enter) var(--m-motion-ease),
620
+ transform var(--m-motion-enter) var(--m-motion-ease);
621
+ }
622
+
623
+ .m-slide-up-leave-active,
624
+ .m-slide-down-leave-active,
625
+ .m-slide-left-leave-active,
626
+ .m-slide-right-leave-active {
627
+ transition:
628
+ opacity var(--m-motion-exit) var(--m-motion-ease),
629
+ transform var(--m-motion-exit) var(--m-motion-ease);
630
+ }
631
+
632
+ .m-slide-up-enter-from,
633
+ .m-slide-up-leave-to {
634
+ opacity: 0;
635
+ transform: translateY(var(--m-motion-distance));
636
+ }
637
+
638
+ .m-slide-down-enter-from,
639
+ .m-slide-down-leave-to {
640
+ opacity: 0;
641
+ transform: translateY(calc(var(--m-motion-distance) * -1));
642
+ }
643
+
644
+ .m-slide-left-enter-from,
645
+ .m-slide-left-leave-to {
646
+ opacity: 0;
647
+ transform: translateX(var(--m-motion-distance));
648
+ }
649
+
650
+ .m-slide-right-enter-from,
651
+ .m-slide-right-leave-to {
652
+ opacity: 0;
653
+ transform: translateX(calc(var(--m-motion-distance) * -1));
654
+ }
655
+
656
+ [data-m-motion="reduced"] .m-fade-enter-active,
657
+ [data-m-motion="reduced"] .m-fade-leave-active,
658
+ [data-m-motion="reduced"] .m-scale-fade-enter-active,
659
+ [data-m-motion="reduced"] .m-scale-fade-leave-active,
660
+ [data-m-motion="reduced"] .m-slide-fade-enter-active,
661
+ [data-m-motion="reduced"] .m-slide-fade-leave-active,
662
+ [data-m-motion="reduced"] .m-zoom-enter-active,
663
+ [data-m-motion="reduced"] .m-zoom-leave-active,
664
+ [data-m-motion="reduced"] .m-slide-up-enter-active,
665
+ [data-m-motion="reduced"] .m-slide-up-leave-active,
666
+ [data-m-motion="reduced"] .m-slide-down-enter-active,
667
+ [data-m-motion="reduced"] .m-slide-down-leave-active,
668
+ [data-m-motion="reduced"] .m-slide-left-enter-active,
669
+ [data-m-motion="reduced"] .m-slide-left-leave-active,
670
+ [data-m-motion="reduced"] .m-slide-right-enter-active,
671
+ [data-m-motion="reduced"] .m-slide-right-leave-active,
672
+ [data-m-motion="none"] .m-fade-enter-active,
673
+ [data-m-motion="none"] .m-fade-leave-active,
674
+ [data-m-motion="none"] .m-scale-fade-enter-active,
675
+ [data-m-motion="none"] .m-scale-fade-leave-active,
676
+ [data-m-motion="none"] .m-slide-fade-enter-active,
677
+ [data-m-motion="none"] .m-slide-fade-leave-active,
678
+ [data-m-motion="none"] .m-zoom-enter-active,
679
+ [data-m-motion="none"] .m-zoom-leave-active,
680
+ [data-m-motion="none"] .m-slide-up-enter-active,
681
+ [data-m-motion="none"] .m-slide-up-leave-active,
682
+ [data-m-motion="none"] .m-slide-down-enter-active,
683
+ [data-m-motion="none"] .m-slide-down-leave-active,
684
+ [data-m-motion="none"] .m-slide-left-enter-active,
685
+ [data-m-motion="none"] .m-slide-left-leave-active,
686
+ [data-m-motion="none"] .m-slide-right-enter-active,
687
+ [data-m-motion="none"] .m-slide-right-leave-active {
688
+ transition: none;
689
+ }
690
+
691
+ [data-m-motion="reduced"] .m-scale-fade-enter-from,
692
+ [data-m-motion="reduced"] .m-scale-fade-leave-to,
693
+ [data-m-motion="reduced"] .m-slide-fade-enter-from,
694
+ [data-m-motion="reduced"] .m-slide-fade-leave-to,
695
+ [data-m-motion="reduced"] .m-zoom-enter-from,
696
+ [data-m-motion="reduced"] .m-zoom-leave-to,
697
+ [data-m-motion="reduced"] .m-slide-up-enter-from,
698
+ [data-m-motion="reduced"] .m-slide-up-leave-to,
699
+ [data-m-motion="reduced"] .m-slide-down-enter-from,
700
+ [data-m-motion="reduced"] .m-slide-down-leave-to,
701
+ [data-m-motion="reduced"] .m-slide-left-enter-from,
702
+ [data-m-motion="reduced"] .m-slide-left-leave-to,
703
+ [data-m-motion="reduced"] .m-slide-right-enter-from,
704
+ [data-m-motion="reduced"] .m-slide-right-leave-to,
705
+ [data-m-motion="none"] .m-scale-fade-enter-from,
706
+ [data-m-motion="none"] .m-scale-fade-leave-to,
707
+ [data-m-motion="none"] .m-slide-fade-enter-from,
708
+ [data-m-motion="none"] .m-slide-fade-leave-to,
709
+ [data-m-motion="none"] .m-zoom-enter-from,
710
+ [data-m-motion="none"] .m-zoom-leave-to,
711
+ [data-m-motion="none"] .m-slide-up-enter-from,
712
+ [data-m-motion="none"] .m-slide-up-leave-to,
713
+ [data-m-motion="none"] .m-slide-down-enter-from,
714
+ [data-m-motion="none"] .m-slide-down-leave-to,
715
+ [data-m-motion="none"] .m-slide-left-enter-from,
716
+ [data-m-motion="none"] .m-slide-left-leave-to,
717
+ [data-m-motion="none"] .m-slide-right-enter-from,
718
+ [data-m-motion="none"] .m-slide-right-leave-to {
719
+ transform: none;
720
+ }
721
+
722
+ /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
723
+ @keyframes m-progress-spinner-rotate {
724
+ 100% {
725
+ transform: rotate(360deg);
726
+ }
727
+ }
728
+
729
+ .m-checkbox,
730
+ .m-radio,
731
+ .m-switch {
732
+ align-items: center;
733
+ color: var(--m-color-text);
734
+ cursor: pointer;
735
+ display: inline-flex;
736
+ font-family: var(--m-font-sans);
737
+ gap: var(--m-space-2);
738
+ /* 避免绝对定位 input 挂到上层 MScrollbar,聚焦时把滚动容器拽回顶部 */
739
+ position: relative;
740
+ }
741
+
742
+ .m-checkbox--disabled,
743
+ .m-radio--disabled,
744
+ .m-switch--disabled {
745
+ color: var(--m-color-text-muted);
746
+ cursor: not-allowed;
747
+ opacity: var(--m-opacity-disabled);
748
+ }
749
+
750
+ .m-checkbox--invalid .m-checkbox__control,
751
+ .m-radio--invalid .m-radio__control {
752
+ border-color: var(--m-color-danger);
753
+ }
754
+
755
+ .m-checkbox__input,
756
+ .m-radio__input,
757
+ .m-switch__input {
758
+ clip: rect(0, 0, 0, 0);
759
+ clip-path: inset(50%);
760
+ height: 1px;
761
+ margin: -1px;
762
+ overflow: hidden;
763
+ opacity: 0;
764
+ position: absolute;
765
+ white-space: nowrap;
766
+ width: 1px;
767
+ }
768
+
769
+ .m-checkbox__control,
770
+ .m-radio__control {
771
+ align-items: center;
772
+ background: var(--m-color-surface);
773
+ border: var(--m-border-width) solid var(--m-color-border);
774
+ display: inline-flex;
775
+ flex: 0 0 auto;
776
+ height: var(--m-checkbox-control-size, 1.125rem);
777
+ justify-content: center;
778
+ transition:
779
+ background-color var(--m-motion-fast) var(--m-motion-ease),
780
+ border-color var(--m-motion-fast) var(--m-motion-ease),
781
+ box-shadow var(--m-motion-fast) var(--m-motion-ease);
782
+ width: var(--m-checkbox-control-size, 1.125rem);
783
+ }
784
+
785
+ .m-checkbox__input:checked + .m-checkbox__control,
786
+ .m-radio__input:checked + .m-radio__control {
787
+ background: var(--m-color-primary);
788
+ border-color: var(--m-color-primary);
789
+ }
790
+
791
+ .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
792
+ .m-radio:not(.m-radio--disabled):hover .m-radio__control {
793
+ border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
794
+ }
795
+
796
+ .m-checkbox__input:focus-visible + .m-checkbox__control,
797
+ .m-radio__input:focus-visible + .m-radio__control,
798
+ .m-switch__input:focus-visible + .m-switch__track {
799
+ box-shadow: var(--m-focus-shadow);
800
+ outline: none;
801
+ }
802
+
803
+ .m-checkbox__label,
804
+ .m-radio__label,
805
+ .m-switch__label {
806
+ font-size: var(--m-font-size-md);
807
+ }
808
+
809
+ .m-textarea-field,
810
+ .m-select-field {
811
+ display: grid;
812
+ font-family: var(--m-font-sans);
813
+ gap: var(--m-space-2);
814
+ max-width: 100%;
815
+ min-width: var(--m-menu-min-width);
816
+ position: relative;
817
+ width: fit-content;
818
+ }
819
+
820
+ .m-textarea-field--fluid,
821
+ .m-select-field--fluid {
822
+ width: 100%;
823
+ }
824
+
825
+ .m-textarea-field__label,
826
+ .m-select-field__label {
827
+ color: var(--m-color-text);
828
+ font-family: var(--m-font-sans);
829
+ font-size: var(--m-font-size-md);
830
+ font-weight: 600;
831
+ }
832
+
833
+ .m-textarea-field__help,
834
+ .m-select-field__help {
835
+ color: var(--m-color-text-muted);
836
+ font-size: var(--m-font-size-xs);
837
+ }
838
+
839
+ .m-textarea-field__help--invalid,
840
+ .m-select-field__help--invalid {
841
+ color: var(--m-color-danger);
842
+ }
843
+
844
+ .m-textarea,
845
+ .m-select {
846
+ background: var(--m-color-surface);
847
+ border: var(--m-border-width) solid var(--m-color-border);
848
+ border-radius: var(--m-radius-control);
849
+ color: var(--m-color-text);
850
+ font: inherit;
851
+ transition:
852
+ border-color var(--m-motion-fast) var(--m-motion-ease),
853
+ box-shadow var(--m-motion-fast) var(--m-motion-ease),
854
+ background-color var(--m-motion-fast) var(--m-motion-ease);
855
+ width: 100%;
856
+ }
857
+
858
+ .m-textarea--invalid:focus-visible,
859
+ .m-select--invalid.m-select--open,
860
+ .m-select--invalid:focus-visible {
861
+ border-color: var(--m-color-danger);
862
+ box-shadow: var(--m-focus-shadow-danger);
863
+ }
864
+
865
+ .m-textarea:disabled,
866
+ .m-select:disabled,
867
+ .m-select--disabled {
868
+ cursor: not-allowed;
869
+ opacity: var(--m-opacity-disabled);
870
+ }
871
+
872
+ .m-inputgroup > .m-input,
873
+ .m-inputgroup > .m-input-field,
874
+ .m-inputgroup > .m-password-field,
875
+ .m-inputgroup > .m-inputnumber-field {
876
+ flex: 1 1 auto;
877
+ min-width: 0;
878
+ }
879
+
880
+ .m-inputgroup > .m-input-field,
881
+ .m-inputgroup > .m-password-field,
882
+ .m-inputgroup > .m-inputnumber-field {
883
+ display: flex;
884
+ flex-direction: column;
885
+ gap: 0;
886
+ }
887
+
888
+ .m-inputgroup > .m-input,
889
+ .m-inputgroup .m-input,
890
+ .m-inputgroup .m-password,
891
+ .m-inputgroup .m-inputnumber__input-wrap,
892
+ .m-inputgroup .m-input-field__control--prefixed,
893
+ .m-inputgroup .m-input-field__control--suffixed,
894
+ .m-inputgroup .m-input-field__control--clearable {
895
+ border-radius: 0;
896
+ width: 100%;
897
+ }
898
+
899
+ .m-inputgroup > :first-child.m-input,
900
+ .m-inputgroup > :first-child .m-input,
901
+ .m-inputgroup > :first-child .m-password,
902
+ .m-inputgroup > :first-child .m-inputnumber__input-wrap,
903
+ .m-inputgroup > :first-child .m-input-field__control--prefixed,
904
+ .m-inputgroup > :first-child .m-input-field__control--suffixed,
905
+ .m-inputgroup > :first-child .m-input-field__control--clearable,
906
+ .m-inputgroup > :first-child.m-inputgroup-addon {
907
+ border-bottom-left-radius: var(--m-radius-control);
908
+ border-top-left-radius: var(--m-radius-control);
909
+ }
910
+
911
+ .m-inputgroup > :last-child.m-input,
912
+ .m-inputgroup > :last-child .m-input,
913
+ .m-inputgroup > :last-child .m-password,
914
+ .m-inputgroup > :last-child .m-inputnumber__input-wrap,
915
+ .m-inputgroup > :last-child .m-input-field__control--prefixed,
916
+ .m-inputgroup > :last-child .m-input-field__control--suffixed,
917
+ .m-inputgroup > :last-child .m-input-field__control--clearable,
918
+ .m-inputgroup > :last-child.m-inputgroup-addon {
919
+ border-bottom-right-radius: var(--m-radius-control);
920
+ border-top-right-radius: var(--m-radius-control);
921
+ }
922
+
923
+ .m-inputgroup > .m-inputgroup-addon + .m-input,
924
+ .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
925
+ .m-inputgroup > .m-input + .m-inputgroup-addon,
926
+ .m-inputgroup > .m-input-field + .m-inputgroup-addon {
927
+ margin-left: calc(var(--m-border-width) * -1);
928
+ }
929
+
930
+ .m-layout__scrollbar > .m-scrollbar__wrap {
931
+ height: 100%;
932
+ overflow-x: hidden;
933
+ }
934
+
935
+ .m-layout-sider__scrollbar > .m-scrollbar__wrap {
936
+ height: 100%;
937
+ overflow-x: hidden;
938
+ }
939
+
940
+ .m-terminal__scrollbar > .m-scrollbar__wrap {
941
+ height: 100%;
942
+ overflow-x: hidden;
943
+ }
944
+
945
+ .m-scroll-body.m-scrollbar {
946
+ min-height: 0;
947
+ min-width: 0;
948
+ }
949
+
950
+ /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
951
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
952
+ width: 100%;
953
+ }
954
+
955
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
956
+ overflow: auto;
957
+ }
958
+
959
+ .m-orderlist__btn,
960
+ .m-picklist__btn {
961
+ align-items: center;
962
+ background: var(--m-color-surface);
963
+ border: var(--m-border-width) solid var(--m-color-border);
964
+ border-radius: var(--m-radius-sm);
965
+ color: var(--m-color-text);
966
+ cursor: pointer;
967
+ display: inline-flex;
968
+ font: inherit;
969
+ gap: 0;
970
+ justify-content: center;
971
+ min-height: var(--m-control-height-small, 1.75rem);
972
+ min-width: var(--m-control-affix-size);
973
+ padding: var(--m-space-1) var(--m-space-2);
974
+ }
975
+
976
+ .m-orderlist__btn:hover:not(:disabled),
977
+ .m-picklist__btn:hover:not(:disabled) {
978
+ border-color: var(--m-color-primary);
979
+ color: var(--m-color-primary);
980
+ }
981
+
982
+ .m-orderlist__btn:disabled,
983
+ .m-picklist__btn:disabled {
984
+ cursor: not-allowed;
985
+ opacity: var(--m-opacity-disabled);
986
+ }
987
+
988
+ .m-orderlist__btn:focus-visible,
989
+ .m-picklist__btn:focus-visible {
990
+ border-color: var(--m-color-primary);
991
+ box-shadow: var(--m-focus-shadow);
992
+ outline: none;
993
+ }
994
+
995
+ .m-picklist__btn .m-icon + .m-icon {
996
+ margin-left: -0.35rem;
997
+ }
998
+
999
+ .m-orderlist__scrollbar,
1000
+ .m-picklist__scrollbar {
1001
+ flex: 1;
1002
+ max-height: 16rem;
1003
+ min-height: 12rem;
1004
+ min-width: var(--m-menu-min-width);
1005
+ }
1006
+
1007
+ .m-orderlist__list,
1008
+ .m-picklist__list {
1009
+ background: var(--m-color-surface);
1010
+ border: var(--m-border-width) solid var(--m-color-border);
1011
+ border-radius: var(--m-radius-md);
1012
+ padding: var(--m-space-1);
1013
+ }
1014
+
1015
+ .m-orderlist__options,
1016
+ .m-picklist__options {
1017
+ list-style: none;
1018
+ margin: 0;
1019
+ padding: 0;
1020
+ }
1021
+
1022
+ .m-orderlist__item,
1023
+ .m-picklist__item {
1024
+ border-radius: var(--m-radius-sm);
1025
+ cursor: pointer;
1026
+ padding: var(--m-space-2) var(--m-space-3);
1027
+ }
1028
+
1029
+ .m-orderlist__item:hover,
1030
+ .m-picklist__item:hover {
1031
+ background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
1032
+ }
1033
+
1034
+ .m-orderlist__item:focus-visible,
1035
+ .m-picklist__item:focus-visible {
1036
+ box-shadow: var(--m-focus-shadow);
1037
+ outline: none;
1038
+ }
1039
+
1040
+ .m-orderlist__item--selected,
1041
+ .m-picklist__item--selected {
1042
+ background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
1043
+ color: var(--m-color-primary);
1044
+ font-weight: 600;
1045
+ }
1046
+
1047
+ .m-carousel__nav,
1048
+ .m-gallery__nav {
1049
+ background: var(--m-color-surface);
1050
+ border: var(--m-border-width) solid var(--m-color-border);
1051
+ border-radius: var(--m-radius-full, 999px);
1052
+ color: var(--m-color-text);
1053
+ cursor: pointer;
1054
+ flex: 0 0 auto;
1055
+ font: inherit;
1056
+ height: var(--m-control-affix-size);
1057
+ width: var(--m-control-affix-size);
1058
+ }
1059
+
1060
+ .m-carousel__nav:disabled,
1061
+ .m-gallery__nav:disabled {
1062
+ cursor: not-allowed;
1063
+ opacity: var(--m-opacity-disabled);
1064
+ }
1065
+
1066
+ /* Shared Naive-like hover/focus for remaining form triggers */
1067
+ .m-inputotp__input:hover:not(:disabled):not(:focus),
1068
+ .m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
1069
+ .m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
1070
+ .m-inputcolor__text:hover:not(:disabled):not(:focus),
1071
+ .m-inputtags:hover:not(.m-inputtags--disabled),
1072
+ .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked),
1073
+ .m-inplace__display:hover {
1074
+ border-color: var(--m-color-primary-hover);
1075
+ }
1076
+
1077
+ .m-inputotp__input:focus-visible,
1078
+ .m-cascadeselect__trigger:focus-visible,
1079
+ .m-treeselect__trigger:focus-visible,
1080
+ .m-inputcolor__text:focus-visible,
1081
+ .m-inputtags:focus-within,
1082
+ .m-togglebutton:focus-visible,
1083
+ .m-selectbutton__button:focus-visible,
1084
+ .m-splitbutton__main:focus-visible,
1085
+ .m-splitbutton__trigger:focus-visible,
1086
+ .m-inplace__display:focus-visible,
1087
+ .m-pagination__button:focus-visible {
1088
+ border-color: var(--m-color-primary-hover);
1089
+ box-shadow: var(--m-focus-shadow);
1090
+ outline: none;
1091
+ }
1092
+
1093
+ .m-inputotp--invalid .m-inputotp__input:focus-visible,
1094
+ .m-inputtags--invalid:focus-within,
1095
+ .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1096
+ border-color: var(--m-color-danger);
1097
+ box-shadow: var(--m-focus-shadow-danger);
1098
+ }
1099
+
1100
+ .m-checkbox-group,
1101
+ .m-radio-group {
1102
+ display: flex;
1103
+ flex-wrap: wrap;
1104
+ gap: var(--m-space-3);
1105
+ }
1106
+
1107
+ .m-checkbox--small .m-checkbox__control,
1108
+ .m-radio--small .m-radio__control {
1109
+ height: 0.95rem;
1110
+ width: 0.95rem;
1111
+ }
1112
+
1113
+ .m-checkbox--large .m-checkbox__control,
1114
+ .m-radio--large .m-radio__control {
1115
+ height: 1.35rem;
1116
+ width: 1.35rem;
1117
+ }
1118
+
1119
+ .m-inputnumber__clear,
1120
+ .m-autocomplete__clear {
1121
+ background: transparent;
1122
+ border: 0;
1123
+ color: var(--m-color-text-muted);
1124
+ cursor: pointer;
1125
+ font: inherit;
1126
+ line-height: 1;
1127
+ }
1128
+
1129
+ [data-m-motion="none"] *,
1130
+ [data-m-motion="none"] *::before,
1131
+ [data-m-motion="none"] *::after {
1132
+ animation-duration: 0.01ms !important;
1133
+ animation-iteration-count: 1 !important;
1134
+ scroll-behavior: auto !important;
1135
+ transition-duration: 0.01ms !important;
1136
+ }
1137
+
1138
+ [data-m-motion="reduced"] .m-progress-spinner,
1139
+ [data-m-motion="reduced"] .m-progress-spinner__circle,
1140
+ [data-m-motion="reduced"] .m-skeleton,
1141
+ [data-m-motion="reduced"] .m-badge--processing,
1142
+ [data-m-motion="reduced"] .m-icon--spin,
1143
+ [data-m-motion="reduced"] .m-button__spinner,
1144
+ [data-m-motion="reduced"] .m-select__loading-icon,
1145
+ [data-m-motion="reduced"] .m-switch__loading-icon {
1146
+ animation: none !important;
1147
+ }
1148
+
1149
+ .m-icon {
1150
+ color: currentColor;
1888
1151
  display: inline-flex;
1889
1152
  flex-shrink: 0;
1890
- grid-area: arrow;
1891
1153
  height: 1rem;
1892
- justify-content: center;
1893
- margin-inline-start: 0.25rem;
1894
- transition: transform var(--m-motion-fast) var(--m-motion-ease);
1154
+ line-height: 0;
1155
+ vertical-align: middle;
1895
1156
  width: 1rem;
1896
1157
  }
1897
1158
 
1898
- .m-menu__arrow--expanded {
1899
- transform: rotate(90deg);
1900
- }
1901
-
1902
- .m-menu__separator {
1903
- background: var(--m-color-border);
1904
- height: 1px;
1905
- margin: 0.375rem 0.75rem;
1906
- }
1907
-
1908
- .m-menu__submenu {
1909
- contain: layout;
1910
- display: grid;
1911
- grid-template-rows: 1fr;
1912
- }
1913
-
1914
- .m-menu__submenu-inner {
1915
- min-height: 0;
1916
- overflow: hidden;
1917
- padding-block-start: var(--m-menu-submenu-gap);
1918
- padding-inline-start: var(--m-menu-submenu-inset);
1919
- }
1920
-
1921
- .m-menu-expand-enter-active,
1922
- .m-menu-expand-leave-active {
1923
- overflow: hidden;
1924
- transition:
1925
- grid-template-rows var(--m-motion-normal) var(--m-motion-ease),
1926
- opacity var(--m-motion-normal) var(--m-motion-ease);
1927
- }
1928
-
1929
- .m-menu-expand-enter-from,
1930
- .m-menu-expand-leave-to {
1931
- grid-template-rows: 0fr;
1932
- opacity: 0;
1933
- }
1934
-
1935
- .m-menu-expand-enter-to,
1936
- .m-menu-expand-leave-from {
1937
- grid-template-rows: 1fr;
1938
- opacity: 1;
1939
- }
1940
-
1941
- [data-m-motion="reduced"] .m-menu-expand-enter-active,
1942
- [data-m-motion="reduced"] .m-menu-expand-leave-active,
1943
- [data-m-motion="none"] .m-menu-expand-enter-active,
1944
- [data-m-motion="none"] .m-menu-expand-leave-active {
1945
- transition: none;
1946
- }
1947
-
1948
- /* Popover flyout: strip outer chrome, menu card provides it */
1949
- .m-popover__trigger {
1950
- display: block;
1951
- width: 100%;
1952
- }
1953
-
1954
- .m-menu--collapsed .m-popover {
1159
+ .m-icon svg {
1955
1160
  display: block;
1161
+ height: 100%;
1956
1162
  width: 100%;
1957
1163
  }
1958
1164
 
1959
- .m-popover__content:has(.m-menu--flyout) {
1960
- background: transparent;
1961
- border: 0;
1962
- box-shadow: none;
1963
- min-width: 0;
1964
- overflow: visible;
1965
- padding: 0;
1966
- }
1967
-
1968
- .m-popover__content--right:has(.m-menu--flyout),
1969
- .m-popover__content--right-start:has(.m-menu--flyout) {
1970
- left: calc(100% + var(--m-space-2));
1971
- }
1972
-
1973
- .m-popover__content--bottom-start:has(.m-menu--flyout) {
1974
- left: 0;
1975
- top: calc(100% + var(--m-space-1));
1976
- }
1977
-
1978
- .m-popover__content--teleported:has(.m-menu--flyout) {
1979
- padding: 0;
1165
+ .m-icon--sm,
1166
+ .m-icon--small {
1167
+ height: 0.875rem;
1168
+ width: 0.875rem;
1980
1169
  }
1981
1170
 
1982
- .m-popover__content--right-start:has(.m-menu--flyout).m-scale-fade-enter-from,
1983
- .m-popover__content--right-start:has(.m-menu--flyout).m-scale-fade-leave-to {
1984
- opacity: 0;
1985
- transform: translateX(calc(var(--m-motion-distance) * -0.5)) scale(0.98);
1171
+ .m-icon--md,
1172
+ .m-icon--normal {
1173
+ height: 1rem;
1174
+ width: 1rem;
1986
1175
  }
1987
1176
 
1988
- .m-popover__content--bottom-start:has(.m-menu--flyout).m-scale-fade-enter-from,
1989
- .m-popover__content--bottom-start:has(.m-menu--flyout).m-scale-fade-leave-to {
1990
- opacity: 0;
1991
- transform: translateY(calc(var(--m-motion-distance) * -0.35)) scale(0.98);
1177
+ .m-icon--lg,
1178
+ .m-icon--large {
1179
+ height: 1.25rem;
1180
+ width: 1.25rem;
1992
1181
  }
1993
1182
 
1994
- .m-menu--flyout .m-menu__item {
1995
- margin-top: var(--m-menu-flyout-gap);
1183
+ .m-icon--spin svg {
1184
+ animation: m-icon-spin var(--m-motion-spin-fast) linear infinite;
1996
1185
  }
1997
1186
 
1998
- .m-menu--flyout .m-menu__item:first-child {
1999
- margin-top: 0;
1187
+ @keyframes m-icon-spin {
1188
+ to {
1189
+ transform: rotate(360deg);
1190
+ }
2000
1191
  }
2001
1192
 
2002
- .m-menu--flyout .m-menu__item-content {
2003
- height: var(--m-menu-flyout-item-height);
2004
- padding-inline: var(--m-space-3);
1193
+ :root[data-m-motion='none'] .m-icon--spin svg,
1194
+ :root[data-m-motion='reduced'] .m-icon--spin svg {
1195
+ animation: none;
2005
1196
  }
2006
-
2007
- .m-menu--flyout .m-menu__item-content::before {
2008
- inset: 0 0.375rem;
2009
- border-radius: calc(var(--m-menu-flyout-radius) - 0.125rem);
1197
+
1198
+ /* —— Feedback: Popover —— */
1199
+ .m-popover {
1200
+ --m-popover-min-width: 12rem;
1201
+ display: inline-flex;
1202
+ position: relative;
1203
+ }
1204
+
1205
+ .m-popover__trigger {
1206
+ display: inline-flex;
1207
+ }
1208
+
1209
+ .m-popover__content {
1210
+ background: var(--m-color-surface);
1211
+ border: var(--m-border-width) solid var(--m-color-border);
1212
+ border-radius: var(--m-radius-md);
1213
+ box-shadow: var(--m-shadow-md);
1214
+ color: var(--m-color-text);
1215
+ min-width: var(--m-popover-min-width);
1216
+ overscroll-behavior: contain;
1217
+ padding: var(--m-space-3);
1218
+ position: absolute;
1219
+ z-index: var(--m-z-popper);
1220
+ }
1221
+
1222
+ /*
1223
+ * Placement uses the independent `translate` property so scale-fade's
1224
+ * `transform` (opacity + scale/slide) can compose without fighting layout.
1225
+ */
1226
+ .m-popover__content--top {
1227
+ bottom: calc(100% + var(--m-space-2));
1228
+ left: 50%;
1229
+ transform-origin: bottom center;
1230
+ translate: -50% 0;
1231
+ }
1232
+
1233
+ .m-popover__content--bottom {
1234
+ left: 50%;
1235
+ top: calc(100% + var(--m-space-2));
1236
+ transform-origin: top center;
1237
+ translate: -50% 0;
1238
+ }
1239
+
1240
+ .m-popover__content--left {
1241
+ right: calc(100% + var(--m-space-2));
1242
+ top: 50%;
1243
+ transform-origin: right center;
1244
+ translate: 0 -50%;
1245
+ }
1246
+
1247
+ .m-popover__content--right {
1248
+ left: calc(100% + var(--m-space-2));
1249
+ top: 50%;
1250
+ transform-origin: left center;
1251
+ translate: 0 -50%;
1252
+ }
1253
+
1254
+ .m-popover__content--right-start {
1255
+ left: calc(100% + var(--m-space-2));
1256
+ top: 0;
1257
+ transform-origin: top left;
1258
+ }
1259
+
1260
+ .m-popover__content--left-start {
1261
+ right: calc(100% + var(--m-space-2));
1262
+ top: 0;
1263
+ transform-origin: top right;
1264
+ }
1265
+
1266
+ .m-popover__content--bottom-start {
1267
+ left: 0;
1268
+ top: calc(100% + var(--m-space-2));
1269
+ transform-origin: top left;
1270
+ }
1271
+
1272
+ .m-popover__content--bottom-end {
1273
+ right: 0;
1274
+ top: calc(100% + var(--m-space-2));
1275
+ transform-origin: top right;
1276
+ }
1277
+
1278
+ .m-popover__content--teleported {
1279
+ bottom: auto;
1280
+ left: auto;
1281
+ overscroll-behavior: contain;
1282
+ position: fixed;
1283
+ right: auto;
1284
+ top: auto;
1285
+ /* Reset non-teleport placement translates; inline `translate` from
1286
+ computeFloatingOverlayStyle provides the teleported alignment. */
1287
+ translate: none;
1288
+ z-index: var(--m-z-tooltip);
1289
+ }
1290
+
1291
+ .m-scrollbar {
1292
+ --m-scrollbar-track-size: 6px;
1293
+ --m-scrollbar-inset: 0.125rem;
1294
+ --m-scrollbar-bg: color-mix(
1295
+ in srgb,
1296
+ var(--m-color-text) 28%,
1297
+ transparent
1298
+ );
1299
+ --m-scrollbar-hover-bg: color-mix(
1300
+ in srgb,
1301
+ var(--m-color-text) 45%,
1302
+ transparent
1303
+ );
1304
+ --m-scrollbar-opacity: 0.5;
1305
+ --m-scrollbar-hover-opacity: 0.8;
1306
+ min-height: 0;
1307
+ overflow: hidden;
1308
+ position: relative;
1309
+ }
1310
+
1311
+ .m-scrollbar--fill {
1312
+ height: 100%;
1313
+ min-height: 0;
1314
+ min-width: 0;
1315
+ width: 100%;
1316
+ }
1317
+
1318
+ .m-scrollbar__wrap {
1319
+ overflow: auto;
1320
+ }
1321
+
1322
+ .m-scrollbar--fill .m-scrollbar__wrap {
1323
+ height: 100%;
1324
+ min-height: 0;
1325
+ min-width: 0;
1326
+ width: 100%;
1327
+ }
1328
+
1329
+ .m-scrollbar--fit-content.m-scrollbar--fill {
1330
+ height: auto;
1331
+ }
1332
+
1333
+ .m-scrollbar--fit-content.m-scrollbar--fill .m-scrollbar__wrap {
1334
+ height: auto;
1335
+ max-height: inherit;
1336
+ max-width: inherit;
1337
+ }
1338
+
1339
+ .m-scrollbar__wrap--hidden-default {
1340
+ scrollbar-width: none;
1341
+ }
1342
+
1343
+ .m-scrollbar__wrap--hidden-default::-webkit-scrollbar {
1344
+ display: none;
1345
+ }
1346
+
1347
+ .m-scrollbar__view {
1348
+ box-sizing: border-box;
1349
+ }
1350
+
1351
+ .m-scrollbar__bar {
1352
+ border-radius: var(--m-radius-sm);
1353
+ bottom: var(--m-scrollbar-inset);
1354
+ position: absolute;
1355
+ right: var(--m-scrollbar-inset);
1356
+ z-index: 1;
1357
+ }
1358
+
1359
+ .m-scrollbar__bar--vertical {
1360
+ top: var(--m-scrollbar-inset);
1361
+ width: var(--m-scrollbar-track-size);
1362
+ }
1363
+
1364
+ .m-scrollbar__bar--vertical > .m-scrollbar__thumb {
1365
+ width: 100%;
1366
+ }
1367
+
1368
+ .m-scrollbar__bar--horizontal {
1369
+ height: var(--m-scrollbar-track-size);
1370
+ left: var(--m-scrollbar-inset);
1371
+ }
1372
+
1373
+ .m-scrollbar__bar--horizontal > .m-scrollbar__thumb {
1374
+ height: 100%;
1375
+ }
1376
+
1377
+ .m-scrollbar__bar:focus-visible {
1378
+ box-shadow: var(--m-focus-shadow);
1379
+ outline: none;
1380
+ outline-offset: 1px;
1381
+ }
1382
+
1383
+ .m-scrollbar__thumb {
1384
+ background-color: var(--m-scrollbar-bg);
1385
+ border-radius: inherit;
1386
+ cursor: pointer;
1387
+ display: block;
1388
+ height: 0;
1389
+ opacity: var(--m-scrollbar-opacity);
1390
+ position: relative;
1391
+ transition:
1392
+ background-color var(--m-motion-fast) var(--m-motion-ease),
1393
+ opacity var(--m-motion-fast) var(--m-motion-ease);
1394
+ width: 0;
1395
+ }
1396
+
1397
+ .m-scrollbar__thumb:hover {
1398
+ background-color: var(--m-scrollbar-hover-bg);
1399
+ opacity: var(--m-scrollbar-hover-opacity);
1400
+ }
1401
+
1402
+ .m-scrollbar-fade-enter-active {
1403
+ transition: opacity var(--m-motion-scrollbar-show) var(--m-motion-ease);
1404
+ }
1405
+
1406
+ .m-scrollbar-fade-leave-active {
1407
+ transition: opacity var(--m-motion-scrollbar-hide) var(--m-motion-ease);
1408
+ }
1409
+
1410
+ .m-scrollbar-fade-enter-from,
1411
+ .m-scrollbar-fade-leave-to {
1412
+ opacity: 0;
1413
+ }
1414
+
1415
+ :root[data-m-motion='none'] .m-scrollbar__thumb,
1416
+ :root[data-m-motion='none'] .m-scrollbar-fade-enter-active,
1417
+ :root[data-m-motion='none'] .m-scrollbar-fade-leave-active,
1418
+ :root[data-m-motion='reduced'] .m-scrollbar-fade-enter-active,
1419
+ :root[data-m-motion='reduced'] .m-scrollbar-fade-leave-active {
1420
+ transition: none;
1421
+ }
1422
+
1423
+ /* —— Feedback: Tooltip —— */
1424
+ .m-tooltip {
1425
+ display: inline-flex;
1426
+ position: relative;
2010
1427
  }
2011
1428
 
2012
- .m-menu--flyout .m-menu__icon {
2013
- height: 1.125rem;
2014
- margin-inline-end: 0.625rem;
2015
- width: 1.125rem;
1429
+ .m-tooltip__content {
1430
+ background: var(--m-color-text);
1431
+ border-radius: var(--m-radius-sm);
1432
+ color: var(--m-color-surface);
1433
+ font-family: var(--m-font-sans);
1434
+ font-size: var(--m-font-size-xs);
1435
+ left: 50%;
1436
+ line-height: 1.35;
1437
+ padding: var(--m-space-2) var(--m-space-3);
1438
+ pointer-events: none;
1439
+ position: absolute;
1440
+ transform: translateX(-50%);
1441
+ white-space: nowrap;
1442
+ z-index: var(--m-z-popper);
2016
1443
  }
2017
1444
 
2018
- .m-menu--flyout .m-menu__icon .m-icon {
2019
- height: 1.125rem;
2020
- width: 1.125rem;
1445
+ .m-tooltip__content--top {
1446
+ bottom: calc(100% + var(--m-space-2));
2021
1447
  }
2022
1448
 
2023
- .m-menu--flyout .m-menu__label {
2024
- font-size: var(--m-font-size-sm);
2025
- font-weight: 500;
2026
- line-height: 1.4;
1449
+ .m-tooltip__content--bottom {
1450
+ top: calc(100% + var(--m-space-2));
2027
1451
  }
2028
1452
 
2029
- .m-menu--flyout .m-menu__item-content--selected::before {
2030
- background: var(--m-menu-item-color-active) !important;
1453
+ .m-tooltip__content--left {
1454
+ left: auto;
1455
+ right: calc(100% + var(--m-space-2));
1456
+ top: 50%;
1457
+ transform: translateY(-50%);
2031
1458
  }
2032
1459
 
2033
- .m-menu--flyout .m-menu__item-content--selected .m-menu__label,
2034
- .m-menu--flyout .m-menu__item-content--selected .m-menu__icon {
2035
- color: var(--m-menu-item-text-active);
2036
- font-weight: 600;
1460
+ .m-tooltip__content--right {
1461
+ left: calc(100% + var(--m-space-2));
1462
+ top: 50%;
1463
+ transform: translateY(-50%);
2037
1464
  }
2038
1465
 
2039
- .m-menu--flyout .m-menu__separator {
2040
- margin: var(--m-menu-flyout-gap) 0.5rem;
1466
+ .m-tooltip__content--teleported {
1467
+ bottom: auto;
1468
+ left: auto;
1469
+ position: fixed;
1470
+ right: auto;
1471
+ top: auto;
1472
+ white-space: normal;
1473
+ z-index: var(--m-z-tooltip);
2041
1474
  }
1475
+
1476
+ /* —— Menu —— */
1477
+ .m-menu {
1478
+ --m-menu-indent: var(--m-space-3);
1479
+ --m-menu-root-indent: var(--m-space-4);
1480
+ --m-menu-submenu-gap: var(--m-space-2);
1481
+ --m-menu-submenu-inset: var(--m-space-2);
1482
+ --m-menu-item-radius: var(--m-radius-md);
1483
+ --m-menu-color: transparent;
1484
+ --m-menu-item-color-hover: color-mix(
1485
+ in srgb,
1486
+ var(--m-color-text) 6%,
1487
+ var(--m-color-surface)
1488
+ );
1489
+ --m-menu-item-color-active: color-mix(
1490
+ in srgb,
1491
+ var(--m-color-primary) 10%,
1492
+ var(--m-color-surface)
1493
+ );
1494
+ --m-menu-item-text: var(--m-color-text);
1495
+ --m-menu-item-text-active: var(--m-color-primary);
1496
+ --m-menu-item-text-child-active: var(--m-color-primary);
1497
+ --m-menu-item-icon: var(--m-color-text);
1498
+ --m-menu-item-icon-active: var(--m-color-primary);
1499
+ --m-menu-arrow: var(--m-color-text-muted);
1500
+
1501
+ background: var(--m-menu-color);
1502
+ border: var(--m-border-width) solid var(--m-color-border);
1503
+ border-radius: var(--m-radius-md);
1504
+ box-sizing: border-box;
1505
+ color: var(--m-menu-item-text);
1506
+ display: flex;
1507
+ flex-direction: column;
1508
+ font-size: var(--m-font-size-sm);
1509
+ min-width: 10rem;
1510
+ overflow: hidden;
1511
+ padding: 0 0 var(--m-space-1);
1512
+ user-select: none;
1513
+ }
1514
+
1515
+ .m-menu--embedded {
1516
+ background: transparent;
1517
+ border: 0;
1518
+ border-radius: 0;
1519
+ min-width: 0;
1520
+ /* Keep a block inset so the first item does not sit on a brand rule or sider edge.
1521
+ Horizontal embed resets this below. */
1522
+ padding-block: var(--m-space-2);
1523
+ padding-inline: 0;
1524
+ width: 100%;
1525
+ }
1526
+
1527
+ .m-menu--flyout {
1528
+ --m-menu-flyout-gap: var(--m-space-1);
1529
+ --m-menu-flyout-item-height: var(--m-menu-item-height);
1530
+ --m-menu-flyout-padding: var(--m-space-2);
1531
+ --m-menu-flyout-radius: var(--m-radius-md);
1532
+
1533
+ background: var(--m-color-surface);
1534
+ border: var(--m-border-width) solid color-mix(in srgb, var(--m-color-border) 88%, transparent);
1535
+ border-radius: var(--m-menu-flyout-radius);
1536
+ box-shadow: var(--m-shadow-lg);
1537
+ box-sizing: border-box;
1538
+ min-width: 11.5rem;
1539
+ overflow: hidden;
1540
+ padding: var(--m-menu-flyout-padding);
1541
+ }
1542
+
1543
+ .m-menu--popup {
1544
+ --m-menu-popup-max-height: min(18rem, 45vh);
1545
+ box-shadow: var(--m-shadow-md);
1546
+ display: flex;
1547
+ flex-direction: column;
1548
+ max-height: var(--m-menu-popup-max-height);
1549
+ max-width: calc(100vw - 2 * var(--m-space-4));
1550
+ overflow: hidden;
1551
+ padding: var(--m-space-1) 0 var(--m-space-2);
1552
+ position: absolute;
1553
+ /* Grow with the content: shrink-to-fit would clamp to the anchor width
1554
+ (the containing block) when not teleported. */
1555
+ width: max-content;
1556
+ z-index: var(--m-z-popper);
1557
+ }
1558
+
1559
+ .m-menu--popup .m-menu__scroll {
1560
+ max-height: 100%;
1561
+ min-height: 0;
1562
+ }
1563
+
1564
+ .m-menu-popup {
1565
+ display: inline-flex;
1566
+ position: relative;
1567
+ }
1568
+
1569
+ .m-menu-popup__anchor {
1570
+ display: inline-flex;
1571
+ }
1572
+
1573
+ .m-menu-popup .m-menu--popup:not(.m-menu--teleported) {
1574
+ left: 0;
1575
+ /* Keep the in-place popup at least as wide as its anchor. */
1576
+ min-width: 100%;
1577
+ top: calc(100% + var(--m-space-2));
1578
+ }
1579
+
1580
+ .m-menu--teleported {
1581
+ position: fixed;
1582
+ z-index: var(--m-z-dropdown);
1583
+ }
1584
+
1585
+ .m-menu--horizontal {
1586
+ --m-menu-horizontal-gap: var(--m-space-1);
1587
+ --m-menu-horizontal-height: var(--m-menu-item-height);
1588
+
1589
+ align-items: stretch;
1590
+ flex-direction: row;
1591
+ flex-wrap: nowrap;
1592
+ gap: var(--m-menu-horizontal-gap);
1593
+ max-width: 100%;
1594
+ min-width: 0;
1595
+ overflow: visible;
1596
+ padding: var(--m-space-1) var(--m-space-2);
1597
+ width: auto;
1598
+ }
1599
+
1600
+ .m-menu--horizontal.m-menu--embedded {
1601
+ padding: 0;
1602
+ }
1603
+
1604
+ .m-menu--horizontal .m-menu__item,
1605
+ .m-menu--horizontal .m-menu__item--submenu {
1606
+ margin-top: 0;
1607
+ }
1608
+
1609
+ .m-menu--horizontal .m-menu__item--horizontal {
1610
+ display: flex;
1611
+ align-items: stretch;
1612
+ }
1613
+
1614
+ .m-menu--horizontal .m-popover,
1615
+ .m-menu--horizontal .m-menu__collapsed-popover {
1616
+ display: flex;
1617
+ align-items: stretch;
1618
+ height: 100%;
1619
+ }
1620
+
1621
+ .m-menu--horizontal .m-popover__trigger {
1622
+ display: flex;
1623
+ align-items: stretch;
1624
+ height: 100%;
1625
+ }
1626
+
1627
+ .m-menu--horizontal .m-menu__item-content {
1628
+ align-items: center;
1629
+ border-bottom: none;
1630
+ border-radius: var(--m-radius-control);
1631
+ font-weight: 500;
1632
+ height: var(--m-menu-horizontal-height);
1633
+ padding-inline: var(--m-space-3);
1634
+ white-space: nowrap;
1635
+ }
1636
+
1637
+ .m-menu--horizontal .m-menu__item-content::before {
1638
+ border-radius: var(--m-radius-control);
1639
+ display: block;
1640
+ inset: 0;
1641
+ }
1642
+
1643
+ .m-menu--horizontal .m-menu__item-content--selected::before,
1644
+ .m-menu--horizontal .m-menu__item-content--child-active::before {
1645
+ background: var(--m-menu-item-color-active) !important;
1646
+ }
1647
+
1648
+ .m-menu--horizontal .m-menu__item-content--selected,
1649
+ .m-menu--horizontal .m-menu__item-content--child-active {
1650
+ border-bottom-color: transparent;
1651
+ }
1652
+
1653
+ .m-menu--horizontal .m-menu__item-content--selected .m-menu__label,
1654
+ .m-menu--horizontal .m-menu__item-content--child-active .m-menu__label,
1655
+ .m-menu--horizontal .m-menu__item-content--selected .m-menu__arrow,
1656
+ .m-menu--horizontal .m-menu__item-content--child-active .m-menu__arrow {
1657
+ color: var(--m-menu-item-text-active);
1658
+ }
1659
+
1660
+ .m-menu--horizontal .m-menu__arrow {
1661
+ margin-inline-start: var(--m-space-1);
1662
+ }
1663
+
1664
+ .m-menu--horizontal .m-menu__submenu {
1665
+ display: none;
1666
+ }
1667
+
1668
+ .m-menu--inverted {
1669
+ --m-menu-item-color-hover: color-mix(
1670
+ in srgb,
1671
+ var(--m-color-contrast-fg) 8%,
1672
+ transparent
1673
+ );
1674
+ --m-menu-item-color-active: var(--m-color-primary);
1675
+ --m-menu-item-text: color-mix(
1676
+ in srgb,
1677
+ var(--m-color-contrast-fg) 82%,
1678
+ transparent
1679
+ );
1680
+ --m-menu-item-text-active: var(--m-color-contrast-fg);
1681
+ --m-menu-item-text-child-active: var(--m-color-contrast-fg);
1682
+ --m-menu-item-icon: color-mix(
1683
+ in srgb,
1684
+ var(--m-color-contrast-fg) 82%,
1685
+ transparent
1686
+ );
1687
+ --m-menu-item-icon-active: var(--m-color-contrast-fg);
1688
+ --m-menu-arrow: color-mix(
1689
+ in srgb,
1690
+ var(--m-color-contrast-fg) 72%,
1691
+ transparent
1692
+ );
1693
+ }
1694
+
1695
+ /* —— Collapsed (icon rail) —— */
1696
+ .m-menu--collapsed {
1697
+ padding: var(--m-space-1) 0;
1698
+ }
1699
+
1700
+ .m-menu--collapsed .m-menu__label,
1701
+ .m-menu--collapsed .m-menu__arrow {
1702
+ display: none;
1703
+ }
1704
+
1705
+ .m-menu--collapsed .m-menu__item {
1706
+ margin-top: var(--m-space-1);
1707
+ }
1708
+
1709
+ .m-menu--collapsed .m-menu__item .m-tooltip,
1710
+ .m-menu--collapsed .m-menu__collapsed-popover .m-tooltip {
1711
+ display: flex;
1712
+ width: 100%;
1713
+ }
1714
+
1715
+ .m-menu--collapsed .m-menu__item-content {
1716
+ align-items: center;
1717
+ display: flex;
1718
+ grid-template-areas: none;
1719
+ grid-template-columns: unset;
1720
+ height: var(--m-menu-item-height);
1721
+ justify-content: center;
1722
+ padding-inline: 0 !important;
1723
+ width: 100%;
1724
+ }
1725
+
1726
+ .m-menu--collapsed .m-menu__item-content::before {
1727
+ inset: 0 var(--m-space-2);
1728
+ }
1729
+
1730
+ .m-menu--collapsed .m-menu__icon {
1731
+ height: 1.375rem;
1732
+ margin-inline: 0;
1733
+ width: 1.375rem;
1734
+ }
1735
+
1736
+ .m-menu--collapsed .m-menu__icon .m-icon {
1737
+ height: 1.375rem;
1738
+ width: 1.375rem;
1739
+ }
1740
+
1741
+ .m-menu--collapsed .m-menu__item-content--selected::before,
1742
+ .m-menu--collapsed .m-menu__item-content--child-active::before {
1743
+ background: var(--m-menu-item-color-active) !important;
1744
+ }
1745
+
1746
+ .m-menu__item {
1747
+ margin-top: 0.375rem;
1748
+ position: relative;
1749
+ }
1750
+
1751
+ .m-menu__item:first-child {
1752
+ margin-top: 0;
1753
+ }
1754
+
1755
+ .m-menu__item-content {
1756
+ align-items: center;
1757
+ border-radius: var(--m-menu-item-radius);
1758
+ box-sizing: border-box;
1759
+ color: var(--m-menu-item-text);
1760
+ cursor: pointer;
1761
+ display: grid;
1762
+ grid-template-areas: "icon label arrow";
1763
+ grid-template-columns: auto minmax(0, 1fr) auto;
1764
+ height: var(--m-menu-item-height);
1765
+ line-height: 1.75;
1766
+ padding-inline-end: 0.75rem;
1767
+ position: relative;
1768
+ text-decoration: none;
1769
+ transition:
1770
+ color var(--m-motion-fast) var(--m-motion-ease),
1771
+ background-color var(--m-motion-fast) var(--m-motion-ease),
1772
+ padding-inline-start var(--m-motion-fast) var(--m-motion-ease);
1773
+ }
1774
+
1775
+ /* RouterLink / <a> must not keep browser link chrome (blue + underline). */
1776
+ a.m-menu__item-content,
1777
+ a.m-menu__item-content:link,
1778
+ a.m-menu__item-content:visited,
1779
+ a.m-menu__item-content:hover,
1780
+ a.m-menu__item-content:active {
1781
+ color: var(--m-menu-item-text);
1782
+ text-decoration: none;
1783
+ }
1784
+
1785
+ .m-menu__item-content--no-icon {
1786
+ grid-template-areas: "label arrow";
1787
+ grid-template-columns: minmax(0, 1fr) auto;
1788
+ }
1789
+
1790
+ .m-menu__item-content::before {
1791
+ background: transparent;
1792
+ border-radius: var(--m-menu-item-radius);
1793
+ content: "";
1794
+ inset: 0 0.5rem;
1795
+ pointer-events: none;
1796
+ position: absolute;
1797
+ transition: background-color var(--m-motion-fast) var(--m-motion-ease);
1798
+ z-index: 0;
1799
+ }
1800
+
1801
+ .m-menu__item-content > * {
1802
+ position: relative;
1803
+ z-index: 1;
1804
+ }
1805
+
1806
+ .m-menu__item-content:hover:not(.m-menu__item-content--disabled)::before,
1807
+ .m-menu__item-content:focus-visible:not(.m-menu__item-content--disabled)::before,
1808
+ .m-menu__item-content--active:not(.m-menu__item-content--disabled)::before {
1809
+ background: var(--m-menu-item-color-hover);
1810
+ }
1811
+
1812
+ .m-menu__item-content--selected::before {
1813
+ background: var(--m-menu-item-color-active) !important;
1814
+ }
1815
+
1816
+ .m-menu__item-content--selected,
1817
+ a.m-menu__item-content--selected,
1818
+ a.m-menu__item-content--selected:link,
1819
+ a.m-menu__item-content--selected:visited {
1820
+ color: var(--m-menu-item-text-active);
1821
+ }
1822
+
1823
+ .m-menu__item-content--selected .m-menu__label,
1824
+ .m-menu__item-content--selected .m-menu__icon,
1825
+ .m-menu__item-content--selected .m-menu__arrow {
1826
+ color: var(--m-menu-item-text-active);
1827
+ }
1828
+
1829
+ .m-menu__item-content--child-active .m-menu__label,
1830
+ .m-menu__item-content--child-active .m-menu__icon,
1831
+ .m-menu__item-content--child-active .m-menu__arrow {
1832
+ color: var(--m-menu-item-text-child-active);
1833
+ }
1834
+
1835
+ .m-menu--inverted .m-menu__item-content--selected::before {
1836
+ background: var(--m-menu-item-color-active) !important;
1837
+ }
1838
+
1839
+ .m-menu__item-content--disabled {
1840
+ cursor: not-allowed;
1841
+ opacity: var(--m-opacity-disabled);
1842
+ }
1843
+
1844
+ .m-menu__item-content:focus-visible {
1845
+ outline: none;
1846
+ }
1847
+
1848
+ .m-menu__item-content:focus-visible::before {
1849
+ box-shadow: var(--m-focus-shadow);
1850
+ }
1851
+
1852
+ .m-menu__icon {
1853
+ align-items: center;
1854
+ color: var(--m-menu-item-icon);
1855
+ display: inline-flex;
1856
+ flex-shrink: 0;
1857
+ grid-area: icon;
1858
+ height: 1.25rem;
1859
+ justify-content: center;
1860
+ margin-inline-end: 0.5rem;
1861
+ width: 1.25rem;
1862
+ }
1863
+
1864
+ .m-menu__icon .m-icon {
1865
+ height: 1.25rem;
1866
+ width: 1.25rem;
1867
+ }
1868
+
1869
+ .m-menu__item-content--selected .m-menu__icon,
1870
+ .m-menu__item-content--child-active .m-menu__icon {
1871
+ color: var(--m-menu-item-icon-active);
1872
+ }
1873
+
1874
+ .m-menu__label {
1875
+ color: inherit;
1876
+ grid-area: label;
1877
+ min-width: 0;
1878
+ overflow: hidden;
1879
+ text-overflow: ellipsis;
1880
+ white-space: nowrap;
1881
+ }
1882
+
1883
+ .m-menu__arrow {
1884
+ align-items: center;
1885
+ color: var(--m-menu-arrow);
1886
+ display: inline-flex;
1887
+ flex-shrink: 0;
1888
+ grid-area: arrow;
1889
+ height: 1rem;
1890
+ justify-content: center;
1891
+ margin-inline-start: 0.25rem;
1892
+ transition: transform var(--m-motion-fast) var(--m-motion-ease);
1893
+ width: 1rem;
1894
+ }
1895
+
1896
+ .m-menu__arrow--expanded {
1897
+ transform: rotate(90deg);
1898
+ }
1899
+
1900
+ .m-menu__separator {
1901
+ background: var(--m-color-border);
1902
+ height: 1px;
1903
+ margin: 0.375rem 0.75rem;
1904
+ }
1905
+
1906
+ .m-menu__submenu {
1907
+ contain: layout;
1908
+ display: grid;
1909
+ grid-template-rows: 1fr;
1910
+ }
1911
+
1912
+ .m-menu__submenu-inner {
1913
+ min-height: 0;
1914
+ overflow: hidden;
1915
+ padding-block-start: var(--m-menu-submenu-gap);
1916
+ padding-inline-start: var(--m-menu-submenu-inset);
1917
+ }
1918
+
1919
+ .m-menu-expand-enter-active,
1920
+ .m-menu-expand-leave-active {
1921
+ overflow: hidden;
1922
+ transition:
1923
+ grid-template-rows var(--m-motion-normal) var(--m-motion-ease),
1924
+ opacity var(--m-motion-normal) var(--m-motion-ease);
1925
+ }
1926
+
1927
+ .m-menu-expand-enter-from,
1928
+ .m-menu-expand-leave-to {
1929
+ grid-template-rows: 0fr;
1930
+ opacity: 0;
1931
+ }
1932
+
1933
+ .m-menu-expand-enter-to,
1934
+ .m-menu-expand-leave-from {
1935
+ grid-template-rows: 1fr;
1936
+ opacity: 1;
1937
+ }
1938
+
1939
+ [data-m-motion="reduced"] .m-menu-expand-enter-active,
1940
+ [data-m-motion="reduced"] .m-menu-expand-leave-active,
1941
+ [data-m-motion="none"] .m-menu-expand-enter-active,
1942
+ [data-m-motion="none"] .m-menu-expand-leave-active {
1943
+ transition: none;
1944
+ }
1945
+
1946
+ /* Popover flyout: strip outer chrome, menu card provides it */
1947
+ .m-popover__trigger {
1948
+ display: block;
1949
+ width: 100%;
1950
+ }
1951
+
1952
+ .m-menu--collapsed .m-popover {
1953
+ display: block;
1954
+ width: 100%;
1955
+ }
1956
+
1957
+ .m-popover__content:has(.m-menu--flyout) {
1958
+ background: transparent;
1959
+ border: 0;
1960
+ box-shadow: none;
1961
+ min-width: 0;
1962
+ overflow: visible;
1963
+ padding: 0;
1964
+ }
1965
+
1966
+ .m-popover__content--right:has(.m-menu--flyout),
1967
+ .m-popover__content--right-start:has(.m-menu--flyout) {
1968
+ left: calc(100% + var(--m-space-2));
1969
+ }
1970
+
1971
+ .m-popover__content--bottom-start:has(.m-menu--flyout) {
1972
+ left: 0;
1973
+ top: calc(100% + var(--m-space-1));
1974
+ }
1975
+
1976
+ .m-popover__content--teleported:has(.m-menu--flyout) {
1977
+ padding: 0;
1978
+ }
1979
+
1980
+ .m-popover__content--right-start:has(.m-menu--flyout).m-scale-fade-enter-from,
1981
+ .m-popover__content--right-start:has(.m-menu--flyout).m-scale-fade-leave-to {
1982
+ opacity: 0;
1983
+ transform: translateX(calc(var(--m-motion-distance) * -0.5)) scale(0.98);
1984
+ }
1985
+
1986
+ .m-popover__content--bottom-start:has(.m-menu--flyout).m-scale-fade-enter-from,
1987
+ .m-popover__content--bottom-start:has(.m-menu--flyout).m-scale-fade-leave-to {
1988
+ opacity: 0;
1989
+ transform: translateY(calc(var(--m-motion-distance) * -0.35)) scale(0.98);
1990
+ }
1991
+
1992
+ .m-menu--flyout .m-menu__item {
1993
+ margin-top: var(--m-menu-flyout-gap);
1994
+ }
1995
+
1996
+ .m-menu--flyout .m-menu__item:first-child {
1997
+ margin-top: 0;
1998
+ }
1999
+
2000
+ .m-menu--flyout .m-menu__item-content {
2001
+ height: var(--m-menu-flyout-item-height);
2002
+ padding-inline: var(--m-space-3);
2003
+ }
2004
+
2005
+ .m-menu--flyout .m-menu__item-content::before {
2006
+ inset: 0 0.375rem;
2007
+ border-radius: calc(var(--m-menu-flyout-radius) - 0.125rem);
2008
+ }
2009
+
2010
+ .m-menu--flyout .m-menu__icon {
2011
+ height: 1.125rem;
2012
+ margin-inline-end: 0.625rem;
2013
+ width: 1.125rem;
2014
+ }
2015
+
2016
+ .m-menu--flyout .m-menu__icon .m-icon {
2017
+ height: 1.125rem;
2018
+ width: 1.125rem;
2019
+ }
2020
+
2021
+ .m-menu--flyout .m-menu__label {
2022
+ font-size: var(--m-font-size-sm);
2023
+ font-weight: 500;
2024
+ line-height: 1.4;
2025
+ }
2026
+
2027
+ .m-menu--flyout .m-menu__item-content--selected::before {
2028
+ background: var(--m-menu-item-color-active) !important;
2029
+ }
2030
+
2031
+ .m-menu--flyout .m-menu__item-content--selected .m-menu__label,
2032
+ .m-menu--flyout .m-menu__item-content--selected .m-menu__icon {
2033
+ color: var(--m-menu-item-text-active);
2034
+ font-weight: 600;
2035
+ }
2036
+
2037
+ .m-menu--flyout .m-menu__separator {
2038
+ margin: var(--m-menu-flyout-gap) 0.5rem;
2039
+ }