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,2115 +1,2113 @@
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-button {
1152
- --m-button-padding-x-small: var(--m-control-padding-x-small);
1153
- --m-button-padding-x-medium: calc(
1154
- var(--m-control-padding-x-medium) + var(--m-space-1)
1155
- );
1156
- --m-button-padding-x-large: calc(
1157
- var(--m-control-padding-x-large) + var(--m-space-1)
1158
- );
1159
- --m-button-icon-stack-min-height: 3.25rem;
1160
- --m-button-badge-min-width: 1.15rem;
1161
- --m-button-spinner-size: 0.875rem;
1162
- --m-button-icon-size: 1rem;
1163
- --m-button-bg: var(--m-color-primary);
1164
- --m-button-fg: var(--m-color-on-emphasis);
1165
- --m-button-border: var(--m-color-primary);
1166
- --m-button-hover-bg: var(--m-color-primary-hover);
1167
- --m-button-hover-fg: var(--m-color-on-emphasis);
1168
- --m-button-hover-border: var(--m-color-primary-hover);
1169
- --m-button-active-bg: color-mix(
1170
- in srgb,
1171
- var(--m-color-primary) 82%,
1172
- black
1173
- );
1174
- align-items: center;
1175
- background: var(--m-button-bg);
1176
- border: var(--m-border-width) solid var(--m-button-border);
1177
- border-radius: var(--m-radius-control);
1178
- color: var(--m-button-fg);
1179
- cursor: pointer;
1180
- display: inline-flex;
1181
- flex-direction: row;
1182
- font-family: var(--m-font-sans);
1183
- font-size: var(--m-control-font-medium);
1184
- font-weight: 600;
1185
- gap: var(--m-space-2);
1186
- justify-content: center;
1187
- line-height: 1;
1188
- min-height: var(--m-control-height-medium);
1189
- padding: 0 var(--m-button-padding-x-medium);
1190
- position: relative;
1191
- transition:
1192
- background-color var(--m-motion-fast) var(--m-motion-ease),
1193
- border-color var(--m-motion-fast) var(--m-motion-ease),
1194
- color var(--m-motion-fast) var(--m-motion-ease),
1195
- box-shadow var(--m-motion-fast) var(--m-motion-ease),
1196
- opacity var(--m-motion-fast) var(--m-motion-ease),
1197
- transform 160ms var(--m-motion-ease);
1198
- vertical-align: middle;
1199
- white-space: nowrap;
1200
- }
1201
-
1202
- @media (hover: hover) and (pointer: fine) {
1203
- .m-button:hover:not(:disabled) {
1204
- background: var(--m-button-hover-bg);
1205
- border-color: var(--m-button-hover-border);
1206
- color: var(--m-button-hover-fg);
1207
- }
1208
- }
1209
-
1210
- .m-button:active:not(:disabled) {
1211
- background: var(--m-button-active-bg);
1212
- }
1213
-
1214
- .m-button--press:active:not(:disabled) {
1215
- transform: scale(0.97);
1216
- }
1217
-
1218
- /* Naive-style focus: soft glow, not outline-offset ring */
1219
- .m-button:focus {
1220
- outline: none;
1221
- }
1222
-
1223
- .m-button:focus-visible {
1224
- box-shadow: var(--m-focus-shadow);
1225
- outline: none;
1226
- }
1227
-
1228
- .m-button:disabled {
1229
- cursor: not-allowed;
1230
- opacity: var(--m-opacity-disabled);
1231
- }
1232
-
1233
- .m-button--primary {
1234
- --m-button-bg: var(--m-color-primary);
1235
- --m-button-fg: var(--m-color-on-emphasis);
1236
- --m-button-border: var(--m-color-primary);
1237
- --m-button-hover-bg: var(--m-color-primary-hover);
1238
- --m-button-hover-fg: var(--m-color-on-emphasis);
1239
- --m-button-hover-border: var(--m-color-primary-hover);
1240
- --m-button-active-bg: color-mix(
1241
- in srgb,
1242
- var(--m-color-primary) 82%,
1243
- black
1244
- );
1245
- }
1246
-
1247
- .m-button--secondary {
1248
- --m-button-bg: color-mix(
1249
- in srgb,
1250
- var(--m-color-text-muted) 16%,
1251
- var(--m-color-surface)
1252
- );
1253
- --m-button-fg: var(--m-color-text);
1254
- --m-button-border: transparent;
1255
- --m-button-hover-bg: color-mix(
1256
- in srgb,
1257
- var(--m-color-text-muted) 24%,
1258
- var(--m-color-surface)
1259
- );
1260
- --m-button-hover-fg: var(--m-color-text);
1261
- --m-button-hover-border: transparent;
1262
- --m-button-active-bg: color-mix(
1263
- in srgb,
1264
- var(--m-color-text-muted) 32%,
1265
- var(--m-color-surface)
1266
- );
1267
- }
1268
-
1269
- .m-button--success {
1270
- --m-button-bg: var(--m-color-success);
1271
- --m-button-fg: var(--m-color-on-emphasis);
1272
- --m-button-border: var(--m-color-success);
1273
- --m-button-hover-bg: color-mix(
1274
- in srgb,
1275
- var(--m-color-success) 85%,
1276
- black
1277
- );
1278
- --m-button-hover-fg: var(--m-color-on-emphasis);
1279
- --m-button-hover-border: color-mix(
1280
- in srgb,
1281
- var(--m-color-success) 85%,
1282
- black
1283
- );
1284
- --m-button-active-bg: color-mix(
1285
- in srgb,
1286
- var(--m-color-success) 75%,
1287
- black
1288
- );
1289
- }
1290
-
1291
- .m-button--info {
1292
- --m-button-bg: var(--m-color-info);
1293
- --m-button-fg: var(--m-color-on-emphasis);
1294
- --m-button-border: var(--m-color-info);
1295
- --m-button-hover-bg: color-mix(in srgb, var(--m-color-info) 85%, black);
1296
- --m-button-hover-fg: var(--m-color-on-emphasis);
1297
- --m-button-hover-border: color-mix(
1298
- in srgb,
1299
- var(--m-color-info) 85%,
1300
- black
1301
- );
1302
- --m-button-active-bg: color-mix(in srgb, var(--m-color-info) 75%, black);
1303
- }
1304
-
1305
- .m-button--warn {
1306
- --m-button-bg: var(--m-color-warn);
1307
- --m-button-fg: var(--m-color-on-emphasis);
1308
- --m-button-border: var(--m-color-warn);
1309
- --m-button-hover-bg: color-mix(in srgb, var(--m-color-warn) 85%, black);
1310
- --m-button-hover-fg: var(--m-color-on-emphasis);
1311
- --m-button-hover-border: color-mix(
1312
- in srgb,
1313
- var(--m-color-warn) 85%,
1314
- black
1315
- );
1316
- --m-button-active-bg: color-mix(in srgb, var(--m-color-warn) 75%, black);
1317
- }
1318
-
1319
- .m-button--help {
1320
- --m-button-bg: var(--m-color-help);
1321
- --m-button-fg: var(--m-color-on-emphasis);
1322
- --m-button-border: var(--m-color-help);
1323
- --m-button-hover-bg: color-mix(in srgb, var(--m-color-help) 85%, black);
1324
- --m-button-hover-fg: var(--m-color-on-emphasis);
1325
- --m-button-hover-border: color-mix(
1326
- in srgb,
1327
- var(--m-color-help) 85%,
1328
- black
1329
- );
1330
- --m-button-active-bg: color-mix(in srgb, var(--m-color-help) 75%, black);
1331
- }
1332
-
1333
- .m-button--danger {
1334
- --m-button-bg: var(--m-color-danger);
1335
- --m-button-fg: var(--m-color-on-emphasis);
1336
- --m-button-border: var(--m-color-danger);
1337
- --m-button-hover-bg: color-mix(in srgb, var(--m-color-danger) 85%, black);
1338
- --m-button-hover-fg: var(--m-color-on-emphasis);
1339
- --m-button-hover-border: color-mix(
1340
- in srgb,
1341
- var(--m-color-danger) 85%,
1342
- black
1343
- );
1344
- --m-button-active-bg: color-mix(
1345
- in srgb,
1346
- var(--m-color-danger) 75%,
1347
- black
1348
- );
1349
- }
1350
-
1351
- .m-button--contrast {
1352
- --m-button-bg: var(--m-color-contrast);
1353
- --m-button-fg: var(--m-color-contrast-fg);
1354
- --m-button-border: var(--m-color-contrast);
1355
- --m-button-hover-bg: var(--m-color-contrast-hover);
1356
- --m-button-hover-fg: var(--m-color-contrast-fg);
1357
- --m-button-hover-border: var(--m-color-contrast-hover);
1358
- --m-button-active-bg: var(--m-color-contrast-active);
1359
- }
1360
-
1361
- .m-button--outlined {
1362
- --m-button-bg: transparent;
1363
- --m-button-fg: var(--m-button-border);
1364
- --m-button-hover-bg: color-mix(
1365
- in srgb,
1366
- var(--m-button-border) 10%,
1367
- transparent
1368
- );
1369
- --m-button-hover-fg: var(--m-button-border);
1370
- --m-button-hover-border: var(--m-button-border);
1371
- --m-button-active-bg: color-mix(
1372
- in srgb,
1373
- var(--m-button-border) 16%,
1374
- transparent
1375
- );
1376
- }
1377
-
1378
- /* Idle matches outlined hover; hover/active deepen the tint. */
1379
- .m-button--plain {
1380
- --m-button-bg: color-mix(
1381
- in srgb,
1382
- var(--m-button-border) 10%,
1383
- transparent
1384
- );
1385
- --m-button-fg: var(--m-button-border);
1386
- --m-button-hover-bg: color-mix(
1387
- in srgb,
1388
- var(--m-button-border) 16%,
1389
- transparent
1390
- );
1391
- --m-button-hover-fg: var(--m-button-border);
1392
- --m-button-hover-border: var(--m-button-border);
1393
- --m-button-active-bg: color-mix(
1394
- in srgb,
1395
- var(--m-button-border) 22%,
1396
- transparent
1397
- );
1398
- }
1399
-
1400
- .m-button--secondary.m-button--outlined,
1401
- .m-button--secondary.m-button--plain {
1402
- --m-button-border: var(--m-color-border);
1403
- --m-button-fg: var(--m-color-text);
1404
- --m-button-hover-fg: var(--m-color-text);
1405
- }
1406
-
1407
- .m-button--text,
1408
- .m-button--link {
1409
- --m-button-bg: transparent;
1410
- --m-button-border: transparent;
1411
- --m-button-fg: var(--m-color-primary);
1412
- --m-button-hover-fg: var(--m-color-primary);
1413
- --m-button-hover-border: transparent;
1414
- }
1415
-
1416
- .m-button--text {
1417
- --m-button-hover-bg: color-mix(
1418
- in srgb,
1419
- var(--m-color-primary) 10%,
1420
- transparent
1421
- );
1422
- --m-button-active-bg: color-mix(
1423
- in srgb,
1424
- var(--m-color-primary) 16%,
1425
- transparent
1426
- );
1427
- }
1428
-
1429
- .m-button--link {
1430
- --m-button-bg: transparent;
1431
- --m-button-hover-bg: transparent;
1432
- --m-button-active-bg: transparent;
1433
- height: auto;
1434
- min-height: 0;
1435
- padding: 0;
1436
- }
1437
-
1438
- .m-button--link.m-button--link-underline:hover:not(:disabled) {
1439
- text-decoration: underline;
1440
- }
1441
-
1442
- .m-button--link:not(.m-button--link-underline):hover:not(:disabled) {
1443
- opacity: 0.8;
1444
- }
1445
-
1446
- .m-button--secondary.m-button--text {
1447
- --m-button-fg: var(--m-color-text-muted);
1448
- --m-button-hover-bg: color-mix(
1449
- in srgb,
1450
- var(--m-color-text-muted) 12%,
1451
- transparent
1452
- );
1453
- --m-button-hover-fg: var(--m-color-text);
1454
- }
1455
-
1456
- .m-button--secondary.m-button--link {
1457
- --m-button-fg: var(--m-color-text-muted);
1458
- --m-button-hover-fg: var(--m-color-text);
1459
- }
1460
-
1461
- .m-button--success.m-button--text,
1462
- .m-button--success.m-button--outlined {
1463
- --m-button-fg: var(--m-color-success);
1464
- --m-button-border: var(--m-color-success);
1465
- --m-button-hover-bg: color-mix(
1466
- in srgb,
1467
- var(--m-color-success) 10%,
1468
- transparent
1469
- );
1470
- --m-button-hover-fg: var(--m-color-success);
1471
- --m-button-hover-border: var(--m-color-success);
1472
- }
1473
-
1474
- .m-button--success.m-button--link {
1475
- --m-button-fg: var(--m-color-success);
1476
- --m-button-hover-fg: var(--m-color-success);
1477
- }
1478
-
1479
- .m-button--info.m-button--text,
1480
- .m-button--info.m-button--outlined {
1481
- --m-button-fg: var(--m-color-info);
1482
- --m-button-border: var(--m-color-info);
1483
- --m-button-hover-bg: color-mix(
1484
- in srgb,
1485
- var(--m-color-info) 10%,
1486
- transparent
1487
- );
1488
- --m-button-hover-fg: var(--m-color-info);
1489
- --m-button-hover-border: var(--m-color-info);
1490
- }
1491
-
1492
- .m-button--info.m-button--link {
1493
- --m-button-fg: var(--m-color-info);
1494
- --m-button-hover-fg: var(--m-color-info);
1495
- }
1496
-
1497
- .m-button--warn.m-button--text,
1498
- .m-button--warn.m-button--outlined {
1499
- --m-button-fg: var(--m-color-warn);
1500
- --m-button-border: var(--m-color-warn);
1501
- --m-button-hover-bg: color-mix(
1502
- in srgb,
1503
- var(--m-color-warn) 10%,
1504
- transparent
1505
- );
1506
- --m-button-hover-fg: var(--m-color-warn);
1507
- --m-button-hover-border: var(--m-color-warn);
1508
- }
1509
-
1510
- .m-button--warn.m-button--link {
1511
- --m-button-fg: var(--m-color-warn);
1512
- --m-button-hover-fg: var(--m-color-warn);
1513
- }
1514
-
1515
- .m-button--help.m-button--text,
1516
- .m-button--help.m-button--outlined {
1517
- --m-button-fg: var(--m-color-help);
1518
- --m-button-border: var(--m-color-help);
1519
- --m-button-hover-bg: color-mix(
1520
- in srgb,
1521
- var(--m-color-help) 10%,
1522
- transparent
1523
- );
1524
- --m-button-hover-fg: var(--m-color-help);
1525
- --m-button-hover-border: var(--m-color-help);
1526
- }
1527
-
1528
- .m-button--help.m-button--link {
1529
- --m-button-fg: var(--m-color-help);
1530
- --m-button-hover-fg: var(--m-color-help);
1531
- }
1532
-
1533
- .m-button--danger.m-button--text,
1534
- .m-button--danger.m-button--outlined {
1535
- --m-button-fg: var(--m-color-danger);
1536
- --m-button-border: var(--m-color-danger);
1537
- --m-button-hover-bg: color-mix(
1538
- in srgb,
1539
- var(--m-color-danger) 10%,
1540
- transparent
1541
- );
1542
- --m-button-hover-fg: var(--m-color-danger);
1543
- --m-button-hover-border: var(--m-color-danger);
1544
- }
1545
-
1546
- .m-button--danger.m-button--link {
1547
- --m-button-fg: var(--m-color-danger);
1548
- --m-button-hover-fg: var(--m-color-danger);
1549
- }
1550
-
1551
- .m-button--contrast.m-button--text,
1552
- .m-button--contrast.m-button--outlined {
1553
- --m-button-fg: var(--m-color-contrast);
1554
- --m-button-border: var(--m-color-contrast);
1555
- --m-button-hover-bg: color-mix(
1556
- in srgb,
1557
- var(--m-color-contrast) 10%,
1558
- transparent
1559
- );
1560
- --m-button-hover-fg: var(--m-color-contrast);
1561
- --m-button-hover-border: var(--m-color-contrast);
1562
- }
1563
-
1564
- .m-button--contrast.m-button--link {
1565
- --m-button-fg: var(--m-color-contrast);
1566
- --m-button-hover-fg: var(--m-color-contrast);
1567
- }
1568
-
1569
- .m-button--plain.m-button--text,
1570
- .m-button--plain.m-button--outlined {
1571
- --m-button-bg: transparent;
1572
- --m-button-fg: var(--m-color-text-muted);
1573
- --m-button-border: var(--m-color-border);
1574
- --m-button-hover-bg: color-mix(
1575
- in srgb,
1576
- var(--m-color-text-muted) 12%,
1577
- transparent
1578
- );
1579
- --m-button-hover-fg: var(--m-color-text);
1580
- --m-button-hover-border: var(--m-color-border);
1581
- --m-button-active-bg: color-mix(
1582
- in srgb,
1583
- var(--m-color-text-muted) 18%,
1584
- transparent
1585
- );
1586
- }
1587
-
1588
- .m-button--plain.m-button--link {
1589
- --m-button-fg: var(--m-color-text-muted);
1590
- --m-button-hover-fg: var(--m-color-text);
1591
- }
1592
-
1593
- .m-button--ghost {
1594
- --m-button-bg: color-mix(
1595
- in srgb,
1596
- var(--m-color-primary) 10%,
1597
- transparent
1598
- );
1599
- --m-button-border: transparent;
1600
- --m-button-fg: var(--m-color-primary);
1601
- --m-button-hover-bg: color-mix(
1602
- in srgb,
1603
- var(--m-color-primary) 16%,
1604
- transparent
1605
- );
1606
- --m-button-hover-fg: var(--m-color-primary);
1607
- --m-button-hover-border: transparent;
1608
- --m-button-active-bg: color-mix(
1609
- in srgb,
1610
- var(--m-color-primary) 22%,
1611
- transparent
1612
- );
1613
- }
1614
-
1615
- .m-button--secondary.m-button--ghost {
1616
- --m-button-bg: color-mix(
1617
- in srgb,
1618
- var(--m-color-text-muted) 12%,
1619
- transparent
1620
- );
1621
- --m-button-fg: var(--m-color-text);
1622
- --m-button-hover-bg: color-mix(
1623
- in srgb,
1624
- var(--m-color-text-muted) 18%,
1625
- transparent
1626
- );
1627
- --m-button-hover-fg: var(--m-color-text);
1628
- --m-button-active-bg: color-mix(
1629
- in srgb,
1630
- var(--m-color-text-muted) 24%,
1631
- transparent
1632
- );
1633
- }
1634
-
1635
- .m-button--success.m-button--ghost {
1636
- --m-button-bg: color-mix(
1637
- in srgb,
1638
- var(--m-color-success) 10%,
1639
- transparent
1640
- );
1641
- --m-button-fg: var(--m-color-success);
1642
- --m-button-hover-bg: color-mix(
1643
- in srgb,
1644
- var(--m-color-success) 16%,
1645
- transparent
1646
- );
1647
- --m-button-hover-fg: var(--m-color-success);
1648
- --m-button-active-bg: color-mix(
1649
- in srgb,
1650
- var(--m-color-success) 22%,
1651
- transparent
1652
- );
1653
- }
1654
-
1655
- .m-button--info.m-button--ghost {
1656
- --m-button-bg: color-mix(
1657
- in srgb,
1658
- var(--m-color-info) 10%,
1659
- transparent
1660
- );
1661
- --m-button-fg: var(--m-color-info);
1662
- --m-button-hover-bg: color-mix(
1663
- in srgb,
1664
- var(--m-color-info) 16%,
1665
- transparent
1666
- );
1667
- --m-button-hover-fg: var(--m-color-info);
1668
- --m-button-active-bg: color-mix(
1669
- in srgb,
1670
- var(--m-color-info) 22%,
1671
- transparent
1672
- );
1673
- }
1674
-
1675
- .m-button--warn.m-button--ghost {
1676
- --m-button-bg: color-mix(
1677
- in srgb,
1678
- var(--m-color-warn) 10%,
1679
- transparent
1680
- );
1681
- --m-button-fg: var(--m-color-warn);
1682
- --m-button-hover-bg: color-mix(
1683
- in srgb,
1684
- var(--m-color-warn) 16%,
1685
- transparent
1686
- );
1687
- --m-button-hover-fg: var(--m-color-warn);
1688
- --m-button-active-bg: color-mix(
1689
- in srgb,
1690
- var(--m-color-warn) 22%,
1691
- transparent
1692
- );
1693
- }
1694
-
1695
- .m-button--help.m-button--ghost {
1696
- --m-button-bg: color-mix(
1697
- in srgb,
1698
- var(--m-color-help) 10%,
1699
- transparent
1700
- );
1701
- --m-button-fg: var(--m-color-help);
1702
- --m-button-hover-bg: color-mix(
1703
- in srgb,
1704
- var(--m-color-help) 16%,
1705
- transparent
1706
- );
1707
- --m-button-hover-fg: var(--m-color-help);
1708
- --m-button-active-bg: color-mix(
1709
- in srgb,
1710
- var(--m-color-help) 22%,
1711
- transparent
1712
- );
1713
- }
1714
-
1715
- .m-button--danger.m-button--ghost {
1716
- --m-button-bg: color-mix(
1717
- in srgb,
1718
- var(--m-color-danger) 10%,
1719
- transparent
1720
- );
1721
- --m-button-fg: var(--m-color-danger);
1722
- --m-button-hover-bg: color-mix(
1723
- in srgb,
1724
- var(--m-color-danger) 16%,
1725
- transparent
1726
- );
1727
- --m-button-hover-fg: var(--m-color-danger);
1728
- --m-button-active-bg: color-mix(
1729
- in srgb,
1730
- var(--m-color-danger) 22%,
1731
- transparent
1732
- );
1733
- }
1734
-
1735
- .m-button--contrast.m-button--ghost {
1736
- --m-button-bg: color-mix(
1737
- in srgb,
1738
- var(--m-color-contrast) 10%,
1739
- transparent
1740
- );
1741
- --m-button-fg: var(--m-color-contrast);
1742
- --m-button-hover-bg: color-mix(
1743
- in srgb,
1744
- var(--m-color-contrast) 16%,
1745
- transparent
1746
- );
1747
- --m-button-hover-fg: var(--m-color-contrast);
1748
- --m-button-active-bg: color-mix(
1749
- in srgb,
1750
- var(--m-color-contrast) 22%,
1751
- transparent
1752
- );
1753
- }
1754
-
1755
- .m-button--quaternary {
1756
- --m-button-bg: transparent;
1757
- --m-button-border: transparent;
1758
- --m-button-fg: var(--m-color-text);
1759
- --m-button-hover-bg: color-mix(
1760
- in srgb,
1761
- var(--m-color-text-muted) 10%,
1762
- transparent
1763
- );
1764
- --m-button-hover-fg: var(--m-color-text);
1765
- --m-button-hover-border: transparent;
1766
- --m-button-active-bg: color-mix(
1767
- in srgb,
1768
- var(--m-color-text-muted) 16%,
1769
- transparent
1770
- );
1771
- }
1772
-
1773
- .m-button--custom {
1774
- --m-button-bg: var(--m-button-color);
1775
- --m-button-fg: var(--m-color-on-emphasis);
1776
- --m-button-border: var(--m-button-color);
1777
- --m-button-hover-bg: color-mix(in srgb, var(--m-button-color) 85%, black);
1778
- --m-button-hover-fg: var(--m-color-on-emphasis);
1779
- --m-button-hover-border: color-mix(
1780
- in srgb,
1781
- var(--m-button-color) 85%,
1782
- black
1783
- );
1784
- --m-button-active-bg: color-mix(
1785
- in srgb,
1786
- var(--m-button-color) 75%,
1787
- black
1788
- );
1789
- }
1790
-
1791
- .m-button--custom.m-button--outlined {
1792
- --m-button-bg: transparent;
1793
- --m-button-fg: var(--m-button-color);
1794
- --m-button-border: var(--m-button-color);
1795
- --m-button-hover-bg: color-mix(
1796
- in srgb,
1797
- var(--m-button-color) 12%,
1798
- transparent
1799
- );
1800
- --m-button-hover-fg: var(--m-button-color);
1801
- --m-button-hover-border: var(--m-button-color);
1802
- }
1803
-
1804
- .m-button--custom.m-button--ghost {
1805
- --m-button-bg: color-mix(
1806
- in srgb,
1807
- var(--m-button-color) 10%,
1808
- transparent
1809
- );
1810
- --m-button-fg: var(--m-button-color);
1811
- --m-button-border: transparent;
1812
- --m-button-hover-bg: color-mix(
1813
- in srgb,
1814
- var(--m-button-color) 16%,
1815
- transparent
1816
- );
1817
- --m-button-hover-fg: var(--m-button-color);
1818
- --m-button-hover-border: transparent;
1819
- --m-button-active-bg: color-mix(
1820
- in srgb,
1821
- var(--m-button-color) 22%,
1822
- transparent
1823
- );
1824
- }
1825
-
1826
- .m-button--custom.m-button--text,
1827
- .m-button--custom.m-button--quaternary {
1828
- --m-button-bg: transparent;
1829
- --m-button-fg: var(--m-button-color);
1830
- --m-button-border: transparent;
1831
- --m-button-hover-bg: color-mix(
1832
- in srgb,
1833
- var(--m-button-color) 12%,
1834
- transparent
1835
- );
1836
- --m-button-hover-fg: var(--m-button-color);
1837
- --m-button-hover-border: transparent;
1838
- }
1839
-
1840
- .m-button--custom.m-button--plain {
1841
- --m-button-bg: color-mix(
1842
- in srgb,
1843
- var(--m-button-color) 10%,
1844
- transparent
1845
- );
1846
- --m-button-fg: var(--m-button-color);
1847
- --m-button-border: var(--m-button-color);
1848
- --m-button-hover-bg: color-mix(
1849
- in srgb,
1850
- var(--m-button-color) 16%,
1851
- transparent
1852
- );
1853
- --m-button-hover-fg: var(--m-button-color);
1854
- --m-button-hover-border: var(--m-button-color);
1855
- --m-button-active-bg: color-mix(
1856
- in srgb,
1857
- var(--m-button-color) 22%,
1858
- transparent
1859
- );
1860
- }
1861
-
1862
- .m-button--custom.m-button--link {
1863
- --m-button-bg: transparent;
1864
- --m-button-fg: var(--m-button-color);
1865
- --m-button-border: transparent;
1866
- --m-button-hover-bg: transparent;
1867
- --m-button-hover-fg: var(--m-button-color);
1868
- --m-button-hover-border: transparent;
1869
- --m-button-active-bg: transparent;
1870
- }
1871
-
1872
- .m-button-group {
1873
- display: inline-flex;
1874
- vertical-align: middle;
1875
- }
1876
-
1877
- .m-button-group--fluid {
1878
- display: flex;
1879
- width: 100%;
1880
- }
1881
-
1882
- .m-button-group--fluid > .m-button {
1883
- flex: 1;
1884
- }
1885
-
1886
- .m-button-group > .m-button {
1887
- border-radius: 0;
1888
- margin: 0;
1889
- }
1890
-
1891
- .m-button-group > .m-button + .m-button {
1892
- margin-left: -1px;
1893
- }
1894
-
1895
- .m-button-group > .m-button:first-child {
1896
- border-top-left-radius: var(--m-radius-control);
1897
- border-bottom-left-radius: var(--m-radius-control);
1898
- }
1899
-
1900
- .m-button-group > .m-button:last-child {
1901
- border-top-right-radius: var(--m-radius-control);
1902
- border-bottom-right-radius: var(--m-radius-control);
1903
- }
1904
-
1905
- .m-button--raised {
1906
- box-shadow: var(--m-shadow-raised);
1907
- }
1908
-
1909
- .m-button--raised:focus-visible {
1910
- box-shadow: var(--m-focus-shadow), var(--m-shadow-raised);
1911
- }
1912
-
1913
- .m-button--rounded {
1914
- border-radius: var(--m-radius-full);
1915
- }
1916
-
1917
- .m-button--icon-only {
1918
- gap: 0;
1919
- min-width: var(--m-control-height-medium);
1920
- padding: 0;
1921
- width: var(--m-control-height-medium);
1922
- }
1923
-
1924
- .m-button--icon-only.m-button--small {
1925
- min-width: var(--m-control-height-small);
1926
- width: var(--m-control-height-small);
1927
- }
1928
-
1929
- .m-button--icon-only.m-button--large {
1930
- min-width: var(--m-control-height-large);
1931
- width: var(--m-control-height-large);
1932
- }
1933
-
1934
- .m-button--icon-right {
1935
- flex-direction: row-reverse;
1936
- }
1937
-
1938
- .m-button--icon-top {
1939
- flex-direction: column;
1940
- min-height: var(--m-button-icon-stack-min-height);
1941
- padding-block: var(--m-space-2);
1942
- }
1943
-
1944
- .m-button--icon-bottom {
1945
- flex-direction: column-reverse;
1946
- min-height: var(--m-button-icon-stack-min-height);
1947
- padding-block: var(--m-space-2);
1948
- }
1949
-
1950
- .m-button--fluid {
1951
- display: flex;
1952
- width: 100%;
1953
- }
1954
-
1955
- .m-button--small {
1956
- --m-button-icon-size: 0.875rem;
1957
- font-size: var(--m-control-font-small);
1958
- min-height: var(--m-control-height-small);
1959
- padding: 0 var(--m-button-padding-x-small);
1960
- }
1961
-
1962
- .m-button--large {
1963
- --m-button-icon-size: 1.25rem;
1964
- font-size: var(--m-control-font-large);
1965
- min-height: var(--m-control-height-large);
1966
- padding: 0 var(--m-button-padding-x-large);
1967
- }
1968
-
1969
- .m-button__icon,
1970
- .m-button__label {
1971
- align-items: center;
1972
- display: inline-flex;
1973
- justify-content: center;
1974
- }
1975
-
1976
- .m-button__icon,
1977
- .m-button__label,
1978
- .m-button__badge {
1979
- position: relative;
1980
- z-index: 1;
1981
- }
1982
-
1983
- .m-button__ripple {
1984
- border-radius: inherit;
1985
- inset: 0;
1986
- overflow: hidden;
1987
- pointer-events: none;
1988
- position: absolute;
1989
- z-index: 0;
1990
- }
1991
-
1992
- .m-button__ripple-wave {
1993
- background: currentColor;
1994
- border-radius: var(--m-radius-full);
1995
- opacity: 0;
1996
- pointer-events: none;
1997
- position: absolute;
1998
- transform: scale(0);
1999
- will-change: transform, opacity;
2000
- }
2001
-
2002
- /* Used only when Web Animations API is unavailable. */
2003
- .m-button__ripple-wave--fallback {
2004
- animation: m-button-ripple 560ms var(--m-motion-ease) forwards;
2005
- }
2006
-
2007
- @keyframes m-button-ripple {
2008
- 0% {
2009
- opacity: 0.42;
2010
- transform: scale(0);
2011
- }
2012
- 55% {
2013
- opacity: 0.22;
2014
- transform: scale(0.55);
2015
- }
2016
- 100% {
2017
- opacity: 0;
2018
- transform: scale(1);
2019
- }
2020
- }
2021
-
2022
- .m-button__icon {
2023
- flex: 0 0 auto;
2024
- width: var(--m-button-icon-size);
2025
- height: var(--m-button-icon-size);
2026
- line-height: 0;
2027
- }
2028
-
2029
- .m-button__icon :is(.m-icon, .m-button__icon-graphic, svg) {
2030
- display: block;
2031
- flex-shrink: 0;
2032
- width: 100%;
2033
- height: 100%;
2034
- }
2035
-
2036
- .m-button__icon .m-icon {
2037
- max-width: 100%;
2038
- max-height: 100%;
2039
- }
2040
-
2041
- .m-button__badge {
2042
- align-items: center;
2043
- background: var(--m-color-contrast);
2044
- border-radius: var(--m-radius-full);
2045
- color: var(--m-color-contrast-fg);
2046
- display: inline-flex;
2047
- font-size: var(--m-font-size-xs);
2048
- font-weight: 700;
2049
- justify-content: center;
2050
- line-height: 1;
2051
- margin-inline-start: var(--m-space-1);
2052
- min-width: var(--m-button-badge-min-width);
2053
- padding: var(--m-space-1) var(--m-space-2);
2054
- }
2055
-
2056
- .m-button__badge--secondary {
2057
- background: color-mix(
2058
- in srgb,
2059
- var(--m-color-text-muted) 25%,
2060
- var(--m-color-surface)
2061
- );
2062
- color: var(--m-color-text);
2063
- }
2064
-
2065
- .m-button__badge--success {
2066
- background: var(--m-color-success);
2067
- color: var(--m-color-on-emphasis);
2068
- }
2069
-
2070
- .m-button__badge--info {
2071
- background: var(--m-color-info);
2072
- color: var(--m-color-on-emphasis);
2073
- }
2074
-
2075
- .m-button__badge--warn {
2076
- background: var(--m-color-warn);
2077
- color: var(--m-color-on-emphasis);
2078
- }
2079
-
2080
- .m-button__badge--danger {
2081
- background: var(--m-color-danger);
2082
- color: var(--m-color-on-emphasis);
2083
- }
2084
-
2085
- .m-button__badge--contrast {
2086
- background: var(--m-color-contrast);
2087
- color: var(--m-color-contrast-fg);
2088
- }
2089
-
2090
- .m-button__spinner {
2091
- animation: m-button-spin var(--m-motion-spin-fast) linear infinite;
2092
- border: 2px solid currentColor;
2093
- border-right-color: transparent;
2094
- border-radius: var(--m-radius-full);
2095
- height: var(--m-button-spinner-size);
2096
- width: var(--m-button-spinner-size);
2097
- }
2098
-
2099
- @keyframes m-button-spin {
2100
- to {
2101
- transform: rotate(360deg);
2102
- }
2103
- }
2104
-
2105
- [data-m-motion="reduced"] .m-button__spinner,
2106
- [data-m-motion="none"] .m-button__spinner {
2107
- animation: none;
2108
- }
2109
-
2110
- [data-m-motion="none"] .m-button__ripple-wave {
2111
- display: none;
2112
- }
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 */
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
+ }
576
+
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
+ }
582
+
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
+ }
588
+
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-button {
1150
+ --m-button-padding-x-small: var(--m-control-padding-x-small);
1151
+ --m-button-padding-x-medium: calc(
1152
+ var(--m-control-padding-x-medium) + var(--m-space-1)
1153
+ );
1154
+ --m-button-padding-x-large: calc(
1155
+ var(--m-control-padding-x-large) + var(--m-space-1)
1156
+ );
1157
+ --m-button-icon-stack-min-height: 3.25rem;
1158
+ --m-button-badge-min-width: 1.15rem;
1159
+ --m-button-spinner-size: 0.875rem;
1160
+ --m-button-icon-size: 1rem;
1161
+ --m-button-bg: var(--m-color-primary);
1162
+ --m-button-fg: var(--m-color-on-emphasis);
1163
+ --m-button-border: var(--m-color-primary);
1164
+ --m-button-hover-bg: var(--m-color-primary-hover);
1165
+ --m-button-hover-fg: var(--m-color-on-emphasis);
1166
+ --m-button-hover-border: var(--m-color-primary-hover);
1167
+ --m-button-active-bg: color-mix(
1168
+ in srgb,
1169
+ var(--m-color-primary) 82%,
1170
+ black
1171
+ );
1172
+ align-items: center;
1173
+ background: var(--m-button-bg);
1174
+ border: var(--m-border-width) solid var(--m-button-border);
1175
+ border-radius: var(--m-radius-control);
1176
+ color: var(--m-button-fg);
1177
+ cursor: pointer;
1178
+ display: inline-flex;
1179
+ flex-direction: row;
1180
+ font-family: var(--m-font-sans);
1181
+ font-size: var(--m-control-font-medium);
1182
+ font-weight: 600;
1183
+ gap: var(--m-space-2);
1184
+ justify-content: center;
1185
+ line-height: 1;
1186
+ min-height: var(--m-control-height-medium);
1187
+ padding: 0 var(--m-button-padding-x-medium);
1188
+ position: relative;
1189
+ transition:
1190
+ background-color var(--m-motion-fast) var(--m-motion-ease),
1191
+ border-color var(--m-motion-fast) var(--m-motion-ease),
1192
+ color var(--m-motion-fast) var(--m-motion-ease),
1193
+ box-shadow var(--m-motion-fast) var(--m-motion-ease),
1194
+ opacity var(--m-motion-fast) var(--m-motion-ease),
1195
+ transform 160ms var(--m-motion-ease);
1196
+ vertical-align: middle;
1197
+ white-space: nowrap;
1198
+ }
1199
+
1200
+ @media (hover: hover) and (pointer: fine) {
1201
+ .m-button:hover:not(:disabled) {
1202
+ background: var(--m-button-hover-bg);
1203
+ border-color: var(--m-button-hover-border);
1204
+ color: var(--m-button-hover-fg);
1205
+ }
1206
+ }
1207
+
1208
+ .m-button:active:not(:disabled) {
1209
+ background: var(--m-button-active-bg);
1210
+ }
1211
+
1212
+ .m-button--press:active:not(:disabled) {
1213
+ transform: scale(0.97);
1214
+ }
1215
+
1216
+ /* Naive-style focus: soft glow, not outline-offset ring */
1217
+ .m-button:focus {
1218
+ outline: none;
1219
+ }
1220
+
1221
+ .m-button:focus-visible {
1222
+ box-shadow: var(--m-focus-shadow);
1223
+ outline: none;
1224
+ }
1225
+
1226
+ .m-button:disabled {
1227
+ cursor: not-allowed;
1228
+ opacity: var(--m-opacity-disabled);
1229
+ }
1230
+
1231
+ .m-button--primary {
1232
+ --m-button-bg: var(--m-color-primary);
1233
+ --m-button-fg: var(--m-color-on-emphasis);
1234
+ --m-button-border: var(--m-color-primary);
1235
+ --m-button-hover-bg: var(--m-color-primary-hover);
1236
+ --m-button-hover-fg: var(--m-color-on-emphasis);
1237
+ --m-button-hover-border: var(--m-color-primary-hover);
1238
+ --m-button-active-bg: color-mix(
1239
+ in srgb,
1240
+ var(--m-color-primary) 82%,
1241
+ black
1242
+ );
1243
+ }
1244
+
1245
+ .m-button--secondary {
1246
+ --m-button-bg: color-mix(
1247
+ in srgb,
1248
+ var(--m-color-text-muted) 16%,
1249
+ var(--m-color-surface)
1250
+ );
1251
+ --m-button-fg: var(--m-color-text);
1252
+ --m-button-border: transparent;
1253
+ --m-button-hover-bg: color-mix(
1254
+ in srgb,
1255
+ var(--m-color-text-muted) 24%,
1256
+ var(--m-color-surface)
1257
+ );
1258
+ --m-button-hover-fg: var(--m-color-text);
1259
+ --m-button-hover-border: transparent;
1260
+ --m-button-active-bg: color-mix(
1261
+ in srgb,
1262
+ var(--m-color-text-muted) 32%,
1263
+ var(--m-color-surface)
1264
+ );
1265
+ }
1266
+
1267
+ .m-button--success {
1268
+ --m-button-bg: var(--m-color-success);
1269
+ --m-button-fg: var(--m-color-on-emphasis);
1270
+ --m-button-border: var(--m-color-success);
1271
+ --m-button-hover-bg: color-mix(
1272
+ in srgb,
1273
+ var(--m-color-success) 85%,
1274
+ black
1275
+ );
1276
+ --m-button-hover-fg: var(--m-color-on-emphasis);
1277
+ --m-button-hover-border: color-mix(
1278
+ in srgb,
1279
+ var(--m-color-success) 85%,
1280
+ black
1281
+ );
1282
+ --m-button-active-bg: color-mix(
1283
+ in srgb,
1284
+ var(--m-color-success) 75%,
1285
+ black
1286
+ );
1287
+ }
1288
+
1289
+ .m-button--info {
1290
+ --m-button-bg: var(--m-color-info);
1291
+ --m-button-fg: var(--m-color-on-emphasis);
1292
+ --m-button-border: var(--m-color-info);
1293
+ --m-button-hover-bg: color-mix(in srgb, var(--m-color-info) 85%, black);
1294
+ --m-button-hover-fg: var(--m-color-on-emphasis);
1295
+ --m-button-hover-border: color-mix(
1296
+ in srgb,
1297
+ var(--m-color-info) 85%,
1298
+ black
1299
+ );
1300
+ --m-button-active-bg: color-mix(in srgb, var(--m-color-info) 75%, black);
1301
+ }
1302
+
1303
+ .m-button--warn {
1304
+ --m-button-bg: var(--m-color-warn);
1305
+ --m-button-fg: var(--m-color-on-emphasis);
1306
+ --m-button-border: var(--m-color-warn);
1307
+ --m-button-hover-bg: color-mix(in srgb, var(--m-color-warn) 85%, black);
1308
+ --m-button-hover-fg: var(--m-color-on-emphasis);
1309
+ --m-button-hover-border: color-mix(
1310
+ in srgb,
1311
+ var(--m-color-warn) 85%,
1312
+ black
1313
+ );
1314
+ --m-button-active-bg: color-mix(in srgb, var(--m-color-warn) 75%, black);
1315
+ }
1316
+
1317
+ .m-button--help {
1318
+ --m-button-bg: var(--m-color-help);
1319
+ --m-button-fg: var(--m-color-on-emphasis);
1320
+ --m-button-border: var(--m-color-help);
1321
+ --m-button-hover-bg: color-mix(in srgb, var(--m-color-help) 85%, black);
1322
+ --m-button-hover-fg: var(--m-color-on-emphasis);
1323
+ --m-button-hover-border: color-mix(
1324
+ in srgb,
1325
+ var(--m-color-help) 85%,
1326
+ black
1327
+ );
1328
+ --m-button-active-bg: color-mix(in srgb, var(--m-color-help) 75%, black);
1329
+ }
1330
+
1331
+ .m-button--danger {
1332
+ --m-button-bg: var(--m-color-danger);
1333
+ --m-button-fg: var(--m-color-on-emphasis);
1334
+ --m-button-border: var(--m-color-danger);
1335
+ --m-button-hover-bg: color-mix(in srgb, var(--m-color-danger) 85%, black);
1336
+ --m-button-hover-fg: var(--m-color-on-emphasis);
1337
+ --m-button-hover-border: color-mix(
1338
+ in srgb,
1339
+ var(--m-color-danger) 85%,
1340
+ black
1341
+ );
1342
+ --m-button-active-bg: color-mix(
1343
+ in srgb,
1344
+ var(--m-color-danger) 75%,
1345
+ black
1346
+ );
1347
+ }
1348
+
1349
+ .m-button--contrast {
1350
+ --m-button-bg: var(--m-color-contrast);
1351
+ --m-button-fg: var(--m-color-contrast-fg);
1352
+ --m-button-border: var(--m-color-contrast);
1353
+ --m-button-hover-bg: var(--m-color-contrast-hover);
1354
+ --m-button-hover-fg: var(--m-color-contrast-fg);
1355
+ --m-button-hover-border: var(--m-color-contrast-hover);
1356
+ --m-button-active-bg: var(--m-color-contrast-active);
1357
+ }
1358
+
1359
+ .m-button--outlined {
1360
+ --m-button-bg: transparent;
1361
+ --m-button-fg: var(--m-button-border);
1362
+ --m-button-hover-bg: color-mix(
1363
+ in srgb,
1364
+ var(--m-button-border) 10%,
1365
+ transparent
1366
+ );
1367
+ --m-button-hover-fg: var(--m-button-border);
1368
+ --m-button-hover-border: var(--m-button-border);
1369
+ --m-button-active-bg: color-mix(
1370
+ in srgb,
1371
+ var(--m-button-border) 16%,
1372
+ transparent
1373
+ );
1374
+ }
1375
+
1376
+ /* Idle matches outlined hover; hover/active deepen the tint. */
1377
+ .m-button--plain {
1378
+ --m-button-bg: color-mix(
1379
+ in srgb,
1380
+ var(--m-button-border) 10%,
1381
+ transparent
1382
+ );
1383
+ --m-button-fg: var(--m-button-border);
1384
+ --m-button-hover-bg: color-mix(
1385
+ in srgb,
1386
+ var(--m-button-border) 16%,
1387
+ transparent
1388
+ );
1389
+ --m-button-hover-fg: var(--m-button-border);
1390
+ --m-button-hover-border: var(--m-button-border);
1391
+ --m-button-active-bg: color-mix(
1392
+ in srgb,
1393
+ var(--m-button-border) 22%,
1394
+ transparent
1395
+ );
1396
+ }
1397
+
1398
+ .m-button--secondary.m-button--outlined,
1399
+ .m-button--secondary.m-button--plain {
1400
+ --m-button-border: var(--m-color-border);
1401
+ --m-button-fg: var(--m-color-text);
1402
+ --m-button-hover-fg: var(--m-color-text);
1403
+ }
1404
+
1405
+ .m-button--text,
1406
+ .m-button--link {
1407
+ --m-button-bg: transparent;
1408
+ --m-button-border: transparent;
1409
+ --m-button-fg: var(--m-color-primary);
1410
+ --m-button-hover-fg: var(--m-color-primary);
1411
+ --m-button-hover-border: transparent;
1412
+ }
1413
+
1414
+ .m-button--text {
1415
+ --m-button-hover-bg: color-mix(
1416
+ in srgb,
1417
+ var(--m-color-primary) 10%,
1418
+ transparent
1419
+ );
1420
+ --m-button-active-bg: color-mix(
1421
+ in srgb,
1422
+ var(--m-color-primary) 16%,
1423
+ transparent
1424
+ );
1425
+ }
1426
+
1427
+ .m-button--link {
1428
+ --m-button-bg: transparent;
1429
+ --m-button-hover-bg: transparent;
1430
+ --m-button-active-bg: transparent;
1431
+ height: auto;
1432
+ min-height: 0;
1433
+ padding: 0;
1434
+ }
1435
+
1436
+ .m-button--link.m-button--link-underline:hover:not(:disabled) {
1437
+ text-decoration: underline;
1438
+ }
1439
+
1440
+ .m-button--link:not(.m-button--link-underline):hover:not(:disabled) {
1441
+ opacity: 0.8;
1442
+ }
1443
+
1444
+ .m-button--secondary.m-button--text {
1445
+ --m-button-fg: var(--m-color-text-muted);
1446
+ --m-button-hover-bg: color-mix(
1447
+ in srgb,
1448
+ var(--m-color-text-muted) 12%,
1449
+ transparent
1450
+ );
1451
+ --m-button-hover-fg: var(--m-color-text);
1452
+ }
1453
+
1454
+ .m-button--secondary.m-button--link {
1455
+ --m-button-fg: var(--m-color-text-muted);
1456
+ --m-button-hover-fg: var(--m-color-text);
1457
+ }
1458
+
1459
+ .m-button--success.m-button--text,
1460
+ .m-button--success.m-button--outlined {
1461
+ --m-button-fg: var(--m-color-success);
1462
+ --m-button-border: var(--m-color-success);
1463
+ --m-button-hover-bg: color-mix(
1464
+ in srgb,
1465
+ var(--m-color-success) 10%,
1466
+ transparent
1467
+ );
1468
+ --m-button-hover-fg: var(--m-color-success);
1469
+ --m-button-hover-border: var(--m-color-success);
1470
+ }
1471
+
1472
+ .m-button--success.m-button--link {
1473
+ --m-button-fg: var(--m-color-success);
1474
+ --m-button-hover-fg: var(--m-color-success);
1475
+ }
1476
+
1477
+ .m-button--info.m-button--text,
1478
+ .m-button--info.m-button--outlined {
1479
+ --m-button-fg: var(--m-color-info);
1480
+ --m-button-border: var(--m-color-info);
1481
+ --m-button-hover-bg: color-mix(
1482
+ in srgb,
1483
+ var(--m-color-info) 10%,
1484
+ transparent
1485
+ );
1486
+ --m-button-hover-fg: var(--m-color-info);
1487
+ --m-button-hover-border: var(--m-color-info);
1488
+ }
1489
+
1490
+ .m-button--info.m-button--link {
1491
+ --m-button-fg: var(--m-color-info);
1492
+ --m-button-hover-fg: var(--m-color-info);
1493
+ }
1494
+
1495
+ .m-button--warn.m-button--text,
1496
+ .m-button--warn.m-button--outlined {
1497
+ --m-button-fg: var(--m-color-warn);
1498
+ --m-button-border: var(--m-color-warn);
1499
+ --m-button-hover-bg: color-mix(
1500
+ in srgb,
1501
+ var(--m-color-warn) 10%,
1502
+ transparent
1503
+ );
1504
+ --m-button-hover-fg: var(--m-color-warn);
1505
+ --m-button-hover-border: var(--m-color-warn);
1506
+ }
1507
+
1508
+ .m-button--warn.m-button--link {
1509
+ --m-button-fg: var(--m-color-warn);
1510
+ --m-button-hover-fg: var(--m-color-warn);
1511
+ }
1512
+
1513
+ .m-button--help.m-button--text,
1514
+ .m-button--help.m-button--outlined {
1515
+ --m-button-fg: var(--m-color-help);
1516
+ --m-button-border: var(--m-color-help);
1517
+ --m-button-hover-bg: color-mix(
1518
+ in srgb,
1519
+ var(--m-color-help) 10%,
1520
+ transparent
1521
+ );
1522
+ --m-button-hover-fg: var(--m-color-help);
1523
+ --m-button-hover-border: var(--m-color-help);
1524
+ }
1525
+
1526
+ .m-button--help.m-button--link {
1527
+ --m-button-fg: var(--m-color-help);
1528
+ --m-button-hover-fg: var(--m-color-help);
1529
+ }
1530
+
1531
+ .m-button--danger.m-button--text,
1532
+ .m-button--danger.m-button--outlined {
1533
+ --m-button-fg: var(--m-color-danger);
1534
+ --m-button-border: var(--m-color-danger);
1535
+ --m-button-hover-bg: color-mix(
1536
+ in srgb,
1537
+ var(--m-color-danger) 10%,
1538
+ transparent
1539
+ );
1540
+ --m-button-hover-fg: var(--m-color-danger);
1541
+ --m-button-hover-border: var(--m-color-danger);
1542
+ }
1543
+
1544
+ .m-button--danger.m-button--link {
1545
+ --m-button-fg: var(--m-color-danger);
1546
+ --m-button-hover-fg: var(--m-color-danger);
1547
+ }
1548
+
1549
+ .m-button--contrast.m-button--text,
1550
+ .m-button--contrast.m-button--outlined {
1551
+ --m-button-fg: var(--m-color-contrast);
1552
+ --m-button-border: var(--m-color-contrast);
1553
+ --m-button-hover-bg: color-mix(
1554
+ in srgb,
1555
+ var(--m-color-contrast) 10%,
1556
+ transparent
1557
+ );
1558
+ --m-button-hover-fg: var(--m-color-contrast);
1559
+ --m-button-hover-border: var(--m-color-contrast);
1560
+ }
1561
+
1562
+ .m-button--contrast.m-button--link {
1563
+ --m-button-fg: var(--m-color-contrast);
1564
+ --m-button-hover-fg: var(--m-color-contrast);
1565
+ }
1566
+
1567
+ .m-button--plain.m-button--text,
1568
+ .m-button--plain.m-button--outlined {
1569
+ --m-button-bg: transparent;
1570
+ --m-button-fg: var(--m-color-text-muted);
1571
+ --m-button-border: var(--m-color-border);
1572
+ --m-button-hover-bg: color-mix(
1573
+ in srgb,
1574
+ var(--m-color-text-muted) 12%,
1575
+ transparent
1576
+ );
1577
+ --m-button-hover-fg: var(--m-color-text);
1578
+ --m-button-hover-border: var(--m-color-border);
1579
+ --m-button-active-bg: color-mix(
1580
+ in srgb,
1581
+ var(--m-color-text-muted) 18%,
1582
+ transparent
1583
+ );
1584
+ }
1585
+
1586
+ .m-button--plain.m-button--link {
1587
+ --m-button-fg: var(--m-color-text-muted);
1588
+ --m-button-hover-fg: var(--m-color-text);
1589
+ }
1590
+
1591
+ .m-button--ghost {
1592
+ --m-button-bg: color-mix(
1593
+ in srgb,
1594
+ var(--m-color-primary) 10%,
1595
+ transparent
1596
+ );
1597
+ --m-button-border: transparent;
1598
+ --m-button-fg: var(--m-color-primary);
1599
+ --m-button-hover-bg: color-mix(
1600
+ in srgb,
1601
+ var(--m-color-primary) 16%,
1602
+ transparent
1603
+ );
1604
+ --m-button-hover-fg: var(--m-color-primary);
1605
+ --m-button-hover-border: transparent;
1606
+ --m-button-active-bg: color-mix(
1607
+ in srgb,
1608
+ var(--m-color-primary) 22%,
1609
+ transparent
1610
+ );
1611
+ }
1612
+
1613
+ .m-button--secondary.m-button--ghost {
1614
+ --m-button-bg: color-mix(
1615
+ in srgb,
1616
+ var(--m-color-text-muted) 12%,
1617
+ transparent
1618
+ );
1619
+ --m-button-fg: var(--m-color-text);
1620
+ --m-button-hover-bg: color-mix(
1621
+ in srgb,
1622
+ var(--m-color-text-muted) 18%,
1623
+ transparent
1624
+ );
1625
+ --m-button-hover-fg: var(--m-color-text);
1626
+ --m-button-active-bg: color-mix(
1627
+ in srgb,
1628
+ var(--m-color-text-muted) 24%,
1629
+ transparent
1630
+ );
1631
+ }
1632
+
1633
+ .m-button--success.m-button--ghost {
1634
+ --m-button-bg: color-mix(
1635
+ in srgb,
1636
+ var(--m-color-success) 10%,
1637
+ transparent
1638
+ );
1639
+ --m-button-fg: var(--m-color-success);
1640
+ --m-button-hover-bg: color-mix(
1641
+ in srgb,
1642
+ var(--m-color-success) 16%,
1643
+ transparent
1644
+ );
1645
+ --m-button-hover-fg: var(--m-color-success);
1646
+ --m-button-active-bg: color-mix(
1647
+ in srgb,
1648
+ var(--m-color-success) 22%,
1649
+ transparent
1650
+ );
1651
+ }
1652
+
1653
+ .m-button--info.m-button--ghost {
1654
+ --m-button-bg: color-mix(
1655
+ in srgb,
1656
+ var(--m-color-info) 10%,
1657
+ transparent
1658
+ );
1659
+ --m-button-fg: var(--m-color-info);
1660
+ --m-button-hover-bg: color-mix(
1661
+ in srgb,
1662
+ var(--m-color-info) 16%,
1663
+ transparent
1664
+ );
1665
+ --m-button-hover-fg: var(--m-color-info);
1666
+ --m-button-active-bg: color-mix(
1667
+ in srgb,
1668
+ var(--m-color-info) 22%,
1669
+ transparent
1670
+ );
1671
+ }
1672
+
1673
+ .m-button--warn.m-button--ghost {
1674
+ --m-button-bg: color-mix(
1675
+ in srgb,
1676
+ var(--m-color-warn) 10%,
1677
+ transparent
1678
+ );
1679
+ --m-button-fg: var(--m-color-warn);
1680
+ --m-button-hover-bg: color-mix(
1681
+ in srgb,
1682
+ var(--m-color-warn) 16%,
1683
+ transparent
1684
+ );
1685
+ --m-button-hover-fg: var(--m-color-warn);
1686
+ --m-button-active-bg: color-mix(
1687
+ in srgb,
1688
+ var(--m-color-warn) 22%,
1689
+ transparent
1690
+ );
1691
+ }
1692
+
1693
+ .m-button--help.m-button--ghost {
1694
+ --m-button-bg: color-mix(
1695
+ in srgb,
1696
+ var(--m-color-help) 10%,
1697
+ transparent
1698
+ );
1699
+ --m-button-fg: var(--m-color-help);
1700
+ --m-button-hover-bg: color-mix(
1701
+ in srgb,
1702
+ var(--m-color-help) 16%,
1703
+ transparent
1704
+ );
1705
+ --m-button-hover-fg: var(--m-color-help);
1706
+ --m-button-active-bg: color-mix(
1707
+ in srgb,
1708
+ var(--m-color-help) 22%,
1709
+ transparent
1710
+ );
1711
+ }
1712
+
1713
+ .m-button--danger.m-button--ghost {
1714
+ --m-button-bg: color-mix(
1715
+ in srgb,
1716
+ var(--m-color-danger) 10%,
1717
+ transparent
1718
+ );
1719
+ --m-button-fg: var(--m-color-danger);
1720
+ --m-button-hover-bg: color-mix(
1721
+ in srgb,
1722
+ var(--m-color-danger) 16%,
1723
+ transparent
1724
+ );
1725
+ --m-button-hover-fg: var(--m-color-danger);
1726
+ --m-button-active-bg: color-mix(
1727
+ in srgb,
1728
+ var(--m-color-danger) 22%,
1729
+ transparent
1730
+ );
1731
+ }
1732
+
1733
+ .m-button--contrast.m-button--ghost {
1734
+ --m-button-bg: color-mix(
1735
+ in srgb,
1736
+ var(--m-color-contrast) 10%,
1737
+ transparent
1738
+ );
1739
+ --m-button-fg: var(--m-color-contrast);
1740
+ --m-button-hover-bg: color-mix(
1741
+ in srgb,
1742
+ var(--m-color-contrast) 16%,
1743
+ transparent
1744
+ );
1745
+ --m-button-hover-fg: var(--m-color-contrast);
1746
+ --m-button-active-bg: color-mix(
1747
+ in srgb,
1748
+ var(--m-color-contrast) 22%,
1749
+ transparent
1750
+ );
1751
+ }
1752
+
1753
+ .m-button--quaternary {
1754
+ --m-button-bg: transparent;
1755
+ --m-button-border: transparent;
1756
+ --m-button-fg: var(--m-color-text);
1757
+ --m-button-hover-bg: color-mix(
1758
+ in srgb,
1759
+ var(--m-color-text-muted) 10%,
1760
+ transparent
1761
+ );
1762
+ --m-button-hover-fg: var(--m-color-text);
1763
+ --m-button-hover-border: transparent;
1764
+ --m-button-active-bg: color-mix(
1765
+ in srgb,
1766
+ var(--m-color-text-muted) 16%,
1767
+ transparent
1768
+ );
1769
+ }
1770
+
1771
+ .m-button--custom {
1772
+ --m-button-bg: var(--m-button-color);
1773
+ --m-button-fg: var(--m-color-on-emphasis);
1774
+ --m-button-border: var(--m-button-color);
1775
+ --m-button-hover-bg: color-mix(in srgb, var(--m-button-color) 85%, black);
1776
+ --m-button-hover-fg: var(--m-color-on-emphasis);
1777
+ --m-button-hover-border: color-mix(
1778
+ in srgb,
1779
+ var(--m-button-color) 85%,
1780
+ black
1781
+ );
1782
+ --m-button-active-bg: color-mix(
1783
+ in srgb,
1784
+ var(--m-button-color) 75%,
1785
+ black
1786
+ );
1787
+ }
1788
+
1789
+ .m-button--custom.m-button--outlined {
1790
+ --m-button-bg: transparent;
1791
+ --m-button-fg: var(--m-button-color);
1792
+ --m-button-border: var(--m-button-color);
1793
+ --m-button-hover-bg: color-mix(
1794
+ in srgb,
1795
+ var(--m-button-color) 12%,
1796
+ transparent
1797
+ );
1798
+ --m-button-hover-fg: var(--m-button-color);
1799
+ --m-button-hover-border: var(--m-button-color);
1800
+ }
1801
+
1802
+ .m-button--custom.m-button--ghost {
1803
+ --m-button-bg: color-mix(
1804
+ in srgb,
1805
+ var(--m-button-color) 10%,
1806
+ transparent
1807
+ );
1808
+ --m-button-fg: var(--m-button-color);
1809
+ --m-button-border: transparent;
1810
+ --m-button-hover-bg: color-mix(
1811
+ in srgb,
1812
+ var(--m-button-color) 16%,
1813
+ transparent
1814
+ );
1815
+ --m-button-hover-fg: var(--m-button-color);
1816
+ --m-button-hover-border: transparent;
1817
+ --m-button-active-bg: color-mix(
1818
+ in srgb,
1819
+ var(--m-button-color) 22%,
1820
+ transparent
1821
+ );
1822
+ }
1823
+
1824
+ .m-button--custom.m-button--text,
1825
+ .m-button--custom.m-button--quaternary {
1826
+ --m-button-bg: transparent;
1827
+ --m-button-fg: var(--m-button-color);
1828
+ --m-button-border: transparent;
1829
+ --m-button-hover-bg: color-mix(
1830
+ in srgb,
1831
+ var(--m-button-color) 12%,
1832
+ transparent
1833
+ );
1834
+ --m-button-hover-fg: var(--m-button-color);
1835
+ --m-button-hover-border: transparent;
1836
+ }
1837
+
1838
+ .m-button--custom.m-button--plain {
1839
+ --m-button-bg: color-mix(
1840
+ in srgb,
1841
+ var(--m-button-color) 10%,
1842
+ transparent
1843
+ );
1844
+ --m-button-fg: var(--m-button-color);
1845
+ --m-button-border: var(--m-button-color);
1846
+ --m-button-hover-bg: color-mix(
1847
+ in srgb,
1848
+ var(--m-button-color) 16%,
1849
+ transparent
1850
+ );
1851
+ --m-button-hover-fg: var(--m-button-color);
1852
+ --m-button-hover-border: var(--m-button-color);
1853
+ --m-button-active-bg: color-mix(
1854
+ in srgb,
1855
+ var(--m-button-color) 22%,
1856
+ transparent
1857
+ );
1858
+ }
1859
+
1860
+ .m-button--custom.m-button--link {
1861
+ --m-button-bg: transparent;
1862
+ --m-button-fg: var(--m-button-color);
1863
+ --m-button-border: transparent;
1864
+ --m-button-hover-bg: transparent;
1865
+ --m-button-hover-fg: var(--m-button-color);
1866
+ --m-button-hover-border: transparent;
1867
+ --m-button-active-bg: transparent;
1868
+ }
1869
+
1870
+ .m-button-group {
1871
+ display: inline-flex;
1872
+ vertical-align: middle;
1873
+ }
1874
+
1875
+ .m-button-group--fluid {
1876
+ display: flex;
1877
+ width: 100%;
1878
+ }
1879
+
1880
+ .m-button-group--fluid > .m-button {
1881
+ flex: 1;
1882
+ }
1883
+
1884
+ .m-button-group > .m-button {
1885
+ border-radius: 0;
1886
+ margin: 0;
1887
+ }
1888
+
1889
+ .m-button-group > .m-button + .m-button {
1890
+ margin-left: -1px;
1891
+ }
1892
+
1893
+ .m-button-group > .m-button:first-child {
1894
+ border-top-left-radius: var(--m-radius-control);
1895
+ border-bottom-left-radius: var(--m-radius-control);
1896
+ }
1897
+
1898
+ .m-button-group > .m-button:last-child {
1899
+ border-top-right-radius: var(--m-radius-control);
1900
+ border-bottom-right-radius: var(--m-radius-control);
1901
+ }
1902
+
1903
+ .m-button--raised {
1904
+ box-shadow: var(--m-shadow-raised);
1905
+ }
1906
+
1907
+ .m-button--raised:focus-visible {
1908
+ box-shadow: var(--m-focus-shadow), var(--m-shadow-raised);
1909
+ }
1910
+
1911
+ .m-button--rounded {
1912
+ border-radius: var(--m-radius-full);
1913
+ }
1914
+
1915
+ .m-button--icon-only {
1916
+ gap: 0;
1917
+ min-width: var(--m-control-height-medium);
1918
+ padding: 0;
1919
+ width: var(--m-control-height-medium);
1920
+ }
1921
+
1922
+ .m-button--icon-only.m-button--small {
1923
+ min-width: var(--m-control-height-small);
1924
+ width: var(--m-control-height-small);
1925
+ }
1926
+
1927
+ .m-button--icon-only.m-button--large {
1928
+ min-width: var(--m-control-height-large);
1929
+ width: var(--m-control-height-large);
1930
+ }
1931
+
1932
+ .m-button--icon-right {
1933
+ flex-direction: row-reverse;
1934
+ }
1935
+
1936
+ .m-button--icon-top {
1937
+ flex-direction: column;
1938
+ min-height: var(--m-button-icon-stack-min-height);
1939
+ padding-block: var(--m-space-2);
1940
+ }
1941
+
1942
+ .m-button--icon-bottom {
1943
+ flex-direction: column-reverse;
1944
+ min-height: var(--m-button-icon-stack-min-height);
1945
+ padding-block: var(--m-space-2);
1946
+ }
1947
+
1948
+ .m-button--fluid {
1949
+ display: flex;
1950
+ width: 100%;
1951
+ }
1952
+
1953
+ .m-button--small {
1954
+ --m-button-icon-size: 0.875rem;
1955
+ font-size: var(--m-control-font-small);
1956
+ min-height: var(--m-control-height-small);
1957
+ padding: 0 var(--m-button-padding-x-small);
1958
+ }
1959
+
1960
+ .m-button--large {
1961
+ --m-button-icon-size: 1.25rem;
1962
+ font-size: var(--m-control-font-large);
1963
+ min-height: var(--m-control-height-large);
1964
+ padding: 0 var(--m-button-padding-x-large);
1965
+ }
1966
+
1967
+ .m-button__icon,
1968
+ .m-button__label {
1969
+ align-items: center;
1970
+ display: inline-flex;
1971
+ justify-content: center;
1972
+ }
1973
+
1974
+ .m-button__icon,
1975
+ .m-button__label,
1976
+ .m-button__badge {
1977
+ position: relative;
1978
+ z-index: 1;
1979
+ }
1980
+
1981
+ .m-button__ripple {
1982
+ border-radius: inherit;
1983
+ inset: 0;
1984
+ overflow: hidden;
1985
+ pointer-events: none;
1986
+ position: absolute;
1987
+ z-index: 0;
1988
+ }
1989
+
1990
+ .m-button__ripple-wave {
1991
+ background: currentColor;
1992
+ border-radius: var(--m-radius-full);
1993
+ opacity: 0;
1994
+ pointer-events: none;
1995
+ position: absolute;
1996
+ transform: scale(0);
1997
+ will-change: transform, opacity;
1998
+ }
1999
+
2000
+ /* Used only when Web Animations API is unavailable. */
2001
+ .m-button__ripple-wave--fallback {
2002
+ animation: m-button-ripple 560ms var(--m-motion-ease) forwards;
2003
+ }
2004
+
2005
+ @keyframes m-button-ripple {
2006
+ 0% {
2007
+ opacity: 0.42;
2008
+ transform: scale(0);
2009
+ }
2010
+ 55% {
2011
+ opacity: 0.22;
2012
+ transform: scale(0.55);
2013
+ }
2014
+ 100% {
2015
+ opacity: 0;
2016
+ transform: scale(1);
2017
+ }
2018
+ }
2019
+
2020
+ .m-button__icon {
2021
+ flex: 0 0 auto;
2022
+ width: var(--m-button-icon-size);
2023
+ height: var(--m-button-icon-size);
2024
+ line-height: 0;
2025
+ }
2026
+
2027
+ .m-button__icon :is(.m-icon, .m-button__icon-graphic, svg) {
2028
+ display: block;
2029
+ flex-shrink: 0;
2030
+ width: 100%;
2031
+ height: 100%;
2032
+ }
2033
+
2034
+ .m-button__icon .m-icon {
2035
+ max-width: 100%;
2036
+ max-height: 100%;
2037
+ }
2038
+
2039
+ .m-button__badge {
2040
+ align-items: center;
2041
+ background: var(--m-color-contrast);
2042
+ border-radius: var(--m-radius-full);
2043
+ color: var(--m-color-contrast-fg);
2044
+ display: inline-flex;
2045
+ font-size: var(--m-font-size-xs);
2046
+ font-weight: 700;
2047
+ justify-content: center;
2048
+ line-height: 1;
2049
+ margin-inline-start: var(--m-space-1);
2050
+ min-width: var(--m-button-badge-min-width);
2051
+ padding: var(--m-space-1) var(--m-space-2);
2052
+ }
2053
+
2054
+ .m-button__badge--secondary {
2055
+ background: color-mix(
2056
+ in srgb,
2057
+ var(--m-color-text-muted) 25%,
2058
+ var(--m-color-surface)
2059
+ );
2060
+ color: var(--m-color-text);
2061
+ }
2062
+
2063
+ .m-button__badge--success {
2064
+ background: var(--m-color-success);
2065
+ color: var(--m-color-on-emphasis);
2066
+ }
2067
+
2068
+ .m-button__badge--info {
2069
+ background: var(--m-color-info);
2070
+ color: var(--m-color-on-emphasis);
2071
+ }
2072
+
2073
+ .m-button__badge--warn {
2074
+ background: var(--m-color-warn);
2075
+ color: var(--m-color-on-emphasis);
2076
+ }
2077
+
2078
+ .m-button__badge--danger {
2079
+ background: var(--m-color-danger);
2080
+ color: var(--m-color-on-emphasis);
2081
+ }
2082
+
2083
+ .m-button__badge--contrast {
2084
+ background: var(--m-color-contrast);
2085
+ color: var(--m-color-contrast-fg);
2086
+ }
2087
+
2088
+ .m-button__spinner {
2089
+ animation: m-button-spin var(--m-motion-spin-fast) linear infinite;
2090
+ border: 2px solid currentColor;
2091
+ border-right-color: transparent;
2092
+ border-radius: var(--m-radius-full);
2093
+ height: var(--m-button-spinner-size);
2094
+ width: var(--m-button-spinner-size);
2095
+ }
2096
+
2097
+ @keyframes m-button-spin {
2098
+ to {
2099
+ transform: rotate(360deg);
2100
+ }
2101
+ }
2102
+
2103
+ [data-m-motion="reduced"] .m-button__spinner,
2104
+ [data-m-motion="none"] .m-button__spinner {
2105
+ animation: none;
2106
+ }
2107
+
2108
+ [data-m-motion="none"] .m-button__ripple-wave {
2109
+ display: none;
2110
+ }
2113
2111
 
