@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,363 @@
|
|
|
1
|
+
/* Kit — forms: underlined fields, checkboxes, radios, switches, and sliders. */
|
|
2
|
+
|
|
3
|
+
input,
|
|
4
|
+
select,
|
|
5
|
+
textarea {
|
|
6
|
+
font: inherit;
|
|
7
|
+
color: inherit;
|
|
8
|
+
margin: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.field {
|
|
12
|
+
display: grid;
|
|
13
|
+
gap: 8px;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.field-label {
|
|
18
|
+
color: var(--muted);
|
|
19
|
+
text-transform: uppercase;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.field-required {
|
|
23
|
+
margin-left: 4px;
|
|
24
|
+
color: var(--olive);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.field-control {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 12px;
|
|
31
|
+
border-bottom: 1px solid var(--line-strong);
|
|
32
|
+
transition:
|
|
33
|
+
border-color var(--duration-fast),
|
|
34
|
+
box-shadow var(--duration-fast);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.field-control:hover {
|
|
38
|
+
border-color: var(--muted);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.field-control:focus-within {
|
|
42
|
+
border-color: var(--fg);
|
|
43
|
+
box-shadow: inset 0 -1px 0 var(--fg);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.field-control:has(:focus-visible) {
|
|
47
|
+
outline: 2px solid var(--fg);
|
|
48
|
+
outline-offset: 3px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.field-control input,
|
|
52
|
+
.field-control select,
|
|
53
|
+
.field-control textarea {
|
|
54
|
+
flex: 1;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
padding: 10px 0;
|
|
57
|
+
border: 0;
|
|
58
|
+
background: transparent;
|
|
59
|
+
font-size: 16px;
|
|
60
|
+
outline: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.field-control textarea {
|
|
64
|
+
resize: vertical;
|
|
65
|
+
line-height: 1.6;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.field-control textarea[data-auto-resize] {
|
|
69
|
+
resize: none;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.field-control ::placeholder {
|
|
74
|
+
color: var(--muted);
|
|
75
|
+
opacity: 0.8;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.field-icon,
|
|
79
|
+
.field-trailing {
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
color: var(--muted);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.field-select select {
|
|
86
|
+
appearance: none;
|
|
87
|
+
padding-right: 24px;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.field-select select option {
|
|
92
|
+
background: var(--surface);
|
|
93
|
+
color: var(--fg);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.field-chevron {
|
|
97
|
+
margin-left: -28px;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
color: var(--muted);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.field-footer {
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
gap: 16px;
|
|
106
|
+
color: var(--muted);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.field-counter {
|
|
110
|
+
margin-left: auto;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.field-invalid .field-control {
|
|
114
|
+
border-color: var(--danger);
|
|
115
|
+
box-shadow: inset 0 -1px 0 var(--danger);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.field-error {
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
gap: 6px;
|
|
122
|
+
color: var(--danger);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.field-disabled {
|
|
126
|
+
opacity: 0.5;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.field-disabled .field-control {
|
|
130
|
+
border-bottom-style: dashed;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Choice: checkbox and radio share the control, label, and description layout. */
|
|
134
|
+
.choice {
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: flex-start;
|
|
137
|
+
gap: 12px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.choice-control {
|
|
141
|
+
position: relative;
|
|
142
|
+
display: grid;
|
|
143
|
+
flex-shrink: 0;
|
|
144
|
+
width: 20px;
|
|
145
|
+
height: 20px;
|
|
146
|
+
margin-top: 1px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.choice-input {
|
|
150
|
+
position: absolute;
|
|
151
|
+
inset: 0;
|
|
152
|
+
width: 100%;
|
|
153
|
+
height: 100%;
|
|
154
|
+
margin: 0;
|
|
155
|
+
opacity: 0;
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.choice-box {
|
|
160
|
+
display: grid;
|
|
161
|
+
place-items: center;
|
|
162
|
+
border: 1px solid var(--line-strong);
|
|
163
|
+
color: transparent;
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
transition:
|
|
166
|
+
background var(--duration-fast),
|
|
167
|
+
border-color var(--duration-fast),
|
|
168
|
+
color var(--duration-fast);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.choice-input:hover + .choice-box {
|
|
172
|
+
border-color: var(--fg);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.choice-input:checked + .choice-box,
|
|
176
|
+
.choice-input:indeterminate + .choice-box {
|
|
177
|
+
background: var(--acid);
|
|
178
|
+
border-color: var(--acid);
|
|
179
|
+
color: var(--ink);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.choice-input:focus-visible + .choice-box {
|
|
183
|
+
outline: 2px solid var(--fg);
|
|
184
|
+
outline-offset: 3px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.choice-input:disabled,
|
|
188
|
+
.choice-input:disabled + .choice-box {
|
|
189
|
+
cursor: default;
|
|
190
|
+
opacity: 0.45;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.choice-text {
|
|
194
|
+
display: grid;
|
|
195
|
+
gap: 2px;
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.choice-label {
|
|
200
|
+
font-size: 14px;
|
|
201
|
+
line-height: 1.5;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.choice-description {
|
|
205
|
+
font-size: 13px;
|
|
206
|
+
line-height: 1.55;
|
|
207
|
+
color: var(--muted);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.choice-error {
|
|
211
|
+
color: var(--danger);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.choice-invalid .choice-box {
|
|
215
|
+
border-color: var(--danger);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.choice-radio .choice-box {
|
|
219
|
+
border-radius: 50%;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.choice-radio .choice-input:checked + .choice-box {
|
|
223
|
+
background: transparent;
|
|
224
|
+
border-color: var(--fg);
|
|
225
|
+
box-shadow: inset 0 0 0 5px var(--acid);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.radio-group {
|
|
229
|
+
display: grid;
|
|
230
|
+
gap: 14px;
|
|
231
|
+
margin: 0;
|
|
232
|
+
padding: 0;
|
|
233
|
+
border: 0;
|
|
234
|
+
min-width: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.radio-group legend {
|
|
238
|
+
margin-bottom: 14px;
|
|
239
|
+
padding: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@media (min-width: 640px) {
|
|
243
|
+
.radio-group-inline {
|
|
244
|
+
display: flex;
|
|
245
|
+
flex-wrap: wrap;
|
|
246
|
+
gap: 14px 32px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.radio-group-inline legend {
|
|
250
|
+
width: 100%;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.switch {
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: flex-start;
|
|
257
|
+
gap: 14px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.switch-track {
|
|
261
|
+
position: relative;
|
|
262
|
+
flex-shrink: 0;
|
|
263
|
+
width: 44px;
|
|
264
|
+
height: 24px;
|
|
265
|
+
border: 1px solid var(--line-strong);
|
|
266
|
+
border-radius: var(--radius-pill);
|
|
267
|
+
transition:
|
|
268
|
+
background var(--duration-base) var(--ease),
|
|
269
|
+
border-color var(--duration-base);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.switch-thumb {
|
|
273
|
+
position: absolute;
|
|
274
|
+
top: 3px;
|
|
275
|
+
left: 3px;
|
|
276
|
+
width: 16px;
|
|
277
|
+
height: 16px;
|
|
278
|
+
border-radius: 50%;
|
|
279
|
+
background: var(--fg);
|
|
280
|
+
transition: transform var(--duration-base) var(--ease);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.switch-track[aria-checked="true"] {
|
|
284
|
+
background: var(--acid);
|
|
285
|
+
border-color: var(--acid);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.switch-track[aria-checked="true"] .switch-thumb {
|
|
289
|
+
background: var(--ink);
|
|
290
|
+
transform: translateX(20px);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.switch-track:disabled {
|
|
294
|
+
opacity: 0.45;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.slider {
|
|
298
|
+
display: grid;
|
|
299
|
+
gap: 12px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.slider-header {
|
|
303
|
+
display: flex;
|
|
304
|
+
justify-content: space-between;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.slider output {
|
|
308
|
+
color: var(--fg);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.slider input[type="range"] {
|
|
312
|
+
width: 100%;
|
|
313
|
+
height: 22px;
|
|
314
|
+
appearance: none;
|
|
315
|
+
background: transparent;
|
|
316
|
+
cursor: pointer;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.slider input[type="range"]::-webkit-slider-runnable-track {
|
|
320
|
+
height: 2px;
|
|
321
|
+
background: linear-gradient(
|
|
322
|
+
to right,
|
|
323
|
+
var(--fg) var(--progress),
|
|
324
|
+
var(--line-strong) var(--progress)
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.slider input[type="range"]::-moz-range-track {
|
|
329
|
+
height: 2px;
|
|
330
|
+
background: linear-gradient(
|
|
331
|
+
to right,
|
|
332
|
+
var(--fg) var(--progress),
|
|
333
|
+
var(--line-strong) var(--progress)
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.slider input[type="range"]::-webkit-slider-thumb {
|
|
338
|
+
appearance: none;
|
|
339
|
+
width: 20px;
|
|
340
|
+
height: 20px;
|
|
341
|
+
margin-top: -9px;
|
|
342
|
+
border: 2px solid var(--fg);
|
|
343
|
+
border-radius: 50%;
|
|
344
|
+
background: var(--acid);
|
|
345
|
+
transition: transform var(--duration-fast);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.slider input[type="range"]::-moz-range-thumb {
|
|
349
|
+
width: 16px;
|
|
350
|
+
height: 16px;
|
|
351
|
+
border: 2px solid var(--fg);
|
|
352
|
+
border-radius: 50%;
|
|
353
|
+
background: var(--acid);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.slider input[type="range"]:hover::-webkit-slider-thumb {
|
|
357
|
+
transform: scale(1.15);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.slider input[type="range"]:focus-visible {
|
|
361
|
+
outline: 2px solid var(--fg);
|
|
362
|
+
outline-offset: 6px;
|
|
363
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* Component kit entry: reusable primitives shared by the portfolio and the design system page. */
|
|
2
|
+
|
|
3
|
+
@import "./actions.css";
|
|
4
|
+
@import "./forms.css";
|
|
5
|
+
@import "./navigation.css";
|
|
6
|
+
@import "./data-display.css";
|
|
7
|
+
@import "./feedback.css";
|
|
8
|
+
@import "./overlays.css";
|
|
9
|
+
@import "./effects.css";
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/* Kit — navigation: tabs, breadcrumbs, pagination, and stepper. */
|
|
2
|
+
|
|
3
|
+
.tabs {
|
|
4
|
+
display: grid;
|
|
5
|
+
gap: 24px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tabs-list {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: 28px;
|
|
12
|
+
border-bottom: 1px solid var(--line);
|
|
13
|
+
overflow-x: auto;
|
|
14
|
+
scrollbar-width: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.tabs-list::after {
|
|
18
|
+
content: "";
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
left: var(--indicator-left);
|
|
22
|
+
width: var(--indicator-width);
|
|
23
|
+
height: 2px;
|
|
24
|
+
background: var(--fg);
|
|
25
|
+
transition:
|
|
26
|
+
left var(--duration-base) var(--ease),
|
|
27
|
+
width var(--duration-base) var(--ease);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tabs-tab {
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
padding: 12px 0 14px;
|
|
33
|
+
font-size: 13px;
|
|
34
|
+
color: var(--muted);
|
|
35
|
+
transition: color var(--duration-fast);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tabs-tab:hover,
|
|
39
|
+
.tabs-tab[aria-selected="true"] {
|
|
40
|
+
color: var(--fg);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.tabs-tab:focus-visible {
|
|
44
|
+
outline-offset: -2px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.tabs-panel {
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
line-height: 1.7;
|
|
50
|
+
color: var(--muted);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.tabs-panel:focus-visible {
|
|
54
|
+
outline-offset: 4px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.breadcrumbs ol {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-wrap: wrap;
|
|
60
|
+
align-items: center;
|
|
61
|
+
text-transform: uppercase;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.breadcrumbs li {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
color: var(--muted);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.breadcrumbs li + li::before {
|
|
71
|
+
content: "/";
|
|
72
|
+
margin-inline: 10px;
|
|
73
|
+
color: var(--line-strong);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.breadcrumbs a {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
min-height: 24px;
|
|
80
|
+
border-bottom: 1px solid transparent;
|
|
81
|
+
transition:
|
|
82
|
+
color var(--duration-fast),
|
|
83
|
+
border-color var(--duration-fast);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.breadcrumbs a:hover {
|
|
87
|
+
color: var(--fg);
|
|
88
|
+
border-color: currentColor;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.breadcrumbs [aria-current="page"] {
|
|
92
|
+
color: var(--fg);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.pagination {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
gap: 12px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.pagination ol {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: 4px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.pagination-page,
|
|
108
|
+
.pagination-step {
|
|
109
|
+
display: grid;
|
|
110
|
+
place-items: center;
|
|
111
|
+
min-width: 36px;
|
|
112
|
+
height: 36px;
|
|
113
|
+
border-radius: var(--radius-pill);
|
|
114
|
+
transition:
|
|
115
|
+
background var(--duration-fast),
|
|
116
|
+
color var(--duration-fast);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.pagination-page {
|
|
120
|
+
color: var(--muted);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.pagination-page:hover {
|
|
124
|
+
color: var(--fg);
|
|
125
|
+
background: color-mix(in srgb, var(--fg) 7%, transparent);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.pagination-page[aria-current="page"] {
|
|
129
|
+
background: var(--invert-bg);
|
|
130
|
+
color: var(--invert-fg);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.pagination-step {
|
|
134
|
+
border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.pagination-step:hover:not(:disabled) {
|
|
138
|
+
background: var(--acid);
|
|
139
|
+
border-color: var(--acid);
|
|
140
|
+
color: var(--ink);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.pagination-step:disabled {
|
|
144
|
+
opacity: 0.35;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.pagination-gap {
|
|
148
|
+
min-width: 20px;
|
|
149
|
+
text-align: center;
|
|
150
|
+
color: var(--muted);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.stepper {
|
|
154
|
+
display: grid;
|
|
155
|
+
grid-auto-flow: column;
|
|
156
|
+
grid-auto-columns: 1fr;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.stepper-step {
|
|
160
|
+
position: relative;
|
|
161
|
+
display: grid;
|
|
162
|
+
gap: 12px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.stepper-step:not(:last-child) {
|
|
166
|
+
padding-right: 12px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Connector rule from this marker to the next, kept inside the step. */
|
|
170
|
+
.stepper-step:not(:last-child)::after {
|
|
171
|
+
content: "";
|
|
172
|
+
position: absolute;
|
|
173
|
+
top: 16px;
|
|
174
|
+
left: 40px;
|
|
175
|
+
right: 8px;
|
|
176
|
+
height: 1px;
|
|
177
|
+
background: var(--line-strong);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.stepper-complete:not(:last-child)::after {
|
|
181
|
+
background: var(--fg);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.stepper-marker {
|
|
185
|
+
display: grid;
|
|
186
|
+
place-items: center;
|
|
187
|
+
width: 32px;
|
|
188
|
+
height: 32px;
|
|
189
|
+
border: 1px solid var(--line-strong);
|
|
190
|
+
border-radius: 50%;
|
|
191
|
+
color: var(--muted);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.stepper-complete .stepper-marker {
|
|
195
|
+
background: var(--invert-bg);
|
|
196
|
+
border-color: var(--invert-bg);
|
|
197
|
+
color: var(--invert-fg);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.stepper-current .stepper-marker {
|
|
201
|
+
background: var(--acid);
|
|
202
|
+
border-color: var(--acid);
|
|
203
|
+
color: var(--ink);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.stepper-text {
|
|
207
|
+
display: grid;
|
|
208
|
+
gap: 2px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.stepper-label {
|
|
212
|
+
font-size: 14px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.stepper-upcoming .stepper-label {
|
|
216
|
+
color: var(--muted);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.stepper-description {
|
|
220
|
+
color: var(--muted);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@media (max-width: 639px) {
|
|
224
|
+
.stepper {
|
|
225
|
+
grid-auto-flow: row;
|
|
226
|
+
gap: 12px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.stepper-step {
|
|
230
|
+
grid-template-columns: 32px 1fr;
|
|
231
|
+
align-items: center;
|
|
232
|
+
padding-right: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.stepper-step:not(:last-child)::after {
|
|
236
|
+
top: 40px;
|
|
237
|
+
left: 16px;
|
|
238
|
+
right: auto;
|
|
239
|
+
width: 1px;
|
|
240
|
+
height: 12px;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@media (max-width: 479px) {
|
|
245
|
+
.pagination {
|
|
246
|
+
gap: 6px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.pagination ol {
|
|
250
|
+
gap: 2px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.pagination-page,
|
|
254
|
+
.pagination-step {
|
|
255
|
+
min-width: 30px;
|
|
256
|
+
height: 30px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.pagination-gap {
|
|
260
|
+
min-width: 14px;
|
|
261
|
+
}
|
|
262
|
+
}
|