@abuzareal/contour-ui 0.1.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/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +111 -0
- package/RELEASING.md +37 -0
- package/SECURITY.md +11 -0
- package/dist/components/hero/SceneBoundary.d.ts +14 -0
- package/dist/components/hero/SceneBoundary.js +11 -0
- package/dist/components/hero/Sculpture.d.ts +4 -0
- package/dist/components/hero/Sculpture.js +54 -0
- package/dist/components/three/ObjectStudy.d.ts +7 -0
- package/dist/components/three/ObjectStudy.js +65 -0
- package/dist/components/ui/Alert.d.ts +13 -0
- package/dist/components/ui/Alert.js +15 -0
- package/dist/components/ui/Avatar.d.ts +7 -0
- package/dist/components/ui/Avatar.js +12 -0
- package/dist/components/ui/Badge.d.ts +11 -0
- package/dist/components/ui/Badge.js +5 -0
- package/dist/components/ui/BrandMark.d.ts +7 -0
- package/dist/components/ui/BrandMark.js +5 -0
- package/dist/components/ui/Breadcrumbs.d.ts +10 -0
- package/dist/components/ui/Breadcrumbs.js +8 -0
- package/dist/components/ui/Button.d.ts +12 -0
- package/dist/components/ui/Button.js +6 -0
- package/dist/components/ui/Card.d.ts +13 -0
- package/dist/components/ui/Card.js +5 -0
- package/dist/components/ui/Checkbox.d.ts +9 -0
- package/dist/components/ui/Checkbox.js +14 -0
- package/dist/components/ui/CountUp.d.ts +9 -0
- package/dist/components/ui/CountUp.js +48 -0
- package/dist/components/ui/DataTable.d.ts +16 -0
- package/dist/components/ui/DataTable.js +24 -0
- package/dist/components/ui/DepthButton.d.ts +6 -0
- package/dist/components/ui/DepthButton.js +4 -0
- package/dist/components/ui/Dialog.d.ts +12 -0
- package/dist/components/ui/Dialog.js +27 -0
- package/dist/components/ui/Disclosure.d.ts +11 -0
- package/dist/components/ui/Disclosure.js +5 -0
- package/dist/components/ui/Divider.d.ts +5 -0
- package/dist/components/ui/Divider.js +6 -0
- package/dist/components/ui/DropdownMenu.d.ts +14 -0
- package/dist/components/ui/DropdownMenu.js +38 -0
- package/dist/components/ui/EmptyState.d.ts +9 -0
- package/dist/components/ui/EmptyState.js +4 -0
- package/dist/components/ui/ExternalLink.d.ts +4 -0
- package/dist/components/ui/ExternalLink.js +5 -0
- package/dist/components/ui/Field.d.ts +15 -0
- package/dist/components/ui/Field.js +6 -0
- package/dist/components/ui/FlipCard.d.ts +8 -0
- package/dist/components/ui/FlipCard.js +9 -0
- package/dist/components/ui/IconButton.d.ts +11 -0
- package/dist/components/ui/IconButton.js +5 -0
- package/dist/components/ui/Kbd.d.ts +5 -0
- package/dist/components/ui/Kbd.js +4 -0
- package/dist/components/ui/Magnetic.d.ts +8 -0
- package/dist/components/ui/Magnetic.js +19 -0
- package/dist/components/ui/Marquee.d.ts +7 -0
- package/dist/components/ui/Marquee.js +7 -0
- package/dist/components/ui/Pagination.d.ts +7 -0
- package/dist/components/ui/Pagination.js +15 -0
- package/dist/components/ui/Popover.d.ts +10 -0
- package/dist/components/ui/Popover.js +18 -0
- package/dist/components/ui/ProgressBar.d.ts +7 -0
- package/dist/components/ui/ProgressBar.js +6 -0
- package/dist/components/ui/RadioGroup.d.ts +14 -0
- package/dist/components/ui/RadioGroup.js +11 -0
- package/dist/components/ui/Reveal.d.ts +9 -0
- package/dist/components/ui/Reveal.js +24 -0
- package/dist/components/ui/RevealHeading.d.ts +12 -0
- package/dist/components/ui/RevealHeading.js +4 -0
- package/dist/components/ui/ScrollProgress.d.ts +1 -0
- package/dist/components/ui/ScrollProgress.js +27 -0
- package/dist/components/ui/SectionLabel.d.ts +8 -0
- package/dist/components/ui/SectionLabel.js +5 -0
- package/dist/components/ui/SegmentedControl.d.ts +10 -0
- package/dist/components/ui/SegmentedControl.js +20 -0
- package/dist/components/ui/SelectField.d.ts +13 -0
- package/dist/components/ui/SelectField.js +10 -0
- package/dist/components/ui/Skeleton.d.ts +6 -0
- package/dist/components/ui/Skeleton.js +5 -0
- package/dist/components/ui/Slider.d.ts +12 -0
- package/dist/components/ui/Slider.js +10 -0
- package/dist/components/ui/SocialIcons.d.ts +6 -0
- package/dist/components/ui/SocialIcons.js +7 -0
- package/dist/components/ui/Spinner.d.ts +6 -0
- package/dist/components/ui/Spinner.js +8 -0
- package/dist/components/ui/Stat.d.ts +8 -0
- package/dist/components/ui/Stat.js +4 -0
- package/dist/components/ui/Stepper.d.ts +10 -0
- package/dist/components/ui/Stepper.js +15 -0
- package/dist/components/ui/Switch.d.ts +8 -0
- package/dist/components/ui/Switch.js +7 -0
- package/dist/components/ui/Tabs.d.ts +13 -0
- package/dist/components/ui/Tabs.js +41 -0
- package/dist/components/ui/Tag.d.ts +5 -0
- package/dist/components/ui/Tag.js +8 -0
- package/dist/components/ui/TextArea.d.ts +10 -0
- package/dist/components/ui/TextArea.js +23 -0
- package/dist/components/ui/TextField.d.ts +12 -0
- package/dist/components/ui/TextField.js +13 -0
- package/dist/components/ui/ThemeToggle.d.ts +5 -0
- package/dist/components/ui/ThemeToggle.js +9 -0
- package/dist/components/ui/TiltCard.d.ts +8 -0
- package/dist/components/ui/TiltCard.js +23 -0
- package/dist/components/ui/Timeline.d.ts +9 -0
- package/dist/components/ui/Timeline.js +6 -0
- package/dist/components/ui/ToastProvider.d.ts +5 -0
- package/dist/components/ui/ToastProvider.js +29 -0
- package/dist/components/ui/Tooltip.d.ts +11 -0
- package/dist/components/ui/Tooltip.js +16 -0
- package/dist/fonts.css +3 -0
- package/dist/hooks/useClipboardCopy.d.ts +5 -0
- package/dist/hooks/useClipboardCopy.js +21 -0
- package/dist/hooks/useDismiss.d.ts +3 -0
- package/dist/hooks/useDismiss.js +22 -0
- package/dist/hooks/useHeaderScroll.d.ts +7 -0
- package/dist/hooks/useHeaderScroll.js +40 -0
- package/dist/hooks/useIdleTrigger.d.ts +1 -0
- package/dist/hooks/useIdleTrigger.js +19 -0
- package/dist/hooks/useInitialHashScroll.d.ts +1 -0
- package/dist/hooks/useInitialHashScroll.js +28 -0
- package/dist/hooks/useMobileMenu.d.ts +3 -0
- package/dist/hooks/useMobileMenu.js +34 -0
- package/dist/hooks/useMotionPreference.d.ts +1 -0
- package/dist/hooks/useMotionPreference.js +13 -0
- package/dist/hooks/usePrintPreparation.d.ts +1 -0
- package/dist/hooks/usePrintPreparation.js +29 -0
- package/dist/hooks/useScrollSpy.d.ts +1 -0
- package/dist/hooks/useScrollSpy.js +36 -0
- package/dist/hooks/useSmoothScroll.d.ts +1 -0
- package/dist/hooks/useSmoothScroll.js +18 -0
- package/dist/hooks/useTheme.d.ts +5 -0
- package/dist/hooks/useTheme.js +98 -0
- package/dist/hooks/useThreeStage.d.ts +28 -0
- package/dist/hooks/useThreeStage.js +155 -0
- package/dist/hooks/useToast.d.ts +11 -0
- package/dist/hooks/useToast.js +9 -0
- package/dist/index.d.ts +129 -0
- package/dist/index.js +68 -0
- package/dist/kit/actions.css +209 -0
- package/dist/kit/data-display.css +496 -0
- package/dist/kit/effects.css +144 -0
- package/dist/kit/feedback.css +316 -0
- package/dist/kit/forms.css +363 -0
- package/dist/kit/index.css +9 -0
- package/dist/kit/navigation.css +262 -0
- package/dist/kit/overlays.css +299 -0
- package/dist/lib/a11y.d.ts +3 -0
- package/dist/lib/a11y.js +3 -0
- package/dist/lib/classNames.d.ts +6 -0
- package/dist/lib/classNames.js +4 -0
- package/dist/lib/format.d.ts +3 -0
- package/dist/lib/format.js +3 -0
- package/dist/lib/keyboard.d.ts +8 -0
- package/dist/lib/keyboard.js +22 -0
- package/dist/lib/motion.d.ts +3 -0
- package/dist/lib/motion.js +4 -0
- package/dist/lib/safeHref.d.ts +2 -0
- package/dist/lib/safeHref.js +14 -0
- package/dist/lib/storage.d.ts +10 -0
- package/dist/lib/storage.js +25 -0
- package/dist/lib/themeBootstrap.d.ts +6 -0
- package/dist/lib/themeBootstrap.js +19 -0
- package/dist/lib/threeMaterials.d.ts +9 -0
- package/dist/lib/threeMaterials.js +62 -0
- package/dist/lib/threeStudies.d.ts +16 -0
- package/dist/lib/threeStudies.js +39 -0
- package/dist/motion.css +59 -0
- package/dist/reset.css +180 -0
- package/dist/scroll.d.ts +1 -0
- package/dist/scroll.js +1 -0
- package/dist/styles.css +23 -0
- package/dist/theme-toggle.css +38 -0
- package/dist/three.d.ts +8 -0
- package/dist/three.js +5 -0
- package/dist/tokens.css +127 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +1 -0
- package/dist/ui.css +178 -0
- package/package.json +101 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/* Kit — actions: buttons, icon buttons, segmented control, and the magnetic wrapper. */
|
|
2
|
+
|
|
3
|
+
.button {
|
|
4
|
+
--button-bg: var(--invert-bg);
|
|
5
|
+
--button-fg: var(--invert-fg);
|
|
6
|
+
--button-border: transparent;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
gap: 10px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
padding-inline: 22px;
|
|
13
|
+
border: 1px solid var(--button-border);
|
|
14
|
+
border-radius: var(--radius-pill);
|
|
15
|
+
background: var(--button-bg);
|
|
16
|
+
color: var(--button-fg);
|
|
17
|
+
font-size: 13px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
transition:
|
|
21
|
+
background var(--duration-fast),
|
|
22
|
+
color var(--duration-fast),
|
|
23
|
+
border-color var(--duration-fast),
|
|
24
|
+
transform var(--duration-base) var(--ease);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.button:hover:not(:disabled) {
|
|
28
|
+
--button-bg: var(--acid);
|
|
29
|
+
--button-fg: var(--ink);
|
|
30
|
+
--button-border: var(--acid);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.button:active:not(:disabled) {
|
|
34
|
+
transform: scale(0.97);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.button:disabled {
|
|
38
|
+
opacity: 0.45;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Link inside running text: a hairline that thickens into an acid underline on hover. */
|
|
42
|
+
.inline-link {
|
|
43
|
+
text-decoration: underline;
|
|
44
|
+
text-decoration-thickness: 1px;
|
|
45
|
+
text-underline-offset: 0.22em;
|
|
46
|
+
text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
|
|
47
|
+
transition:
|
|
48
|
+
text-decoration-color var(--duration-fast),
|
|
49
|
+
text-decoration-thickness var(--duration-fast);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.inline-link:hover {
|
|
53
|
+
text-decoration-color: var(--olive);
|
|
54
|
+
text-decoration-thickness: 3px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.button[aria-busy="true"] {
|
|
58
|
+
opacity: 0.8;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.button-icon {
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
transition: transform var(--duration-base) var(--ease);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.button:hover:not(:disabled) .button-icon {
|
|
67
|
+
transform: translateX(3px);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.button-accent {
|
|
71
|
+
--button-bg: var(--acid);
|
|
72
|
+
--button-fg: var(--ink);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.button-accent:hover:not(:disabled) {
|
|
76
|
+
--button-bg: var(--invert-bg);
|
|
77
|
+
--button-fg: var(--invert-fg);
|
|
78
|
+
--button-border: var(--invert-bg);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.button-secondary {
|
|
82
|
+
--button-bg: transparent;
|
|
83
|
+
--button-fg: var(--fg);
|
|
84
|
+
--button-border: color-mix(in srgb, currentColor 32%, transparent);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.button-ghost {
|
|
88
|
+
--button-bg: transparent;
|
|
89
|
+
--button-fg: var(--fg);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.button-danger {
|
|
93
|
+
--button-bg: var(--danger);
|
|
94
|
+
--button-fg: var(--bg);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.button-danger:hover:not(:disabled) {
|
|
98
|
+
--button-bg: var(--fg);
|
|
99
|
+
--button-fg: var(--bg);
|
|
100
|
+
--button-border: var(--fg);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.button-sm {
|
|
104
|
+
height: 34px;
|
|
105
|
+
padding-inline: 16px;
|
|
106
|
+
font-size: 12px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.button-lg {
|
|
110
|
+
height: 54px;
|
|
111
|
+
padding-inline: 28px;
|
|
112
|
+
font-size: 14px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.icon-button {
|
|
116
|
+
display: grid;
|
|
117
|
+
place-items: center;
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
width: 42px;
|
|
120
|
+
height: 42px;
|
|
121
|
+
border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
|
|
122
|
+
border-radius: 50%;
|
|
123
|
+
transition:
|
|
124
|
+
background var(--duration-fast),
|
|
125
|
+
color var(--duration-fast),
|
|
126
|
+
border-color var(--duration-fast),
|
|
127
|
+
transform var(--duration-base) var(--ease);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.icon-button:hover:not(:disabled) {
|
|
131
|
+
background: var(--acid);
|
|
132
|
+
border-color: var(--acid);
|
|
133
|
+
color: var(--ink);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.icon-button:disabled {
|
|
137
|
+
opacity: 0.45;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.icon-button-spin:hover:not(:disabled) {
|
|
141
|
+
transform: rotate(45deg);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.icon-button-solid {
|
|
145
|
+
background: var(--invert-bg);
|
|
146
|
+
border-color: var(--invert-bg);
|
|
147
|
+
color: var(--invert-fg);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.icon-button-accent {
|
|
151
|
+
background: var(--acid);
|
|
152
|
+
border-color: var(--acid);
|
|
153
|
+
color: var(--ink);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.icon-button-accent:hover:not(:disabled) {
|
|
157
|
+
background: var(--invert-bg);
|
|
158
|
+
border-color: var(--invert-bg);
|
|
159
|
+
color: var(--invert-fg);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.icon-button-sm {
|
|
163
|
+
width: 32px;
|
|
164
|
+
height: 32px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.icon-button-lg {
|
|
168
|
+
width: 56px;
|
|
169
|
+
height: 56px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.segmented {
|
|
173
|
+
display: inline-flex;
|
|
174
|
+
flex-wrap: wrap;
|
|
175
|
+
gap: 4px;
|
|
176
|
+
padding: 4px;
|
|
177
|
+
border: 1px solid var(--line);
|
|
178
|
+
border-radius: var(--radius-pill);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.segmented-option {
|
|
182
|
+
height: 32px;
|
|
183
|
+
padding-inline: 16px;
|
|
184
|
+
border-radius: var(--radius-pill);
|
|
185
|
+
font-size: 12px;
|
|
186
|
+
color: var(--muted);
|
|
187
|
+
transition:
|
|
188
|
+
background var(--duration-fast),
|
|
189
|
+
color var(--duration-fast);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.segmented-option:hover {
|
|
193
|
+
color: var(--fg);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.segmented-option[aria-checked="true"] {
|
|
197
|
+
background: var(--invert-bg);
|
|
198
|
+
color: var(--invert-fg);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.segmented-option:focus-visible {
|
|
202
|
+
outline-offset: 2px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.magnetic {
|
|
206
|
+
display: inline-block;
|
|
207
|
+
transform: translate(var(--magnet, 0, 0));
|
|
208
|
+
transition: transform 450ms var(--ease);
|
|
209
|
+
}
|
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
/* Kit — data display: badges, tags, avatars, keys, stats, cards, tables, timelines, dividers, marquee, empty states. */
|
|
2
|
+
|
|
3
|
+
.badge {
|
|
4
|
+
--badge-bg: var(--acid);
|
|
5
|
+
--badge-fg: #374014;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 6px;
|
|
9
|
+
padding: 2px 8px;
|
|
10
|
+
background: var(--badge-bg);
|
|
11
|
+
color: var(--badge-fg);
|
|
12
|
+
line-height: 1.6;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.badge-neutral {
|
|
17
|
+
--badge-bg: color-mix(in srgb, var(--fg) 8%, transparent);
|
|
18
|
+
--badge-fg: var(--fg);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.badge-invert {
|
|
22
|
+
--badge-bg: var(--invert-bg);
|
|
23
|
+
--badge-fg: var(--invert-fg);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.badge-success {
|
|
27
|
+
--badge-bg: var(--success-soft);
|
|
28
|
+
--badge-fg: var(--success);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.badge-info {
|
|
32
|
+
--badge-bg: var(--info-soft);
|
|
33
|
+
--badge-fg: var(--info);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.badge-warning {
|
|
37
|
+
--badge-bg: var(--warning-soft);
|
|
38
|
+
--badge-fg: var(--warning);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.badge-danger {
|
|
42
|
+
--badge-bg: var(--danger-soft);
|
|
43
|
+
--badge-fg: var(--danger);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.badge-dot {
|
|
47
|
+
width: 6px;
|
|
48
|
+
height: 6px;
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
background: currentColor;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.tag {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: 6px;
|
|
57
|
+
color: var(--fg);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tag::before {
|
|
61
|
+
content: "+";
|
|
62
|
+
color: var(--olive);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.tag-removable {
|
|
66
|
+
padding: 3px 4px 3px 10px;
|
|
67
|
+
border: 1px solid var(--line-strong);
|
|
68
|
+
border-radius: var(--radius-pill);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.tag-remove {
|
|
72
|
+
display: grid;
|
|
73
|
+
place-items: center;
|
|
74
|
+
width: 24px;
|
|
75
|
+
height: 24px;
|
|
76
|
+
border-radius: 50%;
|
|
77
|
+
color: var(--muted);
|
|
78
|
+
transition:
|
|
79
|
+
background var(--duration-fast),
|
|
80
|
+
color var(--duration-fast);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.tag-remove:hover {
|
|
84
|
+
background: var(--acid);
|
|
85
|
+
color: var(--ink);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.avatar {
|
|
89
|
+
--avatar-size: 44px;
|
|
90
|
+
position: relative;
|
|
91
|
+
display: inline-grid;
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
width: var(--avatar-size);
|
|
94
|
+
height: var(--avatar-size);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.avatar img,
|
|
98
|
+
.avatar-initials {
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 100%;
|
|
101
|
+
border-radius: 50%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.avatar img {
|
|
105
|
+
object-fit: cover;
|
|
106
|
+
object-position: center 20%;
|
|
107
|
+
background: var(--surface-sunken);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.avatar-initials {
|
|
111
|
+
display: grid;
|
|
112
|
+
place-items: center;
|
|
113
|
+
background: var(--invert-bg);
|
|
114
|
+
color: var(--acid);
|
|
115
|
+
font: 600 calc(var(--avatar-size) * 0.38) / 1 var(--font-display);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:root[data-theme="dark"] .avatar-initials {
|
|
119
|
+
color: var(--ink);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.avatar-sm {
|
|
123
|
+
--avatar-size: 32px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.avatar-lg {
|
|
127
|
+
--avatar-size: 64px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.avatar-xl {
|
|
131
|
+
--avatar-size: 96px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.avatar-status {
|
|
135
|
+
position: absolute;
|
|
136
|
+
right: 4%;
|
|
137
|
+
bottom: 4%;
|
|
138
|
+
width: 26%;
|
|
139
|
+
height: 26%;
|
|
140
|
+
min-width: 8px;
|
|
141
|
+
min-height: 8px;
|
|
142
|
+
border: 2px solid var(--bg);
|
|
143
|
+
border-radius: 50%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.avatar-status-online {
|
|
147
|
+
background: var(--signal);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.avatar-status-away {
|
|
151
|
+
background: var(--warning);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Overlapping stack; each avatar is ringed in the page colour. */
|
|
155
|
+
.avatar-group {
|
|
156
|
+
display: flex;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.avatar-group > .avatar {
|
|
160
|
+
border-radius: 50%;
|
|
161
|
+
box-shadow: 0 0 0 3px var(--bg);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.avatar-group > .avatar + .avatar {
|
|
165
|
+
margin-left: -10px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.kbd {
|
|
169
|
+
display: inline-grid;
|
|
170
|
+
place-items: center;
|
|
171
|
+
min-width: 26px;
|
|
172
|
+
height: 26px;
|
|
173
|
+
padding-inline: 7px;
|
|
174
|
+
border: 1px solid var(--line-strong);
|
|
175
|
+
border-bottom-width: 2px;
|
|
176
|
+
border-radius: var(--radius-sm);
|
|
177
|
+
font: 12px / 1 var(--font-mono);
|
|
178
|
+
color: var(--fg);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.stat {
|
|
182
|
+
display: grid;
|
|
183
|
+
gap: 8px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.stat strong {
|
|
187
|
+
font: 500 56px / 1 var(--font-display);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.stat-suffix {
|
|
191
|
+
color: var(--olive);
|
|
192
|
+
font-size: 32px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.stat .mono {
|
|
196
|
+
color: var(--muted);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.card {
|
|
200
|
+
--card-bg: var(--surface);
|
|
201
|
+
--card-fg: var(--fg);
|
|
202
|
+
--card-muted: var(--muted);
|
|
203
|
+
--card-line: var(--line);
|
|
204
|
+
display: grid;
|
|
205
|
+
align-content: start;
|
|
206
|
+
gap: 14px;
|
|
207
|
+
padding: 28px;
|
|
208
|
+
border: 1px solid var(--card-line);
|
|
209
|
+
background: var(--card-bg);
|
|
210
|
+
color: var(--card-fg);
|
|
211
|
+
transition:
|
|
212
|
+
transform var(--duration-slow) var(--ease),
|
|
213
|
+
box-shadow var(--duration-slow) var(--ease);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.card-ink {
|
|
217
|
+
--card-bg: var(--ink);
|
|
218
|
+
--card-fg: var(--paper);
|
|
219
|
+
--card-muted: #b5baad;
|
|
220
|
+
--card-line: #353733;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.card-acid {
|
|
224
|
+
--card-bg: var(--acid);
|
|
225
|
+
--card-fg: var(--ink);
|
|
226
|
+
--card-muted: #3b451f;
|
|
227
|
+
--card-line: #a8c537;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.card-interactive:hover {
|
|
231
|
+
transform: translateY(-6px);
|
|
232
|
+
box-shadow: var(--shadow-raised);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.card-top {
|
|
236
|
+
display: flex;
|
|
237
|
+
justify-content: space-between;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: 16px;
|
|
240
|
+
color: var(--card-muted);
|
|
241
|
+
text-transform: uppercase;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.card-icon {
|
|
245
|
+
display: inline-flex;
|
|
246
|
+
color: var(--card-fg);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.card-title {
|
|
250
|
+
font-size: 24px;
|
|
251
|
+
line-height: 1.25;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.card-body {
|
|
255
|
+
font-size: 14px;
|
|
256
|
+
line-height: 1.7;
|
|
257
|
+
color: var(--card-muted);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.card-footer {
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
gap: 12px;
|
|
264
|
+
margin-top: 6px;
|
|
265
|
+
padding-top: 16px;
|
|
266
|
+
border-top: 1px solid var(--card-line);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.table-scroll {
|
|
270
|
+
overflow-x: auto;
|
|
271
|
+
border-top: 1px solid var(--fg);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.table-scroll:focus-visible {
|
|
275
|
+
outline: 2px solid var(--fg);
|
|
276
|
+
outline-offset: 4px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.data-table {
|
|
280
|
+
width: 100%;
|
|
281
|
+
min-width: 560px;
|
|
282
|
+
border-collapse: collapse;
|
|
283
|
+
font-size: 14px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.data-table th {
|
|
287
|
+
padding: 14px 16px 14px 0;
|
|
288
|
+
border-bottom: 1px solid var(--line);
|
|
289
|
+
text-align: left;
|
|
290
|
+
text-transform: uppercase;
|
|
291
|
+
font-weight: 400;
|
|
292
|
+
color: var(--muted);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.data-table th button {
|
|
296
|
+
display: inline-flex;
|
|
297
|
+
align-items: center;
|
|
298
|
+
gap: 6px;
|
|
299
|
+
min-height: 24px;
|
|
300
|
+
text-transform: inherit;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.data-table-idle {
|
|
304
|
+
opacity: 0.3;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.data-table td {
|
|
308
|
+
padding: 16px 16px 16px 0;
|
|
309
|
+
border-bottom: 1px solid var(--line);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.data-table [data-align="end"] {
|
|
313
|
+
padding-right: 0;
|
|
314
|
+
text-align: right;
|
|
315
|
+
font-variant-numeric: tabular-nums;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.data-table [data-align="end"] button {
|
|
319
|
+
flex-direction: row-reverse;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.data-table tbody tr {
|
|
323
|
+
transition: background var(--duration-fast);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.data-table tbody tr:hover {
|
|
327
|
+
background: color-mix(in srgb, var(--fg) 4%, transparent);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.timeline {
|
|
331
|
+
display: grid;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.timeline-entry {
|
|
335
|
+
position: relative;
|
|
336
|
+
display: grid;
|
|
337
|
+
gap: 4px;
|
|
338
|
+
padding: 0 0 28px 30px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* Rail and marker drawn from the entry so they never drift from the text. */
|
|
342
|
+
.timeline-entry::before {
|
|
343
|
+
content: "";
|
|
344
|
+
position: absolute;
|
|
345
|
+
top: 6px;
|
|
346
|
+
left: 0;
|
|
347
|
+
width: 11px;
|
|
348
|
+
height: 11px;
|
|
349
|
+
border: 1px solid var(--fg);
|
|
350
|
+
border-radius: 50%;
|
|
351
|
+
background: var(--bg);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.timeline-entry:not(:last-child)::after {
|
|
355
|
+
content: "";
|
|
356
|
+
position: absolute;
|
|
357
|
+
top: 22px;
|
|
358
|
+
bottom: 2px;
|
|
359
|
+
left: 5px;
|
|
360
|
+
width: 1px;
|
|
361
|
+
background: var(--line-strong);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.timeline-current::before {
|
|
365
|
+
background: var(--acid);
|
|
366
|
+
border-color: var(--acid);
|
|
367
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--acid) 30%, transparent);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.timeline-date {
|
|
371
|
+
color: var(--muted);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.timeline-title {
|
|
375
|
+
font: 500 20px / 1.3 var(--font-display);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.timeline-body {
|
|
379
|
+
font-size: 14px;
|
|
380
|
+
line-height: 1.7;
|
|
381
|
+
color: var(--muted);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.divider {
|
|
385
|
+
width: 100%;
|
|
386
|
+
height: 0;
|
|
387
|
+
margin: 0;
|
|
388
|
+
border-top: 1px solid var(--line);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.divider-labelled {
|
|
392
|
+
display: flex;
|
|
393
|
+
align-items: center;
|
|
394
|
+
gap: 16px;
|
|
395
|
+
border: 0;
|
|
396
|
+
height: auto;
|
|
397
|
+
color: var(--muted);
|
|
398
|
+
text-transform: uppercase;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.divider-labelled::before,
|
|
402
|
+
.divider-labelled::after {
|
|
403
|
+
content: "";
|
|
404
|
+
flex: 1;
|
|
405
|
+
border-top: 1px solid var(--line);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.marquee {
|
|
409
|
+
overflow: hidden;
|
|
410
|
+
background: var(--focus-band-bg);
|
|
411
|
+
color: var(--focus-band-fg);
|
|
412
|
+
mask-image: linear-gradient(
|
|
413
|
+
to right,
|
|
414
|
+
transparent,
|
|
415
|
+
#000 8%,
|
|
416
|
+
#000 92%,
|
|
417
|
+
transparent
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.marquee-inner {
|
|
422
|
+
display: flex;
|
|
423
|
+
width: max-content;
|
|
424
|
+
animation: marquee var(--marquee-duration, 28s) linear infinite;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.marquee:hover .marquee-inner {
|
|
428
|
+
animation-play-state: paused;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.marquee-track {
|
|
432
|
+
display: flex;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.marquee-track li {
|
|
436
|
+
display: flex;
|
|
437
|
+
align-items: center;
|
|
438
|
+
gap: 18px;
|
|
439
|
+
padding: 18px 28px 18px 0;
|
|
440
|
+
font: 500 28px / 1.1 var(--font-display);
|
|
441
|
+
white-space: nowrap;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.marquee-track svg {
|
|
445
|
+
color: var(--focus-band-icon);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
@keyframes marquee {
|
|
449
|
+
to {
|
|
450
|
+
transform: translateX(-50%);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.empty-state {
|
|
455
|
+
display: grid;
|
|
456
|
+
justify-items: center;
|
|
457
|
+
gap: 10px;
|
|
458
|
+
padding: 40px 24px;
|
|
459
|
+
text-align: center;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.empty-state-icon {
|
|
463
|
+
display: grid;
|
|
464
|
+
place-items: center;
|
|
465
|
+
width: 72px;
|
|
466
|
+
height: 72px;
|
|
467
|
+
margin-bottom: 8px;
|
|
468
|
+
border: 1px solid var(--line-strong);
|
|
469
|
+
border-radius: 50%;
|
|
470
|
+
color: var(--olive);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.empty-state h3 {
|
|
474
|
+
font-size: 22px;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.empty-state p {
|
|
478
|
+
max-width: 300px;
|
|
479
|
+
font-size: 14px;
|
|
480
|
+
line-height: 1.6;
|
|
481
|
+
color: var(--muted);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.empty-state > :last-child:not(p) {
|
|
485
|
+
margin-top: 10px;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
@media (max-width: 767px) {
|
|
489
|
+
.stat strong {
|
|
490
|
+
font-size: 48px;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.marquee-track li {
|
|
494
|
+
font-size: 22px;
|
|
495
|
+
}
|
|
496
|
+
}
|