2114
2112
  .m-icon {
2115
2113
  color: currentColor;
@@ -2160,219 +2158,219 @@
2160
2158
  animation: none;
2161
2159
  }
2162
2160
 
2163
- /* —— Primitive: SplitButton —— */
2164
- .m-splitbutton {
2165
- --m-button-padding-x-medium: calc(
2166
- var(--m-control-padding-x-medium) + var(--m-space-1)
2167
- );
2168
- --m-splitbutton-icon-size: 1rem;
2169
- display: inline-flex;
2170
- position: relative;
2171
- vertical-align: middle;
2172
- }
2173
-
2174
- .m-splitbutton__main,
2175
- .m-splitbutton__trigger {
2176
- align-items: center;
2177
- background: var(--m-color-primary);
2178
- border: var(--m-border-width) solid var(--m-color-primary);
2179
- color: var(--m-color-on-emphasis);
2180
- cursor: pointer;
2181
- display: inline-flex;
2182
- font: inherit;
2183
- font-family: var(--m-font-sans);
2184
- font-size: var(--m-control-font-medium);
2185
- font-weight: 600;
2186
- gap: var(--m-space-2);
2187
- min-height: var(--m-control-height-medium);
2188
- padding: 0 var(--m-button-padding-x-medium);
2189
- transition:
2190
- background-color var(--m-motion-fast) var(--m-motion-ease),
2191
- border-color var(--m-motion-fast) var(--m-motion-ease),
2192
- color var(--m-motion-fast) var(--m-motion-ease),
2193
- box-shadow var(--m-motion-fast) var(--m-motion-ease);
2194
- }
2195
-
2196
- .m-splitbutton__main {
2197
- border-bottom-left-radius: var(--m-radius-control);
2198
- border-top-left-radius: var(--m-radius-control);
2199
- }
2200
-
2201
- .m-splitbutton__trigger {
2202
- border-bottom-right-radius: var(--m-radius-control);
2203
- border-left: var(--m-border-width) solid
2204
- color-mix(
2205
- in srgb,
2206
- var(--m-color-on-emphasis) 35%,
2207
- var(--m-color-primary)
2208
- );
2209
- border-top-right-radius: var(--m-radius-control);
2210
- padding: 0 var(--m-control-padding-x-medium);
2211
- }
2212
-
2213
- .m-splitbutton__main:hover:not(:disabled),
2214
- .m-splitbutton__trigger:hover:not(:disabled) {
2215
- background: var(--m-color-primary-hover);
2216
- border-color: var(--m-color-primary-hover);
2217
- }
2218
-
2219
- .m-splitbutton--outlined .m-splitbutton__main:hover:not(:disabled),
2220
- .m-splitbutton--outlined .m-splitbutton__trigger:hover:not(:disabled) {
2221
- background: color-mix(
2222
- in srgb,
2223
- var(--m-color-primary) 10%,
2224
- transparent
2225
- );
2226
- border-color: var(--m-color-primary);
2227
- }
2228
-
2229
- .m-splitbutton--secondary .m-splitbutton__main:hover:not(:disabled),
2230
- .m-splitbutton--secondary .m-splitbutton__trigger:hover:not(:disabled) {
2231
- background: color-mix(
2232
- in srgb,
2233
- var(--m-color-text-muted) 24%,
2234
- var(--m-color-surface)
2235
- );
2236
- border-color: var(--m-color-border);
2237
- }
2238
-
2239
- .m-splitbutton--danger .m-splitbutton__main:hover:not(:disabled),
2240
- .m-splitbutton--danger .m-splitbutton__trigger:hover:not(:disabled) {
2241
- background: color-mix(in srgb, var(--m-color-danger) 85%, black);
2242
- border-color: color-mix(in srgb, var(--m-color-danger) 85%, black);
2243
- }
2244
-
2245
- .m-splitbutton__main:focus-visible,
2246
- .m-splitbutton__trigger:focus-visible {
2247
- box-shadow: var(--m-focus-shadow);
2248
- outline: none;
2249
- }
2250
-
2251
- .m-splitbutton--outlined .m-splitbutton__main,
2252
- .m-splitbutton--outlined .m-splitbutton__trigger {
2253
- background: transparent;
2254
- color: var(--m-color-primary);
2255
- }
2256
-
2257
- .m-splitbutton--outlined .m-splitbutton__trigger {
2258
- border-left-color: var(--m-color-primary);
2259
- }
2260
-
2261
- .m-splitbutton--secondary .m-splitbutton__main,
2262
- .m-splitbutton--secondary .m-splitbutton__trigger {
2263
- background: color-mix(
2264
- in srgb,
2265
- var(--m-color-text-muted) 16%,
2266
- var(--m-color-surface)
2267
- );
2268
- border-color: var(--m-color-border);
2269
- color: var(--m-color-text);
2270
- }
2271
-
2272
- .m-splitbutton--danger .m-splitbutton__main,
2273
- .m-splitbutton--danger .m-splitbutton__trigger {
2274
- background: var(--m-color-danger);
2275
- border-color: var(--m-color-danger);
2276
- }
2277
-
2278
- .m-splitbutton--small .m-splitbutton__main,
2279
- .m-splitbutton--small .m-splitbutton__trigger {
2280
- --m-splitbutton-icon-size: 0.875rem;
2281
- min-height: var(--m-control-height-small);
2282
- font-size: var(--m-control-font-small);
2283
- }
2284
-
2285
- .m-splitbutton--large .m-splitbutton__main,
2286
- .m-splitbutton--large .m-splitbutton__trigger {
2287
- --m-splitbutton-icon-size: 1.125rem;
2288
- min-height: var(--m-control-height-large);
2289
- font-size: var(--m-control-font-large);
2290
- }
2291
-
2292
- .m-splitbutton__icon {
2293
- align-items: center;
2294
- display: inline-flex;
2295
- flex-shrink: 0;
2296
- height: var(--m-splitbutton-icon-size);
2297
- justify-content: center;
2298
- line-height: 0;
2299
- width: var(--m-splitbutton-icon-size);
2300
- }
2301
-
2302
- .m-splitbutton__icon :is(.m-icon, svg) {
2303
- display: block;
2304
- height: 100%;
2305
- width: 100%;
2306
- }
2307
-
2308
- .m-splitbutton__trigger :is(.m-icon, svg) {
2309
- display: block;
2310
- height: var(--m-splitbutton-icon-size);
2311
- width: var(--m-splitbutton-icon-size);
2312
- }
2313
-
2314
- .m-splitbutton--disabled {
2315
- cursor: not-allowed;
2316
- opacity: var(--m-opacity-disabled);
2317
- pointer-events: none;
2318
- }
2319
-
2320
- .m-splitbutton__item:focus-visible {
2321
- box-shadow: var(--m-focus-shadow);
2322
- outline: none;
2323
- }
2324
-
2325
- .m-splitbutton__menu {
2326
- background: var(--m-color-surface);
2327
- border: var(--m-border-width) solid var(--m-color-border);
2328
- border-radius: var(--m-radius-md);
2329
- box-shadow: var(--m-shadow-md);
2330
- list-style: none;
2331
- margin: var(--m-space-1) 0 0;
2332
- max-width: calc(100vw - 2 * var(--m-space-4));
2333
- min-width: 100%;
2334
- padding: var(--m-space-1);
2335
- position: absolute;
2336
- right: 0;
2337
- top: 100%;
2338
- transform-origin: top right;
2339
- /* Grow with the content: shrink-to-fit would clamp to the button width
2340
- (the containing block) when not teleported. Teleported mode overrides
2341
- min-width with the inline button width. */
2342
- width: max-content;
2343
- z-index: var(--m-z-popper);
2344
- }
2345
-
2346
- .m-splitbutton__menu--teleported {
2347
- margin: 0;
2348
- position: fixed;
2349
- right: auto;
2350
- top: auto;
2351
- z-index: var(--m-z-dropdown);
2352
- }
2353
-
2354
- .m-splitbutton__item {
2355
- background: transparent;
2356
- border: 0;
2357
- border-radius: var(--m-radius-sm);
2358
- color: var(--m-color-text);
2359
- cursor: pointer;
2360
- display: block;
2361
- font: inherit;
2362
- padding: var(--m-space-2) var(--m-space-3);
2363
- text-align: start;
2364
- width: 100%;
2365
- }
2366
-
2367
- .m-splitbutton__item:hover:not(:disabled) {
2368
- background: color-mix(
2369
- in srgb,
2370
- var(--m-color-primary) 10%,
2371
- var(--m-color-surface)
2372
- );
2373
- }
2374
-
2375
- .m-splitbutton__item:disabled {
2376
- cursor: not-allowed;
2377
- opacity: var(--m-opacity-disabled);
2378
- }
2161
+ /* —— Primitive: SplitButton —— */
2162
+ .m-splitbutton {
2163
+ --m-button-padding-x-medium: calc(
2164
+ var(--m-control-padding-x-medium) + var(--m-space-1)
2165
+ );
2166
+ --m-splitbutton-icon-size: 1rem;
2167
+ display: inline-flex;
2168
+ position: relative;
2169
+ vertical-align: middle;
2170
+ }
2171
+
2172
+ .m-splitbutton__main,
2173
+ .m-splitbutton__trigger {
2174
+ align-items: center;
2175
+ background: var(--m-color-primary);
2176
+ border: var(--m-border-width) solid var(--m-color-primary);
2177
+ color: var(--m-color-on-emphasis);
2178
+ cursor: pointer;
2179
+ display: inline-flex;
2180
+ font: inherit;
2181
+ font-family: var(--m-font-sans);
2182
+ font-size: var(--m-control-font-medium);
2183
+ font-weight: 600;
2184
+ gap: var(--m-space-2);
2185
+ min-height: var(--m-control-height-medium);
2186
+ padding: 0 var(--m-button-padding-x-medium);
2187
+ transition:
2188
+ background-color var(--m-motion-fast) var(--m-motion-ease),
2189
+ border-color var(--m-motion-fast) var(--m-motion-ease),
2190
+ color var(--m-motion-fast) var(--m-motion-ease),
2191
+ box-shadow var(--m-motion-fast) var(--m-motion-ease);
2192
+ }
2193
+
2194
+ .m-splitbutton__main {
2195
+ border-bottom-left-radius: var(--m-radius-control);
2196
+ border-top-left-radius: var(--m-radius-control);
2197
+ }
2198
+
2199
+ .m-splitbutton__trigger {
2200
+ border-bottom-right-radius: var(--m-radius-control);
2201
+ border-left: var(--m-border-width) solid
2202
+ color-mix(
2203
+ in srgb,
2204
+ var(--m-color-on-emphasis) 35%,
2205
+ var(--m-color-primary)
2206
+ );
2207
+ border-top-right-radius: var(--m-radius-control);
2208
+ padding: 0 var(--m-control-padding-x-medium);
2209
+ }
2210
+
2211
+ .m-splitbutton__main:hover:not(:disabled),
2212
+ .m-splitbutton__trigger:hover:not(:disabled) {
2213
+ background: var(--m-color-primary-hover);
2214
+ border-color: var(--m-color-primary-hover);
2215
+ }
2216
+
2217
+ .m-splitbutton--outlined .m-splitbutton__main:hover:not(:disabled),
2218
+ .m-splitbutton--outlined .m-splitbutton__trigger:hover:not(:disabled) {
2219
+ background: color-mix(
2220
+ in srgb,
2221
+ var(--m-color-primary) 10%,
2222
+ transparent
2223
+ );
2224
+ border-color: var(--m-color-primary);
2225
+ }
2226
+
2227
+ .m-splitbutton--secondary .m-splitbutton__main:hover:not(:disabled),
2228
+ .m-splitbutton--secondary .m-splitbutton__trigger:hover:not(:disabled) {
2229
+ background: color-mix(
2230
+ in srgb,
2231
+ var(--m-color-text-muted) 24%,
2232
+ var(--m-color-surface)
2233
+ );
2234
+ border-color: var(--m-color-border);
2235
+ }
2236
+
2237
+ .m-splitbutton--danger .m-splitbutton__main:hover:not(:disabled),
2238
+ .m-splitbutton--danger .m-splitbutton__trigger:hover:not(:disabled) {
2239
+ background: color-mix(in srgb, var(--m-color-danger) 85%, black);
2240
+ border-color: color-mix(in srgb, var(--m-color-danger) 85%, black);
2241
+ }
2242
+
2243
+ .m-splitbutton__main:focus-visible,
2244
+ .m-splitbutton__trigger:focus-visible {
2245
+ box-shadow: var(--m-focus-shadow);
2246
+ outline: none;
2247
+ }
2248
+
2249
+ .m-splitbutton--outlined .m-splitbutton__main,
2250
+ .m-splitbutton--outlined .m-splitbutton__trigger {
2251
+ background: transparent;
2252
+ color: var(--m-color-primary);
2253
+ }
2254
+
2255
+ .m-splitbutton--outlined .m-splitbutton__trigger {
2256
+ border-left-color: var(--m-color-primary);
2257
+ }
2258
+
2259
+ .m-splitbutton--secondary .m-splitbutton__main,
2260
+ .m-splitbutton--secondary .m-splitbutton__trigger {
2261
+ background: color-mix(
2262
+ in srgb,
2263
+ var(--m-color-text-muted) 16%,
2264
+ var(--m-color-surface)
2265
+ );
2266
+ border-color: var(--m-color-border);
2267
+ color: var(--m-color-text);
2268
+ }
2269
+
2270
+ .m-splitbutton--danger .m-splitbutton__main,
2271
+ .m-splitbutton--danger .m-splitbutton__trigger {
2272
+ background: var(--m-color-danger);
2273
+ border-color: var(--m-color-danger);
2274
+ }
2275
+
2276
+ .m-splitbutton--small .m-splitbutton__main,
2277
+ .m-splitbutton--small .m-splitbutton__trigger {
2278
+ --m-splitbutton-icon-size: 0.875rem;
2279
+ min-height: var(--m-control-height-small);
2280
+ font-size: var(--m-control-font-small);
2281
+ }
2282
+
2283
+ .m-splitbutton--large .m-splitbutton__main,
2284
+ .m-splitbutton--large .m-splitbutton__trigger {
2285
+ --m-splitbutton-icon-size: 1.125rem;
2286
+ min-height: var(--m-control-height-large);
2287
+ font-size: var(--m-control-font-large);
2288
+ }
2289
+
2290
+ .m-splitbutton__icon {
2291
+ align-items: center;
2292
+ display: inline-flex;
2293
+ flex-shrink: 0;
2294
+ height: var(--m-splitbutton-icon-size);
2295
+ justify-content: center;
2296
+ line-height: 0;
2297
+ width: var(--m-splitbutton-icon-size);
2298
+ }
2299
+
2300
+ .m-splitbutton__icon :is(.m-icon, svg) {
2301
+ display: block;
2302
+ height: 100%;
2303
+ width: 100%;
2304
+ }
2305
+
2306
+ .m-splitbutton__trigger :is(.m-icon, svg) {
2307
+ display: block;
2308
+ height: var(--m-splitbutton-icon-size);
2309
+ width: var(--m-splitbutton-icon-size);
2310
+ }
2311
+
2312
+ .m-splitbutton--disabled {
2313
+ cursor: not-allowed;
2314
+ opacity: var(--m-opacity-disabled);
2315
+ pointer-events: none;
2316
+ }
2317
+
2318
+ .m-splitbutton__item:focus-visible {
2319
+ box-shadow: var(--m-focus-shadow);
2320
+ outline: none;
2321
+ }
2322
+
2323
+ .m-splitbutton__menu {
2324
+ background: var(--m-color-surface);
2325
+ border: var(--m-border-width) solid var(--m-color-border);
2326
+ border-radius: var(--m-radius-md);
2327
+ box-shadow: var(--m-shadow-md);
2328
+ list-style: none;
2329
+ margin: var(--m-space-1) 0 0;
2330
+ max-width: calc(100vw - 2 * var(--m-space-4));
2331
+ min-width: 100%;
2332
+ padding: var(--m-space-1);
2333
+ position: absolute;
2334
+ right: 0;
2335
+ top: 100%;
2336
+ transform-origin: top right;
2337
+ /* Grow with the content: shrink-to-fit would clamp to the button width
2338
+ (the containing block) when not teleported. Teleported mode overrides
2339
+ min-width with the inline button width. */
2340
+ width: max-content;
2341
+ z-index: var(--m-z-popper);
2342
+ }
2343
+
2344
+ .m-splitbutton__menu--teleported {
2345
+ margin: 0;
2346
+ position: fixed;
2347
+ right: auto;
2348
+ top: auto;
2349
+ z-index: var(--m-z-dropdown);
2350
+ }
2351
+
2352
+ .m-splitbutton__item {
2353
+ background: transparent;
2354
+ border: 0;
2355
+ border-radius: var(--m-radius-sm);
2356
+ color: var(--m-color-text);
2357
+ cursor: pointer;
2358
+ display: block;
2359
+ font: inherit;
2360
+ padding: var(--m-space-2) var(--m-space-3);
2361
+ text-align: start;
2362
+ width: 100%;
2363
+ }
2364
+
2365
+ .m-splitbutton__item:hover:not(:disabled) {
2366
+ background: color-mix(
2367
+ in srgb,
2368
+ var(--m-color-primary) 10%,
2369
+ var(--m-color-surface)
2370
+ );
2371
+ }
2372
+
2373
+ .m-splitbutton__item:disabled {
2374
+ cursor: not-allowed;
2375
+ opacity: var(--m-opacity-disabled);
2376
+ }