-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
451 lines (424 loc) · 17 KB
/
Copy pathstyle.css
File metadata and controls
451 lines (424 loc) · 17 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
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
/*
* Oak Network — custom CSS (kept minimal; everything else is Mintlify default).
* 1. Fonts: Fragment Mono for code; Inter Tight for headings (body stays Inter).
* 2. Top navigation: neutral divider + opaque background so the docs.json gradient
* hue stays below the tab bar (like bridge.xyz) instead of bleeding over the tabs.
* 3. Typography: Inter Tight for headings only + force heading weight 500.
*/
/* 1. Fonts ----------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fragment+Mono:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500&display=swap');
code,
pre,
kbd,
samp,
pre code,
code span,
pre span {
font-family: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}
/* 2. Top navigation -------------------------------------------------------- */
/* Neutral divider under the top navigation (incl. the tabs), matching Mintlify's
own border tokens: warm grey in light mode, faint white in dark mode.
(No sidebar border — Mintlify doesn't use one.)
The background.decoration (docs.json, "grid") is rendered as a full-page layer
that sits *behind* the navbar. By default the navbar is transparent, so the
decoration bleeds up over the tabs. Painting the navbar with the
page-background token makes it opaque, masking the decoration above the
content area — so it starts right at the tab line, exactly like bridge.xyz. */
#navbar {
border-bottom: 1px solid #e7e5e4b3;
background-color: rgb(var(--background-light));
}
.dark #navbar {
border-bottom-color: #ffffff1a;
background-color: rgb(var(--background-dark));
}
/* 3. Typography ------------------------------------------------------------ */
/* Inter Tight for headings only; body/regular text stays Mintlify's default Inter.
docs.json fonts.heading sets this, but Mintlify injects it as a CSS var at
config-load time (needs a dev-server restart), so assert the same var here to
apply on a plain style.css hot-reload too. This var feeds Mintlify's heading
font-family rule only; body keeps --font-inter and code keeps its mono var. */
:root {
--font-family-headings-custom: 'Inter Tight', ui-sans-serif, system-ui, sans-serif !important;
}
/* Mintlify's prose styles hard-code heading weights (800/700/600), overriding
docs.json's fonts.heading.weight, so force 500 here. */
#page-title,
.prose :where(h1, h2, h3, h4, h5, h6) {
font-weight: 500 !important;
}
/* 4. Landing page (index.mdx, mode:"custom") ------------------------------- */
/* The home page uses mode:"custom" — a full-bleed canvas with no sidebar, no
TOC, no prose wrapper, and no auto page-title. So we set our own max-width,
spacing, and heading styles here. Everything is scoped under .oak-landing so
none of it leaks into regular doc pages. Colors use the brand orange
(#FBA244, darker #E08A2B for light-mode text, brighter #FCA951 for dark) plus
neutral stone greys; every rule is theme-aware via the .dark prefix. */
.oak-landing {
max-width: 1080px;
margin: 0 auto;
padding: 0 24px 96px;
}
/* Hero -------------------------------------------------------------------- */
.oak-hero {
position: relative;
text-align: center;
padding: 96px 0 28px;
overflow: hidden;
}
/* The hero backdrop is the page-wide grid decoration (docs.json
background.decoration:"grid"); no local glow here. */
.oak-hero > * { position: relative; z-index: 1; }
.oak-title {
font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
font-weight: 600;
font-size: clamp(40px, 7vw, 72px);
line-height: 1.05;
letter-spacing: -0.02em;
color: #1c1917; /* strong, not washed out (light mode) */
max-width: 16ch;
margin: 0 auto 20px;
}
.dark .oak-title { color: #f8f7f5; }
.oak-subtitle {
font-size: clamp(15px, 1.9vw, 17px);
line-height: 1.6;
color: #57534e; /* stone-600 */
max-width: 600px;
margin: 0 auto 28px;
}
.dark .oak-subtitle { color: #a8a29e; } /* stone-400 */
/* CTA buttons — styled <a> anchors (Mintlify has no generic Button). */
.oak-cta-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
margin-bottom: 20px;
}
.oak-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 11px 20px;
border-radius: 10px;
font-size: 15px;
font-weight: 500;
text-decoration: none;
transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.oak-btn:focus-visible { outline: 2px solid #FBA244; outline-offset: 2px; }
/* Primary always sits on orange, so dark text reads in both themes. */
.oak-btn-primary {
background: #FBA244;
color: #1c1917 !important;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.oak-btn-primary:hover {
background: #f6982f;
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(251, 162, 68, 0.35);
}
.oak-btn-secondary {
background: transparent;
border: 1px solid #e7e5e4;
color: #292524 !important;
}
.dark .oak-btn-secondary { border-color: #ffffff26; color: #e7e5e4 !important; }
.oak-btn-secondary:hover { border-color: #FBA244; transform: translateY(-1px); }
/* Trust bar — sits directly under the hero (subtle, no bordered box) -------- */
.oak-trust-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 20px 44px;
margin: 4px 0 72px;
}
/* Each group (Backed by / Audited by): label stacked above its logos. */
.oak-trust-group {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
}
.oak-trust-divider {
width: 1px;
align-self: stretch;
background: #e7e5e4;
}
.dark .oak-trust-divider { background: #ffffff1f; }
.oak-trust-label {
font-size: 12px;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #78716c;
}
/* Section titles (no prose wrapper in custom mode, so style them here). */
.oak-section-title {
font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
font-weight: 500;
font-size: clamp(24px, 3.4vw, 32px);
letter-spacing: -0.01em;
text-align: center;
margin: 72px 0 28px;
}
/* Trust logos — shown in full brand colour. Third-party marks ship in differing
polarities, so each carries an "ink" modifier below describing what it is
drawn in; that, not a blanket filter, decides how it survives both themes. */
.oak-trust-logos {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 36px;
}
/* Same anchor treatment as .oak-partner so the two rows behave identically:
flex-shrink off, since width:auto images have no intrinsic floor as
shrinkable flex items. */
.oak-trust-link { display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.oak-trust-logo {
height: 24px;
width: auto;
opacity: 0.9;
transition: opacity .15s ease;
}
.oak-trust-link:hover .oak-trust-logo { opacity: 1; }
/* Optical sizing — equal visual mass, not equal pixel height. Ratios:
kickstarter 8.6:1, a16z 3.7:1 (stacked two-line), oz 6.6:1, immunefi 4.6:1,
peckshield 4.6:1. */
.oak-logo-kickstarter { height: 24px; }
.oak-logo-a16z { height: 40px; }
.oak-logo-oz { height: 25px; }
.oak-logo-immunefi { height: 28px; }
.oak-logo-peckshield { height: 28px; }
/* ---- Ink polarity modifiers, shared by the trust bar and the partner strip --
Every third-party mark falls into one of four cases. Getting this wrong is
how a logo silently disappears in one theme, so it is declared per logo
rather than inferred.
(default) full colour, legible on both backgrounds (Kickstarter,
Kibidango, MiniPay/Catarse/Vaki/OZ/Immunefi via paired
light+dark files)
.oak-ink-dark monochrome dark ink — invert on dark (a16z, Onset, Bridge,
Ramp)
.oak-ink-white monochrome white ink — invert on light (Karma)
.oak-ink-white-tint white ink WITH colour accents, and the vendor publishes
no dark-background version (PeckShield's cyan shield,
Relay Funder's tri-colour symbol, Rippling's gradient).
A plain invert() would flip those hues to their
complements — cyan would come out orange — so it is paired
with hue-rotate(180deg), which rotates them back. Net
effect: lightness flips so the mark reads on white, while
the accent hues survive. Not a pixel-exact reproduction of
an official light lockup, so prefer a real one if a
partner supplies it. */
.oak-ink-dark { filter: none; }
.dark .oak-ink-dark { filter: invert(1); }
.oak-ink-white { filter: invert(1); }
.dark .oak-ink-white { filter: none; }
.oak-ink-white-tint { filter: invert(1) hue-rotate(180deg); }
.dark .oak-ink-white-tint { filter: none; }
/* Paired per-theme lockups. Only one of each pair renders, so both may keep
their alt text — display:none drops the hidden one from the a11y tree. */
.oak-only-dark { display: none; }
.dark .oak-only-light { display: none; }
.dark .oak-only-dark { display: inline-block; }
/* Partner strip — reuses the trust bar's label/divider language, but sits
lower on the page so it doesn't compete with the hero. Unlike the trust bar
these are third-party marks with clashing palettes (Catarse's multicolour
swirl, Kibidango's coral, Vaki's green), so they're greyscaled at rest to
read as one coherent row and regain their colour on hover. -------------- */
/* Groups stack vertically: with five active partners the two rows side by side
overflow the 1032px content column and wrap raggedly. */
.oak-partners {
display: flex;
flex-direction: column;
align-items: center;
gap: 34px;
margin: 0 0 8px;
}
.oak-partners .oak-trust-divider { display: none; }
.oak-partner-group {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
}
/* Thirteen marks wrap to several rows, so row-gap is set independently of
column-gap to keep the wall from looking striped. */
.oak-partner-logos {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 30px 42px;
max-width: 940px;
}
/* flex-shrink must be off: the images are width:auto with a fixed height, so as
shrinkable flex items in a max-width wrapping row they collapse to zero. */
.oak-partner { display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; }
/* Full brand colour. Polarity is handled by the shared .oak-ink-* modifiers
defined with the trust bar above. */
.oak-partner-logo {
width: auto;
opacity: 0.92;
transition: opacity .18s ease;
}
.oak-partner:hover .oak-partner-logo { opacity: 1; }
/* Optical sizing: matching raw pixel height would let the wide, thin marks
dominate and the compact ones vanish, so each is tuned to equal visual mass
(same reasoning as the a16z rule above). Ratios: onset 5.5:1, karma 5.2:1,
kibidango 4.0:1, relayfunder 3.9:1, catarse 3.6:1, vaki 1.6:1, and MiniPay a
square 1:1 stacked lockup — which is why it carries by far the most height. */
.oak-mark-rippling { height: 24px; } /* 7.8:1 */
.oak-mark-bridge { height: 26px; } /* 6.5:1 */
.oak-mark-onset { height: 28px; } /* 5.5:1 */
.oak-mark-fireblocks { height: 28px; } /* 5.9:1 */
.oak-mark-karma { height: 30px; } /* 5.2:1 */
.oak-mark-celo { height: 32px; } /* 4.4:1 */
.oak-mark-privy { height: 32px; } /* 4.5:1 */
.oak-mark-ramp { height: 34px; } /* 3.8:1 */
.oak-mark-kibidango { height: 36px; } /* 4.0:1 */
.oak-mark-relayfunder { height: 36px; } /* 3.9:1 */
.oak-mark-catarse { height: 38px; } /* 3.6:1 */
.oak-mark-stripe { height: 38px; } /* 2.4:1 */
.oak-mark-bill { height: 42px; } /* 1.5:1 */
.oak-mark-vaki { height: 46px; } /* 1.6:1 */
/* MiniPay only publishes a stacked icon-over-wordmark lockup (1.2:1), and their
brand rules forbid using the icon detached from the wordmark. Equal visual
mass would put it near 65px, which would tower over the row, so it is capped
here as a deliberate compromise. Their press-kit files also ship with a solid
background plate; that rect is stripped and the viewBox tightened to the
artwork so it sits on transparent like every other mark. */
.oak-mark-minipay { height: 52px; }
/* Illustration feature cards (Mintlify-style: tinted dot-grid panel with a
glowing line glyph, title + description below) -------------------------- */
.oak-features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px 24px;
margin: 0 0 8px;
}
.oak-feature { display: block; text-decoration: none; color: inherit; }
.oak-feature-art {
position: relative;
display: grid;
place-items: center;
aspect-ratio: 16 / 10;
border: 1px solid #e7e5e4;
border-radius: 16px;
background-color: #fbf6ef;
background-image:
linear-gradient(to right, rgba(224, 138, 43, 0.16) 1px, transparent 1px),
linear-gradient(to bottom, rgba(224, 138, 43, 0.16) 1px, transparent 1px);
/* Zoomed-in square grid, centered so the leftover space splits evenly on each
side — the boundary lines sit a little inside the panel instead of landing
on the card border. */
background-size: 72px 72px;
background-position: center;
overflow: hidden;
transition: border-color .2s ease, box-shadow .2s ease;
}
.dark .oak-feature-art {
border-color: #ffffff14;
background-color: rgba(251, 162, 68, 0.05);
background-image:
linear-gradient(to right, rgba(252, 169, 81, 0.12) 1px, transparent 1px),
linear-gradient(to bottom, rgba(252, 169, 81, 0.12) 1px, transparent 1px);
}
/* The glyph is rendered by Mintlify's <Icon> (svg or font, depending on set);
target both, add the glow, and let the icon's own size/color props lead. */
.oak-feature-art :where(svg, i) {
width: 90px;
height: 90px;
font-size: 90px;
color: #FBA244;
filter: drop-shadow(0 0 14px rgba(251, 162, 68, 0.45));
transition: transform .2s ease;
}
.oak-feature:hover .oak-feature-art {
border-color: #FBA24488;
box-shadow: 0 10px 30px rgba(251, 162, 68, 0.12);
}
.oak-feature:hover .oak-feature-art :where(svg, i) { transform: scale(1.08); }
.oak-feature-title {
margin: 16px 0 4px;
font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
font-weight: 600;
font-size: 16px;
}
.oak-feature-desc { margin: 0; font-size: 14px; line-height: 1.55; color: #57534e; }
.dark .oak-feature-desc { color: #a8a29e; }
/* Secondary cards (Why Oak / Start building): clean cards with the same orange
hover-border animation as the feature panels (no grid texture here). ------ */
.oak-cards { display: grid; gap: 16px; }
.oak-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.oak-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.oak-card {
border: 1px solid #e7e5e4;
border-radius: 14px;
padding: 20px;
background-color: #ffffff;
transition: border-color .2s ease, box-shadow .2s ease;
}
.dark .oak-card { border-color: #ffffff14; background-color: #141416; }
.oak-card:hover {
border-color: #FBA24488;
box-shadow: 0 10px 30px rgba(251, 162, 68, 0.12);
}
.oak-card-ic { display: block; margin-bottom: 12px; line-height: 0; color: #FBA244; }
.oak-card-ic :where(svg, i) { width: 22px; height: 22px; font-size: 22px; }
.oak-card h3 {
margin: 0 0 6px;
font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
font-weight: 600;
font-size: 16px;
}
.oak-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #57534e; }
.dark .oak-card p { color: #a8a29e; }
/* Link lists inside the "Start building" cards ---------------------------- */
.oak-card-links {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
margin-top: 16px;
}
/* Plain text links: strip Mintlify's full-width link underline/border and keep
each anchor only as wide as its text (no stretched flex item). */
.oak-card-links a {
width: fit-content;
font-size: 14px;
font-weight: 500;
color: #E08A2B !important;
text-decoration: none !important;
border-bottom: none !important;
}
.dark .oak-card-links a { color: #FCA951 !important; }
.oak-card-links a:hover { text-decoration: underline !important; }
/* Closing line ------------------------------------------------------------ */
.oak-closing {
text-align: center;
margin: 40px 0 0;
font-size: 15px;
color: #78716c;
}
.oak-closing a { color: #E08A2B; font-weight: 500; text-decoration: none; }
.dark .oak-closing a { color: #FCA951; }
.oak-closing a:hover { text-decoration: underline; }
/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
.oak-features { grid-template-columns: repeat(2, 1fr); }
.oak-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
.oak-hero { padding: 64px 0 24px; }
.oak-trust-logos, .oak-partner-logos { gap: 20px; }
.oak-trust-divider { display: none; }
.oak-partners { gap: 28px; }
.oak-features { grid-template-columns: 1fr; }
.oak-cards.cols-3, .oak-cards.cols-2 { grid-template-columns: 1fr; }
.oak-section-title { margin: 56px 0 24px; }
}