Repository navigation
Expand file tree
/
Copy pathglobal.css
More file actions
343 lines (301 loc) · 10.3 KB
/
Copy pathglobal.css
File metadata and controls
343 lines (301 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
@import 'tailwindcss';
@import 'fumadocs-ui/css/neutral.css';
@import 'fumadocs-ui/css/preset.css';
@import 'fumadocs-openapi/css/preset.css';
@import './theme.css';
/* ------------------------------------------------------------------ */
/* fonts (self-hosted, no build-time or runtime Google requests) */
/* ------------------------------------------------------------------ */
/* Geist — body text (variable weight). */
@font-face {
font-family: 'Geist';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/geist-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Geist';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/geist-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist Mono — the meta layer: descriptions, captions, labels, TOC. */
@font-face {
font-family: 'Geist Mono';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/geist-mono-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Geist Mono';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/geist-mono-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist Pixel — display face for headings (single 400 weight). */
@font-face {
font-family: 'Geist Pixel';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/geist-pixel-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Geist Pixel';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/geist-pixel-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
/* The brand accent (--docsdev-accent) lives in theme.css — edit it there
or through the admin sidebar's "Theme…" picker. */
/* Brand type: pixel display headings, Geist body, Geist Mono meta.
Code blocks keep the default mono stack (--font-meta is NOT the
code font — it's for descriptions, captions, and labels). */
--font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
--font-pixel: 'Geist Pixel', 'Geist', ui-sans-serif, sans-serif;
--font-meta: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
html {
font-family: var(--font-sans);
}
/* Headings across the site (docs, landing, admin) use the pixel face.
It ships one weight, so suppress faux-bold synthesis and utility
tracking — pixel glyphs want their native spacing. */
h1,
h2,
h3 {
font-family: var(--font-pixel);
font-weight: 400;
font-synthesis: none;
letter-spacing: 0;
}
html {
scrollbar-gutter: stable;
}
html > body[data-scroll-locked] {
margin-right: 0px !important;
--removed-body-scroll-bar-size: 0px !important;
}
/* ------------------------------------------------------------------ */
/* typography & spacing polish */
/* ------------------------------------------------------------------ */
/* Page title: more presence, balanced wrapping — the scale
Stripe/WorkOS use for their article headers. (Tracking stays at the
pixel face's native spacing.) */
article h1 {
font-size: 2.125rem;
line-height: 1.2;
text-wrap: balance;
}
/* The one-line description under the title: the mono meta voice. */
article h1 + p.text-lg {
margin-top: 0.75rem;
font-family: var(--font-meta);
font-size: 0.9375rem;
line-height: 1.65;
}
/* Section headings: no orphaned last words. */
.prose h2,
.prose h3 {
text-wrap: balance;
}
/* The meta layer speaks Geist Mono: figure captions, sidebar section
labels, and the table of contents. Code blocks are untouched — they
keep the default code font stack. */
article figcaption,
#nd-toc {
font-family: var(--font-meta);
}
/* Body copy avoids ragged breaks and lonely last lines. */
.prose p,
.prose li {
text-wrap: pretty;
}
/* Inline code as a quiet chip (Stripe-style), not a bare highlight —
set in Geist Mono (fenced code blocks keep their own font). */
.prose :not(pre) > code {
font-family: var(--font-meta);
border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
background: color-mix(in srgb, currentColor 5%, transparent);
border-radius: 6px;
padding: 0.1em 0.3em;
}
/* Quotes carry the brand accent instead of a gray default. */
.prose blockquote {
border-inline-start: 3px solid color-mix(in srgb, var(--docsdev-accent, #c2571f) 55%, transparent);
background: color-mix(in srgb, var(--docsdev-accent, #c2571f) 4%, transparent);
border-radius: 0 10px 10px 0;
padding-block: 0.125rem;
}
/* The padding above stops inner <p> margins from collapsing out of the quote;
drop them so the box stays tight (and matches the editor's quote block). */
.prose blockquote > :first-child {
margin-top: 0;
}
.prose blockquote > :last-child {
margin-bottom: 0;
}
/* Cards: lift gently on hover with an accent-tinted border. */
.prose a.bg-fd-card {
transition: border-color 0.15s ease, box-shadow 0.15s ease, translate 0.15s ease;
}
.prose a.bg-fd-card:hover {
border-color: color-mix(in srgb, var(--docsdev-accent, #c2571f) 45%, transparent);
box-shadow: 0 4px 16px -6px color-mix(in srgb, var(--docsdev-accent, #c2571f) 25%, transparent);
translate: 0 -1px;
}
/* Sidebar section labels (meta.json separators): small caps, muted,
generously spaced — the grouped look of Stripe's docs nav. */
#nd-sidebar p.inline-flex {
font-family: var(--font-meta);
font-size: 0.6875rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--color-fd-muted-foreground);
margin-top: 1.75rem;
margin-bottom: 0.375rem;
}
/* ------------------------------------------------------------------ */
/* pretext flow */
/* ------------------------------------------------------------------ */
/* The upgraded (measured) layout fades in over the SSR fallback instead of
popping, so the enhancement reads as a shimmer, not a glitch. */
@keyframes pretext-fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.pretext-flow-layer {
animation: pretext-fade-in 0.22s ease-out;
}
.pretext-link:hover {
text-decoration-thickness: 2px;
filter: brightness(1.12);
}
/* ------------------------------------------------------------------ */
/* in-place editor */
/* ------------------------------------------------------------------ */
/* Editable fields: invisible at rest, a whisper of accent on hover, a clear
ring while focused. */
.dd-field {
outline: none;
border-radius: 6px;
transition: box-shadow 0.12s ease;
}
.dd-field:hover {
box-shadow: 0 0 0 1px color-mix(in srgb, var(--docsdev-accent, #c2571f) 30%, transparent);
}
.dd-field:focus {
box-shadow: 0 0 0 2px color-mix(in srgb, var(--docsdev-accent, #c2571f) 55%, transparent);
}
.dd-field:empty::before {
content: attr(data-placeholder);
color: var(--color-fd-muted-foreground);
opacity: 0.6;
pointer-events: none;
}
/* Table block: row/column tools appear on hover. */
.dd-tablewrap .dd-tabletools {
opacity: 0;
transition: opacity 0.12s ease;
pointer-events: none;
}
.dd-tablewrap:hover .dd-tabletools,
.dd-tablewrap:focus-within .dd-tabletools {
opacity: 1;
pointer-events: auto;
}
.dd-icon-btn {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border: 1px solid var(--color-fd-border);
border-radius: 6px;
background: var(--color-fd-popover);
color: var(--color-fd-muted-foreground);
cursor: pointer;
transition: color 0.1s ease, background 0.1s ease;
}
.dd-icon-btn:hover {
color: var(--color-fd-foreground);
background: var(--color-fd-accent);
}
.dd-icon-btn[data-danger]:hover {
color: var(--color-fd-error, #dc2626);
}
/* Floating chrome (toolbars, popovers, chips). */
.dd-pop {
background: var(--color-fd-popover);
color: var(--color-fd-popover-foreground);
border: 1px solid var(--color-fd-border);
border-radius: 12px;
box-shadow:
0 12px 32px rgba(0, 0, 0, 0.16),
0 2px 8px rgba(0, 0, 0, 0.08);
}
.dd-chip-btn {
height: 26px;
padding: 0 9px;
border: none;
border-radius: 7px;
background: transparent;
color: var(--color-fd-muted-foreground);
font-size: 12px;
font-weight: 500;
cursor: pointer;
font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
}
.dd-chip-btn:hover {
color: var(--color-fd-foreground);
background: var(--color-fd-accent);
}
.dd-chip-btn[data-on='true'] {
background: var(--color-fd-primary);
color: var(--color-fd-primary-foreground);
}
/* Hover-revealed editing chips (code language, card link target): zero
layout footprint, paint on parent hover or own focus only. */
.dd-langchip {
opacity: 0;
transition: opacity 0.12s ease;
}
*:hover > .dd-langchip,
.dd-langchip:focus {
opacity: 1;
}
/* Shiki output inside the editor's code block card. The viewport div carries
the published page's padding classes; the pre itself stays flush. */
.dd-codeview pre {
margin: 0;
padding: 0;
background: transparent !important;
}
/* Reorder-drag insertion indicator. */
.dd-drop-line {
position: absolute;
left: -8px;
right: -8px;
height: 3px;
border-radius: 2px;
background: var(--docsdev-accent, #c2571f);
z-index: 40;
pointer-events: none;
}