@mercury-fx/ui 2.4.0
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.
- package/LICENSE +21 -0
- package/README.md +44 -0
- package/dist/components/actions/Button/Button.d.ts +17 -0
- package/dist/components/actions/Button/index.d.ts +1 -0
- package/dist/components/actions/IconButton/IconButton.d.ts +24 -0
- package/dist/components/actions/IconButton/index.d.ts +1 -0
- package/dist/components/actions/Link/Link.d.ts +26 -0
- package/dist/components/actions/Link/index.d.ts +1 -0
- package/dist/components/data-display/Avatar/Avatar.d.ts +8 -0
- package/dist/components/data-display/Avatar/index.d.ts +1 -0
- package/dist/components/data-display/Badge/Badge.d.ts +8 -0
- package/dist/components/data-display/Badge/index.d.ts +1 -0
- package/dist/components/data-display/Blockquote/Blockquote.d.ts +18 -0
- package/dist/components/data-display/Blockquote/index.d.ts +1 -0
- package/dist/components/data-display/Card/Card.d.ts +9 -0
- package/dist/components/data-display/Card/index.d.ts +1 -0
- package/dist/components/data-display/Chart/Chart.d.ts +41 -0
- package/dist/components/data-display/Chart/index.d.ts +1 -0
- package/dist/components/data-display/Checklist/Checklist.d.ts +14 -0
- package/dist/components/data-display/Checklist/index.d.ts +1 -0
- package/dist/components/data-display/Chip/Chip.d.ts +13 -0
- package/dist/components/data-display/Chip/index.d.ts +1 -0
- package/dist/components/data-display/Code/Code.d.ts +22 -0
- package/dist/components/data-display/Code/index.d.ts +1 -0
- package/dist/components/data-display/DataList/DataList.d.ts +27 -0
- package/dist/components/data-display/DataList/index.d.ts +1 -0
- package/dist/components/data-display/Kbd/Kbd.d.ts +14 -0
- package/dist/components/data-display/Kbd/index.d.ts +1 -0
- package/dist/components/data-display/ListRow/ListRow.d.ts +16 -0
- package/dist/components/data-display/ListRow/index.d.ts +1 -0
- package/dist/components/data-display/Stat/Stat.d.ts +16 -0
- package/dist/components/data-display/Stat/index.d.ts +1 -0
- package/dist/components/data-display/Table/Table.d.ts +14 -0
- package/dist/components/data-display/Table/index.d.ts +1 -0
- package/dist/components/data-display/Tag/Tag.d.ts +9 -0
- package/dist/components/data-display/Tag/index.d.ts +1 -0
- package/dist/components/feedback/Alert/Alert.d.ts +11 -0
- package/dist/components/feedback/Alert/index.d.ts +1 -0
- package/dist/components/feedback/Callout/Callout.d.ts +26 -0
- package/dist/components/feedback/Callout/index.d.ts +1 -0
- package/dist/components/feedback/PasswordStrength/PasswordStrength.d.ts +13 -0
- package/dist/components/feedback/PasswordStrength/index.d.ts +1 -0
- package/dist/components/feedback/Progress/Progress.d.ts +9 -0
- package/dist/components/feedback/Progress/index.d.ts +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.d.ts +19 -0
- package/dist/components/feedback/Skeleton/index.d.ts +1 -0
- package/dist/components/feedback/Spinner/Spinner.d.ts +18 -0
- package/dist/components/feedback/Spinner/index.d.ts +1 -0
- package/dist/components/foundations/Divider/Divider.d.ts +11 -0
- package/dist/components/foundations/Divider/index.d.ts +1 -0
- package/dist/components/foundations/Heading/Heading.d.ts +26 -0
- package/dist/components/foundations/Heading/index.d.ts +1 -0
- package/dist/components/foundations/Icon/Icon.d.ts +9 -0
- package/dist/components/foundations/Icon/index.d.ts +1 -0
- package/dist/components/foundations/Separator/Separator.d.ts +20 -0
- package/dist/components/foundations/Separator/index.d.ts +1 -0
- package/dist/components/foundations/Text/Text.d.ts +19 -0
- package/dist/components/foundations/Text/index.d.ts +1 -0
- package/dist/components/inputs/AuthCode/AuthCode.d.ts +10 -0
- package/dist/components/inputs/AuthCode/index.d.ts +1 -0
- package/dist/components/inputs/Calendar/Calendar.d.ts +24 -0
- package/dist/components/inputs/Calendar/index.d.ts +1 -0
- package/dist/components/inputs/DateField/DateField.d.ts +25 -0
- package/dist/components/inputs/DateField/index.d.ts +1 -0
- package/dist/components/inputs/Input/Input.d.ts +9 -0
- package/dist/components/inputs/Input/index.d.ts +1 -0
- package/dist/components/inputs/Label/Label.d.ts +20 -0
- package/dist/components/inputs/Label/index.d.ts +1 -0
- package/dist/components/inputs/MoneyInput/MoneyInput.d.ts +12 -0
- package/dist/components/inputs/MoneyInput/index.d.ts +1 -0
- package/dist/components/inputs/Search/Search.d.ts +7 -0
- package/dist/components/inputs/Search/index.d.ts +1 -0
- package/dist/components/inputs/Select/Select.d.ts +14 -0
- package/dist/components/inputs/Select/index.d.ts +1 -0
- package/dist/components/inputs/Textarea/Textarea.d.ts +9 -0
- package/dist/components/inputs/Textarea/index.d.ts +1 -0
- package/dist/components/layout/AspectRatio/AspectRatio.d.ts +14 -0
- package/dist/components/layout/AspectRatio/index.d.ts +1 -0
- package/dist/components/layout/AuthLayout/AuthLayout.d.ts +30 -0
- package/dist/components/layout/AuthLayout/index.d.ts +1 -0
- package/dist/components/layout/Box/Box.d.ts +35 -0
- package/dist/components/layout/Box/index.d.ts +1 -0
- package/dist/components/layout/Center/Center.d.ts +13 -0
- package/dist/components/layout/Center/index.d.ts +1 -0
- package/dist/components/layout/Cluster/Cluster.d.ts +18 -0
- package/dist/components/layout/Cluster/index.d.ts +1 -0
- package/dist/components/layout/Collapsible/Collapsible.d.ts +26 -0
- package/dist/components/layout/Collapsible/index.d.ts +1 -0
- package/dist/components/layout/Container/Container.d.ts +19 -0
- package/dist/components/layout/Container/index.d.ts +1 -0
- package/dist/components/layout/Flex/Flex.d.ts +24 -0
- package/dist/components/layout/Flex/index.d.ts +1 -0
- package/dist/components/layout/Grid/Grid.d.ts +26 -0
- package/dist/components/layout/Grid/index.d.ts +1 -0
- package/dist/components/layout/GridItem/GridItem.d.ts +19 -0
- package/dist/components/layout/GridItem/index.d.ts +1 -0
- package/dist/components/layout/ScrollArea/ScrollArea.d.ts +22 -0
- package/dist/components/layout/ScrollArea/index.d.ts +1 -0
- package/dist/components/layout/Section/Section.d.ts +18 -0
- package/dist/components/layout/Section/index.d.ts +1 -0
- package/dist/components/layout/Sidebar/Sidebar.d.ts +21 -0
- package/dist/components/layout/Sidebar/index.d.ts +1 -0
- package/dist/components/layout/Spacer/Spacer.d.ts +15 -0
- package/dist/components/layout/Spacer/index.d.ts +1 -0
- package/dist/components/layout/Stack/Stack.d.ts +20 -0
- package/dist/components/layout/Stack/index.d.ts +1 -0
- package/dist/components/layout/scales.d.ts +20 -0
- package/dist/components/navigation/Accordion/Accordion.d.ts +17 -0
- package/dist/components/navigation/Accordion/index.d.ts +1 -0
- package/dist/components/navigation/Menubar/Menubar.d.ts +53 -0
- package/dist/components/navigation/Menubar/index.d.ts +1 -0
- package/dist/components/navigation/Pagination/Pagination.d.ts +14 -0
- package/dist/components/navigation/Pagination/index.d.ts +1 -0
- package/dist/components/navigation/TabNav/TabNav.d.ts +38 -0
- package/dist/components/navigation/TabNav/index.d.ts +1 -0
- package/dist/components/navigation/Tabs/Tabs.d.ts +12 -0
- package/dist/components/navigation/Tabs/index.d.ts +1 -0
- package/dist/components/overlay/AlertDialog/AlertDialog.d.ts +33 -0
- package/dist/components/overlay/AlertDialog/index.d.ts +1 -0
- package/dist/components/overlay/ContextMenu/ContextMenu.d.ts +40 -0
- package/dist/components/overlay/ContextMenu/index.d.ts +1 -0
- package/dist/components/overlay/Dialog/Dialog.d.ts +33 -0
- package/dist/components/overlay/Dialog/index.d.ts +1 -0
- package/dist/components/overlay/Dropdown/Dropdown.d.ts +48 -0
- package/dist/components/overlay/Dropdown/index.d.ts +1 -0
- package/dist/components/overlay/HoverCard/HoverCard.d.ts +35 -0
- package/dist/components/overlay/HoverCard/index.d.ts +1 -0
- package/dist/components/overlay/LinkPreview/LinkPreview.d.ts +33 -0
- package/dist/components/overlay/LinkPreview/index.d.ts +1 -0
- package/dist/components/overlay/Modal/Modal.d.ts +10 -0
- package/dist/components/overlay/Modal/index.d.ts +1 -0
- package/dist/components/overlay/Popover/Popover.d.ts +35 -0
- package/dist/components/overlay/Popover/index.d.ts +1 -0
- package/dist/components/overlay/Tooltip/Tooltip.d.ts +6 -0
- package/dist/components/overlay/Tooltip/index.d.ts +1 -0
- package/dist/components/overlay/_overlay/Portal.d.ts +14 -0
- package/dist/components/selection/Checkbox/Checkbox.d.ts +12 -0
- package/dist/components/selection/Checkbox/index.d.ts +1 -0
- package/dist/components/selection/CheckboxCards/CheckboxCards.d.ts +20 -0
- package/dist/components/selection/CheckboxCards/index.d.ts +1 -0
- package/dist/components/selection/CheckboxGroup/CheckboxGroup.d.ts +17 -0
- package/dist/components/selection/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/selection/Radio/Radio.d.ts +11 -0
- package/dist/components/selection/Radio/index.d.ts +1 -0
- package/dist/components/selection/RadioCards/RadioCards.d.ts +20 -0
- package/dist/components/selection/RadioCards/index.d.ts +1 -0
- package/dist/components/selection/RadioGroup/RadioGroup.d.ts +18 -0
- package/dist/components/selection/RadioGroup/index.d.ts +1 -0
- package/dist/components/selection/Segmented/Segmented.d.ts +13 -0
- package/dist/components/selection/Segmented/index.d.ts +1 -0
- package/dist/components/selection/Slider/Slider.d.ts +13 -0
- package/dist/components/selection/Slider/index.d.ts +1 -0
- package/dist/components/selection/Switch/Switch.d.ts +10 -0
- package/dist/components/selection/Switch/index.d.ts +1 -0
- package/dist/components/selection/Toggle/Toggle.d.ts +36 -0
- package/dist/components/selection/Toggle/index.d.ts +1 -0
- package/dist/index.d.ts +93 -0
- package/dist/mercury-ui.css +1 -0
- package/dist/mercury-ui.js +4049 -0
- package/package.json +58 -0
- package/src/styles/additions.css +1030 -0
- package/src/styles/fonts/DMMono-Italic.woff2 +0 -0
- package/src/styles/fonts/DMMono-Light.woff2 +0 -0
- package/src/styles/fonts/DMMono-LightItalic.woff2 +0 -0
- package/src/styles/fonts/DMMono-Medium.woff2 +0 -0
- package/src/styles/fonts/DMMono-MediumItalic.woff2 +0 -0
- package/src/styles/fonts/DMMono-Regular.woff2 +0 -0
- package/src/styles/fonts/DMSans-Bold.woff2 +0 -0
- package/src/styles/fonts/DMSans-BoldItalic.woff2 +0 -0
- package/src/styles/fonts/DMSans-Italic.woff2 +0 -0
- package/src/styles/fonts/DMSans-Medium.woff2 +0 -0
- package/src/styles/fonts/DMSans-MediumItalic.woff2 +0 -0
- package/src/styles/fonts/DMSans-Regular.woff2 +0 -0
- package/src/styles/fonts/DMSerifDisplay-Italic.woff2 +0 -0
- package/src/styles/fonts/DMSerifDisplay-Regular.woff2 +0 -0
- package/src/styles/index.css +5 -0
- package/src/styles/layout.css +55 -0
- package/src/styles/mercury.css +676 -0
- package/src/styles/tokens.css +438 -0
|
@@ -0,0 +1,1030 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
Mercury — NEW component styles (batch 1)
|
|
3
|
+
Append these blocks to packages/mercury-ui/src/styles/mercury.css
|
|
4
|
+
Token-only; matches the existing .mx-* conventions.
|
|
5
|
+
============================================================ */
|
|
6
|
+
|
|
7
|
+
/* ============================================================
|
|
8
|
+
ACCORDION .mx-acc
|
|
9
|
+
============================================================ */
|
|
10
|
+
.mx-acc {
|
|
11
|
+
width: 100%;
|
|
12
|
+
font-family: var(--font-primary);
|
|
13
|
+
border: 1px solid rgb(var(--border-secondary));
|
|
14
|
+
border-radius: var(--radius-12);
|
|
15
|
+
background: rgb(var(--bg-primary));
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
.mx-acc__item + .mx-acc__item { border-top: 1px solid rgb(var(--border-secondary)); }
|
|
19
|
+
.mx-acc__heading { margin: 0; }
|
|
20
|
+
.mx-acc__trigger {
|
|
21
|
+
width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
|
22
|
+
padding: 16px 18px; border: 0; background: transparent; cursor: pointer; text-align: left;
|
|
23
|
+
font: 500 15px/1.3 var(--font-primary); color: rgb(var(--fg-primary)); letter-spacing: -0.005em;
|
|
24
|
+
transition: background 120ms ease;
|
|
25
|
+
}
|
|
26
|
+
.mx-acc__trigger:hover:not(:disabled) { background: rgb(var(--bg-hover)); }
|
|
27
|
+
.mx-acc__trigger:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgb(var(--ring-focus)); }
|
|
28
|
+
.mx-acc__item.is-disabled .mx-acc__trigger { opacity: 0.45; cursor: not-allowed; }
|
|
29
|
+
.mx-acc__title { flex: 1; min-width: 0; }
|
|
30
|
+
.mx-acc__caret { flex: none; color: rgb(var(--fg-tertiary)); transition: transform 200ms ease; }
|
|
31
|
+
.mx-acc__item.is-open .mx-acc__caret { transform: rotate(180deg); }
|
|
32
|
+
.mx-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms ease; }
|
|
33
|
+
.mx-acc__item.is-open .mx-acc__panel { grid-template-rows: 1fr; }
|
|
34
|
+
.mx-acc__content { min-height: 0; overflow: hidden; }
|
|
35
|
+
.mx-acc__body {
|
|
36
|
+
padding: 2px 18px 18px;
|
|
37
|
+
font: 400 14px/1.55 var(--font-primary); color: rgb(var(--fg-secondary));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* ============================================================
|
|
41
|
+
TOGGLE .mx-tgl / TOGGLE GROUP .mx-tgl-grp
|
|
42
|
+
============================================================ */
|
|
43
|
+
.mx-tgl {
|
|
44
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
45
|
+
border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-8);
|
|
46
|
+
color: rgb(var(--fg-secondary)); font: 500 14px/1 var(--font-primary);
|
|
47
|
+
transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
|
|
48
|
+
}
|
|
49
|
+
.mx-tgl--sm { height: 32px; min-width: 32px; padding: 0 8px; border-radius: var(--radius-6); font-size: 13px; }
|
|
50
|
+
.mx-tgl--md { height: 40px; min-width: 40px; padding: 0 10px; }
|
|
51
|
+
.mx-tgl--lg { height: 48px; min-width: 48px; padding: 0 14px; font-size: 15px; }
|
|
52
|
+
.mx-tgl:hover:not(:disabled) { background: rgb(var(--bg-hover)); color: rgb(var(--fg-primary)); }
|
|
53
|
+
.mx-tgl.is-on { background: rgb(var(--bg-tertiary)); color: rgb(var(--fg-primary)); }
|
|
54
|
+
.mx-tgl:focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(var(--ring-focus)); }
|
|
55
|
+
.mx-tgl:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
56
|
+
.mx-tgl__icon { display: inline-flex; }
|
|
57
|
+
|
|
58
|
+
.mx-tgl-grp {
|
|
59
|
+
display: inline-flex; align-items: center; gap: 4px; padding: 4px;
|
|
60
|
+
background: rgb(var(--bg-primary)); border: 1px solid rgb(var(--border-primary));
|
|
61
|
+
border-radius: var(--radius-12); box-shadow: var(--shadow-100);
|
|
62
|
+
}
|
|
63
|
+
.mx-tgl--grouped { background: transparent; }
|
|
64
|
+
.mx-tgl--grouped.is-on { background: rgb(var(--bg-secondary)); }
|
|
65
|
+
|
|
66
|
+
/* ============================================================
|
|
67
|
+
PAGINATION .mx-pag
|
|
68
|
+
============================================================ */
|
|
69
|
+
.mx-pag { display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--font-primary); }
|
|
70
|
+
.mx-pag__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
|
|
71
|
+
.mx-pag__btn {
|
|
72
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
73
|
+
min-width: 40px; height: 40px; padding: 0 6px; border: 0; background: transparent; cursor: pointer;
|
|
74
|
+
border-radius: var(--radius-8); color: rgb(var(--fg-secondary)); font: 500 14px/1 var(--font-primary);
|
|
75
|
+
transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
|
|
76
|
+
}
|
|
77
|
+
.mx-pag--sm .mx-pag__btn { min-width: 32px; height: 32px; font-size: 13px; border-radius: var(--radius-6); }
|
|
78
|
+
.mx-pag__btn:hover:not(:disabled):not(.is-active) { background: rgb(var(--bg-hover)); color: rgb(var(--fg-primary)); }
|
|
79
|
+
.mx-pag__btn.is-active { background: rgb(var(--bg-secondary)); color: rgb(var(--fg-primary)); font-weight: 600; box-shadow: inset 0 0 0 1px rgb(var(--border-primary)); }
|
|
80
|
+
.mx-pag__btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(var(--ring-focus)); }
|
|
81
|
+
.mx-pag__btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
82
|
+
.mx-pag__btn--nav { color: rgb(var(--fg-primary)); }
|
|
83
|
+
.mx-pag__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; color: rgb(var(--fg-tertiary)); }
|
|
84
|
+
.mx-pag--sm .mx-pag__gap { min-width: 32px; height: 32px; }
|
|
85
|
+
.mx-pag__caption { font: 400 13px/1 var(--font-primary); color: rgb(var(--fg-tertiary)); letter-spacing: 0.01em; }
|
|
86
|
+
|
|
87
|
+
/* ============================================================
|
|
88
|
+
Mercury — NEW component styles (mx.4 focused trio)
|
|
89
|
+
============================================================ */
|
|
90
|
+
|
|
91
|
+
/* ============================================================
|
|
92
|
+
LIST ROW .mx-listrow
|
|
93
|
+
============================================================ */
|
|
94
|
+
.mx-listrow {
|
|
95
|
+
display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
|
|
96
|
+
padding: 12px 16px; margin: 0; border: 0; background: transparent; text-align: left;
|
|
97
|
+
font-family: var(--font-primary); color: rgb(var(--fg-primary));
|
|
98
|
+
}
|
|
99
|
+
.mx-listrow + .mx-listrow { border-top: 1px solid rgb(var(--border-secondary)); }
|
|
100
|
+
.mx-listrow--interactive { cursor: pointer; transition: background 120ms ease; }
|
|
101
|
+
.mx-listrow--interactive:hover { background: rgb(var(--bg-hover)); }
|
|
102
|
+
.mx-listrow--interactive:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgb(var(--ring-focus)); }
|
|
103
|
+
.mx-listrow__lead { display: inline-flex; align-items: center; justify-content: center; flex: none; color: rgb(var(--fg-secondary)); }
|
|
104
|
+
.mx-listrow__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
|
|
105
|
+
.mx-listrow__label { font: 500 15px/1.3 var(--font-primary); color: rgb(var(--fg-primary)); }
|
|
106
|
+
.mx-listrow__desc { font: 400 13px/1.4 var(--font-secondary); color: rgb(var(--fg-tertiary)); }
|
|
107
|
+
.mx-listrow__value { flex: none; font: 500 14px/1.3 var(--font-secondary); color: rgb(var(--fg-secondary)); }
|
|
108
|
+
.mx-listrow__trail { display: inline-flex; align-items: center; flex: none; color: rgb(var(--fg-tertiary)); }
|
|
109
|
+
|
|
110
|
+
/* ============================================================
|
|
111
|
+
MONEY INPUT .mx-money (composes the .mx-in Input recipe)
|
|
112
|
+
============================================================ */
|
|
113
|
+
.mx-money__ccy { font: 600 14px/1 var(--font-secondary); color: rgb(var(--fg-secondary)); letter-spacing: 0.01em; }
|
|
114
|
+
|
|
115
|
+
/* ============================================================
|
|
116
|
+
Mercury — NEW component styles (mx.7.1 · import batch 1)
|
|
117
|
+
Token-only; .mx-* idiom. accent ramps read --<ramp>-11.
|
|
118
|
+
============================================================ */
|
|
119
|
+
|
|
120
|
+
/* ============================================================
|
|
121
|
+
HEADING .mx-heading (foundations)
|
|
122
|
+
Display sizes 5–9 ride DM Mono (--font-secondary); small sizes
|
|
123
|
+
1–4 ride DM Sans (--font-primary). Sizes map onto the canon
|
|
124
|
+
18..72 type scale; default ink --fg-primary.
|
|
125
|
+
============================================================ */
|
|
126
|
+
.mx-heading { margin: 0; color: rgb(var(--fg-primary)); text-wrap: balance; }
|
|
127
|
+
|
|
128
|
+
/* sizes — small (DM Sans) */
|
|
129
|
+
.mx-heading--1 { font-family: var(--font-primary); font-size: 14px; line-height: 20px; letter-spacing: 0; }
|
|
130
|
+
.mx-heading--2 { font-family: var(--font-primary); font-size: 16px; line-height: 22px; letter-spacing: 0; }
|
|
131
|
+
.mx-heading--3 { font-family: var(--font-primary); font-size: 18px; line-height: 28px; letter-spacing: -0.005em; }
|
|
132
|
+
.mx-heading--4 { font-family: var(--font-primary); font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
|
|
133
|
+
/* sizes — display (DM Mono) */
|
|
134
|
+
.mx-heading--5 { font-family: var(--font-secondary); font-size: 30px; line-height: 38px; letter-spacing: -0.015em; }
|
|
135
|
+
.mx-heading--6 { font-family: var(--font-secondary); font-size: 36px; line-height: 40px; letter-spacing: -0.015em; }
|
|
136
|
+
.mx-heading--7 { font-family: var(--font-secondary); font-size: 48px; line-height: 56px; letter-spacing: -0.018em; }
|
|
137
|
+
.mx-heading--8 { font-family: var(--font-secondary); font-size: 60px; line-height: 68px; letter-spacing: -0.02em; }
|
|
138
|
+
.mx-heading--9 { font-family: var(--font-secondary); font-size: 72px; line-height: 80px; letter-spacing: -0.022em; }
|
|
139
|
+
|
|
140
|
+
/* weights */
|
|
141
|
+
.mx-heading--w-regular { font-weight: var(--fw-regular); }
|
|
142
|
+
.mx-heading--w-medium { font-weight: var(--fw-medium); }
|
|
143
|
+
.mx-heading--w-semibold { font-weight: var(--fw-semi-bold); }
|
|
144
|
+
.mx-heading--w-bold { font-weight: var(--fw-bold); }
|
|
145
|
+
|
|
146
|
+
/* alignment */
|
|
147
|
+
.mx-heading--align-left { text-align: left; }
|
|
148
|
+
.mx-heading--align-center { text-align: center; }
|
|
149
|
+
.mx-heading--align-right { text-align: right; }
|
|
150
|
+
|
|
151
|
+
/* truncate */
|
|
152
|
+
.mx-heading--truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
153
|
+
|
|
154
|
+
/* accent ink (overrides the default) */
|
|
155
|
+
.mx-heading--accent-iris { color: rgb(var(--iris-11)); }
|
|
156
|
+
.mx-heading--accent-indigo { color: rgb(var(--indigo-11)); }
|
|
157
|
+
.mx-heading--accent-green { color: rgb(var(--green-11)); }
|
|
158
|
+
.mx-heading--accent-orange { color: rgb(var(--orange-11)); }
|
|
159
|
+
.mx-heading--accent-plum { color: rgb(var(--plum-11)); }
|
|
160
|
+
.mx-heading--accent-red { color: rgb(var(--red-11)); }
|
|
161
|
+
|
|
162
|
+
/* ============================================================
|
|
163
|
+
TEXT .mx-text (foundations)
|
|
164
|
+
One typography primitive across DM Sans / DM Mono / DM Serif.
|
|
165
|
+
Each variant carries face + size + default ink; accent ramps
|
|
166
|
+
read --<ramp>-11.
|
|
167
|
+
============================================================ */
|
|
168
|
+
.mx-text { margin: 0; color: rgb(var(--fg-primary)); text-wrap: pretty; }
|
|
169
|
+
|
|
170
|
+
.mx-text--display { font-family: var(--font-display); font-size: 60px; line-height: 1.05; font-weight: var(--fw-regular); letter-spacing: -0.01em; }
|
|
171
|
+
.mx-text--h1 { font-family: var(--font-secondary); font-size: 44px; line-height: 1.08; font-weight: var(--fw-bold); letter-spacing: -0.02em; }
|
|
172
|
+
.mx-text--h2 { font-family: var(--font-secondary); font-size: 32px; line-height: 1.15; font-weight: var(--fw-bold); letter-spacing: -0.015em; }
|
|
173
|
+
.mx-text--h3 { font-family: var(--font-secondary); font-size: 24px; line-height: 1.25; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
|
|
174
|
+
.mx-text--h4 { font-family: var(--font-primary); font-size: 18px; line-height: 1.35; font-weight: var(--fw-bold); letter-spacing: -0.005em; }
|
|
175
|
+
.mx-text--lead { font-family: var(--font-primary); font-size: 18px; line-height: 1.6; font-weight: var(--fw-regular); color: rgb(var(--fg-secondary)); }
|
|
176
|
+
.mx-text--body { font-family: var(--font-primary); font-size: 15px; line-height: 1.6; font-weight: var(--fw-regular); }
|
|
177
|
+
.mx-text--small { font-family: var(--font-primary); font-size: 13px; line-height: 1.5; font-weight: var(--fw-medium); }
|
|
178
|
+
.mx-text--muted { font-family: var(--font-primary); font-size: 13px; line-height: 1.5; font-weight: var(--fw-regular); color: rgb(var(--fg-tertiary)); }
|
|
179
|
+
.mx-text--code { font-family: var(--font-secondary); font-size: 13px; line-height: 1.4; font-weight: var(--fw-medium); background: rgb(var(--bg-tertiary)); padding: 2px 7px; border-radius: var(--radius-4); display: inline-block; }
|
|
180
|
+
.mx-text--quote { font-family: var(--font-primary); font-size: 16px; line-height: 1.6; font-weight: var(--fw-regular); font-style: italic; color: rgb(var(--fg-secondary)); border-inline-start: 3px solid rgb(var(--border-strong)); padding-inline-start: 16px; }
|
|
181
|
+
|
|
182
|
+
.mx-text--italic { font-style: italic; }
|
|
183
|
+
.mx-text--align-left { text-align: left; }
|
|
184
|
+
.mx-text--align-center { text-align: center; }
|
|
185
|
+
.mx-text--align-right { text-align: right; }
|
|
186
|
+
|
|
187
|
+
.mx-text--accent-iris { color: rgb(var(--iris-11)); }
|
|
188
|
+
.mx-text--accent-indigo { color: rgb(var(--indigo-11)); }
|
|
189
|
+
.mx-text--accent-green { color: rgb(var(--green-11)); }
|
|
190
|
+
.mx-text--accent-orange { color: rgb(var(--orange-11)); }
|
|
191
|
+
.mx-text--accent-plum { color: rgb(var(--plum-11)); }
|
|
192
|
+
.mx-text--accent-red { color: rgb(var(--red-11)); }
|
|
193
|
+
|
|
194
|
+
/* ============================================================
|
|
195
|
+
SEPARATOR .mx-separator (foundations — sibling of Divider)
|
|
196
|
+
Richer Claude-Design rule: horizontal / vertical / labelled,
|
|
197
|
+
optional custom `size` via the --mx-sep-size custom property.
|
|
198
|
+
============================================================ */
|
|
199
|
+
.mx-separator { border: 0; height: 1px; width: var(--mx-sep-size, 100%); background: rgb(var(--border-secondary)); margin: 0; flex-shrink: 0; }
|
|
200
|
+
.mx-separator--v { display: inline-block; width: 1px; height: var(--mx-sep-size, 100%); min-height: 1em; align-self: stretch; }
|
|
201
|
+
.mx-separator--label { display: flex; align-items: center; gap: 12px; width: var(--mx-sep-size, 100%); height: auto; background: none; }
|
|
202
|
+
.mx-separator--label .mx-separator__line { flex: 1; height: 1px; background: rgb(var(--border-secondary)); }
|
|
203
|
+
.mx-separator--label .mx-separator__lbl { font: 500 12px/1 var(--font-primary); color: rgb(var(--fg-tertiary)); letter-spacing: 0.01em; white-space: nowrap; }
|
|
204
|
+
|
|
205
|
+
/* ============================================================
|
|
206
|
+
LABEL .mx-label (inputs)
|
|
207
|
+
Form caption: semibold text, accent-tinted required marker,
|
|
208
|
+
muted (optional) tag + hint line, three sizes.
|
|
209
|
+
============================================================ */
|
|
210
|
+
.mx-label { display: inline-flex; flex-direction: column; gap: 4px; font-family: var(--font-primary); user-select: none; cursor: default; }
|
|
211
|
+
.mx-label.is-disabled { opacity: 0.55; cursor: not-allowed; }
|
|
212
|
+
.mx-label__text { display: inline-flex; align-items: center; gap: 5px; font-weight: var(--fw-semi-bold); letter-spacing: -0.005em; line-height: 1.2; color: rgb(var(--fg-primary)); }
|
|
213
|
+
.mx-label__req { color: rgb(var(--red-11)); font-weight: var(--fw-bold); }
|
|
214
|
+
.mx-label__opt { font-weight: var(--fw-regular); color: rgb(var(--fg-tertiary)); }
|
|
215
|
+
.mx-label__hint { font-weight: var(--fw-regular); line-height: 1.4; color: rgb(var(--fg-tertiary)); }
|
|
216
|
+
|
|
217
|
+
/* sizes */
|
|
218
|
+
.mx-label--sm .mx-label__text { font-size: 12px; }
|
|
219
|
+
.mx-label--md .mx-label__text { font-size: 13px; }
|
|
220
|
+
.mx-label--lg .mx-label__text { font-size: 14px; }
|
|
221
|
+
.mx-label--sm .mx-label__opt, .mx-label--sm .mx-label__hint { font-size: 11px; }
|
|
222
|
+
.mx-label--md .mx-label__opt, .mx-label--md .mx-label__hint { font-size: 12px; }
|
|
223
|
+
.mx-label--lg .mx-label__opt, .mx-label--lg .mx-label__hint { font-size: 13px; }
|
|
224
|
+
|
|
225
|
+
/* accent — tints the required marker (default red) */
|
|
226
|
+
.mx-label--accent-iris .mx-label__req { color: rgb(var(--iris-11)); }
|
|
227
|
+
.mx-label--accent-indigo .mx-label__req { color: rgb(var(--indigo-11)); }
|
|
228
|
+
.mx-label--accent-green .mx-label__req { color: rgb(var(--green-11)); }
|
|
229
|
+
.mx-label--accent-orange .mx-label__req { color: rgb(var(--orange-11)); }
|
|
230
|
+
.mx-label--accent-plum .mx-label__req { color: rgb(var(--plum-11)); }
|
|
231
|
+
.mx-label--accent-red .mx-label__req { color: rgb(var(--red-11)); }
|
|
232
|
+
|
|
233
|
+
/* ============================================================
|
|
234
|
+
ICON BUTTON .mx-icon-btn (actions)
|
|
235
|
+
Reuses the Button fill/ink tokens via .mx-btn--<variant>; adds
|
|
236
|
+
a square box + round/square radius. Icon-only — needs aria-label.
|
|
237
|
+
============================================================ */
|
|
238
|
+
.mx-icon-btn {
|
|
239
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
240
|
+
padding: 0; border: 1px solid transparent; cursor: pointer;
|
|
241
|
+
transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 80ms ease;
|
|
242
|
+
}
|
|
243
|
+
.mx-icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(var(--ring-focus)); }
|
|
244
|
+
.mx-icon-btn:active:not(:disabled) { transform: scale(0.92); }
|
|
245
|
+
.mx-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
246
|
+
/* the base `border` shorthand resets border-color, so re-assert the bordered variants */
|
|
247
|
+
.mx-icon-btn.mx-btn--secondary,
|
|
248
|
+
.mx-icon-btn.mx-btn--outline { border-color: rgb(var(--border-primary)); }
|
|
249
|
+
/* sizes — square box */
|
|
250
|
+
.mx-icon-btn--sm { width: 32px; height: 32px; }
|
|
251
|
+
.mx-icon-btn--md { width: 40px; height: 40px; }
|
|
252
|
+
.mx-icon-btn--lg { width: 48px; height: 48px; }
|
|
253
|
+
/* shape */
|
|
254
|
+
.mx-icon-btn--circle { border-radius: var(--radius-full); }
|
|
255
|
+
.mx-icon-btn--square { border-radius: var(--radius-8); }
|
|
256
|
+
.mx-icon-btn--sm.mx-icon-btn--square { border-radius: var(--radius-6); }
|
|
257
|
+
|
|
258
|
+
/* ============================================================
|
|
259
|
+
Mercury — NEW component styles (mx.7.2 · import batch 2, wave 1)
|
|
260
|
+
Token-only; .mx-* idiom. accent ramps read --<ramp>-3/9/11.
|
|
261
|
+
============================================================ */
|
|
262
|
+
|
|
263
|
+
/* ============================================================
|
|
264
|
+
CALLOUT .mx-callout (feedback)
|
|
265
|
+
Inline emphasis block. `intent` → the semantic token families;
|
|
266
|
+
`variant` (soft/surface/outline) → the fill/border treatment.
|
|
267
|
+
Distinct from Alert (a status message).
|
|
268
|
+
============================================================ */
|
|
269
|
+
.mx-callout { display: flex; align-items: flex-start; font-family: var(--font-primary); }
|
|
270
|
+
.mx-callout--sm { gap: 10px; padding: 12px; border-radius: var(--radius-6); }
|
|
271
|
+
.mx-callout--md { gap: 12px; padding: 16px; border-radius: var(--radius-8); }
|
|
272
|
+
.mx-callout--lg { gap: 14px; padding: 20px; border-radius: var(--radius-12); }
|
|
273
|
+
.mx-callout__icon { display: inline-flex; flex-shrink: 0; margin-top: 1px; }
|
|
274
|
+
.mx-callout__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
275
|
+
.mx-callout__title { font-weight: var(--fw-semi-bold); line-height: 1.45; }
|
|
276
|
+
.mx-callout__msg { color: rgb(var(--fg-primary)); line-height: 1.55; text-wrap: pretty; }
|
|
277
|
+
.mx-callout--sm .mx-callout__title, .mx-callout--sm .mx-callout__msg { font-size: 13px; }
|
|
278
|
+
.mx-callout--md .mx-callout__title, .mx-callout--md .mx-callout__msg { font-size: 14px; }
|
|
279
|
+
.mx-callout--lg .mx-callout__title, .mx-callout--lg .mx-callout__msg { font-size: 15px; }
|
|
280
|
+
/* intent ink — the icon + the title take the intent --fg-* */
|
|
281
|
+
.mx-callout--info .mx-callout__icon, .mx-callout--info .mx-callout__title { color: rgb(var(--fg-info)); }
|
|
282
|
+
.mx-callout--brand .mx-callout__icon, .mx-callout--brand .mx-callout__title { color: rgb(var(--fg-brand)); }
|
|
283
|
+
.mx-callout--positive .mx-callout__icon, .mx-callout--positive .mx-callout__title { color: rgb(var(--fg-positive)); }
|
|
284
|
+
.mx-callout--caution .mx-callout__icon, .mx-callout--caution .mx-callout__title { color: rgb(var(--fg-caution)); }
|
|
285
|
+
.mx-callout--negative .mx-callout__icon, .mx-callout--negative .mx-callout__title { color: rgb(var(--fg-negative)); }
|
|
286
|
+
.mx-callout--discovery .mx-callout__icon, .mx-callout--discovery .mx-callout__title { color: rgb(var(--fg-discovery)); }
|
|
287
|
+
/* variant soft — tinted fill from the intent -subtle family */
|
|
288
|
+
.mx-callout--soft.mx-callout--info { background: rgb(var(--bg-info-subtle)); }
|
|
289
|
+
.mx-callout--soft.mx-callout--brand { background: rgb(var(--bg-brand-subtle)); }
|
|
290
|
+
.mx-callout--soft.mx-callout--positive { background: rgb(var(--bg-positive-subtle)); }
|
|
291
|
+
.mx-callout--soft.mx-callout--caution { background: rgb(var(--bg-caution-subtle)); }
|
|
292
|
+
.mx-callout--soft.mx-callout--negative { background: rgb(var(--bg-negative-subtle)); }
|
|
293
|
+
.mx-callout--soft.mx-callout--discovery { background: rgb(var(--bg-discovery-subtle)); }
|
|
294
|
+
/* variant surface — neutral card, intent-independent */
|
|
295
|
+
.mx-callout--surface { background: rgb(var(--bg-secondary)); box-shadow: inset 0 0 0 1px rgb(var(--border-secondary)); }
|
|
296
|
+
/* variant outline — transparent, intent-tinted hairline (info has no --border-info → --border-active) */
|
|
297
|
+
.mx-callout--outline { background: transparent; }
|
|
298
|
+
.mx-callout--outline.mx-callout--info { box-shadow: inset 0 0 0 1px rgb(var(--border-active) / 0.45); }
|
|
299
|
+
.mx-callout--outline.mx-callout--brand { box-shadow: inset 0 0 0 1px rgb(var(--border-brand) / 0.45); }
|
|
300
|
+
.mx-callout--outline.mx-callout--positive { box-shadow: inset 0 0 0 1px rgb(var(--border-positive) / 0.45); }
|
|
301
|
+
.mx-callout--outline.mx-callout--caution { box-shadow: inset 0 0 0 1px rgb(var(--border-caution) / 0.45); }
|
|
302
|
+
.mx-callout--outline.mx-callout--negative { box-shadow: inset 0 0 0 1px rgb(var(--border-negative) / 0.45); }
|
|
303
|
+
.mx-callout--outline.mx-callout--discovery { box-shadow: inset 0 0 0 1px rgb(var(--border-discovery) / 0.45); }
|
|
304
|
+
|
|
305
|
+
/* ============================================================
|
|
306
|
+
SPINNER .mx-spinner (feedback)
|
|
307
|
+
Indeterminate ring; 360°/1s spin. Arc inherits currentColor;
|
|
308
|
+
accent paints the arc from --<ramp>-9. Track --border-secondary.
|
|
309
|
+
============================================================ */
|
|
310
|
+
.mx-spinner {
|
|
311
|
+
display: inline-block; box-sizing: border-box;
|
|
312
|
+
border-style: solid; border-width: 2px;
|
|
313
|
+
border-color: rgb(var(--border-secondary)); border-top-color: currentColor;
|
|
314
|
+
border-radius: var(--radius-full);
|
|
315
|
+
animation: mx-spin 1s linear infinite;
|
|
316
|
+
}
|
|
317
|
+
.mx-spinner--sm { width: 16px; height: 16px; border-width: 2px; }
|
|
318
|
+
.mx-spinner--md { width: 20px; height: 20px; border-width: 2px; }
|
|
319
|
+
.mx-spinner--lg { width: 24px; height: 24px; border-width: 3px; }
|
|
320
|
+
.mx-spinner--accent-iris { border-top-color: rgb(var(--iris-9)); }
|
|
321
|
+
.mx-spinner--accent-indigo { border-top-color: rgb(var(--indigo-9)); }
|
|
322
|
+
.mx-spinner--accent-green { border-top-color: rgb(var(--green-9)); }
|
|
323
|
+
.mx-spinner--accent-orange { border-top-color: rgb(var(--orange-9)); }
|
|
324
|
+
.mx-spinner--accent-plum { border-top-color: rgb(var(--plum-9)); }
|
|
325
|
+
.mx-spinner--accent-red { border-top-color: rgb(var(--red-9)); }
|
|
326
|
+
@keyframes mx-spin { to { transform: rotate(360deg); } }
|
|
327
|
+
@media (prefers-reduced-motion: reduce) { .mx-spinner { animation-duration: 2.4s; } }
|
|
328
|
+
|
|
329
|
+
/* ============================================================
|
|
330
|
+
SKELETON .mx-skeleton (feedback)
|
|
331
|
+
Pulsing placeholder; 1.5s pulse on --bg-tertiary. Dimensions
|
|
332
|
+
are non-color inline styles.
|
|
333
|
+
============================================================ */
|
|
334
|
+
.mx-skeleton {
|
|
335
|
+
display: block; flex-shrink: 0;
|
|
336
|
+
background: rgb(var(--bg-tertiary));
|
|
337
|
+
animation: mx-skeleton-pulse 1.5s ease-in-out infinite;
|
|
338
|
+
}
|
|
339
|
+
@keyframes mx-skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
|
|
340
|
+
@media (prefers-reduced-motion: reduce) { .mx-skeleton { animation: none; opacity: 0.7; } }
|
|
341
|
+
|
|
342
|
+
/* ============================================================
|
|
343
|
+
BLOCKQUOTE .mx-blockquote (data-display)
|
|
344
|
+
Quotation behind a leading rule; attribution in DM Mono.
|
|
345
|
+
accent recolours the rule (--<ramp>-9) + attribution (--<ramp>-11).
|
|
346
|
+
============================================================ */
|
|
347
|
+
.mx-blockquote {
|
|
348
|
+
margin: 0; font-family: var(--font-primary);
|
|
349
|
+
border-inline-start: 3px solid rgb(var(--border-strong));
|
|
350
|
+
}
|
|
351
|
+
.mx-blockquote--sm { padding-inline-start: 14px; }
|
|
352
|
+
.mx-blockquote--md { padding-inline-start: 16px; }
|
|
353
|
+
.mx-blockquote--lg { padding-inline-start: 20px; }
|
|
354
|
+
.mx-blockquote__text {
|
|
355
|
+
margin: 0; font-family: var(--font-primary); font-weight: var(--fw-regular);
|
|
356
|
+
color: rgb(var(--fg-secondary)); text-wrap: pretty;
|
|
357
|
+
}
|
|
358
|
+
.mx-blockquote--sm .mx-blockquote__text { font-size: 14px; line-height: 1.6; }
|
|
359
|
+
.mx-blockquote--md .mx-blockquote__text { font-size: 16px; line-height: 1.65; }
|
|
360
|
+
.mx-blockquote--lg .mx-blockquote__text { font-size: 18px; line-height: 1.7; }
|
|
361
|
+
.mx-blockquote__cite {
|
|
362
|
+
margin-top: 8px; font-family: var(--font-secondary); font-weight: var(--fw-medium);
|
|
363
|
+
font-size: 12px; line-height: 1.4; color: rgb(var(--fg-tertiary)); letter-spacing: -0.01em;
|
|
364
|
+
}
|
|
365
|
+
.mx-blockquote--accent-iris { border-inline-start-color: rgb(var(--iris-9)); }
|
|
366
|
+
.mx-blockquote--accent-indigo { border-inline-start-color: rgb(var(--indigo-9)); }
|
|
367
|
+
.mx-blockquote--accent-green { border-inline-start-color: rgb(var(--green-9)); }
|
|
368
|
+
.mx-blockquote--accent-orange { border-inline-start-color: rgb(var(--orange-9)); }
|
|
369
|
+
.mx-blockquote--accent-plum { border-inline-start-color: rgb(var(--plum-9)); }
|
|
370
|
+
.mx-blockquote--accent-red { border-inline-start-color: rgb(var(--red-9)); }
|
|
371
|
+
.mx-blockquote--accent-iris .mx-blockquote__cite { color: rgb(var(--iris-11)); }
|
|
372
|
+
.mx-blockquote--accent-indigo .mx-blockquote__cite { color: rgb(var(--indigo-11)); }
|
|
373
|
+
.mx-blockquote--accent-green .mx-blockquote__cite { color: rgb(var(--green-11)); }
|
|
374
|
+
.mx-blockquote--accent-orange .mx-blockquote__cite { color: rgb(var(--orange-11)); }
|
|
375
|
+
.mx-blockquote--accent-plum .mx-blockquote__cite { color: rgb(var(--plum-11)); }
|
|
376
|
+
.mx-blockquote--accent-red .mx-blockquote__cite { color: rgb(var(--red-11)); }
|
|
377
|
+
|
|
378
|
+
/* ============================================================
|
|
379
|
+
COLLAPSIBLE .mx-collapsible (layout)
|
|
380
|
+
Single disclosure; grid-rows height animation; round toggle
|
|
381
|
+
composing the live Icon. accent tints the toggle when open
|
|
382
|
+
(bg --<ramp>-3, ink --<ramp>-11). Distinct from Accordion.
|
|
383
|
+
============================================================ */
|
|
384
|
+
.mx-collapsible { font-family: var(--font-primary); max-width: 100%; border-radius: var(--radius-12); }
|
|
385
|
+
.mx-collapsible--bordered { border: 1px solid rgb(var(--border-secondary)); background: rgb(var(--bg-primary)); padding: 8px; }
|
|
386
|
+
.mx-collapsible__header { display: flex; align-items: center; gap: 12px; padding: 0 0 4px; }
|
|
387
|
+
.mx-collapsible--bordered .mx-collapsible__header { padding: 8px 8px 8px 10px; }
|
|
388
|
+
.mx-collapsible__title {
|
|
389
|
+
flex: 1; min-width: 0; font-weight: var(--fw-medium); font-size: 14px; line-height: 1.4;
|
|
390
|
+
color: rgb(var(--fg-primary)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
391
|
+
}
|
|
392
|
+
.mx-collapsible__toggle {
|
|
393
|
+
flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--radius-full);
|
|
394
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
395
|
+
border: 1px solid rgb(var(--border-primary));
|
|
396
|
+
background: rgb(var(--bg-secondary)); color: rgb(var(--fg-secondary));
|
|
397
|
+
cursor: pointer; transition: background 140ms ease, color 140ms ease;
|
|
398
|
+
}
|
|
399
|
+
.mx-collapsible__toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(var(--ring-focus)); }
|
|
400
|
+
.mx-collapsible__chev { display: inline-flex; transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
|
|
401
|
+
.mx-collapsible.is-open .mx-collapsible__chev { transform: rotate(180deg); }
|
|
402
|
+
.mx-collapsible__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms cubic-bezier(0.4, 0, 0.2, 1); }
|
|
403
|
+
.mx-collapsible.is-open .mx-collapsible__panel { grid-template-rows: 1fr; }
|
|
404
|
+
.mx-collapsible__panel-inner { overflow: hidden; }
|
|
405
|
+
.mx-collapsible__content { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 0; }
|
|
406
|
+
.mx-collapsible--bordered .mx-collapsible__content { padding: 4px 2px 2px; }
|
|
407
|
+
.mx-collapsible--accent-iris.is-open .mx-collapsible__toggle { background: rgb(var(--iris-3)); color: rgb(var(--iris-11)); }
|
|
408
|
+
.mx-collapsible--accent-indigo.is-open .mx-collapsible__toggle { background: rgb(var(--indigo-3)); color: rgb(var(--indigo-11)); }
|
|
409
|
+
.mx-collapsible--accent-green.is-open .mx-collapsible__toggle { background: rgb(var(--green-3)); color: rgb(var(--green-11)); }
|
|
410
|
+
.mx-collapsible--accent-orange.is-open .mx-collapsible__toggle { background: rgb(var(--orange-3)); color: rgb(var(--orange-11)); }
|
|
411
|
+
.mx-collapsible--accent-plum.is-open .mx-collapsible__toggle { background: rgb(var(--plum-3)); color: rgb(var(--plum-11)); }
|
|
412
|
+
.mx-collapsible--accent-red.is-open .mx-collapsible__toggle { background: rgb(var(--red-3)); color: rgb(var(--red-11)); }
|
|
413
|
+
@media (prefers-reduced-motion: reduce) {
|
|
414
|
+
.mx-collapsible__chev, .mx-collapsible__panel { transition: none; }
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/* ============================================================
|
|
418
|
+
Mercury — NEW component styles (mx.7.2 · import batch 2, wave 2)
|
|
419
|
+
Token-only; .mx-* idiom. Code accent ramps read --<ramp>-9/11.
|
|
420
|
+
============================================================ */
|
|
421
|
+
|
|
422
|
+
/* ============================================================
|
|
423
|
+
DATALIST .mx-datalist (data-display)
|
|
424
|
+
Semantic <dl> term/description pairs. horizontal = term beside
|
|
425
|
+
value in a labelWidth column; vertical = stacked. Term ink
|
|
426
|
+
--fg-secondary, value ink --fg-primary.
|
|
427
|
+
============================================================ */
|
|
428
|
+
.mx-datalist { margin: 0; display: flex; flex-direction: column; font-family: var(--font-primary); }
|
|
429
|
+
.mx-datalist--sm { gap: 10px; }
|
|
430
|
+
.mx-datalist--md { gap: 14px; }
|
|
431
|
+
.mx-datalist--lg { gap: 18px; }
|
|
432
|
+
.mx-datalist__row { display: flex; min-width: 0; }
|
|
433
|
+
.mx-datalist--horizontal .mx-datalist__row { flex-direction: row; gap: 16px; align-items: baseline; }
|
|
434
|
+
.mx-datalist--vertical .mx-datalist__row { flex-direction: column; gap: 3px; align-items: stretch; }
|
|
435
|
+
.mx-datalist__label { flex-shrink: 0; color: rgb(var(--fg-secondary)); font-weight: var(--fw-regular); line-height: 1.5; }
|
|
436
|
+
.mx-datalist__value { margin: 0; min-width: 0; color: rgb(var(--fg-primary)); font-weight: var(--fw-medium); line-height: 1.5; word-break: break-word; }
|
|
437
|
+
.mx-datalist--horizontal .mx-datalist__value { flex: 1; }
|
|
438
|
+
.mx-datalist--sm .mx-datalist__label, .mx-datalist--sm .mx-datalist__value { font-size: 13px; }
|
|
439
|
+
.mx-datalist--md .mx-datalist__label, .mx-datalist--md .mx-datalist__value { font-size: 14px; }
|
|
440
|
+
.mx-datalist--lg .mx-datalist__label, .mx-datalist--lg .mx-datalist__value { font-size: 16px; }
|
|
441
|
+
|
|
442
|
+
/* ============================================================
|
|
443
|
+
CODE .mx-code (data-display)
|
|
444
|
+
DM Mono on a tinted surface. inline = <code>, block = <pre>.
|
|
445
|
+
variant soft/solid/outline/ghost picks the surface; accent
|
|
446
|
+
re-skins it via .mx-code--accent-<id> compounded with variant.
|
|
447
|
+
============================================================ */
|
|
448
|
+
.mx-code { font-family: var(--font-secondary); font-weight: var(--fw-medium); letter-spacing: -0.01em; line-height: 1.3; }
|
|
449
|
+
.mx-code--sm { font-size: 12px; }
|
|
450
|
+
.mx-code--md { font-size: 13px; }
|
|
451
|
+
.mx-code--lg { font-size: 15px; }
|
|
452
|
+
.mx-code:not(.mx-code--block) { display: inline; white-space: normal; }
|
|
453
|
+
.mx-code--sm:not(.mx-code--block) { padding: 1px 5px; border-radius: var(--radius-4); }
|
|
454
|
+
.mx-code--md:not(.mx-code--block) { padding: 2px 6px; border-radius: var(--radius-6); }
|
|
455
|
+
.mx-code--lg:not(.mx-code--block) { padding: 3px 8px; border-radius: var(--radius-6); }
|
|
456
|
+
.mx-code--block { display: block; white-space: pre; overflow-x: auto; padding: 16px; border-radius: var(--radius-8); line-height: 1.6; }
|
|
457
|
+
/* variant surfaces (no accent) */
|
|
458
|
+
.mx-code--soft { background: rgb(var(--bg-tertiary)); color: rgb(var(--fg-primary)); }
|
|
459
|
+
.mx-code--solid { background: rgb(var(--bg-inverse)); color: rgb(var(--fg-inverse)); }
|
|
460
|
+
.mx-code--outline { background: transparent; color: rgb(var(--fg-primary)); box-shadow: inset 0 0 0 1px rgb(var(--border-primary)); }
|
|
461
|
+
.mx-code--ghost { background: transparent; color: rgb(var(--fg-secondary)); }
|
|
462
|
+
/* accent — iris */
|
|
463
|
+
.mx-code--accent-iris.mx-code--soft { background: rgb(var(--iris-9) / 0.12); color: rgb(var(--iris-11)); }
|
|
464
|
+
.mx-code--accent-iris.mx-code--solid { background: rgb(var(--iris-9)); color: rgb(var(--slate-1)); }
|
|
465
|
+
.mx-code--accent-iris.mx-code--outline { color: rgb(var(--iris-11)); box-shadow: inset 0 0 0 1px rgb(var(--iris-9) / 0.4); }
|
|
466
|
+
.mx-code--accent-iris.mx-code--ghost { color: rgb(var(--iris-11)); }
|
|
467
|
+
/* accent — indigo */
|
|
468
|
+
.mx-code--accent-indigo.mx-code--soft { background: rgb(var(--indigo-9) / 0.12); color: rgb(var(--indigo-11)); }
|
|
469
|
+
.mx-code--accent-indigo.mx-code--solid { background: rgb(var(--indigo-9)); color: rgb(var(--slate-1)); }
|
|
470
|
+
.mx-code--accent-indigo.mx-code--outline { color: rgb(var(--indigo-11)); box-shadow: inset 0 0 0 1px rgb(var(--indigo-9) / 0.4); }
|
|
471
|
+
.mx-code--accent-indigo.mx-code--ghost { color: rgb(var(--indigo-11)); }
|
|
472
|
+
/* accent — green */
|
|
473
|
+
.mx-code--accent-green.mx-code--soft { background: rgb(var(--green-9) / 0.12); color: rgb(var(--green-11)); }
|
|
474
|
+
.mx-code--accent-green.mx-code--solid { background: rgb(var(--green-9)); color: rgb(var(--slate-1)); }
|
|
475
|
+
.mx-code--accent-green.mx-code--outline { color: rgb(var(--green-11)); box-shadow: inset 0 0 0 1px rgb(var(--green-9) / 0.4); }
|
|
476
|
+
.mx-code--accent-green.mx-code--ghost { color: rgb(var(--green-11)); }
|
|
477
|
+
/* accent — orange (dark ink on the solid fill) */
|
|
478
|
+
.mx-code--accent-orange.mx-code--soft { background: rgb(var(--orange-9) / 0.12); color: rgb(var(--orange-11)); }
|
|
479
|
+
.mx-code--accent-orange.mx-code--solid { background: rgb(var(--orange-9)); color: rgb(var(--slate-12)); }
|
|
480
|
+
.mx-code--accent-orange.mx-code--outline { color: rgb(var(--orange-11)); box-shadow: inset 0 0 0 1px rgb(var(--orange-9) / 0.4); }
|
|
481
|
+
.mx-code--accent-orange.mx-code--ghost { color: rgb(var(--orange-11)); }
|
|
482
|
+
/* accent — plum */
|
|
483
|
+
.mx-code--accent-plum.mx-code--soft { background: rgb(var(--plum-9) / 0.12); color: rgb(var(--plum-11)); }
|
|
484
|
+
.mx-code--accent-plum.mx-code--solid { background: rgb(var(--plum-9)); color: rgb(var(--slate-1)); }
|
|
485
|
+
.mx-code--accent-plum.mx-code--outline { color: rgb(var(--plum-11)); box-shadow: inset 0 0 0 1px rgb(var(--plum-9) / 0.4); }
|
|
486
|
+
.mx-code--accent-plum.mx-code--ghost { color: rgb(var(--plum-11)); }
|
|
487
|
+
/* accent — red */
|
|
488
|
+
.mx-code--accent-red.mx-code--soft { background: rgb(var(--red-9) / 0.12); color: rgb(var(--red-11)); }
|
|
489
|
+
.mx-code--accent-red.mx-code--solid { background: rgb(var(--red-9)); color: rgb(var(--slate-1)); }
|
|
490
|
+
.mx-code--accent-red.mx-code--outline { color: rgb(var(--red-11)); box-shadow: inset 0 0 0 1px rgb(var(--red-9) / 0.4); }
|
|
491
|
+
.mx-code--accent-red.mx-code--ghost { color: rgb(var(--red-11)); }
|
|
492
|
+
|
|
493
|
+
/* ============================================================
|
|
494
|
+
KBD .mx-kbd (data-display)
|
|
495
|
+
A keyboard keycap — DM Mono on a raised --bg-secondary surface
|
|
496
|
+
with a --border-primary inset hairline + a --border-strong
|
|
497
|
+
bottom edge.
|
|
498
|
+
============================================================ */
|
|
499
|
+
.mx-kbd {
|
|
500
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
501
|
+
font-family: var(--font-secondary); font-weight: var(--fw-medium); line-height: 1;
|
|
502
|
+
color: rgb(var(--fg-secondary)); background: rgb(var(--bg-secondary));
|
|
503
|
+
box-shadow: inset 0 0 0 1px rgb(var(--border-primary)), 0 1px 0 rgb(var(--border-strong));
|
|
504
|
+
white-space: nowrap;
|
|
505
|
+
}
|
|
506
|
+
.mx-kbd--sm { height: 18px; min-width: 18px; padding: 0 5px; border-radius: var(--radius-4); font-size: 11px; }
|
|
507
|
+
.mx-kbd--md { height: 22px; min-width: 22px; padding: 0 6px; border-radius: var(--radius-6); font-size: 12px; }
|
|
508
|
+
.mx-kbd--lg { height: 28px; min-width: 28px; padding: 0 8px; border-radius: var(--radius-6); font-size: 14px; }
|
|
509
|
+
|
|
510
|
+
/* ============================================================
|
|
511
|
+
ASPECT RATIO .mx-aspect (layout)
|
|
512
|
+
Width-to-height ratio box; aspect-ratio is a non-color inline
|
|
513
|
+
style. The child fills it absolutely; overflow is clipped.
|
|
514
|
+
============================================================ */
|
|
515
|
+
.mx-aspect { position: relative; width: 100%; overflow: hidden; }
|
|
516
|
+
.mx-aspect__inner { position: absolute; inset: 0; }
|
|
517
|
+
|
|
518
|
+
/* ============================================================
|
|
519
|
+
SCROLLAREA .mx-scrollarea (layout)
|
|
520
|
+
A bounded scroll region with thin, rounded custom scrollbars.
|
|
521
|
+
scrollbars picks the axes; size picks the bar thickness. Thumb
|
|
522
|
+
--border-primary (→ --border-strong on hover) on a transparent
|
|
523
|
+
track. maxHeight/width are non-color inline styles.
|
|
524
|
+
============================================================ */
|
|
525
|
+
.mx-scrollarea { min-height: 0; scrollbar-width: thin; scrollbar-color: rgb(var(--border-strong)) transparent; }
|
|
526
|
+
.mx-scrollarea--vertical { overflow-y: auto; overflow-x: hidden; }
|
|
527
|
+
.mx-scrollarea--horizontal { overflow-x: auto; overflow-y: hidden; }
|
|
528
|
+
.mx-scrollarea--both { overflow: auto; }
|
|
529
|
+
.mx-scrollarea::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
530
|
+
.mx-scrollarea--sm::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
531
|
+
.mx-scrollarea--md::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
532
|
+
.mx-scrollarea--lg::-webkit-scrollbar { width: 12px; height: 12px; }
|
|
533
|
+
.mx-scrollarea::-webkit-scrollbar-track { background: transparent; }
|
|
534
|
+
.mx-scrollarea::-webkit-scrollbar-thumb {
|
|
535
|
+
background: rgb(var(--border-primary)); border-radius: var(--radius-full);
|
|
536
|
+
border: 2px solid transparent; background-clip: padding-box;
|
|
537
|
+
}
|
|
538
|
+
.mx-scrollarea::-webkit-scrollbar-thumb:hover { background: rgb(var(--border-strong)); background-clip: padding-box; }
|
|
539
|
+
.mx-scrollarea::-webkit-scrollbar-corner { background: transparent; }
|
|
540
|
+
|
|
541
|
+
/* ============================================================
|
|
542
|
+
DATEFIELD .mx-datefield (inputs)
|
|
543
|
+
Segmented mm/dd/yyyy spinbutton driven by @mercury-fx/core's
|
|
544
|
+
useDateField. Field glyphs DM Mono (--font-secondary); label
|
|
545
|
+
DM Sans 500 (--font-primary). Box --bg-primary, border
|
|
546
|
+
--border-primary → --border-focus on :focus-within + a 3px
|
|
547
|
+
--ring-focus ring. Separators --fg-tertiary. Per-segment
|
|
548
|
+
width is a non-color inline style.
|
|
549
|
+
============================================================ */
|
|
550
|
+
.mx-datefield { display: inline-flex; flex-direction: column; gap: 7px; cursor: text; }
|
|
551
|
+
.mx-datefield--disabled { opacity: 0.6; cursor: not-allowed; }
|
|
552
|
+
.mx-datefield__lbl { font: 500 14px/1 var(--font-primary); color: rgb(var(--fg-primary)); }
|
|
553
|
+
.mx-datefield__field {
|
|
554
|
+
display: inline-flex; align-items: center; box-sizing: border-box;
|
|
555
|
+
height: 40px; padding: 0 14px; width: 232px; border-radius: var(--radius-8);
|
|
556
|
+
background: rgb(var(--bg-primary)); border: 1px solid rgb(var(--border-primary));
|
|
557
|
+
font: 400 14px/1 var(--font-secondary); color: rgb(var(--fg-primary));
|
|
558
|
+
transition: border-color 120ms, box-shadow 120ms;
|
|
559
|
+
}
|
|
560
|
+
.mx-datefield__field:focus-within { border-color: rgb(var(--border-focus)); box-shadow: 0 0 0 3px rgb(var(--ring-focus)); }
|
|
561
|
+
.mx-datefield__sep { color: rgb(var(--fg-tertiary)); margin: 0 1px; }
|
|
562
|
+
.mx-datefield__seg { border: 0; outline: 0; background: transparent; text-align: center; font: inherit; color: inherit; padding: 0; }
|
|
563
|
+
.mx-datefield--disabled .mx-datefield__seg { cursor: not-allowed; }
|
|
564
|
+
|
|
565
|
+
/* ============================================================
|
|
566
|
+
CALENDAR .mx-calendar (inputs)
|
|
567
|
+
Month-grid day picker over @mercury-fx/core's useCalendar. Box
|
|
568
|
+
--bg-primary, border --border-primary, radius --radius-8.
|
|
569
|
+
Title --fg-primary 500; weekday + nav ink --fg-tertiary; nav
|
|
570
|
+
+ day hover --bg-secondary. Selected day = the --mx-cal-accent
|
|
571
|
+
ramp (--<id>-9, iris default) filled with --fg-on-brand; today
|
|
572
|
+
= an inset 1px accent ring. The prev nav reuses the
|
|
573
|
+
chevron-right glyph rotated 180deg (no chevron-left exists).
|
|
574
|
+
============================================================ */
|
|
575
|
+
.mx-calendar {
|
|
576
|
+
--mx-cal-accent: var(--iris-9); /* default */
|
|
577
|
+
box-sizing: border-box; width: fit-content; padding: 12px;
|
|
578
|
+
background: rgb(var(--bg-primary)); border: 1px solid rgb(var(--border-primary));
|
|
579
|
+
border-radius: var(--radius-8);
|
|
580
|
+
}
|
|
581
|
+
.mx-calendar__header {
|
|
582
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
583
|
+
gap: 8px; margin-block-end: 10px;
|
|
584
|
+
}
|
|
585
|
+
.mx-calendar__title { text-align: center; font: 500 14px/1 var(--font-primary); color: rgb(var(--fg-primary)); }
|
|
586
|
+
.mx-calendar__nav {
|
|
587
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
588
|
+
background: transparent; border: 0; cursor: pointer; color: rgb(var(--fg-tertiary));
|
|
589
|
+
padding: 4px; border-radius: var(--radius-6);
|
|
590
|
+
}
|
|
591
|
+
.mx-calendar__nav:hover { background: rgb(var(--bg-secondary)); }
|
|
592
|
+
.mx-calendar__nav--prev svg { transform: rotate(180deg); }
|
|
593
|
+
.mx-calendar__weekdays,
|
|
594
|
+
.mx-calendar__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
|
|
595
|
+
.mx-calendar__weekday { text-align: center; font: 400 12px/1 var(--font-primary); color: rgb(var(--fg-tertiary)); padding: 4px 0; }
|
|
596
|
+
.mx-calendar__day {
|
|
597
|
+
aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center;
|
|
598
|
+
background: transparent; border: 0; cursor: pointer; border-radius: var(--radius-6);
|
|
599
|
+
font: 400 14px/1 var(--font-primary); color: rgb(var(--fg-primary));
|
|
600
|
+
}
|
|
601
|
+
.mx-calendar__day:hover { background: rgb(var(--bg-secondary)); }
|
|
602
|
+
.mx-calendar__day--outside { opacity: 0.4; }
|
|
603
|
+
.mx-calendar__day--today:not(.mx-calendar__day--selected) { box-shadow: inset 0 0 0 1px rgb(var(--mx-cal-accent)); }
|
|
604
|
+
.mx-calendar__day--selected { background: rgb(var(--mx-cal-accent)); color: rgb(var(--fg-on-brand)); }
|
|
605
|
+
.mx-calendar--accent-iris { --mx-cal-accent: var(--iris-9); }
|
|
606
|
+
.mx-calendar--accent-indigo { --mx-cal-accent: var(--indigo-9); }
|
|
607
|
+
.mx-calendar--accent-green { --mx-cal-accent: var(--green-9); }
|
|
608
|
+
.mx-calendar--accent-orange { --mx-cal-accent: var(--orange-9); }
|
|
609
|
+
.mx-calendar--accent-plum { --mx-cal-accent: var(--plum-9); }
|
|
610
|
+
.mx-calendar--accent-red { --mx-cal-accent: var(--red-9); }
|
|
611
|
+
|
|
612
|
+
/* ============================================================
|
|
613
|
+
Mercury — NEW component styles (mx.7.4 · import batch 4 · overlay family)
|
|
614
|
+
Token-only; .mx-* idiom. The dialog family REUSES the .mx-modal
|
|
615
|
+
backdrop + panel surface (mercury.css) and layers these deltas.
|
|
616
|
+
Static @keyframes replace the prototypes' runtime style injection.
|
|
617
|
+
============================================================ */
|
|
618
|
+
|
|
619
|
+
/* ============================================================
|
|
620
|
+
DIALOG .mx-dialog (overlay — a richer Modal)
|
|
621
|
+
Reuses .mx-modal-backdrop + .mx-modal; adds a description slot,
|
|
622
|
+
a divider header, an absolute close, and the dialog widths.
|
|
623
|
+
============================================================ */
|
|
624
|
+
.mx-dialog-backdrop { z-index: 120; padding: 24px; animation: merc-dialog-fade 140ms ease; }
|
|
625
|
+
.mx-dialog {
|
|
626
|
+
position: relative; /* anchors the absolute close control */
|
|
627
|
+
max-width: 496px; /* md (default) */
|
|
628
|
+
border-radius: var(--radius-20);
|
|
629
|
+
animation: merc-dialog-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
630
|
+
}
|
|
631
|
+
.mx-dialog--sm { max-width: 420px; }
|
|
632
|
+
.mx-dialog--lg { max-width: 640px; }
|
|
633
|
+
.mx-dialog__head { display: flex; flex-direction: column; gap: 6px; padding: 20px 52px 14px 24px; }
|
|
634
|
+
.mx-dialog__title { letter-spacing: -0.01em; }
|
|
635
|
+
.mx-dialog__desc { margin: 0; font: 400 14px/1.5 var(--font-primary); color: rgb(var(--fg-secondary)); }
|
|
636
|
+
.mx-dialog__close { position: absolute; top: 14px; right: 14px; }
|
|
637
|
+
.mx-dialog__divider { height: 1px; background: rgb(var(--border-secondary)); }
|
|
638
|
+
.mx-dialog__body { padding: 20px 24px; font: 400 14px/22px var(--font-primary); color: rgb(var(--fg-secondary)); }
|
|
639
|
+
.mx-dialog__body:first-child { padding-top: 24px; } /* no header → keep top breathing room */
|
|
640
|
+
.mx-dialog__foot { padding: 16px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; }
|
|
641
|
+
|
|
642
|
+
/* ============================================================
|
|
643
|
+
ALERT DIALOG .mx-alert-dialog (overlay)
|
|
644
|
+
Reuses .mx-modal-backdrop + .mx-modal; a padded confirmation
|
|
645
|
+
with stacked title/description and an aligned action row. No
|
|
646
|
+
backdrop dismiss (handled in the component).
|
|
647
|
+
============================================================ */
|
|
648
|
+
.mx-alert-dialog-backdrop { z-index: 120; animation: merc-ad-fade 120ms ease; }
|
|
649
|
+
.mx-alert-dialog {
|
|
650
|
+
max-width: 420px;
|
|
651
|
+
padding: 24px;
|
|
652
|
+
border-radius: var(--radius-16);
|
|
653
|
+
animation: merc-ad-pop 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
654
|
+
}
|
|
655
|
+
.mx-alert-dialog__title { letter-spacing: -0.01em; }
|
|
656
|
+
.mx-alert-dialog__desc { margin: 8px 0 0; font: 400 14px/1.55 var(--font-primary); color: rgb(var(--fg-secondary)); }
|
|
657
|
+
.mx-alert-dialog__extra { margin-top: 12px; }
|
|
658
|
+
.mx-alert-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
|
|
659
|
+
|
|
660
|
+
/* ============================================================
|
|
661
|
+
POPOVER .mx-popover (overlay — anchored, non-modal)
|
|
662
|
+
The panel is portaled + positioned (position:fixed + top/left/
|
|
663
|
+
width) by useAnchoredPosition; this paints the surface. The
|
|
664
|
+
trigger is a bare button wrapping the passed content.
|
|
665
|
+
============================================================ */
|
|
666
|
+
.mx-popover__trigger {
|
|
667
|
+
display: inline-flex; align-items: center; background: transparent; border: 0;
|
|
668
|
+
padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; border-radius: var(--radius-8);
|
|
669
|
+
}
|
|
670
|
+
.mx-popover__trigger:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(var(--ring-focus)); }
|
|
671
|
+
.mx-popover {
|
|
672
|
+
box-sizing: border-box; z-index: 50;
|
|
673
|
+
background: rgb(var(--bg-elevated)); border: 1px solid rgb(var(--border-secondary));
|
|
674
|
+
border-radius: var(--radius-12); box-shadow: var(--shadow-300); padding: 16px;
|
|
675
|
+
font: 400 14px/1.5 var(--font-primary); color: rgb(var(--fg-secondary));
|
|
676
|
+
animation: merc-pop-in 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
677
|
+
}
|
|
678
|
+
.mx-popover:focus { outline: none; } /* focused as a container on open; not an interactive control */
|
|
679
|
+
|
|
680
|
+
/* Static @keyframes (replacing the prototypes' ensureKeyframes() injection). */
|
|
681
|
+
@keyframes merc-dialog-fade { from { opacity: 0; } to { opacity: 1; } }
|
|
682
|
+
@keyframes merc-dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
|
|
683
|
+
@keyframes merc-ad-fade { from { opacity: 0; } to { opacity: 1; } }
|
|
684
|
+
@keyframes merc-ad-pop { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }
|
|
685
|
+
@keyframes merc-pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
|
|
686
|
+
@media (prefers-reduced-motion: reduce) {
|
|
687
|
+
.mx-dialog, .mx-dialog-backdrop, .mx-alert-dialog, .mx-alert-dialog-backdrop, .mx-popover { animation: none; }
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/* ============================================================
|
|
691
|
+
DROPDOWN .mx-dropdown (overlay — trigger-anchored menu)
|
|
692
|
+
Portaled + positioned by useAnchoredPosition; this paints the
|
|
693
|
+
menu surface + rows. `accent` is class-driven — a custom
|
|
694
|
+
property (--mx-accent-mark) read by the check-mark span.
|
|
695
|
+
============================================================ */
|
|
696
|
+
.mx-dropdown__trigger {
|
|
697
|
+
display: inline-flex; align-items: center; background: transparent; border: 0;
|
|
698
|
+
padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; border-radius: var(--radius-8);
|
|
699
|
+
}
|
|
700
|
+
.mx-dropdown__trigger:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(var(--ring-focus)); }
|
|
701
|
+
.mx-dropdown {
|
|
702
|
+
box-sizing: border-box; z-index: 50; display: flex; flex-direction: column; gap: 1px;
|
|
703
|
+
background: rgb(var(--bg-elevated)); border: 1px solid rgb(var(--border-secondary));
|
|
704
|
+
border-radius: var(--radius-12); box-shadow: var(--shadow-300); padding: 5px;
|
|
705
|
+
animation: merc-dd-in 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
706
|
+
}
|
|
707
|
+
.mx-dropdown:focus { outline: none; } /* focused as a container on open; not an interactive control */
|
|
708
|
+
.mx-dropdown--accent-iris { --mx-accent-mark: var(--iris-11); }
|
|
709
|
+
.mx-dropdown--accent-indigo { --mx-accent-mark: var(--indigo-11); }
|
|
710
|
+
.mx-dropdown--accent-green { --mx-accent-mark: var(--green-11); }
|
|
711
|
+
.mx-dropdown--accent-orange { --mx-accent-mark: var(--orange-11); }
|
|
712
|
+
.mx-dropdown--accent-plum { --mx-accent-mark: var(--plum-11); }
|
|
713
|
+
.mx-dropdown--accent-red { --mx-accent-mark: var(--red-11); }
|
|
714
|
+
.mx-dropdown__item {
|
|
715
|
+
display: flex; align-items: center; gap: 8px; width: 100%;
|
|
716
|
+
padding: 8px 10px; border: 0; border-radius: 7px; background: transparent;
|
|
717
|
+
font: 500 13px/1 var(--font-primary); color: rgb(var(--fg-primary));
|
|
718
|
+
text-align: left; cursor: pointer;
|
|
719
|
+
}
|
|
720
|
+
.mx-dropdown__item:hover { background: rgb(var(--bg-hover)); }
|
|
721
|
+
.mx-dropdown__item:focus-visible {
|
|
722
|
+
outline: none; background: rgb(var(--bg-hover)); box-shadow: inset 0 0 0 1px rgb(var(--border-focus));
|
|
723
|
+
}
|
|
724
|
+
.mx-dropdown__item[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
|
|
725
|
+
.mx-dropdown__item[aria-disabled="true"]:hover { background: transparent; }
|
|
726
|
+
.mx-dropdown__check {
|
|
727
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
728
|
+
width: 15px; height: 15px; flex: none; color: rgb(var(--mx-accent-mark, var(--iris-11)));
|
|
729
|
+
}
|
|
730
|
+
.mx-dropdown__icon { flex: none; color: rgb(var(--fg-secondary)); }
|
|
731
|
+
.mx-dropdown__text { flex: 1 1 auto; }
|
|
732
|
+
.mx-dropdown__shortcut {
|
|
733
|
+
flex: none; font: 500 11px/1 var(--font-secondary); letter-spacing: 0.04em; color: rgb(var(--fg-tertiary));
|
|
734
|
+
}
|
|
735
|
+
.mx-dropdown__label {
|
|
736
|
+
padding: 6px 10px 4px; font: 600 11px/1 var(--font-primary);
|
|
737
|
+
letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--fg-tertiary));
|
|
738
|
+
}
|
|
739
|
+
.mx-dropdown__sep { height: 1px; margin: 5px 0; background: rgb(var(--border-secondary)); }
|
|
740
|
+
|
|
741
|
+
/* ============================================================
|
|
742
|
+
CONTEXT MENU .mx-ctx (overlay — pointer-anchored menu)
|
|
743
|
+
Opens at the pointer via useAnchoredPosition({ point }). No
|
|
744
|
+
accent; `danger` is the sole recolour (the negative family).
|
|
745
|
+
============================================================ */
|
|
746
|
+
.mx-ctx {
|
|
747
|
+
box-sizing: border-box; z-index: 50; display: flex; flex-direction: column; gap: 1px;
|
|
748
|
+
background: rgb(var(--bg-elevated)); border: 1px solid rgb(var(--border-secondary));
|
|
749
|
+
border-radius: var(--radius-12); box-shadow: var(--shadow-300); padding: 5px;
|
|
750
|
+
animation: merc-cm-in 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
751
|
+
}
|
|
752
|
+
.mx-ctx:focus { outline: none; }
|
|
753
|
+
.mx-ctx__item {
|
|
754
|
+
display: flex; align-items: center; gap: 8px; width: 100%;
|
|
755
|
+
padding: 8px 10px; border: 0; border-radius: 7px; background: transparent;
|
|
756
|
+
font: 500 13px/1 var(--font-primary); color: rgb(var(--fg-primary));
|
|
757
|
+
text-align: left; cursor: pointer;
|
|
758
|
+
}
|
|
759
|
+
.mx-ctx__item:hover { background: rgb(var(--bg-hover)); }
|
|
760
|
+
.mx-ctx__item:focus-visible {
|
|
761
|
+
outline: none; background: rgb(var(--bg-hover)); box-shadow: inset 0 0 0 1px rgb(var(--border-focus));
|
|
762
|
+
}
|
|
763
|
+
.mx-ctx__item[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
|
|
764
|
+
.mx-ctx__item[aria-disabled="true"]:hover { background: transparent; }
|
|
765
|
+
.mx-ctx__item--danger { color: rgb(var(--fg-negative)); }
|
|
766
|
+
.mx-ctx__item--danger:hover,
|
|
767
|
+
.mx-ctx__item--danger:focus-visible { background: rgb(var(--bg-negative-subtle)); }
|
|
768
|
+
.mx-ctx__icon { flex: none; color: rgb(var(--fg-secondary)); }
|
|
769
|
+
.mx-ctx__item--danger .mx-ctx__icon { color: rgb(var(--fg-negative)); }
|
|
770
|
+
.mx-ctx__text { flex: 1 1 auto; }
|
|
771
|
+
.mx-ctx__shortcut {
|
|
772
|
+
flex: none; font: 500 11px/1 var(--font-secondary); letter-spacing: 0.04em; color: rgb(var(--fg-tertiary));
|
|
773
|
+
}
|
|
774
|
+
.mx-ctx__label {
|
|
775
|
+
padding: 6px 10px 4px; font: 600 11px/1 var(--font-primary);
|
|
776
|
+
letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--fg-tertiary));
|
|
777
|
+
}
|
|
778
|
+
.mx-ctx__sep { height: 1px; margin: 5px 0; background: rgb(var(--border-secondary)); }
|
|
779
|
+
|
|
780
|
+
/* ============================================================
|
|
781
|
+
MENUBAR .mx-menubar (navigation — a horizontal bar of menus)
|
|
782
|
+
The bar is inline; each submenu is portaled + positioned. The
|
|
783
|
+
accent custom-property pair (--mx-accent-mark ink, --mx-accent-
|
|
784
|
+
solid dot) rides on BOTH the bar and each portaled panel (a
|
|
785
|
+
panel is not a DOM descendant of the bar — the cascade would
|
|
786
|
+
not otherwise reach the marks through the Portal).
|
|
787
|
+
============================================================ */
|
|
788
|
+
.mx-menubar {
|
|
789
|
+
display: inline-flex; align-items: center; gap: 2px; padding: 4px;
|
|
790
|
+
background: rgb(var(--bg-secondary)); border: 1px solid rgb(var(--border-secondary));
|
|
791
|
+
border-radius: 10px; box-shadow: var(--shadow-100);
|
|
792
|
+
}
|
|
793
|
+
.mx-menubar--accent-iris { --mx-accent-mark: var(--iris-11); --mx-accent-solid: var(--iris-9); }
|
|
794
|
+
.mx-menubar--accent-indigo { --mx-accent-mark: var(--indigo-11); --mx-accent-solid: var(--indigo-9); }
|
|
795
|
+
.mx-menubar--accent-green { --mx-accent-mark: var(--green-11); --mx-accent-solid: var(--green-9); }
|
|
796
|
+
.mx-menubar--accent-orange { --mx-accent-mark: var(--orange-11); --mx-accent-solid: var(--orange-9); }
|
|
797
|
+
.mx-menubar--accent-plum { --mx-accent-mark: var(--plum-11); --mx-accent-solid: var(--plum-9); }
|
|
798
|
+
.mx-menubar--accent-red { --mx-accent-mark: var(--red-11); --mx-accent-solid: var(--red-9); }
|
|
799
|
+
.mx-menubar__trigger {
|
|
800
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
801
|
+
padding: 6px 10px; border: 0; border-radius: 7px; background: transparent;
|
|
802
|
+
font: 600 13px/1 var(--font-primary); color: rgb(var(--fg-secondary)); cursor: pointer;
|
|
803
|
+
}
|
|
804
|
+
.mx-menubar__trigger:hover { background: rgb(var(--bg-hover)); color: rgb(var(--fg-primary)); }
|
|
805
|
+
.mx-menubar__trigger:focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(var(--ring-focus)); }
|
|
806
|
+
.mx-menubar__trigger--active { background: rgb(var(--bg-hover)); color: rgb(var(--fg-primary)); }
|
|
807
|
+
.mx-menubar__panel {
|
|
808
|
+
box-sizing: border-box; z-index: 50; display: flex; flex-direction: column; gap: 1px; min-width: 200px;
|
|
809
|
+
background: rgb(var(--bg-elevated)); border: 1px solid rgb(var(--border-secondary));
|
|
810
|
+
border-radius: var(--radius-12); box-shadow: var(--shadow-300); padding: 5px;
|
|
811
|
+
animation: merc-menu-in 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
812
|
+
}
|
|
813
|
+
.mx-menubar__panel:focus { outline: none; }
|
|
814
|
+
.mx-menubar__item {
|
|
815
|
+
display: flex; align-items: center; gap: 8px; width: 100%;
|
|
816
|
+
padding: 8px 10px; border: 0; border-radius: 7px; background: transparent;
|
|
817
|
+
font: 500 13px/1 var(--font-primary); color: rgb(var(--fg-primary));
|
|
818
|
+
text-align: left; cursor: pointer;
|
|
819
|
+
}
|
|
820
|
+
.mx-menubar__item:hover { background: rgb(var(--bg-hover)); }
|
|
821
|
+
.mx-menubar__item:focus-visible {
|
|
822
|
+
outline: none; background: rgb(var(--bg-hover)); box-shadow: inset 0 0 0 1px rgb(var(--border-focus));
|
|
823
|
+
}
|
|
824
|
+
.mx-menubar__check {
|
|
825
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
826
|
+
width: 15px; height: 15px; flex: none; color: rgb(var(--mx-accent-mark, var(--iris-11)));
|
|
827
|
+
}
|
|
828
|
+
.mx-menubar__radio {
|
|
829
|
+
display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex: none;
|
|
830
|
+
}
|
|
831
|
+
.mx-menubar__radio-dot {
|
|
832
|
+
width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--mx-accent-solid, var(--iris-9)));
|
|
833
|
+
}
|
|
834
|
+
.mx-menubar__icon { flex: none; color: rgb(var(--fg-secondary)); }
|
|
835
|
+
.mx-menubar__text { flex: 1 1 auto; }
|
|
836
|
+
.mx-menubar__shortcut {
|
|
837
|
+
flex: none; font: 500 11px/1 var(--font-secondary); letter-spacing: 0.04em; color: rgb(var(--fg-tertiary));
|
|
838
|
+
}
|
|
839
|
+
.mx-menubar__label {
|
|
840
|
+
padding: 6px 10px 4px; font: 600 11px/1 var(--font-primary);
|
|
841
|
+
letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--fg-tertiary));
|
|
842
|
+
}
|
|
843
|
+
.mx-menubar__sep { height: 1px; margin: 5px 0; background: rgb(var(--border-secondary)); }
|
|
844
|
+
|
|
845
|
+
/* Static @keyframes for the menu family (replacing the prototypes' ensureKeyframes() injection). */
|
|
846
|
+
@keyframes merc-dd-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
|
|
847
|
+
@keyframes merc-cm-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
|
|
848
|
+
@keyframes merc-menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
|
|
849
|
+
@media (prefers-reduced-motion: reduce) {
|
|
850
|
+
.mx-dropdown, .mx-ctx, .mx-menubar__panel { animation: none; }
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/* ============================================================
|
|
854
|
+
Mercury — NEW component styles (mx.7.5 · import batch 5, wave 2)
|
|
855
|
+
Token-only; .mx-* idiom. The hover-card family (HoverCard +
|
|
856
|
+
LinkPreview) shares one portaled card surface; TabNav restores
|
|
857
|
+
the :focus-visible ring the prototype dropped.
|
|
858
|
+
============================================================ */
|
|
859
|
+
|
|
860
|
+
/* ============================================================
|
|
861
|
+
HOVER CARD / LINK PREVIEW .mx-hovercard / .mx-linkpreview
|
|
862
|
+
(overlay — non-modal, hover/focus-revealed cards)
|
|
863
|
+
Portaled + positioned by useAnchoredPosition (position: fixed +
|
|
864
|
+
top/left/width); these paint the card surface. The two share one
|
|
865
|
+
rule; LinkPreview keeps its own selector so a consumer can target
|
|
866
|
+
the URL-preview variant. Both ride the shared merc-hc-in entrance.
|
|
867
|
+
============================================================ */
|
|
868
|
+
.mx-hovercard,
|
|
869
|
+
.mx-linkpreview {
|
|
870
|
+
box-sizing: border-box; z-index: 50;
|
|
871
|
+
background: rgb(var(--bg-elevated)); border: 1px solid rgb(var(--border-secondary));
|
|
872
|
+
border-radius: var(--radius-12); box-shadow: var(--shadow-300); padding: 16px;
|
|
873
|
+
font: 400 14px/1.5 var(--font-primary); color: rgb(var(--fg-secondary));
|
|
874
|
+
animation: merc-hc-in 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
875
|
+
}
|
|
876
|
+
.mx-hovercard:focus,
|
|
877
|
+
.mx-linkpreview:focus { outline: none; } /* focused as a container; not an interactive control */
|
|
878
|
+
|
|
879
|
+
/* Static @keyframes (replacing the prototypes' ensureKeyframes() injection). */
|
|
880
|
+
@keyframes merc-hc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
|
|
881
|
+
@media (prefers-reduced-motion: reduce) {
|
|
882
|
+
.mx-hovercard, .mx-linkpreview { animation: none; }
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/* ============================================================
|
|
886
|
+
TAB NAV .mx-tabnav (navigation — link-styled tabs)
|
|
887
|
+
A <nav> of <a aria-current="page"> sharing an underline rail.
|
|
888
|
+
Distinct from Tabs (in-page panel switch). The active link takes
|
|
889
|
+
a --bg-brand underline; the :focus-visible ring the source
|
|
890
|
+
prototype dropped is RESTORED (an a11y regression, not carried).
|
|
891
|
+
============================================================ */
|
|
892
|
+
.mx-tabnav {
|
|
893
|
+
display: flex; align-items: stretch; gap: 2px;
|
|
894
|
+
border-bottom: 1px solid rgb(var(--border-secondary));
|
|
895
|
+
font-family: var(--font-primary);
|
|
896
|
+
}
|
|
897
|
+
.mx-tabnav__link {
|
|
898
|
+
display: inline-flex; align-items: center; box-sizing: border-box;
|
|
899
|
+
color: rgb(var(--fg-secondary)); text-decoration: none; cursor: pointer;
|
|
900
|
+
font-weight: var(--fw-medium); white-space: nowrap;
|
|
901
|
+
border-radius: 7px 7px 0 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
|
|
902
|
+
transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
|
|
903
|
+
}
|
|
904
|
+
.mx-tabnav__link:hover { background: rgb(var(--bg-hover)); color: rgb(var(--fg-primary)); }
|
|
905
|
+
.mx-tabnav__link--active {
|
|
906
|
+
font-weight: var(--fw-semi-bold); color: rgb(var(--fg-primary));
|
|
907
|
+
border-bottom-color: rgb(var(--bg-brand));
|
|
908
|
+
}
|
|
909
|
+
.mx-tabnav__link[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
|
|
910
|
+
.mx-tabnav__link[aria-disabled="true"]:hover { background: transparent; color: rgb(var(--fg-secondary)); }
|
|
911
|
+
/* RESTORE the focus ring (the prototype's outline:none was an a11y regression). */
|
|
912
|
+
.mx-tabnav__link:focus-visible {
|
|
913
|
+
outline: 2px solid rgb(var(--border-focus)); outline-offset: -2px;
|
|
914
|
+
box-shadow: 0 0 0 3px rgb(var(--ring-focus));
|
|
915
|
+
}
|
|
916
|
+
/* sizes */
|
|
917
|
+
.mx-tabnav--sm .mx-tabnav__link { height: 36px; padding: 0 12px; font-size: 13px; }
|
|
918
|
+
.mx-tabnav--md .mx-tabnav__link { height: 44px; padding: 0 14px; font-size: 14px; }
|
|
919
|
+
|
|
920
|
+
/* ═══════════════════════════════════════════════════════════════════════════
|
|
921
|
+
mx.7.3.3 · selection composites
|
|
922
|
+
CheckboxGroup · RadioGroup (grouped primitives) · CheckboxCards · RadioCards
|
|
923
|
+
(card shells composing the same primitives). Accent ramps reuse the mx.7.1
|
|
924
|
+
token mapping: fills/rings -> --<id>-9 · soft bg -> --<id>-3 · text -> --<id>-11.
|
|
925
|
+
The primitives themselves take no accent prop (INV-5) — the group/card wrapper
|
|
926
|
+
class tints its own composed Checkbox/Radio by overriding the checked fill.
|
|
927
|
+
═══════════════════════════════════════════════════════════════════════════ */
|
|
928
|
+
|
|
929
|
+
/* ── Group layout ─────────────────────────────────────────────────────────── */
|
|
930
|
+
.mx-checkbox-group,
|
|
931
|
+
.mx-radio-group { display: flex; flex-direction: column; gap: var(--space-8); }
|
|
932
|
+
.mx-checkbox-group--horizontal,
|
|
933
|
+
.mx-radio-group--horizontal { flex-direction: row; flex-wrap: wrap; gap: var(--space-16); }
|
|
934
|
+
|
|
935
|
+
/* ── CheckboxGroup accent · tint the checked/indeterminate box fill ───────── */
|
|
936
|
+
.mx-checkbox-group--accent-iris .mx-cb input:checked ~ .mx-cb__box,
|
|
937
|
+
.mx-checkbox-group--accent-iris .mx-cb input:indeterminate ~ .mx-cb__box { background: rgb(var(--iris-9)); box-shadow: inset 0 0 0 1.5px rgb(var(--iris-9)); }
|
|
938
|
+
.mx-checkbox-group--accent-indigo .mx-cb input:checked ~ .mx-cb__box,
|
|
939
|
+
.mx-checkbox-group--accent-indigo .mx-cb input:indeterminate ~ .mx-cb__box { background: rgb(var(--indigo-9)); box-shadow: inset 0 0 0 1.5px rgb(var(--indigo-9)); }
|
|
940
|
+
.mx-checkbox-group--accent-green .mx-cb input:checked ~ .mx-cb__box,
|
|
941
|
+
.mx-checkbox-group--accent-green .mx-cb input:indeterminate ~ .mx-cb__box { background: rgb(var(--green-9)); box-shadow: inset 0 0 0 1.5px rgb(var(--green-9)); }
|
|
942
|
+
.mx-checkbox-group--accent-orange .mx-cb input:checked ~ .mx-cb__box,
|
|
943
|
+
.mx-checkbox-group--accent-orange .mx-cb input:indeterminate ~ .mx-cb__box { background: rgb(var(--orange-9)); box-shadow: inset 0 0 0 1.5px rgb(var(--orange-9)); }
|
|
944
|
+
.mx-checkbox-group--accent-plum .mx-cb input:checked ~ .mx-cb__box,
|
|
945
|
+
.mx-checkbox-group--accent-plum .mx-cb input:indeterminate ~ .mx-cb__box { background: rgb(var(--plum-9)); box-shadow: inset 0 0 0 1.5px rgb(var(--plum-9)); }
|
|
946
|
+
.mx-checkbox-group--accent-red .mx-cb input:checked ~ .mx-cb__box,
|
|
947
|
+
.mx-checkbox-group--accent-red .mx-cb input:indeterminate ~ .mx-cb__box { background: rgb(var(--red-9)); box-shadow: inset 0 0 0 1.5px rgb(var(--red-9)); }
|
|
948
|
+
|
|
949
|
+
/* ── RadioGroup accent · tint the checked ring (+ keep the focus halo) ────── */
|
|
950
|
+
.mx-radio-group--accent-iris .mx-rd input:checked ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--iris-9)); }
|
|
951
|
+
.mx-radio-group--accent-iris .mx-rd input:checked:focus-visible ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--iris-9)), 0 0 0 3px rgb(var(--ring-focus)); }
|
|
952
|
+
.mx-radio-group--accent-indigo .mx-rd input:checked ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--indigo-9)); }
|
|
953
|
+
.mx-radio-group--accent-indigo .mx-rd input:checked:focus-visible ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--indigo-9)), 0 0 0 3px rgb(var(--ring-focus)); }
|
|
954
|
+
.mx-radio-group--accent-green .mx-rd input:checked ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--green-9)); }
|
|
955
|
+
.mx-radio-group--accent-green .mx-rd input:checked:focus-visible ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--green-9)), 0 0 0 3px rgb(var(--ring-focus)); }
|
|
956
|
+
.mx-radio-group--accent-orange .mx-rd input:checked ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--orange-9)); }
|
|
957
|
+
.mx-radio-group--accent-orange .mx-rd input:checked:focus-visible ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--orange-9)), 0 0 0 3px rgb(var(--ring-focus)); }
|
|
958
|
+
.mx-radio-group--accent-plum .mx-rd input:checked ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--plum-9)); }
|
|
959
|
+
.mx-radio-group--accent-plum .mx-rd input:checked:focus-visible ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--plum-9)), 0 0 0 3px rgb(var(--ring-focus)); }
|
|
960
|
+
.mx-radio-group--accent-red .mx-rd input:checked ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--red-9)); }
|
|
961
|
+
.mx-radio-group--accent-red .mx-rd input:checked:focus-visible ~ .mx-rd__ring { box-shadow: inset 0 0 0 5px rgb(var(--red-9)), 0 0 0 3px rgb(var(--ring-focus)); }
|
|
962
|
+
|
|
963
|
+
/* ── Cards layout · a grid of card shells (columns set inline per instance) ── */
|
|
964
|
+
.mx-checkbox-cards,
|
|
965
|
+
.mx-radio-cards { display: grid; gap: var(--space-8); }
|
|
966
|
+
.mx-checkbox-cards__card,
|
|
967
|
+
.mx-radio-cards__card {
|
|
968
|
+
border: 1px solid rgb(var(--border-primary));
|
|
969
|
+
border-radius: var(--radius-8);
|
|
970
|
+
background: rgb(var(--bg-primary));
|
|
971
|
+
transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
|
|
972
|
+
}
|
|
973
|
+
.mx-checkbox-cards--sm .mx-checkbox-cards__card,
|
|
974
|
+
.mx-radio-cards--sm .mx-radio-cards__card { padding: var(--space-8); }
|
|
975
|
+
.mx-checkbox-cards--md .mx-checkbox-cards__card,
|
|
976
|
+
.mx-radio-cards--md .mx-radio-cards__card { padding: var(--space-12); }
|
|
977
|
+
.mx-checkbox-cards--lg .mx-checkbox-cards__card,
|
|
978
|
+
.mx-radio-cards--lg .mx-radio-cards__card { padding: var(--space-16); }
|
|
979
|
+
.mx-checkbox-cards__card.is-selected,
|
|
980
|
+
.mx-radio-cards__card.is-selected {
|
|
981
|
+
border-color: transparent;
|
|
982
|
+
background: rgb(var(--bg-brand-subtle));
|
|
983
|
+
box-shadow: inset 0 0 0 2px rgb(var(--bg-brand));
|
|
984
|
+
}
|
|
985
|
+
.mx-checkbox-cards__card.is-disabled,
|
|
986
|
+
.mx-radio-cards__card.is-disabled { opacity: 0.55; cursor: not-allowed; }
|
|
987
|
+
|
|
988
|
+
/* ── Card body layout (icon + text stack inside the composed control label) ── */
|
|
989
|
+
.mx-checkbox-cards__body,
|
|
990
|
+
.mx-radio-cards__body { display: inline-flex; align-items: flex-start; gap: var(--space-8); }
|
|
991
|
+
.mx-checkbox-cards__icon,
|
|
992
|
+
.mx-radio-cards__icon { flex-shrink: 0; color: rgb(var(--fg-secondary)); }
|
|
993
|
+
.mx-checkbox-cards__text,
|
|
994
|
+
.mx-radio-cards__text { display: flex; flex-direction: column; gap: var(--space-2); }
|
|
995
|
+
.mx-checkbox-cards__label,
|
|
996
|
+
.mx-radio-cards__label { font-weight: var(--fw-medium); color: rgb(var(--fg-primary)); }
|
|
997
|
+
.mx-checkbox-cards__desc,
|
|
998
|
+
.mx-radio-cards__desc { font-size: 13px; color: rgb(var(--fg-secondary)); }
|
|
999
|
+
|
|
1000
|
+
/* ── CheckboxCards accent · the selected card ring + soft wash ────────────── */
|
|
1001
|
+
.mx-checkbox-cards--accent-iris .mx-checkbox-cards__card.is-selected { background: rgb(var(--iris-3)); box-shadow: inset 0 0 0 2px rgb(var(--iris-9)); }
|
|
1002
|
+
.mx-checkbox-cards--accent-indigo .mx-checkbox-cards__card.is-selected { background: rgb(var(--indigo-3)); box-shadow: inset 0 0 0 2px rgb(var(--indigo-9)); }
|
|
1003
|
+
.mx-checkbox-cards--accent-green .mx-checkbox-cards__card.is-selected { background: rgb(var(--green-3)); box-shadow: inset 0 0 0 2px rgb(var(--green-9)); }
|
|
1004
|
+
.mx-checkbox-cards--accent-orange .mx-checkbox-cards__card.is-selected { background: rgb(var(--orange-3)); box-shadow: inset 0 0 0 2px rgb(var(--orange-9)); }
|
|
1005
|
+
.mx-checkbox-cards--accent-plum .mx-checkbox-cards__card.is-selected { background: rgb(var(--plum-3)); box-shadow: inset 0 0 0 2px rgb(var(--plum-9)); }
|
|
1006
|
+
.mx-checkbox-cards--accent-red .mx-checkbox-cards__card.is-selected { background: rgb(var(--red-3)); box-shadow: inset 0 0 0 2px rgb(var(--red-9)); }
|
|
1007
|
+
|
|
1008
|
+
/* ── RadioCards accent · the selected card ring + soft wash ───────────────── */
|
|
1009
|
+
.mx-radio-cards--accent-iris .mx-radio-cards__card.is-selected { background: rgb(var(--iris-3)); box-shadow: inset 0 0 0 2px rgb(var(--iris-9)); }
|
|
1010
|
+
.mx-radio-cards--accent-indigo .mx-radio-cards__card.is-selected { background: rgb(var(--indigo-3)); box-shadow: inset 0 0 0 2px rgb(var(--indigo-9)); }
|
|
1011
|
+
.mx-radio-cards--accent-green .mx-radio-cards__card.is-selected { background: rgb(var(--green-3)); box-shadow: inset 0 0 0 2px rgb(var(--green-9)); }
|
|
1012
|
+
.mx-radio-cards--accent-orange .mx-radio-cards__card.is-selected { background: rgb(var(--orange-3)); box-shadow: inset 0 0 0 2px rgb(var(--orange-9)); }
|
|
1013
|
+
.mx-radio-cards--accent-plum .mx-radio-cards__card.is-selected { background: rgb(var(--plum-3)); box-shadow: inset 0 0 0 2px rgb(var(--plum-9)); }
|
|
1014
|
+
.mx-radio-cards--accent-red .mx-radio-cards__card.is-selected { background: rgb(var(--red-3)); box-shadow: inset 0 0 0 2px rgb(var(--red-9)); }
|
|
1015
|
+
|
|
1016
|
+
/* ── mx.7.3.3 folds ─────────────────────────────────────────────────────────
|
|
1017
|
+
Textarea size scale (md = the base .mx-ta__inp default, no rule needed) and
|
|
1018
|
+
the ToggleGroup accent ramp (tint the grouped on-fill; the base
|
|
1019
|
+
.mx-tgl--grouped.is-on is a soft --bg-secondary fill, so the accent keeps the
|
|
1020
|
+
soft-bg pattern: --<id>-3 fill + --<id>-11 text). Additive; token-only.
|
|
1021
|
+
─────────────────────────────────────────────────────────────────────────── */
|
|
1022
|
+
.mx-ta--sm .mx-ta__inp { padding: 8px 12px; font-size: 13px; }
|
|
1023
|
+
.mx-ta--lg .mx-ta__inp { padding: 14px 16px; font-size: 15px; }
|
|
1024
|
+
|
|
1025
|
+
.mx-tgl-grp--accent-iris .mx-tgl--grouped.is-on { background: rgb(var(--iris-3)); color: rgb(var(--iris-11)); }
|
|
1026
|
+
.mx-tgl-grp--accent-indigo .mx-tgl--grouped.is-on { background: rgb(var(--indigo-3)); color: rgb(var(--indigo-11)); }
|
|
1027
|
+
.mx-tgl-grp--accent-green .mx-tgl--grouped.is-on { background: rgb(var(--green-3)); color: rgb(var(--green-11)); }
|
|
1028
|
+
.mx-tgl-grp--accent-orange .mx-tgl--grouped.is-on { background: rgb(var(--orange-3)); color: rgb(var(--orange-11)); }
|
|
1029
|
+
.mx-tgl-grp--accent-plum .mx-tgl--grouped.is-on { background: rgb(var(--plum-3)); color: rgb(var(--plum-11)); }
|
|
1030
|
+
.mx-tgl-grp--accent-red .mx-tgl--grouped.is-on { background: rgb(var(--red-3)); color: rgb(var(--red-11)); }
|