@stacksjs/bunpress 0.2.29 → 0.2.31
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/dist/bin/cli.js +1 -1
- package/dist/{chunk-0vf1e5mr.js → chunk-6g2dhmsj.js} +583 -236
- package/dist/{chunk-ebdvjtv3.js → chunk-cb6c9t4b.js} +1 -1
- package/dist/{chunk-778jqyb6.js → chunk-f5ycxw18.js} +56 -41
- package/dist/{chunk-f8n9pcxc.js → chunk-tev1ggac.js} +16 -11
- package/dist/{chunk-fgnz1d5s.js → chunk-x5qxpjc4.js} +1 -1
- package/dist/src/dark-mode-fallback.d.ts +39 -0
- package/dist/src/index.js +1 -1
- package/dist/templates/search.stx +4 -2
- package/package.json +1 -1
- package/dist/themes/vitepress/base.css +0 -549
- package/dist/themes/vitepress/code-group.css +0 -121
- package/dist/themes/vitepress/custom-block.css +0 -330
- package/dist/themes/vitepress/index.ts +0 -3524
- package/dist/themes/vitepress/vars.css +0 -436
|
@@ -1,3524 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* VitePress Theme for BunPress
|
|
3
|
-
*
|
|
4
|
-
* This theme provides VitePress-compatible styling for BunPress documentation sites.
|
|
5
|
-
* It includes the same color palette, typography, and component styles as VitePress.
|
|
6
|
-
* Based on VitePress source code for pixel-perfect compatibility.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// CSS Variables - Matches VitePress vars.css exactly
|
|
10
|
-
const varsCSS = `/**
|
|
11
|
-
* VitePress Theme for BunPress
|
|
12
|
-
* Colors: Solid
|
|
13
|
-
* -------------------------------------------------------------------------- */
|
|
14
|
-
|
|
15
|
-
:root {
|
|
16
|
-
--bp-c-white: #ffffff;
|
|
17
|
-
--bp-c-black: #000000;
|
|
18
|
-
|
|
19
|
-
--bp-c-neutral: var(--bp-c-black);
|
|
20
|
-
--bp-c-neutral-inverse: var(--bp-c-white);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.dark {
|
|
24
|
-
--bp-c-neutral: var(--bp-c-white);
|
|
25
|
-
--bp-c-neutral-inverse: var(--bp-c-black);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Colors: Palette - Light/Dark specific
|
|
30
|
-
* -------------------------------------------------------------------------- */
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Colors: Palette
|
|
34
|
-
* -------------------------------------------------------------------------- */
|
|
35
|
-
|
|
36
|
-
:root {
|
|
37
|
-
--bp-c-gray-1: #dddde3;
|
|
38
|
-
--bp-c-gray-2: #e4e4e9;
|
|
39
|
-
--bp-c-gray-3: #ebebef;
|
|
40
|
-
--bp-c-gray-soft: rgba(142, 150, 170, 0.14);
|
|
41
|
-
|
|
42
|
-
--bp-c-indigo-1: #3451b2;
|
|
43
|
-
--bp-c-indigo-2: #3a5ccc;
|
|
44
|
-
--bp-c-indigo-3: #5672cd;
|
|
45
|
-
--bp-c-indigo-soft: rgba(100, 108, 255, 0.14);
|
|
46
|
-
|
|
47
|
-
--bp-c-purple-1: #6f42c1;
|
|
48
|
-
--bp-c-purple-2: #7e4cc9;
|
|
49
|
-
--bp-c-purple-3: #8e5cd9;
|
|
50
|
-
--bp-c-purple-soft: rgba(159, 122, 234, 0.14);
|
|
51
|
-
|
|
52
|
-
--bp-c-green-1: #18794e;
|
|
53
|
-
--bp-c-green-2: #299764;
|
|
54
|
-
--bp-c-green-3: #30a46c;
|
|
55
|
-
--bp-c-green-soft: rgba(16, 185, 129, 0.14);
|
|
56
|
-
|
|
57
|
-
--bp-c-yellow-1: #915930;
|
|
58
|
-
--bp-c-yellow-2: #946300;
|
|
59
|
-
--bp-c-yellow-3: #9f6a00;
|
|
60
|
-
--bp-c-yellow-soft: rgba(234, 179, 8, 0.14);
|
|
61
|
-
|
|
62
|
-
--bp-c-red-1: #b8272c;
|
|
63
|
-
--bp-c-red-2: #d5393e;
|
|
64
|
-
--bp-c-red-3: #e0575b;
|
|
65
|
-
--bp-c-red-soft: rgba(244, 63, 94, 0.14);
|
|
66
|
-
|
|
67
|
-
--bp-c-sponsor: #db2777;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.dark {
|
|
71
|
-
--bp-c-gray-1: #515c67;
|
|
72
|
-
--bp-c-gray-2: #414853;
|
|
73
|
-
--bp-c-gray-3: #32363f;
|
|
74
|
-
--bp-c-gray-soft: rgba(101, 117, 133, 0.16);
|
|
75
|
-
|
|
76
|
-
--bp-c-indigo-1: #a8b1ff;
|
|
77
|
-
--bp-c-indigo-2: #5c73e7;
|
|
78
|
-
--bp-c-indigo-3: #3e63dd;
|
|
79
|
-
--bp-c-indigo-soft: rgba(100, 108, 255, 0.16);
|
|
80
|
-
|
|
81
|
-
--bp-c-purple-1: #c8abfa;
|
|
82
|
-
--bp-c-purple-2: #a879e6;
|
|
83
|
-
--bp-c-purple-3: #8e5cd9;
|
|
84
|
-
--bp-c-purple-soft: rgba(159, 122, 234, 0.16);
|
|
85
|
-
|
|
86
|
-
--bp-c-green-1: #3dd68c;
|
|
87
|
-
--bp-c-green-2: #30a46c;
|
|
88
|
-
--bp-c-green-3: #298459;
|
|
89
|
-
--bp-c-green-soft: rgba(16, 185, 129, 0.16);
|
|
90
|
-
|
|
91
|
-
--bp-c-yellow-1: #f9b44e;
|
|
92
|
-
--bp-c-yellow-2: #da8b17;
|
|
93
|
-
--bp-c-yellow-3: #a46a0a;
|
|
94
|
-
--bp-c-yellow-soft: rgba(234, 179, 8, 0.16);
|
|
95
|
-
|
|
96
|
-
--bp-c-red-1: #f66f81;
|
|
97
|
-
--bp-c-red-2: #f14158;
|
|
98
|
-
--bp-c-red-3: #b62a3c;
|
|
99
|
-
--bp-c-red-soft: rgba(244, 63, 94, 0.16);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Colors: Background
|
|
104
|
-
* -------------------------------------------------------------------------- */
|
|
105
|
-
|
|
106
|
-
:root {
|
|
107
|
-
--bp-c-bg: #ffffff;
|
|
108
|
-
--bp-c-bg-alt: #f6f6f7;
|
|
109
|
-
--bp-c-bg-elv: #ffffff;
|
|
110
|
-
--bp-c-bg-soft: #f6f6f7;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.dark {
|
|
114
|
-
--bp-c-bg: #1b1b1f;
|
|
115
|
-
--bp-c-bg-alt: #161618;
|
|
116
|
-
--bp-c-bg-elv: #202127;
|
|
117
|
-
--bp-c-bg-soft: #202127;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Colors: Borders
|
|
122
|
-
* -------------------------------------------------------------------------- */
|
|
123
|
-
|
|
124
|
-
:root {
|
|
125
|
-
--bp-c-border: #c2c2c4;
|
|
126
|
-
--bp-c-divider: #e2e2e3;
|
|
127
|
-
--bp-c-gutter: #e2e2e3;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.dark {
|
|
131
|
-
--bp-c-border: #3c3f44;
|
|
132
|
-
--bp-c-divider: #2e2e32;
|
|
133
|
-
--bp-c-gutter: #000000;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Colors: Text
|
|
138
|
-
* Note: Using solid colors like VitePress for better consistency
|
|
139
|
-
* -------------------------------------------------------------------------- */
|
|
140
|
-
|
|
141
|
-
:root {
|
|
142
|
-
--bp-c-text-1: #3c3c43;
|
|
143
|
-
--bp-c-text-2: #67676c;
|
|
144
|
-
--bp-c-text-3: #929295;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.dark {
|
|
148
|
-
--bp-c-text-1: #dfdfd6;
|
|
149
|
-
--bp-c-text-2: #98989f;
|
|
150
|
-
--bp-c-text-3: #6a6a71;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Colors: Function
|
|
155
|
-
* -------------------------------------------------------------------------- */
|
|
156
|
-
|
|
157
|
-
:root {
|
|
158
|
-
--bp-c-default-1: var(--bp-c-gray-1);
|
|
159
|
-
--bp-c-default-2: var(--bp-c-gray-2);
|
|
160
|
-
--bp-c-default-3: var(--bp-c-gray-3);
|
|
161
|
-
--bp-c-default-soft: var(--bp-c-gray-soft);
|
|
162
|
-
|
|
163
|
-
--bp-c-brand-1: var(--bp-c-indigo-1);
|
|
164
|
-
--bp-c-brand-2: var(--bp-c-indigo-2);
|
|
165
|
-
--bp-c-brand-3: var(--bp-c-indigo-3);
|
|
166
|
-
--bp-c-brand-soft: var(--bp-c-indigo-soft);
|
|
167
|
-
|
|
168
|
-
--bp-c-brand: var(--bp-c-brand-1);
|
|
169
|
-
|
|
170
|
-
--bp-c-tip-1: var(--bp-c-brand-1);
|
|
171
|
-
--bp-c-tip-2: var(--bp-c-brand-2);
|
|
172
|
-
--bp-c-tip-3: var(--bp-c-brand-3);
|
|
173
|
-
--bp-c-tip-soft: var(--bp-c-brand-soft);
|
|
174
|
-
|
|
175
|
-
--bp-c-note-1: var(--bp-c-brand-1);
|
|
176
|
-
--bp-c-note-2: var(--bp-c-brand-2);
|
|
177
|
-
--bp-c-note-3: var(--bp-c-brand-3);
|
|
178
|
-
--bp-c-note-soft: var(--bp-c-brand-soft);
|
|
179
|
-
|
|
180
|
-
--bp-c-success-1: var(--bp-c-green-1);
|
|
181
|
-
--bp-c-success-2: var(--bp-c-green-2);
|
|
182
|
-
--bp-c-success-3: var(--bp-c-green-3);
|
|
183
|
-
--bp-c-success-soft: var(--bp-c-green-soft);
|
|
184
|
-
|
|
185
|
-
--bp-c-important-1: var(--bp-c-purple-1);
|
|
186
|
-
--bp-c-important-2: var(--bp-c-purple-2);
|
|
187
|
-
--bp-c-important-3: var(--bp-c-purple-3);
|
|
188
|
-
--bp-c-important-soft: var(--bp-c-purple-soft);
|
|
189
|
-
|
|
190
|
-
--bp-c-warning-1: var(--bp-c-yellow-1);
|
|
191
|
-
--bp-c-warning-2: var(--bp-c-yellow-2);
|
|
192
|
-
--bp-c-warning-3: var(--bp-c-yellow-3);
|
|
193
|
-
--bp-c-warning-soft: var(--bp-c-yellow-soft);
|
|
194
|
-
|
|
195
|
-
--bp-c-danger-1: var(--bp-c-red-1);
|
|
196
|
-
--bp-c-danger-2: var(--bp-c-red-2);
|
|
197
|
-
--bp-c-danger-3: var(--bp-c-red-3);
|
|
198
|
-
--bp-c-danger-soft: var(--bp-c-red-soft);
|
|
199
|
-
|
|
200
|
-
--bp-c-caution-1: var(--bp-c-red-1);
|
|
201
|
-
--bp-c-caution-2: var(--bp-c-red-2);
|
|
202
|
-
--bp-c-caution-3: var(--bp-c-red-3);
|
|
203
|
-
--bp-c-caution-soft: var(--bp-c-red-soft);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Typography
|
|
208
|
-
* -------------------------------------------------------------------------- */
|
|
209
|
-
|
|
210
|
-
:root {
|
|
211
|
-
--bp-font-family-base: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
212
|
-
--bp-font-family-mono: ui-monospace, 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
|
|
213
|
-
font-optical-sizing: auto;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Shadows
|
|
218
|
-
* -------------------------------------------------------------------------- */
|
|
219
|
-
|
|
220
|
-
:root {
|
|
221
|
-
--bp-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
222
|
-
--bp-shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
|
|
223
|
-
--bp-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
|
|
224
|
-
--bp-shadow-4: 0 14px 44px rgba(0, 0, 0, 0.12), 0 3px 9px rgba(0, 0, 0, 0.12);
|
|
225
|
-
--bp-shadow-5: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Z-indexes
|
|
230
|
-
* -------------------------------------------------------------------------- */
|
|
231
|
-
|
|
232
|
-
:root {
|
|
233
|
-
--bp-z-index-footer: 10;
|
|
234
|
-
--bp-z-index-local-nav: 20;
|
|
235
|
-
--bp-z-index-nav: 30;
|
|
236
|
-
--bp-z-index-layout-top: 40;
|
|
237
|
-
--bp-z-index-backdrop: 50;
|
|
238
|
-
--bp-z-index-sidebar: 60;
|
|
239
|
-
/* Above the sidebar drawer: search opens over everything, including a
|
|
240
|
-
* drawer left open behind it. */
|
|
241
|
-
--bp-z-index-search: 200;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@media (min-width: 960px) {
|
|
245
|
-
:root {
|
|
246
|
-
--bp-z-index-sidebar: 25;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Layouts
|
|
252
|
-
* -------------------------------------------------------------------------- */
|
|
253
|
-
|
|
254
|
-
:root {
|
|
255
|
-
--bp-layout-max-width: 1440px;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Component: Header Anchor
|
|
260
|
-
* -------------------------------------------------------------------------- */
|
|
261
|
-
|
|
262
|
-
:root {
|
|
263
|
-
--bp-header-anchor-symbol: '#';
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Component: Code
|
|
268
|
-
* -------------------------------------------------------------------------- */
|
|
269
|
-
|
|
270
|
-
:root {
|
|
271
|
-
--bp-code-line-height: 1.7;
|
|
272
|
-
--bp-code-font-size: 0.875em;
|
|
273
|
-
--bp-code-color: var(--bp-c-brand-1);
|
|
274
|
-
--bp-code-link-color: var(--bp-c-brand-1);
|
|
275
|
-
--bp-code-link-hover-color: var(--bp-c-brand-2);
|
|
276
|
-
--bp-code-bg: var(--bp-c-default-soft);
|
|
277
|
-
|
|
278
|
-
--bp-code-block-color: var(--bp-c-text-2);
|
|
279
|
-
--bp-code-block-bg: var(--bp-c-bg-alt);
|
|
280
|
-
--bp-code-block-divider-color: var(--bp-c-gutter);
|
|
281
|
-
|
|
282
|
-
--bp-code-lang-color: var(--bp-c-text-2);
|
|
283
|
-
|
|
284
|
-
--bp-code-line-highlight-color: var(--bp-c-default-soft);
|
|
285
|
-
--bp-code-line-number-color: var(--bp-c-text-2);
|
|
286
|
-
|
|
287
|
-
--bp-code-line-diff-add-color: var(--bp-c-success-soft);
|
|
288
|
-
--bp-code-line-diff-add-symbol-color: var(--bp-c-success-1);
|
|
289
|
-
|
|
290
|
-
--bp-code-line-diff-remove-color: var(--bp-c-danger-soft);
|
|
291
|
-
--bp-code-line-diff-remove-symbol-color: var(--bp-c-danger-1);
|
|
292
|
-
|
|
293
|
-
--bp-code-line-warning-color: var(--bp-c-warning-soft);
|
|
294
|
-
--bp-code-line-error-color: var(--bp-c-danger-soft);
|
|
295
|
-
|
|
296
|
-
--bp-code-copy-code-border-color: var(--bp-c-divider);
|
|
297
|
-
--bp-code-copy-code-bg: var(--bp-c-bg-soft);
|
|
298
|
-
--bp-code-copy-code-hover-border-color: var(--bp-c-divider);
|
|
299
|
-
--bp-code-copy-code-hover-bg: var(--bp-c-bg);
|
|
300
|
-
--bp-code-copy-code-active-text: var(--bp-c-text-2);
|
|
301
|
-
--bp-code-copy-copied-text-content: 'Copied';
|
|
302
|
-
|
|
303
|
-
--bp-code-tab-divider: var(--bp-code-block-divider-color);
|
|
304
|
-
--bp-code-tab-text-color: var(--bp-c-text-2);
|
|
305
|
-
--bp-code-tab-bg: var(--bp-code-block-bg);
|
|
306
|
-
--bp-code-tab-hover-text-color: var(--bp-c-text-1);
|
|
307
|
-
--bp-code-tab-active-text-color: var(--bp-c-brand-1);
|
|
308
|
-
--bp-code-tab-active-bar-color: var(--bp-c-brand-1);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Component: Button
|
|
313
|
-
* -------------------------------------------------------------------------- */
|
|
314
|
-
|
|
315
|
-
:root {
|
|
316
|
-
--bp-button-brand-border: transparent;
|
|
317
|
-
--bp-button-brand-text: var(--bp-c-white);
|
|
318
|
-
--bp-button-brand-bg: var(--bp-c-brand-3);
|
|
319
|
-
--bp-button-brand-hover-border: transparent;
|
|
320
|
-
--bp-button-brand-hover-text: var(--bp-c-white);
|
|
321
|
-
--bp-button-brand-hover-bg: var(--bp-c-brand-2);
|
|
322
|
-
--bp-button-brand-active-border: transparent;
|
|
323
|
-
--bp-button-brand-active-text: var(--bp-c-white);
|
|
324
|
-
--bp-button-brand-active-bg: var(--bp-c-brand-1);
|
|
325
|
-
|
|
326
|
-
--bp-button-alt-border: transparent;
|
|
327
|
-
--bp-button-alt-text: var(--bp-c-text-1);
|
|
328
|
-
--bp-button-alt-bg: var(--bp-c-default-3);
|
|
329
|
-
--bp-button-alt-hover-border: transparent;
|
|
330
|
-
--bp-button-alt-hover-text: var(--bp-c-text-1);
|
|
331
|
-
--bp-button-alt-hover-bg: var(--bp-c-default-2);
|
|
332
|
-
--bp-button-alt-active-border: transparent;
|
|
333
|
-
--bp-button-alt-active-text: var(--bp-c-text-1);
|
|
334
|
-
--bp-button-alt-active-bg: var(--bp-c-default-1);
|
|
335
|
-
|
|
336
|
-
--bp-button-sponsor-border: var(--bp-c-text-2);
|
|
337
|
-
--bp-button-sponsor-text: var(--bp-c-text-2);
|
|
338
|
-
--bp-button-sponsor-bg: transparent;
|
|
339
|
-
--bp-button-sponsor-hover-border: var(--bp-c-sponsor);
|
|
340
|
-
--bp-button-sponsor-hover-text: var(--bp-c-sponsor);
|
|
341
|
-
--bp-button-sponsor-hover-bg: transparent;
|
|
342
|
-
--bp-button-sponsor-active-border: var(--bp-c-sponsor);
|
|
343
|
-
--bp-button-sponsor-active-text: var(--bp-c-sponsor);
|
|
344
|
-
--bp-button-sponsor-active-bg: transparent;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Component: Custom Block
|
|
349
|
-
* -------------------------------------------------------------------------- */
|
|
350
|
-
|
|
351
|
-
:root {
|
|
352
|
-
--bp-custom-block-font-size: 14px;
|
|
353
|
-
--bp-custom-block-code-font-size: 13px;
|
|
354
|
-
|
|
355
|
-
/* The *-border colour is drawn only on the leading edge (see .custom-block),
|
|
356
|
-
* so it carries the block's identity — hence a solid accent, not transparent.
|
|
357
|
-
* Info/note are neutral, so they take a mid-grey: --bp-c-default-1 is a
|
|
358
|
-
* near-white tint that vanishes against the block's own soft background. */
|
|
359
|
-
--bp-custom-block-info-border: var(--bp-c-text-3);
|
|
360
|
-
--bp-custom-block-info-text: var(--bp-c-text-1);
|
|
361
|
-
--bp-custom-block-info-bg: var(--bp-c-default-soft);
|
|
362
|
-
--bp-custom-block-info-code-bg: var(--bp-c-default-soft);
|
|
363
|
-
|
|
364
|
-
/* note carries a brand-coloured title and icon, so its rail matches those
|
|
365
|
-
* rather than the neutral background it shares with info. */
|
|
366
|
-
--bp-custom-block-note-border: var(--bp-c-note-1);
|
|
367
|
-
--bp-custom-block-note-text: var(--bp-c-text-1);
|
|
368
|
-
--bp-custom-block-note-bg: var(--bp-c-default-soft);
|
|
369
|
-
--bp-custom-block-note-code-bg: var(--bp-c-default-soft);
|
|
370
|
-
|
|
371
|
-
--bp-custom-block-tip-border: var(--bp-c-tip-1);
|
|
372
|
-
--bp-custom-block-tip-text: var(--bp-c-text-1);
|
|
373
|
-
--bp-custom-block-tip-bg: var(--bp-c-tip-soft);
|
|
374
|
-
--bp-custom-block-tip-code-bg: var(--bp-c-tip-soft);
|
|
375
|
-
|
|
376
|
-
--bp-custom-block-important-border: var(--bp-c-important-1);
|
|
377
|
-
--bp-custom-block-important-text: var(--bp-c-text-1);
|
|
378
|
-
--bp-custom-block-important-bg: var(--bp-c-important-soft);
|
|
379
|
-
--bp-custom-block-important-code-bg: var(--bp-c-important-soft);
|
|
380
|
-
|
|
381
|
-
--bp-custom-block-warning-border: var(--bp-c-warning-1);
|
|
382
|
-
--bp-custom-block-warning-text: var(--bp-c-text-1);
|
|
383
|
-
--bp-custom-block-warning-bg: var(--bp-c-warning-soft);
|
|
384
|
-
--bp-custom-block-warning-code-bg: var(--bp-c-warning-soft);
|
|
385
|
-
|
|
386
|
-
--bp-custom-block-danger-border: var(--bp-c-danger-1);
|
|
387
|
-
--bp-custom-block-danger-text: var(--bp-c-text-1);
|
|
388
|
-
--bp-custom-block-danger-bg: var(--bp-c-danger-soft);
|
|
389
|
-
--bp-custom-block-danger-code-bg: var(--bp-c-danger-soft);
|
|
390
|
-
|
|
391
|
-
--bp-custom-block-caution-border: var(--bp-c-caution-1);
|
|
392
|
-
--bp-custom-block-caution-text: var(--bp-c-text-1);
|
|
393
|
-
--bp-custom-block-caution-bg: var(--bp-c-caution-soft);
|
|
394
|
-
--bp-custom-block-caution-code-bg: var(--bp-c-caution-soft);
|
|
395
|
-
|
|
396
|
-
--bp-custom-block-details-border: var(--bp-custom-block-info-border);
|
|
397
|
-
--bp-custom-block-details-text: var(--bp-custom-block-info-text);
|
|
398
|
-
--bp-custom-block-details-bg: var(--bp-custom-block-info-bg);
|
|
399
|
-
--bp-custom-block-details-code-bg: var(--bp-custom-block-info-code-bg);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* Component: Nav
|
|
404
|
-
* -------------------------------------------------------------------------- */
|
|
405
|
-
|
|
406
|
-
:root {
|
|
407
|
-
--bp-nav-height: 64px;
|
|
408
|
-
--bp-nav-bg-color: var(--bp-c-bg);
|
|
409
|
-
--bp-nav-screen-bg-color: var(--bp-c-bg);
|
|
410
|
-
--bp-nav-logo-height: 24px;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* Component: Sidebar
|
|
415
|
-
* -------------------------------------------------------------------------- */
|
|
416
|
-
|
|
417
|
-
:root {
|
|
418
|
-
--bp-sidebar-width: 272px;
|
|
419
|
-
--bp-sidebar-bg-color: var(--bp-c-bg-alt);
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Colors Backdrop
|
|
424
|
-
* -------------------------------------------------------------------------- */
|
|
425
|
-
|
|
426
|
-
:root {
|
|
427
|
-
--bp-backdrop-bg-color: rgba(0, 0, 0, 0.6);
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Component: Home
|
|
432
|
-
* -------------------------------------------------------------------------- */
|
|
433
|
-
|
|
434
|
-
:root {
|
|
435
|
-
--bp-home-hero-name-color: var(--bp-c-brand-1);
|
|
436
|
-
--bp-home-hero-name-background: transparent;
|
|
437
|
-
--bp-home-hero-image-background-image: none;
|
|
438
|
-
--bp-home-hero-image-filter: none;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* Component: Badge
|
|
443
|
-
* -------------------------------------------------------------------------- */
|
|
444
|
-
|
|
445
|
-
:root {
|
|
446
|
-
--bp-badge-info-border: transparent;
|
|
447
|
-
--bp-badge-info-text: var(--bp-c-text-2);
|
|
448
|
-
--bp-badge-info-bg: var(--bp-c-default-soft);
|
|
449
|
-
|
|
450
|
-
--bp-badge-tip-border: transparent;
|
|
451
|
-
--bp-badge-tip-text: var(--bp-c-tip-1);
|
|
452
|
-
--bp-badge-tip-bg: var(--bp-c-tip-soft);
|
|
453
|
-
|
|
454
|
-
--bp-badge-warning-border: transparent;
|
|
455
|
-
--bp-badge-warning-text: var(--bp-c-warning-1);
|
|
456
|
-
--bp-badge-warning-bg: var(--bp-c-warning-soft);
|
|
457
|
-
|
|
458
|
-
--bp-badge-danger-border: transparent;
|
|
459
|
-
--bp-badge-danger-text: var(--bp-c-danger-1);
|
|
460
|
-
--bp-badge-danger-bg: var(--bp-c-danger-soft);
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Icons - Matches VitePress icons.css exactly
|
|
465
|
-
* -------------------------------------------------------------------------- */
|
|
466
|
-
|
|
467
|
-
:root {
|
|
468
|
-
/* clipboard - matches VitePress exactly */
|
|
469
|
-
--bp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/g%3E%3C/svg%3E");
|
|
470
|
-
/* clipboard-check - matches VitePress exactly */
|
|
471
|
-
--bp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14l2 2l4-4'/%3E%3C/g%3E%3C/svg%3E");
|
|
472
|
-
--bp-icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z'/%3E%3C/svg%3E");
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Icon Classes - Matches VitePress .vpi-* icons
|
|
477
|
-
* -------------------------------------------------------------------------- */
|
|
478
|
-
|
|
479
|
-
[class^='bpi-'],
|
|
480
|
-
[class*=' bpi-'],
|
|
481
|
-
.bp-icon {
|
|
482
|
-
width: 1em;
|
|
483
|
-
height: 1em;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
[class^='bpi-'].bg,
|
|
487
|
-
[class*=' bpi-'].bg,
|
|
488
|
-
.bp-icon.bg {
|
|
489
|
-
background-size: 100% 100%;
|
|
490
|
-
background-color: transparent;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
[class^='bpi-']:not(.bg),
|
|
494
|
-
[class*=' bpi-']:not(.bg),
|
|
495
|
-
.bp-icon:not(.bg) {
|
|
496
|
-
-webkit-mask: var(--icon) no-repeat;
|
|
497
|
-
mask: var(--icon) no-repeat;
|
|
498
|
-
-webkit-mask-size: 100% 100%;
|
|
499
|
-
mask-size: 100% 100%;
|
|
500
|
-
background-color: currentColor;
|
|
501
|
-
color: inherit;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
.bpi-align-left {
|
|
505
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12H3m14 6H3M21 6H3'/%3E%3C/svg%3E");
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
.bpi-arrow-right,
|
|
509
|
-
.bpi-arrow-down,
|
|
510
|
-
.bpi-arrow-left,
|
|
511
|
-
.bpi-arrow-up {
|
|
512
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 12h14m-7-7l7 7l-7 7'/%3E%3C/svg%3E");
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.bpi-chevron-right,
|
|
516
|
-
.bpi-chevron-down,
|
|
517
|
-
.bpi-chevron-left,
|
|
518
|
-
.bpi-chevron-up {
|
|
519
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 18l6-6l-6-6'/%3E%3C/svg%3E");
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.bpi-chevron-down,
|
|
523
|
-
.bpi-arrow-down {
|
|
524
|
-
transform: rotate(90deg);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.bpi-chevron-left,
|
|
528
|
-
.bpi-arrow-left {
|
|
529
|
-
transform: rotate(180deg);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.bpi-chevron-up,
|
|
533
|
-
.bpi-arrow-up {
|
|
534
|
-
transform: rotate(-90deg);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.bpi-square-pen {
|
|
538
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z'/%3E%3C/g%3E%3C/svg%3E");
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
.bpi-plus {
|
|
542
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 12h14m-7-7v14'/%3E%3C/svg%3E");
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
.bpi-sun {
|
|
546
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/g%3E%3C/svg%3E");
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
.bpi-moon {
|
|
550
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 3a6 6 0 0 0 9 9a9 9 0 1 1-9-9'/%3E%3C/svg%3E");
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
.bpi-more-horizontal {
|
|
554
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/g%3E%3C/svg%3E");
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.bpi-languages {
|
|
558
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 8l6 6m-7 0l6-6l2-3M2 5h12M7 2h1m14 20l-5-10l-5 10m2-4h6'/%3E%3C/svg%3E");
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.bpi-heart {
|
|
562
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2c-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
.bpi-search {
|
|
566
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'%3E%3Cpath d='m21 21l-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E");
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
.bpi-layout-list {
|
|
570
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7m-7 5h7m-7 6h7m-7 5h7'/%3E%3C/g%3E%3C/svg%3E");
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
.bpi-delete {
|
|
574
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm2 4l6 6m0-6l-6 6'/%3E%3C/svg%3E");
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
.bpi-corner-down-left {
|
|
578
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3Cpath d='m9 10l-5 5l5 5'/%3E%3C/g%3E%3C/svg%3E");
|
|
579
|
-
}`
|
|
580
|
-
|
|
581
|
-
// Base CSS - Matches VitePress base.css exactly
|
|
582
|
-
const baseCSS = `/**
|
|
583
|
-
* VitePress Theme for BunPress - Base Styles
|
|
584
|
-
* -------------------------------------------------------------------------- */
|
|
585
|
-
|
|
586
|
-
@media (prefers-reduced-motion: reduce) {
|
|
587
|
-
*,
|
|
588
|
-
::before,
|
|
589
|
-
::after {
|
|
590
|
-
animation-delay: -1ms !important;
|
|
591
|
-
animation-duration: 1ms !important;
|
|
592
|
-
animation-iteration-count: 1 !important;
|
|
593
|
-
background-attachment: initial !important;
|
|
594
|
-
scroll-behavior: auto !important;
|
|
595
|
-
transition-duration: 0s !important;
|
|
596
|
-
transition-delay: 0s !important;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
*,
|
|
601
|
-
::before,
|
|
602
|
-
::after {
|
|
603
|
-
box-sizing: border-box;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
html {
|
|
607
|
-
line-height: 1.4;
|
|
608
|
-
font-size: 16px;
|
|
609
|
-
-webkit-text-size-adjust: 100%;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
html.dark {
|
|
613
|
-
color-scheme: dark;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
body {
|
|
617
|
-
margin: 0;
|
|
618
|
-
width: 100%;
|
|
619
|
-
min-width: 320px;
|
|
620
|
-
min-height: 100vh;
|
|
621
|
-
line-height: 24px;
|
|
622
|
-
font-family: var(--bp-font-family-base);
|
|
623
|
-
font-size: 16px;
|
|
624
|
-
font-weight: 400;
|
|
625
|
-
color: var(--bp-c-text-1);
|
|
626
|
-
background-color: var(--bp-c-bg);
|
|
627
|
-
font-synthesis: style;
|
|
628
|
-
text-rendering: optimizeLegibility;
|
|
629
|
-
-webkit-font-smoothing: antialiased;
|
|
630
|
-
-moz-osx-font-smoothing: grayscale;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
main {
|
|
634
|
-
display: block;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
h1,
|
|
638
|
-
h2,
|
|
639
|
-
h3,
|
|
640
|
-
h4,
|
|
641
|
-
h5,
|
|
642
|
-
h6 {
|
|
643
|
-
margin: 0;
|
|
644
|
-
line-height: 24px;
|
|
645
|
-
font-size: 16px;
|
|
646
|
-
font-weight: 400;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
p {
|
|
650
|
-
margin: 0;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
strong,
|
|
654
|
-
b {
|
|
655
|
-
font-weight: 600;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
a,
|
|
659
|
-
area,
|
|
660
|
-
button,
|
|
661
|
-
[role='button'],
|
|
662
|
-
input,
|
|
663
|
-
label,
|
|
664
|
-
select,
|
|
665
|
-
summary,
|
|
666
|
-
textarea {
|
|
667
|
-
touch-action: manipulation;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
a {
|
|
671
|
-
color: inherit;
|
|
672
|
-
text-decoration: inherit;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
ol,
|
|
676
|
-
ul {
|
|
677
|
-
list-style: none;
|
|
678
|
-
margin: 0;
|
|
679
|
-
padding: 0;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
blockquote {
|
|
683
|
-
margin: 0;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
pre,
|
|
687
|
-
code,
|
|
688
|
-
kbd,
|
|
689
|
-
samp {
|
|
690
|
-
font-family: var(--bp-font-family-mono);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
img,
|
|
694
|
-
svg,
|
|
695
|
-
video,
|
|
696
|
-
canvas,
|
|
697
|
-
audio,
|
|
698
|
-
iframe,
|
|
699
|
-
embed,
|
|
700
|
-
object {
|
|
701
|
-
display: block;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
figure {
|
|
705
|
-
margin: 0;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
img,
|
|
709
|
-
video {
|
|
710
|
-
max-width: 100%;
|
|
711
|
-
height: auto;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
button,
|
|
715
|
-
input,
|
|
716
|
-
optgroup,
|
|
717
|
-
select,
|
|
718
|
-
textarea {
|
|
719
|
-
border: 0;
|
|
720
|
-
padding: 0;
|
|
721
|
-
line-height: inherit;
|
|
722
|
-
color: inherit;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
button {
|
|
726
|
-
padding: 0;
|
|
727
|
-
font-family: inherit;
|
|
728
|
-
background-color: transparent;
|
|
729
|
-
background-image: none;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
button:enabled,
|
|
733
|
-
[role='button']:enabled {
|
|
734
|
-
cursor: pointer;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
button:focus,
|
|
738
|
-
button:focus-visible {
|
|
739
|
-
outline: 1px dotted;
|
|
740
|
-
outline: 4px auto -webkit-focus-ring-color;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
button:focus:not(:focus-visible) {
|
|
744
|
-
outline: none !important;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
input:focus,
|
|
748
|
-
textarea:focus,
|
|
749
|
-
select:focus {
|
|
750
|
-
outline: none;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
table {
|
|
754
|
-
border-collapse: collapse;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
input {
|
|
758
|
-
background-color: transparent;
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
input:-ms-input-placeholder,
|
|
762
|
-
textarea:-ms-input-placeholder {
|
|
763
|
-
color: var(--bp-c-text-3);
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
input::-ms-input-placeholder,
|
|
767
|
-
textarea::-ms-input-placeholder {
|
|
768
|
-
color: var(--bp-c-text-3);
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
input::placeholder,
|
|
772
|
-
textarea::placeholder {
|
|
773
|
-
color: var(--bp-c-text-3);
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
input::-webkit-outer-spin-button,
|
|
777
|
-
input::-webkit-inner-spin-button {
|
|
778
|
-
-webkit-appearance: none;
|
|
779
|
-
margin: 0;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
input[type='number'] {
|
|
783
|
-
-moz-appearance: textfield;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
textarea {
|
|
787
|
-
resize: vertical;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
select {
|
|
791
|
-
-webkit-appearance: none;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
fieldset {
|
|
795
|
-
margin: 0;
|
|
796
|
-
padding: 0;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
h1,
|
|
800
|
-
h2,
|
|
801
|
-
h3,
|
|
802
|
-
h4,
|
|
803
|
-
h5,
|
|
804
|
-
h6,
|
|
805
|
-
li,
|
|
806
|
-
p {
|
|
807
|
-
overflow-wrap: break-word;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
vite-error-overlay {
|
|
811
|
-
z-index: 9999;
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
mjx-container {
|
|
815
|
-
overflow-x: auto;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
mjx-container > svg {
|
|
819
|
-
display: inline-block;
|
|
820
|
-
margin: auto;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
/**
|
|
824
|
-
* Utility Classes
|
|
825
|
-
* -------------------------------------------------------------------------- */
|
|
826
|
-
|
|
827
|
-
.visually-hidden {
|
|
828
|
-
position: absolute;
|
|
829
|
-
width: 1px;
|
|
830
|
-
height: 1px;
|
|
831
|
-
white-space: nowrap;
|
|
832
|
-
clip: rect(0 0 0 0);
|
|
833
|
-
clip-path: inset(50%);
|
|
834
|
-
overflow: hidden;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
/**
|
|
838
|
-
* BPDoc Styles - Documentation Content
|
|
839
|
-
* -------------------------------------------------------------------------- */
|
|
840
|
-
|
|
841
|
-
.bp-doc h1,
|
|
842
|
-
.bp-doc h2,
|
|
843
|
-
.bp-doc h3,
|
|
844
|
-
.bp-doc h4,
|
|
845
|
-
.bp-doc h5,
|
|
846
|
-
.bp-doc h6 {
|
|
847
|
-
position: relative;
|
|
848
|
-
font-weight: 600;
|
|
849
|
-
outline: none;
|
|
850
|
-
/* Anchor jumps — from the outline, the sidebar or an external deep link —
|
|
851
|
-
* otherwise land the heading flush against the top edge of the scroll
|
|
852
|
-
* container, with no separation from the chrome above it. */
|
|
853
|
-
scroll-margin-top: 24px;
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
.bp-doc h1 {
|
|
857
|
-
letter-spacing: -0.02em;
|
|
858
|
-
line-height: 40px;
|
|
859
|
-
font-size: 28px;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
.bp-doc h2 {
|
|
863
|
-
margin: 48px 0 16px;
|
|
864
|
-
border-top: 1px solid var(--bp-c-divider);
|
|
865
|
-
padding-top: 24px;
|
|
866
|
-
letter-spacing: -0.02em;
|
|
867
|
-
line-height: 32px;
|
|
868
|
-
font-size: 24px;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
.bp-doc h3 {
|
|
872
|
-
margin: 32px 0 0;
|
|
873
|
-
letter-spacing: -0.01em;
|
|
874
|
-
line-height: 28px;
|
|
875
|
-
font-size: 20px;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
.bp-doc h4 {
|
|
879
|
-
margin: 24px 0 0;
|
|
880
|
-
letter-spacing: -0.01em;
|
|
881
|
-
line-height: 24px;
|
|
882
|
-
font-size: 18px;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
.bp-doc h5 {
|
|
886
|
-
margin: 16px 0 0;
|
|
887
|
-
font-size: 16px;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
.bp-doc h6 {
|
|
891
|
-
margin: 16px 0 0;
|
|
892
|
-
font-size: 14px;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
.bp-doc .header-anchor {
|
|
896
|
-
position: absolute;
|
|
897
|
-
top: 0;
|
|
898
|
-
left: 0;
|
|
899
|
-
margin-left: -0.87em;
|
|
900
|
-
font-weight: 500;
|
|
901
|
-
user-select: none;
|
|
902
|
-
opacity: 0;
|
|
903
|
-
text-decoration: none;
|
|
904
|
-
transition: color 0.25s, opacity 0.25s;
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
.bp-doc .header-anchor:before {
|
|
908
|
-
content: var(--bp-header-anchor-symbol);
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
.bp-doc h1:hover .header-anchor,
|
|
912
|
-
.bp-doc h1 .header-anchor:focus,
|
|
913
|
-
.bp-doc h2:hover .header-anchor,
|
|
914
|
-
.bp-doc h2 .header-anchor:focus,
|
|
915
|
-
.bp-doc h3:hover .header-anchor,
|
|
916
|
-
.bp-doc h3 .header-anchor:focus,
|
|
917
|
-
.bp-doc h4:hover .header-anchor,
|
|
918
|
-
.bp-doc h4 .header-anchor:focus,
|
|
919
|
-
.bp-doc h5:hover .header-anchor,
|
|
920
|
-
.bp-doc h5 .header-anchor:focus,
|
|
921
|
-
.bp-doc h6:hover .header-anchor,
|
|
922
|
-
.bp-doc h6 .header-anchor:focus {
|
|
923
|
-
opacity: 1;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
@media (min-width: 768px) {
|
|
927
|
-
.bp-doc h1 {
|
|
928
|
-
letter-spacing: -0.02em;
|
|
929
|
-
line-height: 40px;
|
|
930
|
-
font-size: 32px;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
.bp-doc h2 .header-anchor {
|
|
935
|
-
top: 24px;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
* Paragraph and inline elements
|
|
940
|
-
* -------------------------------------------------------------------------- */
|
|
941
|
-
|
|
942
|
-
.bp-doc p,
|
|
943
|
-
.bp-doc summary {
|
|
944
|
-
margin: 16px 0;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
.bp-doc p {
|
|
948
|
-
line-height: 28px;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
.bp-doc blockquote {
|
|
952
|
-
margin: 16px 0;
|
|
953
|
-
border-left: 2px solid var(--bp-c-divider);
|
|
954
|
-
padding-left: 16px;
|
|
955
|
-
transition: border-color 0.5s;
|
|
956
|
-
color: var(--bp-c-text-2);
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
.bp-doc blockquote > p {
|
|
960
|
-
margin: 0;
|
|
961
|
-
font-size: 16px;
|
|
962
|
-
transition: color 0.5s;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
/* Zeroing every paragraph margin ran a multi-paragraph quote together as if
|
|
966
|
-
* it were one block of prose. */
|
|
967
|
-
.bp-doc blockquote > p + p {
|
|
968
|
-
margin-top: 16px;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
.bp-doc a {
|
|
972
|
-
font-weight: 500;
|
|
973
|
-
color: var(--bp-c-brand-1);
|
|
974
|
-
text-decoration: underline;
|
|
975
|
-
text-underline-offset: 2px;
|
|
976
|
-
transition: color 0.25s, opacity 0.25s;
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
.bp-doc a:hover {
|
|
980
|
-
color: var(--bp-c-brand-2);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
.bp-doc strong {
|
|
984
|
-
font-weight: 600;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* Lists
|
|
989
|
-
* -------------------------------------------------------------------------- */
|
|
990
|
-
|
|
991
|
-
/* Markers hang in the gutter (\`outside\`) so wrapped lines stay flush with the
|
|
992
|
-
* first line — the single biggest readability win for multi-line bullets. The
|
|
993
|
-
* indent is wide enough for two-digit ordered markers without clipping. */
|
|
994
|
-
.bp-doc ul,
|
|
995
|
-
.bp-doc ol {
|
|
996
|
-
padding-left: 1.5rem;
|
|
997
|
-
margin: 16px 0;
|
|
998
|
-
list-style-position: outside;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
.bp-doc ul {
|
|
1002
|
-
list-style-type: disc;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
.bp-doc ol {
|
|
1006
|
-
list-style-type: decimal;
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
.bp-doc li {
|
|
1010
|
-
margin: 6px 0;
|
|
1011
|
-
line-height: 1.75;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
.bp-doc li::marker {
|
|
1015
|
-
color: var(--bp-c-text-3);
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
.bp-doc ol > li::marker {
|
|
1019
|
-
font-variant-numeric: tabular-nums;
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
/* A nested list belongs to its parent item, so it hugs it rather than
|
|
1023
|
-
* inheriting the full inter-item gap. */
|
|
1024
|
-
.bp-doc li > ol,
|
|
1025
|
-
.bp-doc li > ul {
|
|
1026
|
-
margin: 6px 0 0;
|
|
1027
|
-
padding-left: 1.5rem;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
.bp-doc ul ul {
|
|
1031
|
-
list-style-type: circle;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
.bp-doc ul ul ul {
|
|
1035
|
-
list-style-type: square;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
/* Loose lists (blank lines between items) wrap each item's text in a <p>.
|
|
1039
|
-
* Without this the paragraph's 16px margins double the list's spacing. */
|
|
1040
|
-
.bp-doc li > p {
|
|
1041
|
-
margin: 0;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
.bp-doc li > p + p {
|
|
1045
|
-
margin-top: 12px;
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
/* Block content inside an item stays indented with the item, and never
|
|
1049
|
-
* bleeds full-width the way a top-level code block does. */
|
|
1050
|
-
.bp-doc li > pre,
|
|
1051
|
-
.bp-doc li > div[class*='language-'],
|
|
1052
|
-
.bp-doc li > pre[data-lang],
|
|
1053
|
-
.bp-doc li > blockquote,
|
|
1054
|
-
.bp-doc li > .table-responsive,
|
|
1055
|
-
.bp-doc li > .custom-block {
|
|
1056
|
-
margin: 12px 0;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
/* Task list styles */
|
|
1060
|
-
.bp-doc .task-list {
|
|
1061
|
-
list-style: none;
|
|
1062
|
-
padding-left: 0;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
/* A list of task items has checkboxes where the markers would be, so the
|
|
1066
|
-
* marker gutter is dead space. Scoped with :has() so a list that merely
|
|
1067
|
-
* contains one task item keeps its indent for the plain items. */
|
|
1068
|
-
.bp-doc ul:has(> .task-list-item) {
|
|
1069
|
-
padding-left: 0;
|
|
1070
|
-
list-style: none;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
.bp-doc .task-list-item {
|
|
1074
|
-
display: flex;
|
|
1075
|
-
align-items: flex-start;
|
|
1076
|
-
gap: 0.5rem;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
/* .task-list-item-checkbox is what Bun.markdown emits; .task-list-checkbox is
|
|
1080
|
-
* kept for content that ships its own task-list markup. */
|
|
1081
|
-
.bp-doc .task-list-item-checkbox,
|
|
1082
|
-
.bp-doc .task-list-checkbox {
|
|
1083
|
-
/* Nudged down to sit on the first line's cap height rather than its top. */
|
|
1084
|
-
margin: 0.3em 0 0;
|
|
1085
|
-
width: 1rem;
|
|
1086
|
-
height: 1rem;
|
|
1087
|
-
flex-shrink: 0;
|
|
1088
|
-
accent-color: var(--bp-c-brand-1);
|
|
1089
|
-
cursor: default;
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
.bp-doc .task-list-item input[type="checkbox"]:checked + span,
|
|
1093
|
-
.bp-doc .task-list-item:has(input:checked) {
|
|
1094
|
-
color: var(--bp-c-text-2);
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1098
|
-
* Table
|
|
1099
|
-
* -------------------------------------------------------------------------- */
|
|
1100
|
-
|
|
1101
|
-
/* The scroll container owns overflow, so the table itself stays a real table.
|
|
1102
|
-
* (\`display: block\` on <table> collapses column sizing — the table shrinks to
|
|
1103
|
-
* its content instead of filling the row, and cell widths stop balancing.) */
|
|
1104
|
-
.bp-doc .table-responsive {
|
|
1105
|
-
margin: 20px 0;
|
|
1106
|
-
overflow-x: auto;
|
|
1107
|
-
overscroll-behavior-x: contain;
|
|
1108
|
-
border: 1px solid var(--bp-c-divider);
|
|
1109
|
-
border-radius: 8px;
|
|
1110
|
-
/* Clip the corner radius against the header's background fill. */
|
|
1111
|
-
background-color: var(--bp-c-bg);
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
.bp-doc table {
|
|
1115
|
-
display: table;
|
|
1116
|
-
width: 100%;
|
|
1117
|
-
border-collapse: collapse;
|
|
1118
|
-
margin: 20px 0;
|
|
1119
|
-
font-size: 14px;
|
|
1120
|
-
line-height: 1.6;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
/* Inside a scroll wrapper the wrapper supplies the outer spacing and frame. */
|
|
1124
|
-
.bp-doc .table-responsive > table {
|
|
1125
|
-
margin: 0;
|
|
1126
|
-
border: none;
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
.bp-doc tr {
|
|
1130
|
-
background-color: transparent;
|
|
1131
|
-
transition: background-color 0.25s;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
.bp-doc tbody tr:nth-child(2n) {
|
|
1135
|
-
background-color: var(--bp-c-bg-soft);
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
.bp-doc th,
|
|
1139
|
-
.bp-doc td {
|
|
1140
|
-
/* Row rules only — a full grid double-draws against the wrapper border and
|
|
1141
|
-
* makes dense config tables read as noise. */
|
|
1142
|
-
border-bottom: 1px solid var(--bp-c-divider);
|
|
1143
|
-
padding: 10px 16px;
|
|
1144
|
-
text-align: left;
|
|
1145
|
-
vertical-align: top;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
.bp-doc thead th {
|
|
1149
|
-
font-size: 13px;
|
|
1150
|
-
font-weight: 600;
|
|
1151
|
-
letter-spacing: 0.01em;
|
|
1152
|
-
color: var(--bp-c-text-2);
|
|
1153
|
-
background-color: var(--bp-c-bg-soft);
|
|
1154
|
-
border-bottom: 1px solid var(--bp-c-divider);
|
|
1155
|
-
white-space: nowrap;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
/* Last row sits flush against the wrapper's own bottom border. */
|
|
1159
|
-
.bp-doc tbody tr:last-child > th,
|
|
1160
|
-
.bp-doc tbody tr:last-child > td {
|
|
1161
|
-
border-bottom: none;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
.bp-doc td {
|
|
1165
|
-
font-size: 14px;
|
|
1166
|
-
color: var(--bp-c-text-1);
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
/* Long identifiers (\`preserveDirectoryStructure\`, \`Record<string, string>\`)
|
|
1170
|
-
* must not dictate column widths. \`anywhere\` — unlike \`break-word\` — also
|
|
1171
|
-
* lowers the cell's intrinsic minimum, which is what lets the auto table
|
|
1172
|
-
* algorithm hand the spare width to the prose column instead. */
|
|
1173
|
-
.bp-doc td > code,
|
|
1174
|
-
.bp-doc th > code {
|
|
1175
|
-
white-space: normal;
|
|
1176
|
-
overflow-wrap: anywhere;
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
/* Narrow screens: a multi-column table squeezed into a phone width degenerates
|
|
1180
|
-
* into one word per line. Give it a readable floor and let the wrapper scroll
|
|
1181
|
-
* horizontally instead — scrolling a table beats shredding it. */
|
|
1182
|
-
@media (max-width: 767px) {
|
|
1183
|
-
.bp-doc .table-responsive > table {
|
|
1184
|
-
min-width: 38rem;
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
.bp-doc thead th {
|
|
1188
|
-
white-space: normal;
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
.bp-doc th,
|
|
1192
|
-
.bp-doc td {
|
|
1193
|
-
padding: 10px 12px;
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
/* Alignment from GFM's \`:---:\` / \`---:\` syntax must win over the default. */
|
|
1198
|
-
.bp-doc th[align='center'],
|
|
1199
|
-
.bp-doc td[align='center'],
|
|
1200
|
-
.bp-doc th[style*='center'],
|
|
1201
|
-
.bp-doc td[style*='center'] {
|
|
1202
|
-
text-align: center;
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
.bp-doc th[align='right'],
|
|
1206
|
-
.bp-doc td[align='right'],
|
|
1207
|
-
.bp-doc th[style*='right'],
|
|
1208
|
-
.bp-doc td[style*='right'] {
|
|
1209
|
-
text-align: right;
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* Decorational elements
|
|
1214
|
-
* -------------------------------------------------------------------------- */
|
|
1215
|
-
|
|
1216
|
-
.bp-doc hr {
|
|
1217
|
-
margin: 16px 0;
|
|
1218
|
-
border: none;
|
|
1219
|
-
border-top: 1px solid var(--bp-c-divider);
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
/**
|
|
1223
|
-
* Inline code
|
|
1224
|
-
* -------------------------------------------------------------------------- */
|
|
1225
|
-
|
|
1226
|
-
.bp-doc :not(pre, h1, h2, h3, h4, h5, h6) > code {
|
|
1227
|
-
font-size: var(--bp-code-font-size);
|
|
1228
|
-
color: var(--bp-code-color);
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
.bp-doc :not(pre) > code {
|
|
1232
|
-
border-radius: 4px;
|
|
1233
|
-
padding: 3px 6px;
|
|
1234
|
-
background-color: var(--bp-code-bg);
|
|
1235
|
-
transition: color 0.25s, background-color 0.5s;
|
|
1236
|
-
/* Without clone, a code span that wraps loses its padding and rounding on
|
|
1237
|
-
* the broken edges, so a wrapped identifier reads as ragged half-boxes. */
|
|
1238
|
-
-webkit-box-decoration-break: clone;
|
|
1239
|
-
box-decoration-break: clone;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
/* Inline code sits on a text baseline, so it must not add leading of its own
|
|
1243
|
-
* — otherwise a paragraph containing code is spaced wider than its neighbours. */
|
|
1244
|
-
.bp-doc p > code,
|
|
1245
|
-
.bp-doc li > code,
|
|
1246
|
-
.bp-doc td > code,
|
|
1247
|
-
.bp-doc th > code {
|
|
1248
|
-
line-height: 1.4;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
.bp-doc a > code {
|
|
1252
|
-
color: var(--bp-code-link-color);
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
.bp-doc a:hover > code {
|
|
1256
|
-
color: var(--bp-code-link-hover-color);
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
.bp-doc h1 > code,
|
|
1260
|
-
.bp-doc h2 > code,
|
|
1261
|
-
.bp-doc h3 > code,
|
|
1262
|
-
.bp-doc h4 > code {
|
|
1263
|
-
font-size: 0.9em;
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
/**
|
|
1267
|
-
* Code blocks
|
|
1268
|
-
* -------------------------------------------------------------------------- */
|
|
1269
|
-
|
|
1270
|
-
/* Inset, not full-bleed. The old \`margin: 16px -24px\` hard-coded the content
|
|
1271
|
-
* container's padding: once that padding changed on small screens the bleed
|
|
1272
|
-
* overshot it, hanging the block 8px off each edge and leaving the content
|
|
1273
|
-
* pane with a phantom horizontal scroll. Inset also matches how every other
|
|
1274
|
-
* block element here behaves (containers, tables, alerts). */
|
|
1275
|
-
.bp-doc div[class*='language-'],
|
|
1276
|
-
.bp-doc pre[data-lang],
|
|
1277
|
-
.bp-block {
|
|
1278
|
-
position: relative;
|
|
1279
|
-
margin: 16px 0;
|
|
1280
|
-
border-radius: 8px;
|
|
1281
|
-
background-color: var(--bp-code-block-bg);
|
|
1282
|
-
overflow-x: auto;
|
|
1283
|
-
transition: background-color 0.5s;
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
/* Wrapper divs that belong to one code group are pulled together. Bare
|
|
1287
|
-
* \`pre[data-lang]\` siblings are NOT a group — they are independent examples,
|
|
1288
|
-
* and the negative margin made consecutive blocks overlap into one slab. */
|
|
1289
|
-
.bp-doc div[class*='language-'] + div[class*='language-'],
|
|
1290
|
-
.bp-doc div[class$='-api'] + div[class*='language-'],
|
|
1291
|
-
.bp-doc div[class*='language-'] + div[class$='-api'] > div[class*='language-'] {
|
|
1292
|
-
margin-top: -8px;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
.bp-doc [class*='language-'] pre,
|
|
1296
|
-
.bp-doc [class*='language-'] code,
|
|
1297
|
-
.bp-doc pre[data-lang],
|
|
1298
|
-
.bp-doc pre[data-lang] code {
|
|
1299
|
-
-moz-tab-size: 4;
|
|
1300
|
-
-o-tab-size: 4;
|
|
1301
|
-
tab-size: 4;
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
.bp-doc [class*='language-'] pre,
|
|
1305
|
-
.bp-doc pre[data-lang] {
|
|
1306
|
-
position: relative;
|
|
1307
|
-
z-index: 1;
|
|
1308
|
-
padding: 20px 0;
|
|
1309
|
-
overflow-x: auto;
|
|
1310
|
-
text-align: left;
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
/* A pre nested in a language wrapper is not the block — the wrapper is — so it
|
|
1314
|
-
* contributes neither margin nor background of its own. A bare pre[data-lang]
|
|
1315
|
-
* IS the block and must keep the margin set above; zeroing it here (the rule
|
|
1316
|
-
* this splits out of) is what let consecutive blocks run together. */
|
|
1317
|
-
.bp-doc [class*='language-'] pre {
|
|
1318
|
-
margin: 0;
|
|
1319
|
-
background: transparent;
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
.bp-doc [class*='language-'] code,
|
|
1323
|
-
.bp-doc pre[data-lang] code {
|
|
1324
|
-
display: block;
|
|
1325
|
-
padding: 0 24px;
|
|
1326
|
-
width: fit-content;
|
|
1327
|
-
min-width: 100%;
|
|
1328
|
-
line-height: var(--bp-code-line-height);
|
|
1329
|
-
font-size: var(--bp-code-font-size);
|
|
1330
|
-
color: var(--bp-code-block-color);
|
|
1331
|
-
transition: color 0.5s;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
/* Marked rows bleed through the code element's 24px gutters so the band spans
|
|
1335
|
-
* the full block, not just the text column. min-width (rather than width) keeps
|
|
1336
|
-
* a line longer than the block from being clipped mid-band when it scrolls. */
|
|
1337
|
-
.bp-doc [class*='language-'] code :is(.highlighted, .diff, .diff-add, .diff-remove, .has-error, .has-warning),
|
|
1338
|
-
.bp-doc pre[data-lang] code :is(.highlighted, .diff, .diff-add, .diff-remove, .has-error, .has-warning) {
|
|
1339
|
-
display: inline-block;
|
|
1340
|
-
margin: 0 -24px;
|
|
1341
|
-
padding: 0 24px;
|
|
1342
|
-
min-width: calc(100% + 2 * 24px);
|
|
1343
|
-
transition: background-color 0.5s;
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
.bp-doc [class*='language-'] code .highlighted,
|
|
1347
|
-
.bp-doc pre[data-lang] code .highlighted {
|
|
1348
|
-
background-color: var(--bp-code-line-highlight-color);
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
.bp-doc [class*='language-'] code .highlighted.error,
|
|
1352
|
-
.bp-doc pre[data-lang] code .highlighted.error {
|
|
1353
|
-
background-color: var(--bp-code-line-error-color);
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
.bp-doc [class*='language-'] code .highlighted.warning,
|
|
1357
|
-
.bp-doc pre[data-lang] code .highlighted.warning {
|
|
1358
|
-
background-color: var(--bp-code-line-warning-color);
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
/* Focus lines: unfocused rows blur back until the block is hovered.
|
|
1362
|
-
* The renderer marks them \`.dimmed\` (see processCodeBlock) — the upstream
|
|
1363
|
-
* \`:not(.has-focus)\` form never matched this markup. */
|
|
1364
|
-
.bp-doc [class*='language-'] .line.dimmed,
|
|
1365
|
-
.bp-doc pre[data-lang] .line.dimmed {
|
|
1366
|
-
filter: blur(0.095rem);
|
|
1367
|
-
opacity: 0.7;
|
|
1368
|
-
transition: filter 0.35s, opacity 0.35s;
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
.bp-doc [class*='language-']:hover .line.dimmed,
|
|
1372
|
-
.bp-doc pre[data-lang]:hover .line.dimmed {
|
|
1373
|
-
filter: blur(0);
|
|
1374
|
-
opacity: 1;
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
/* Both class spellings: \`.diff.remove\` is the upstream form, \`.diff-remove\`
|
|
1378
|
-
* is what processCodeBlock emits. */
|
|
1379
|
-
.bp-doc [class*='language-'] code :is(.diff.remove, .diff-remove),
|
|
1380
|
-
.bp-doc pre[data-lang] code :is(.diff.remove, .diff-remove) {
|
|
1381
|
-
background-color: var(--bp-code-line-diff-remove-color);
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
.bp-doc [class*='language-'] code :is(.diff.remove, .diff-remove)::before,
|
|
1385
|
-
.bp-doc pre[data-lang] code :is(.diff.remove, .diff-remove)::before {
|
|
1386
|
-
content: '-';
|
|
1387
|
-
color: var(--bp-code-line-diff-remove-symbol-color);
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
.bp-doc [class*='language-'] code :is(.diff.add, .diff-add),
|
|
1391
|
-
.bp-doc pre[data-lang] code :is(.diff.add, .diff-add) {
|
|
1392
|
-
background-color: var(--bp-code-line-diff-add-color);
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
.bp-doc [class*='language-'] code :is(.diff.add, .diff-add)::before,
|
|
1396
|
-
.bp-doc pre[data-lang] code :is(.diff.add, .diff-add)::before {
|
|
1397
|
-
content: '+';
|
|
1398
|
-
color: var(--bp-code-line-diff-add-symbol-color);
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
/* The +/- glyph lives in the 24px gutter the row bleeds into. */
|
|
1402
|
-
.bp-doc [class*='language-'] code :is(.diff, .diff-add, .diff-remove)::before,
|
|
1403
|
-
.bp-doc pre[data-lang] code :is(.diff, .diff-add, .diff-remove)::before {
|
|
1404
|
-
position: absolute;
|
|
1405
|
-
left: 8px;
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
.bp-doc [class*='language-'] code :is(.has-error, .highlighted.error),
|
|
1409
|
-
.bp-doc pre[data-lang] code :is(.has-error, .highlighted.error) {
|
|
1410
|
-
background-color: var(--bp-code-line-error-color);
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
.bp-doc [class*='language-'] code :is(.has-warning, .highlighted.warning),
|
|
1414
|
-
.bp-doc pre[data-lang] code :is(.has-warning, .highlighted.warning) {
|
|
1415
|
-
background-color: var(--bp-code-line-warning-color);
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
/* Line numbers */
|
|
1419
|
-
.bp-doc div[class*='language-'].line-numbers-mode,
|
|
1420
|
-
.bp-doc pre[data-lang].line-numbers-mode {
|
|
1421
|
-
padding-left: 32px;
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
.bp-doc .line-numbers-wrapper {
|
|
1425
|
-
position: absolute;
|
|
1426
|
-
top: 0;
|
|
1427
|
-
bottom: 0;
|
|
1428
|
-
left: 0;
|
|
1429
|
-
z-index: 3;
|
|
1430
|
-
border-right: 1px solid var(--bp-code-block-divider-color);
|
|
1431
|
-
padding-top: 20px;
|
|
1432
|
-
width: 32px;
|
|
1433
|
-
text-align: center;
|
|
1434
|
-
font-family: var(--bp-font-family-mono);
|
|
1435
|
-
line-height: var(--bp-code-line-height);
|
|
1436
|
-
font-size: var(--bp-code-font-size);
|
|
1437
|
-
color: var(--bp-code-line-number-color);
|
|
1438
|
-
transition: border-color 0.5s, color 0.5s;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
/* Copy button */
|
|
1442
|
-
.bp-doc [class*='language-'] > button.copy,
|
|
1443
|
-
.bp-doc pre[data-lang] > button.copy {
|
|
1444
|
-
direction: ltr;
|
|
1445
|
-
position: absolute;
|
|
1446
|
-
top: 12px;
|
|
1447
|
-
right: 12px;
|
|
1448
|
-
z-index: 3;
|
|
1449
|
-
border: 1px solid var(--bp-code-copy-code-border-color);
|
|
1450
|
-
border-radius: 4px;
|
|
1451
|
-
width: 40px;
|
|
1452
|
-
height: 40px;
|
|
1453
|
-
background-color: var(--bp-code-copy-code-bg);
|
|
1454
|
-
opacity: 0;
|
|
1455
|
-
cursor: pointer;
|
|
1456
|
-
background-image: var(--bp-icon-copy);
|
|
1457
|
-
background-position: 50%;
|
|
1458
|
-
background-size: 20px;
|
|
1459
|
-
background-repeat: no-repeat;
|
|
1460
|
-
transition: border-color 0.25s, background-color 0.25s, opacity 0.25s;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
.bp-doc [class*='language-']:hover > button.copy,
|
|
1464
|
-
.bp-doc [class*='language-'] > button.copy:focus,
|
|
1465
|
-
.bp-doc pre[data-lang]:hover > button.copy,
|
|
1466
|
-
.bp-doc pre[data-lang] > button.copy:focus {
|
|
1467
|
-
opacity: 1;
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
.bp-doc [class*='language-'] > button.copy:hover,
|
|
1471
|
-
.bp-doc [class*='language-'] > button.copy.copied,
|
|
1472
|
-
.bp-doc pre[data-lang] > button.copy:hover,
|
|
1473
|
-
.bp-doc pre[data-lang] > button.copy.copied {
|
|
1474
|
-
border-color: var(--bp-code-copy-code-hover-border-color);
|
|
1475
|
-
background-color: var(--bp-code-copy-code-hover-bg);
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
.bp-doc [class*='language-'] > button.copy.copied,
|
|
1479
|
-
.bp-doc pre[data-lang] > button.copy.copied {
|
|
1480
|
-
border-radius: 0 4px 4px 0;
|
|
1481
|
-
background-image: var(--bp-icon-copied);
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
.bp-doc [class*='language-'] > button.copy.copied::before,
|
|
1485
|
-
.bp-doc pre[data-lang] > button.copy.copied::before {
|
|
1486
|
-
position: relative;
|
|
1487
|
-
top: -1px;
|
|
1488
|
-
transform: translateX(calc(-100% - 1px));
|
|
1489
|
-
display: flex;
|
|
1490
|
-
justify-content: center;
|
|
1491
|
-
align-items: center;
|
|
1492
|
-
border: 1px solid var(--bp-code-copy-code-hover-border-color);
|
|
1493
|
-
border-right: 0;
|
|
1494
|
-
border-radius: 4px 0 0 4px;
|
|
1495
|
-
padding: 0 10px;
|
|
1496
|
-
width: fit-content;
|
|
1497
|
-
height: 40px;
|
|
1498
|
-
text-align: center;
|
|
1499
|
-
font-size: 12px;
|
|
1500
|
-
font-weight: 500;
|
|
1501
|
-
color: var(--bp-code-copy-code-active-text);
|
|
1502
|
-
background-color: var(--bp-code-copy-code-hover-bg);
|
|
1503
|
-
white-space: nowrap;
|
|
1504
|
-
content: var(--bp-code-copy-copied-text-content);
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
/* Language label */
|
|
1508
|
-
.bp-doc [class*='language-'] > span.lang,
|
|
1509
|
-
.bp-doc pre[data-lang]::before {
|
|
1510
|
-
position: absolute;
|
|
1511
|
-
top: 2px;
|
|
1512
|
-
right: 8px;
|
|
1513
|
-
z-index: 2;
|
|
1514
|
-
font-size: 12px;
|
|
1515
|
-
font-weight: 500;
|
|
1516
|
-
user-select: none;
|
|
1517
|
-
color: var(--bp-code-lang-color);
|
|
1518
|
-
transition: color 0.4s, opacity 0.4s;
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
.bp-doc pre[data-lang]::before {
|
|
1522
|
-
content: attr(data-lang);
|
|
1523
|
-
}
|
|
1524
|
-
|
|
1525
|
-
.bp-doc [class*='language-']:hover > button.copy + span.lang,
|
|
1526
|
-
.bp-doc [class*='language-'] > button.copy:focus + span.lang {
|
|
1527
|
-
opacity: 0;
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
/**
|
|
1531
|
-
* External links
|
|
1532
|
-
* -------------------------------------------------------------------------- */
|
|
1533
|
-
|
|
1534
|
-
:is(.bp-external-link-icon, .bp-doc a[href*='://'], .bp-doc a[target='_blank']):not(:is(.no-icon, svg a, :has(img, svg)))::after {
|
|
1535
|
-
display: inline-block;
|
|
1536
|
-
margin-top: -1px;
|
|
1537
|
-
margin-left: 4px;
|
|
1538
|
-
width: 11px;
|
|
1539
|
-
height: 11px;
|
|
1540
|
-
background: currentColor;
|
|
1541
|
-
color: var(--bp-c-text-3);
|
|
1542
|
-
flex-shrink: 0;
|
|
1543
|
-
--icon: var(--bp-icon-external);
|
|
1544
|
-
-webkit-mask-image: var(--icon);
|
|
1545
|
-
mask-image: var(--icon);
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
.bp-external-link-icon::after {
|
|
1549
|
-
content: '';
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
.external-link-icon-enabled :is(.bp-doc a[href*='://'], .bp-doc a[target='_blank']):not(:is(.no-icon, svg a, :has(img, svg)))::after {
|
|
1553
|
-
content: '';
|
|
1554
|
-
color: currentColor;
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
/**
|
|
1558
|
-
* Component: Team - BPTeamMembers
|
|
1559
|
-
* -------------------------------------------------------------------------- */
|
|
1560
|
-
|
|
1561
|
-
.bp-doc .BPTeamMembers {
|
|
1562
|
-
margin-top: 24px;
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
.bp-doc .BPTeamMembers.small.count-1 .container {
|
|
1566
|
-
margin: 0 !important;
|
|
1567
|
-
max-width: calc((100% - 24px) / 2) !important;
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
.bp-doc .BPTeamMembers.small.count-2 .container,
|
|
1571
|
-
.bp-doc .BPTeamMembers.small.count-3 .container {
|
|
1572
|
-
max-width: 100% !important;
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
|
-
.bp-doc .BPTeamMembers.medium.count-1 .container {
|
|
1576
|
-
margin: 0 !important;
|
|
1577
|
-
max-width: calc((100% - 24px) / 2) !important;
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
/**
|
|
1581
|
-
* Custom block code group tabs
|
|
1582
|
-
* -------------------------------------------------------------------------- */
|
|
1583
|
-
|
|
1584
|
-
.bp-doc .custom-block .bp-code-group .tabs {
|
|
1585
|
-
margin: 0;
|
|
1586
|
-
border-radius: 8px 8px 0 0;
|
|
1587
|
-
}`
|
|
1588
|
-
|
|
1589
|
-
// Custom Block CSS - Matches VitePress custom-block.css
|
|
1590
|
-
const customBlockCSS = `/**
|
|
1591
|
-
* VitePress Theme for BunPress - Custom Blocks
|
|
1592
|
-
* -------------------------------------------------------------------------- */
|
|
1593
|
-
|
|
1594
|
-
.custom-block {
|
|
1595
|
-
/* Accent lives on the leading edge only — the other sides stay zero-width so
|
|
1596
|
-
* a variant's \`border-color\` can't paint a full outline. The tint alone is
|
|
1597
|
-
* easy to miss when scanning; a 4px rail reads at any zoom level. */
|
|
1598
|
-
border: 0 solid transparent;
|
|
1599
|
-
border-left-width: 4px;
|
|
1600
|
-
border-radius: 8px;
|
|
1601
|
-
padding: 14px 16px;
|
|
1602
|
-
line-height: 24px;
|
|
1603
|
-
font-size: var(--bp-custom-block-font-size);
|
|
1604
|
-
color: var(--bp-c-text-2);
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
.custom-block.info {
|
|
1608
|
-
border-color: var(--bp-custom-block-info-border);
|
|
1609
|
-
color: var(--bp-custom-block-info-text);
|
|
1610
|
-
background-color: var(--bp-custom-block-info-bg);
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
.custom-block.info a,
|
|
1614
|
-
.custom-block.info code {
|
|
1615
|
-
color: var(--bp-c-brand-1);
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
.custom-block.info a:hover,
|
|
1619
|
-
.custom-block.info a:hover > code {
|
|
1620
|
-
color: var(--bp-c-brand-2);
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
.custom-block.info code {
|
|
1624
|
-
background-color: var(--bp-custom-block-info-code-bg);
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
.custom-block.note {
|
|
1628
|
-
border-color: var(--bp-custom-block-note-border);
|
|
1629
|
-
color: var(--bp-custom-block-note-text);
|
|
1630
|
-
background-color: var(--bp-custom-block-note-bg);
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
.custom-block.note a,
|
|
1634
|
-
.custom-block.note code {
|
|
1635
|
-
color: var(--bp-c-brand-1);
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
.custom-block.note a:hover,
|
|
1639
|
-
.custom-block.note a:hover > code {
|
|
1640
|
-
color: var(--bp-c-brand-2);
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
.custom-block.note code {
|
|
1644
|
-
background-color: var(--bp-custom-block-note-code-bg);
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
.custom-block.tip {
|
|
1648
|
-
border-color: var(--bp-custom-block-tip-border);
|
|
1649
|
-
color: var(--bp-custom-block-tip-text);
|
|
1650
|
-
background-color: var(--bp-custom-block-tip-bg);
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
.custom-block.tip a,
|
|
1654
|
-
.custom-block.tip code {
|
|
1655
|
-
color: var(--bp-c-tip-1);
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
.custom-block.tip a:hover,
|
|
1659
|
-
.custom-block.tip a:hover > code {
|
|
1660
|
-
color: var(--bp-c-tip-2);
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
.custom-block.tip code {
|
|
1664
|
-
background-color: var(--bp-custom-block-tip-code-bg);
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
.custom-block.important {
|
|
1668
|
-
border-color: var(--bp-custom-block-important-border);
|
|
1669
|
-
color: var(--bp-custom-block-important-text);
|
|
1670
|
-
background-color: var(--bp-custom-block-important-bg);
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
.custom-block.important a,
|
|
1674
|
-
.custom-block.important code {
|
|
1675
|
-
color: var(--bp-c-important-1);
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
.custom-block.important a:hover,
|
|
1679
|
-
.custom-block.important a:hover > code {
|
|
1680
|
-
color: var(--bp-c-important-2);
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
.custom-block.important code {
|
|
1684
|
-
background-color: var(--bp-custom-block-important-code-bg);
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
.custom-block.warning {
|
|
1688
|
-
border-color: var(--bp-custom-block-warning-border);
|
|
1689
|
-
color: var(--bp-custom-block-warning-text);
|
|
1690
|
-
background-color: var(--bp-custom-block-warning-bg);
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
.custom-block.warning a,
|
|
1694
|
-
.custom-block.warning code {
|
|
1695
|
-
color: var(--bp-c-warning-1);
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
.custom-block.warning a:hover,
|
|
1699
|
-
.custom-block.warning a:hover > code {
|
|
1700
|
-
color: var(--bp-c-warning-2);
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
.custom-block.warning code {
|
|
1704
|
-
background-color: var(--bp-custom-block-warning-code-bg);
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
.custom-block.danger {
|
|
1708
|
-
border-color: var(--bp-custom-block-danger-border);
|
|
1709
|
-
color: var(--bp-custom-block-danger-text);
|
|
1710
|
-
background-color: var(--bp-custom-block-danger-bg);
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
.custom-block.danger a,
|
|
1714
|
-
.custom-block.danger code {
|
|
1715
|
-
color: var(--bp-c-danger-1);
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
.custom-block.danger a:hover,
|
|
1719
|
-
.custom-block.danger a:hover > code {
|
|
1720
|
-
color: var(--bp-c-danger-2);
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
.custom-block.danger code {
|
|
1724
|
-
background-color: var(--bp-custom-block-danger-code-bg);
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
.custom-block.caution {
|
|
1728
|
-
border-color: var(--bp-custom-block-caution-border);
|
|
1729
|
-
color: var(--bp-custom-block-caution-text);
|
|
1730
|
-
background-color: var(--bp-custom-block-caution-bg);
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
.custom-block.caution a,
|
|
1734
|
-
.custom-block.caution code {
|
|
1735
|
-
color: var(--bp-c-caution-1);
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
.custom-block.caution a:hover,
|
|
1739
|
-
.custom-block.caution a:hover > code {
|
|
1740
|
-
color: var(--bp-c-caution-2);
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
.custom-block.caution code {
|
|
1744
|
-
background-color: var(--bp-custom-block-caution-code-bg);
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
.custom-block.details {
|
|
1748
|
-
border-color: var(--bp-custom-block-details-border);
|
|
1749
|
-
color: var(--bp-custom-block-details-text);
|
|
1750
|
-
background-color: var(--bp-custom-block-details-bg);
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
.custom-block.details a {
|
|
1754
|
-
color: var(--bp-c-brand-1);
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
|
-
.custom-block.details a:hover,
|
|
1758
|
-
.custom-block.details a:hover > code {
|
|
1759
|
-
color: var(--bp-c-brand-2);
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
.custom-block.details code {
|
|
1763
|
-
background-color: var(--bp-custom-block-details-code-bg);
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
.custom-block-title {
|
|
1767
|
-
margin-bottom: 6px;
|
|
1768
|
-
font-weight: 700;
|
|
1769
|
-
font-size: 13px;
|
|
1770
|
-
letter-spacing: 0.03em;
|
|
1771
|
-
text-transform: uppercase;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
/* The title supplies the block's leading margin, so the first body paragraph
|
|
1775
|
-
* must not add one on top of it. */
|
|
1776
|
-
.custom-block-title + * {
|
|
1777
|
-
margin-top: 0;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
.custom-block p + p {
|
|
1781
|
-
margin: 8px 0;
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
/* The native disclosure triangle is unstyleable and sits at a different size
|
|
1785
|
-
* and colour in every engine, so it is replaced with a chevron that matches
|
|
1786
|
-
* the rest of the chrome. */
|
|
1787
|
-
.custom-block.details summary,
|
|
1788
|
-
.bp-doc .custom-block.details summary {
|
|
1789
|
-
display: flex;
|
|
1790
|
-
align-items: center;
|
|
1791
|
-
gap: 8px;
|
|
1792
|
-
margin: 0;
|
|
1793
|
-
font-weight: 700;
|
|
1794
|
-
cursor: pointer;
|
|
1795
|
-
user-select: none;
|
|
1796
|
-
list-style: none;
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
.custom-block.details summary::-webkit-details-marker {
|
|
1800
|
-
display: none;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
.custom-block.details summary::marker {
|
|
1804
|
-
content: '';
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
.custom-block.details summary::before {
|
|
1808
|
-
content: '';
|
|
1809
|
-
flex-shrink: 0;
|
|
1810
|
-
width: 12px;
|
|
1811
|
-
height: 12px;
|
|
1812
|
-
background-color: currentColor;
|
|
1813
|
-
transition: transform 0.2s ease;
|
|
1814
|
-
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
|
|
1815
|
-
-webkit-mask-image: var(--icon);
|
|
1816
|
-
mask-image: var(--icon);
|
|
1817
|
-
-webkit-mask-size: contain;
|
|
1818
|
-
mask-size: contain;
|
|
1819
|
-
-webkit-mask-repeat: no-repeat;
|
|
1820
|
-
mask-repeat: no-repeat;
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
.custom-block.details[open] summary::before {
|
|
1824
|
-
transform: rotate(90deg);
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
.custom-block.details summary:focus-visible {
|
|
1828
|
-
outline: 2px solid var(--bp-c-brand-1);
|
|
1829
|
-
outline-offset: 2px;
|
|
1830
|
-
border-radius: 3px;
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
/* Body content only gains its top margin once the block is open. */
|
|
1834
|
-
.bp-doc .custom-block.details[open] summary {
|
|
1835
|
-
margin-bottom: 8px;
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
.custom-block.details summary + p {
|
|
1839
|
-
margin: 8px 0;
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
.custom-block a {
|
|
1843
|
-
color: inherit;
|
|
1844
|
-
font-weight: 600;
|
|
1845
|
-
text-decoration: underline;
|
|
1846
|
-
text-underline-offset: 2px;
|
|
1847
|
-
transition: opacity 0.25s;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
.custom-block a:hover {
|
|
1851
|
-
opacity: 0.75;
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
.custom-block code {
|
|
1855
|
-
font-size: var(--bp-custom-block-code-font-size);
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
.custom-block.custom-block th,
|
|
1859
|
-
.custom-block.custom-block blockquote > p {
|
|
1860
|
-
font-size: var(--bp-custom-block-font-size);
|
|
1861
|
-
color: inherit;
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
/* Custom blocks in vp-doc context */
|
|
1865
|
-
.bp-doc .custom-block {
|
|
1866
|
-
margin: 16px 0;
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
.bp-doc .custom-block p {
|
|
1870
|
-
margin: 8px 0;
|
|
1871
|
-
line-height: 24px;
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
.bp-doc .custom-block p:first-child {
|
|
1875
|
-
margin: 0;
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
.bp-doc .custom-block div[class*='language-'],
|
|
1879
|
-
.bp-doc .custom-block pre[data-lang] {
|
|
1880
|
-
margin: 8px 0 !important;
|
|
1881
|
-
border-radius: 8px;
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
.bp-doc .custom-block div[class*='language-'] code,
|
|
1885
|
-
.bp-doc .custom-block pre[data-lang] code {
|
|
1886
|
-
font-weight: 400;
|
|
1887
|
-
background-color: transparent;
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
/**
|
|
1891
|
-
* GitHub-Flavored Alerts (VitePress style)
|
|
1892
|
-
* -------------------------------------------------------------------------- */
|
|
1893
|
-
|
|
1894
|
-
/* Same box treatment as .custom-block — alerts and containers say the same
|
|
1895
|
-
* kind of thing, so they must not look like two unrelated systems. */
|
|
1896
|
-
.github-alert {
|
|
1897
|
-
border: 0 solid transparent;
|
|
1898
|
-
border-left-width: 4px;
|
|
1899
|
-
border-radius: 8px;
|
|
1900
|
-
padding: 14px 16px;
|
|
1901
|
-
line-height: 24px;
|
|
1902
|
-
font-size: var(--bp-custom-block-font-size);
|
|
1903
|
-
margin: 16px 0;
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
/* The title is a <p>, so .bp-doc's 16px paragraph margins have to be beaten
|
|
1907
|
-
* on specificity — otherwise the label floats half a line above its body. */
|
|
1908
|
-
.github-alert-title,
|
|
1909
|
-
.bp-doc .github-alert-title {
|
|
1910
|
-
display: flex;
|
|
1911
|
-
align-items: center;
|
|
1912
|
-
gap: 8px;
|
|
1913
|
-
margin: 0 0 6px;
|
|
1914
|
-
font-weight: 600;
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
.github-alert-icon {
|
|
1918
|
-
flex-shrink: 0;
|
|
1919
|
-
width: 16px;
|
|
1920
|
-
height: 16px;
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
.github-alert-content {
|
|
1924
|
-
line-height: 24px;
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
.github-alert-content p,
|
|
1928
|
-
.bp-doc .github-alert-content p {
|
|
1929
|
-
margin: 0;
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
.github-alert-content p + p,
|
|
1933
|
-
.bp-doc .github-alert-content p + p {
|
|
1934
|
-
margin-top: 12px;
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
.bp-doc .github-alert-content > :first-child {
|
|
1938
|
-
margin-top: 0;
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
.bp-doc .github-alert-content > :last-child {
|
|
1942
|
-
margin-bottom: 0;
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
|
-
/* Note Alert */
|
|
1946
|
-
.github-alert-note {
|
|
1947
|
-
border-color: var(--bp-custom-block-note-border);
|
|
1948
|
-
color: var(--bp-custom-block-note-text);
|
|
1949
|
-
background-color: var(--bp-custom-block-note-bg);
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
.github-alert-note .github-alert-title {
|
|
1953
|
-
color: var(--bp-c-brand-1);
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
.github-alert-note .github-alert-icon {
|
|
1957
|
-
fill: var(--bp-c-brand-1);
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
/* Tip Alert */
|
|
1961
|
-
.github-alert-tip {
|
|
1962
|
-
border-color: var(--bp-custom-block-tip-border);
|
|
1963
|
-
color: var(--bp-custom-block-tip-text);
|
|
1964
|
-
background-color: var(--bp-custom-block-tip-bg);
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
.github-alert-tip .github-alert-title {
|
|
1968
|
-
color: var(--bp-c-tip-1);
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
.github-alert-tip .github-alert-icon {
|
|
1972
|
-
fill: var(--bp-c-tip-1);
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
/* Important Alert */
|
|
1976
|
-
.github-alert-important {
|
|
1977
|
-
border-color: var(--bp-custom-block-important-border);
|
|
1978
|
-
color: var(--bp-custom-block-important-text);
|
|
1979
|
-
background-color: var(--bp-custom-block-important-bg);
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
.github-alert-important .github-alert-title {
|
|
1983
|
-
color: var(--bp-c-important-1);
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
.github-alert-important .github-alert-icon {
|
|
1987
|
-
fill: var(--bp-c-important-1);
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
/* Warning Alert */
|
|
1991
|
-
.github-alert-warning {
|
|
1992
|
-
border-color: var(--bp-custom-block-warning-border);
|
|
1993
|
-
color: var(--bp-custom-block-warning-text);
|
|
1994
|
-
background-color: var(--bp-custom-block-warning-bg);
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
.github-alert-warning .github-alert-title {
|
|
1998
|
-
color: var(--bp-c-warning-1);
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
|
-
.github-alert-warning .github-alert-icon {
|
|
2002
|
-
fill: var(--bp-c-warning-1);
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
/* Caution Alert */
|
|
2006
|
-
.github-alert-caution {
|
|
2007
|
-
border-color: var(--bp-custom-block-caution-border);
|
|
2008
|
-
color: var(--bp-custom-block-caution-text);
|
|
2009
|
-
background-color: var(--bp-custom-block-caution-bg);
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
.github-alert-caution .github-alert-title {
|
|
2013
|
-
color: var(--bp-c-caution-1);
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
.github-alert-caution .github-alert-icon {
|
|
2017
|
-
fill: var(--bp-c-caution-1);
|
|
2018
|
-
}`
|
|
2019
|
-
|
|
2020
|
-
// Code Group CSS - Matches VitePress vp-code-group.css exactly
|
|
2021
|
-
const codeGroupCSS = `/**
|
|
2022
|
-
* VitePress Theme for BunPress - Code Groups
|
|
2023
|
-
* -------------------------------------------------------------------------- */
|
|
2024
|
-
|
|
2025
|
-
.bp-code-group {
|
|
2026
|
-
margin-top: 16px;
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
.bp-code-group .tabs,
|
|
2030
|
-
.code-group-tabs {
|
|
2031
|
-
position: relative;
|
|
2032
|
-
display: flex;
|
|
2033
|
-
margin-right: -24px;
|
|
2034
|
-
margin-left: -24px;
|
|
2035
|
-
padding: 0 12px;
|
|
2036
|
-
background-color: var(--bp-code-tab-bg);
|
|
2037
|
-
overflow-x: auto;
|
|
2038
|
-
overflow-y: hidden;
|
|
2039
|
-
box-shadow: inset 0 -1px var(--bp-code-tab-divider);
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
@media (min-width: 640px) {
|
|
2043
|
-
.bp-code-group .tabs,
|
|
2044
|
-
.code-group-tabs {
|
|
2045
|
-
margin-right: 0;
|
|
2046
|
-
margin-left: 0;
|
|
2047
|
-
border-radius: 8px 8px 0 0;
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
/* Hidden input for tab switching - matches VitePress exactly */
|
|
2052
|
-
.bp-code-group .tabs input {
|
|
2053
|
-
position: fixed;
|
|
2054
|
-
opacity: 0;
|
|
2055
|
-
pointer-events: none;
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
.bp-code-group .tabs label,
|
|
2059
|
-
.code-group-tab {
|
|
2060
|
-
position: relative;
|
|
2061
|
-
display: inline-block;
|
|
2062
|
-
border-bottom: 1px solid transparent;
|
|
2063
|
-
padding: 0 12px;
|
|
2064
|
-
line-height: 48px;
|
|
2065
|
-
font-size: 14px;
|
|
2066
|
-
font-weight: 500;
|
|
2067
|
-
color: var(--bp-code-tab-text-color);
|
|
2068
|
-
white-space: nowrap;
|
|
2069
|
-
cursor: pointer;
|
|
2070
|
-
transition: color 0.25s;
|
|
2071
|
-
background: transparent;
|
|
2072
|
-
border: none;
|
|
2073
|
-
font-family: inherit;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
.bp-code-group .tabs label::after,
|
|
2077
|
-
.code-group-tab::after {
|
|
2078
|
-
position: absolute;
|
|
2079
|
-
right: 8px;
|
|
2080
|
-
bottom: -1px;
|
|
2081
|
-
left: 8px;
|
|
2082
|
-
z-index: 1;
|
|
2083
|
-
height: 2px;
|
|
2084
|
-
border-radius: 2px;
|
|
2085
|
-
content: '';
|
|
2086
|
-
background-color: transparent;
|
|
2087
|
-
transition: background-color 0.25s;
|
|
2088
|
-
}
|
|
2089
|
-
|
|
2090
|
-
.bp-code-group label:hover,
|
|
2091
|
-
.code-group-tab:hover {
|
|
2092
|
-
color: var(--bp-code-tab-hover-text-color);
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
.bp-code-group input:checked + label,
|
|
2096
|
-
.code-group-tab.active {
|
|
2097
|
-
color: var(--bp-code-tab-active-text-color);
|
|
2098
|
-
}
|
|
2099
|
-
|
|
2100
|
-
.bp-code-group input:checked + label::after,
|
|
2101
|
-
.code-group-tab.active::after {
|
|
2102
|
-
background-color: var(--bp-code-tab-active-bar-color);
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
.bp-code-group div[class*='language-'],
|
|
2106
|
-
.bp-code-group pre[data-lang],
|
|
2107
|
-
.code-group-panel,
|
|
2108
|
-
.bp-block {
|
|
2109
|
-
display: none;
|
|
2110
|
-
margin-top: 0 !important;
|
|
2111
|
-
border-top-left-radius: 0 !important;
|
|
2112
|
-
border-top-right-radius: 0 !important;
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
.bp-code-group div[class*='language-'].active,
|
|
2116
|
-
.bp-code-group pre[data-lang].active,
|
|
2117
|
-
.code-group-panel.active,
|
|
2118
|
-
.bp-block.active {
|
|
2119
|
-
display: block;
|
|
2120
|
-
}
|
|
2121
|
-
|
|
2122
|
-
.bp-block {
|
|
2123
|
-
padding: 20px 24px;
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
/* The panel is a frame, not a padded box — the code block inside brings its
|
|
2127
|
-
* own padding, background and radius, and stacking the panel's on top of it
|
|
2128
|
-
* rendered a card inside a card with a gap under the tab bar. */
|
|
2129
|
-
.code-group-panel {
|
|
2130
|
-
padding: 0;
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
.bp-doc .code-group-panel > pre,
|
|
2134
|
-
.bp-doc .code-group-panel > div[class*='language-'] {
|
|
2135
|
-
margin: 0;
|
|
2136
|
-
border: none;
|
|
2137
|
-
border-radius: 0;
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
/* Code group container */
|
|
2141
|
-
.code-group {
|
|
2142
|
-
margin: 16px 0;
|
|
2143
|
-
border: 1px solid var(--bp-c-divider);
|
|
2144
|
-
border-radius: 8px;
|
|
2145
|
-
overflow: hidden;
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
@media (min-width: 640px) {
|
|
2149
|
-
.code-group {
|
|
2150
|
-
border: none;
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
|
-
.code-group-panels {
|
|
2155
|
-
position: relative;
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
.code-group-panel pre {
|
|
2159
|
-
margin: 0;
|
|
2160
|
-
border-radius: 0;
|
|
2161
|
-
border: none;
|
|
2162
|
-
}`
|
|
2163
|
-
|
|
2164
|
-
// Layout / chrome styles — classes referenced by layout-doc.stx, layout-page.stx, layout-home.stx,
|
|
2165
|
-
// and the nav/sidebar generators in serve.ts. Keeps templates declarative and dark-mode aware.
|
|
2166
|
-
export const layoutCSS = `/**
|
|
2167
|
-
* VitePress Theme for BunPress - Layout & Chrome
|
|
2168
|
-
* -------------------------------------------------------------------------- */
|
|
2169
|
-
|
|
2170
|
-
.Layout {
|
|
2171
|
-
min-height: 100vh;
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
/* BPNav — top bar */
|
|
2175
|
-
.BPNav {
|
|
2176
|
-
position: fixed;
|
|
2177
|
-
top: 0;
|
|
2178
|
-
left: 0;
|
|
2179
|
-
right: 0;
|
|
2180
|
-
height: var(--bp-nav-height, 64px);
|
|
2181
|
-
background-color: var(--bp-nav-bg-color, var(--bp-c-bg));
|
|
2182
|
-
border-bottom: 1px solid var(--bp-c-divider);
|
|
2183
|
-
z-index: var(--bp-z-index-nav, 30);
|
|
2184
|
-
backdrop-filter: saturate(50%) blur(8px);
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
.BPNavBar {
|
|
2188
|
-
max-width: var(--bp-layout-max-width, 1440px);
|
|
2189
|
-
margin: 0 auto;
|
|
2190
|
-
width: 100%;
|
|
2191
|
-
height: 100%;
|
|
2192
|
-
display: flex;
|
|
2193
|
-
align-items: center;
|
|
2194
|
-
justify-content: space-between;
|
|
2195
|
-
padding: 0 24px;
|
|
2196
|
-
gap: 24px;
|
|
2197
|
-
}
|
|
2198
|
-
|
|
2199
|
-
.BPNavBarStart {
|
|
2200
|
-
display: flex;
|
|
2201
|
-
align-items: center;
|
|
2202
|
-
gap: 24px;
|
|
2203
|
-
flex: 1;
|
|
2204
|
-
min-width: 0;
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
.BPNavBarEnd {
|
|
2208
|
-
display: flex;
|
|
2209
|
-
align-items: center;
|
|
2210
|
-
gap: 24px;
|
|
2211
|
-
flex-shrink: 0;
|
|
2212
|
-
}
|
|
2213
|
-
|
|
2214
|
-
.BPNavBarTitle {
|
|
2215
|
-
/* block (not inline-flex) so text-overflow applies: a long site title must
|
|
2216
|
-
* yield instead of sliding underneath the icons on the right. min-width:0
|
|
2217
|
-
* lets the flex item actually shrink below its content width. */
|
|
2218
|
-
display: block;
|
|
2219
|
-
min-width: 0;
|
|
2220
|
-
overflow: hidden;
|
|
2221
|
-
text-overflow: ellipsis;
|
|
2222
|
-
font-size: 16px;
|
|
2223
|
-
line-height: 1.5;
|
|
2224
|
-
font-weight: 750;
|
|
2225
|
-
color: var(--bp-c-text-1);
|
|
2226
|
-
white-space: nowrap;
|
|
2227
|
-
text-decoration: none;
|
|
2228
|
-
transition: color 0.25s;
|
|
2229
|
-
}
|
|
2230
|
-
|
|
2231
|
-
.BPNavBarTitle:hover {
|
|
2232
|
-
color: var(--bp-c-brand-1);
|
|
2233
|
-
}
|
|
2234
|
-
|
|
2235
|
-
.BPNavBarMenu {
|
|
2236
|
-
display: flex;
|
|
2237
|
-
align-items: center;
|
|
2238
|
-
gap: 24px;
|
|
2239
|
-
}
|
|
2240
|
-
|
|
2241
|
-
.BPNavBarMenu a,
|
|
2242
|
-
.BPNavBarMenu .BPNavBarMenu-link {
|
|
2243
|
-
font-size: 14px;
|
|
2244
|
-
font-weight: 600;
|
|
2245
|
-
color: var(--bp-c-text-2);
|
|
2246
|
-
text-decoration: none;
|
|
2247
|
-
transition: color 0.25s;
|
|
2248
|
-
cursor: pointer;
|
|
2249
|
-
}
|
|
2250
|
-
|
|
2251
|
-
.BPNavBarMenu a:hover,
|
|
2252
|
-
.BPNavBarMenu .BPNavBarMenu-link:hover,
|
|
2253
|
-
.BPNavBarMenu a.is-active {
|
|
2254
|
-
color: var(--bp-c-brand-1);
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
|
-
.BPNavBarMenu-group {
|
|
2258
|
-
position: relative;
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
.BPNavBarMenu-group-button {
|
|
2262
|
-
display: inline-flex;
|
|
2263
|
-
align-items: center;
|
|
2264
|
-
gap: 4px;
|
|
2265
|
-
background: transparent;
|
|
2266
|
-
border: none;
|
|
2267
|
-
padding: 0;
|
|
2268
|
-
font: inherit;
|
|
2269
|
-
font-size: 14px;
|
|
2270
|
-
font-weight: 500;
|
|
2271
|
-
color: var(--bp-c-text-1);
|
|
2272
|
-
cursor: pointer;
|
|
2273
|
-
transition: color 0.25s;
|
|
2274
|
-
}
|
|
2275
|
-
|
|
2276
|
-
.BPNavBarMenu-group-button:hover {
|
|
2277
|
-
color: var(--bp-c-brand-1);
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
.BPNavBarMenu-group-button .chevron {
|
|
2281
|
-
width: 12px;
|
|
2282
|
-
height: 12px;
|
|
2283
|
-
flex-shrink: 0;
|
|
2284
|
-
transition: transform 0.25s;
|
|
2285
|
-
}
|
|
2286
|
-
|
|
2287
|
-
.BPNavBarMenu-group:hover > .BPNavBarMenu-group-button .chevron,
|
|
2288
|
-
.BPNavBarMenu-group:focus-within > .BPNavBarMenu-group-button .chevron,
|
|
2289
|
-
.BPNavBarMenu-group.is-open > .BPNavBarMenu-group-button .chevron {
|
|
2290
|
-
transform: rotate(180deg);
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
/* The button sits at the top of the bar and the panel hangs below it. The
|
|
2294
|
-
* gap between them used to be margin, so the pointer left the group on the
|
|
2295
|
-
* way down and the panel closed underneath it. It is padding on the panel
|
|
2296
|
-
* now: the same visual offset, but the space belongs to the hover target. */
|
|
2297
|
-
.BPNavBarMenu-group-items {
|
|
2298
|
-
position: absolute;
|
|
2299
|
-
right: 0;
|
|
2300
|
-
top: 100%;
|
|
2301
|
-
padding-top: 8px;
|
|
2302
|
-
min-width: 192px;
|
|
2303
|
-
z-index: 30;
|
|
2304
|
-
opacity: 0;
|
|
2305
|
-
visibility: hidden;
|
|
2306
|
-
transform: translateY(-4px);
|
|
2307
|
-
transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
|
|
2308
|
-
}
|
|
2309
|
-
|
|
2310
|
-
.BPNavBarMenu-group:hover > .BPNavBarMenu-group-items,
|
|
2311
|
-
.BPNavBarMenu-group:focus-within > .BPNavBarMenu-group-items,
|
|
2312
|
-
.BPNavBarMenu-group.is-open > .BPNavBarMenu-group-items {
|
|
2313
|
-
opacity: 1;
|
|
2314
|
-
visibility: visible;
|
|
2315
|
-
transform: translateY(0);
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
/* The surface itself, so the 8px hover bridge above stays transparent. */
|
|
2319
|
-
.BPNavBarMenu-group-items::before {
|
|
2320
|
-
content: "";
|
|
2321
|
-
position: absolute;
|
|
2322
|
-
inset: 8px 0 0;
|
|
2323
|
-
background: var(--bp-c-bg);
|
|
2324
|
-
border: 1px solid var(--bp-c-divider);
|
|
2325
|
-
border-radius: 12px;
|
|
2326
|
-
box-shadow: var(--bp-shadow-3, 0 12px 32px rgba(0, 0, 0, 0.1));
|
|
2327
|
-
z-index: -1;
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
.BPNavBarMenu-group-items > * {
|
|
2331
|
-
position: relative;
|
|
2332
|
-
}
|
|
2333
|
-
|
|
2334
|
-
.BPNavBarMenu-group-items a {
|
|
2335
|
-
display: block;
|
|
2336
|
-
padding: 6px 16px;
|
|
2337
|
-
font-size: 13px;
|
|
2338
|
-
color: var(--bp-c-text-1);
|
|
2339
|
-
text-decoration: none;
|
|
2340
|
-
transition: color 0.25s, background-color 0.25s;
|
|
2341
|
-
}
|
|
2342
|
-
|
|
2343
|
-
.BPNavBarMenu-group-items:not(.BPMega) {
|
|
2344
|
-
padding-bottom: 8px;
|
|
2345
|
-
}
|
|
2346
|
-
|
|
2347
|
-
.BPNavBarMenu-group-items:not(.BPMega) a:first-of-type {
|
|
2348
|
-
margin-top: 8px;
|
|
2349
|
-
}
|
|
2350
|
-
|
|
2351
|
-
.BPNavBarMenu-group-items a:hover,
|
|
2352
|
-
.BPNavBarMenu-group-items a.is-active {
|
|
2353
|
-
color: var(--bp-c-brand-1);
|
|
2354
|
-
background-color: var(--bp-c-bg-soft);
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
/**
|
|
2358
|
-
* Mega menu — a nav item whose children carry descriptions or nest into
|
|
2359
|
-
* groups. Anchored to the bar rather than to the button, so a wide panel
|
|
2360
|
-
* stays inside the viewport no matter which item opened it.
|
|
2361
|
-
* -------------------------------------------------------------------------- */
|
|
2362
|
-
|
|
2363
|
-
/* A mega panel is anchored to the bar, not to the button that opens it: a
|
|
2364
|
-
* 900px panel centred on a nav item near the right edge would hang off the
|
|
2365
|
-
* viewport. Going position:static hands the absolute positioning up to .BPNav.
|
|
2366
|
-
* Stretching the group to full bar height also keeps the pointer inside the
|
|
2367
|
-
* hover target on its way down to the panel. */
|
|
2368
|
-
.BPNavBarMenu-group.is-mega {
|
|
2369
|
-
position: static;
|
|
2370
|
-
align-self: stretch;
|
|
2371
|
-
display: flex;
|
|
2372
|
-
align-items: center;
|
|
2373
|
-
}
|
|
2374
|
-
|
|
2375
|
-
.BPMega {
|
|
2376
|
-
--bp-mega-columns: 3;
|
|
2377
|
-
right: auto;
|
|
2378
|
-
left: 50%;
|
|
2379
|
-
width: max-content;
|
|
2380
|
-
max-width: min(920px, calc(100vw - 32px));
|
|
2381
|
-
transform: translate(-50%, -4px);
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
.BPNavBarMenu-group:hover > .BPMega,
|
|
2385
|
-
.BPNavBarMenu-group:focus-within > .BPMega,
|
|
2386
|
-
.BPNavBarMenu-group.is-open > .BPMega {
|
|
2387
|
-
transform: translate(-50%, 0);
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
|
-
.BPMega-columns {
|
|
2391
|
-
display: grid;
|
|
2392
|
-
grid-template-columns: repeat(var(--bp-mega-columns), minmax(200px, 1fr));
|
|
2393
|
-
gap: 4px 8px;
|
|
2394
|
-
padding: 16px;
|
|
2395
|
-
}
|
|
2396
|
-
|
|
2397
|
-
.BPMega-group-title {
|
|
2398
|
-
margin: 4px 0 8px;
|
|
2399
|
-
padding: 0 10px;
|
|
2400
|
-
font-size: 11px;
|
|
2401
|
-
font-weight: 600;
|
|
2402
|
-
letter-spacing: 0.06em;
|
|
2403
|
-
text-transform: uppercase;
|
|
2404
|
-
color: var(--bp-c-text-3, var(--bp-c-text-2));
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
.BPNavBarMenu .BPMega-item {
|
|
2408
|
-
display: flex;
|
|
2409
|
-
gap: 10px;
|
|
2410
|
-
align-items: flex-start;
|
|
2411
|
-
padding: 8px 10px;
|
|
2412
|
-
border-radius: 8px;
|
|
2413
|
-
font-size: 13px;
|
|
2414
|
-
font-weight: 500;
|
|
2415
|
-
color: var(--bp-c-text-1);
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
.BPNavBarMenu .BPMega-item:hover,
|
|
2419
|
-
.BPNavBarMenu .BPMega-item.is-active {
|
|
2420
|
-
background-color: var(--bp-c-bg-soft);
|
|
2421
|
-
color: var(--bp-c-text-1);
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
.BPMega-item-icon {
|
|
2425
|
-
display: flex;
|
|
2426
|
-
align-items: center;
|
|
2427
|
-
justify-content: center;
|
|
2428
|
-
flex-shrink: 0;
|
|
2429
|
-
width: 26px;
|
|
2430
|
-
height: 26px;
|
|
2431
|
-
margin-top: 1px;
|
|
2432
|
-
border-radius: 7px;
|
|
2433
|
-
background: var(--bp-c-bg-soft);
|
|
2434
|
-
color: var(--bp-c-brand-1);
|
|
2435
|
-
font-size: 13px;
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
.BPMega-item:hover .BPMega-item-icon {
|
|
2439
|
-
background: var(--bp-c-brand-soft, var(--bp-c-bg-alt));
|
|
2440
|
-
}
|
|
2441
|
-
|
|
2442
|
-
.BPMega-item-icon svg {
|
|
2443
|
-
width: 15px;
|
|
2444
|
-
height: 15px;
|
|
2445
|
-
}
|
|
2446
|
-
|
|
2447
|
-
.BPMega-item-body {
|
|
2448
|
-
display: flex;
|
|
2449
|
-
flex-direction: column;
|
|
2450
|
-
gap: 2px;
|
|
2451
|
-
min-width: 0;
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
.BPMega-item-title {
|
|
2455
|
-
font-weight: 600;
|
|
2456
|
-
line-height: 1.4;
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
-
.BPMega-item:hover .BPMega-item-title,
|
|
2460
|
-
.BPMega-item.is-active .BPMega-item-title {
|
|
2461
|
-
color: var(--bp-c-brand-1);
|
|
2462
|
-
}
|
|
2463
|
-
|
|
2464
|
-
.BPMega-item-desc {
|
|
2465
|
-
font-size: 12px;
|
|
2466
|
-
font-weight: 400;
|
|
2467
|
-
line-height: 1.5;
|
|
2468
|
-
color: var(--bp-c-text-2);
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
.BPMega-footer {
|
|
2472
|
-
display: flex;
|
|
2473
|
-
align-items: center;
|
|
2474
|
-
gap: 8px;
|
|
2475
|
-
padding: 12px 26px;
|
|
2476
|
-
border-top: 1px solid var(--bp-c-divider);
|
|
2477
|
-
background: var(--bp-c-bg-soft);
|
|
2478
|
-
border-radius: 0 0 12px 12px;
|
|
2479
|
-
font-size: 12px;
|
|
2480
|
-
}
|
|
2481
|
-
|
|
2482
|
-
.BPMega-footer-note {
|
|
2483
|
-
color: var(--bp-c-text-2);
|
|
2484
|
-
}
|
|
2485
|
-
|
|
2486
|
-
.BPNavBarMenu .BPMega-footer-link {
|
|
2487
|
-
padding: 0;
|
|
2488
|
-
font-size: 12px;
|
|
2489
|
-
font-weight: 600;
|
|
2490
|
-
color: var(--bp-c-brand-1);
|
|
2491
|
-
background: none;
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
.BPNavBarMenu .BPMega-footer-link:hover {
|
|
2495
|
-
background: none;
|
|
2496
|
-
text-decoration: underline;
|
|
2497
|
-
}
|
|
2498
|
-
|
|
2499
|
-
@media (max-width: 1100px) {
|
|
2500
|
-
.BPMega-columns {
|
|
2501
|
-
grid-template-columns: repeat(min(var(--bp-mega-columns), 2), minmax(190px, 1fr));
|
|
2502
|
-
}
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2505
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2506
|
-
.BPNavBarMenu-group-items,
|
|
2507
|
-
.BPMega,
|
|
2508
|
-
.BPNavBarMenu-group-button .chevron {
|
|
2509
|
-
transition: none;
|
|
2510
|
-
}
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
/**
|
|
2514
|
-
* Stacked nav for narrow viewports. The bar hides its links below 960px, and
|
|
2515
|
-
* the home and page layouts have no sidebar hamburger to fall back on.
|
|
2516
|
-
* -------------------------------------------------------------------------- */
|
|
2517
|
-
|
|
2518
|
-
.BPNavToggle {
|
|
2519
|
-
display: none;
|
|
2520
|
-
align-items: center;
|
|
2521
|
-
justify-content: center;
|
|
2522
|
-
width: 36px;
|
|
2523
|
-
height: 36px;
|
|
2524
|
-
border: none;
|
|
2525
|
-
border-radius: 8px;
|
|
2526
|
-
background: transparent;
|
|
2527
|
-
color: var(--bp-c-text-2);
|
|
2528
|
-
cursor: pointer;
|
|
2529
|
-
transition: color 0.25s, background-color 0.25s;
|
|
2530
|
-
}
|
|
2531
|
-
|
|
2532
|
-
.BPNavToggle:hover {
|
|
2533
|
-
color: var(--bp-c-text-1);
|
|
2534
|
-
background-color: var(--bp-c-bg-soft);
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
.BPNavToggle svg {
|
|
2538
|
-
width: 20px;
|
|
2539
|
-
height: 20px;
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
.BPNavToggle .BPNavToggle-close,
|
|
2543
|
-
.BPNavToggle[aria-expanded="true"] .BPNavToggle-open {
|
|
2544
|
-
display: none;
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
.BPNavToggle[aria-expanded="true"] .BPNavToggle-close {
|
|
2548
|
-
display: block;
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2551
|
-
.BPNavScreen {
|
|
2552
|
-
display: none;
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
.BPNavScreen-nav {
|
|
2556
|
-
padding: 8px 16px 24px;
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
.BPNavScreen-section {
|
|
2560
|
-
border-bottom: 1px solid var(--bp-c-divider);
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
.BPNavScreen-section:last-child {
|
|
2564
|
-
border-bottom: none;
|
|
2565
|
-
}
|
|
2566
|
-
|
|
2567
|
-
.BPNavScreen-summary {
|
|
2568
|
-
display: flex;
|
|
2569
|
-
align-items: center;
|
|
2570
|
-
justify-content: space-between;
|
|
2571
|
-
padding: 12px 4px;
|
|
2572
|
-
font-size: 15px;
|
|
2573
|
-
font-weight: 600;
|
|
2574
|
-
color: var(--bp-c-text-1);
|
|
2575
|
-
cursor: pointer;
|
|
2576
|
-
list-style: none;
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
|
-
.BPNavScreen-summary::-webkit-details-marker {
|
|
2580
|
-
display: none;
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
.BPNavScreen-summary .chevron {
|
|
2584
|
-
width: 14px;
|
|
2585
|
-
height: 14px;
|
|
2586
|
-
color: var(--bp-c-text-3, var(--bp-c-text-2));
|
|
2587
|
-
transition: transform 0.2s ease;
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
.BPNavScreen-section[open] > .BPNavScreen-summary .chevron {
|
|
2591
|
-
transform: rotate(180deg);
|
|
2592
|
-
}
|
|
2593
|
-
|
|
2594
|
-
.BPNavScreen-items {
|
|
2595
|
-
padding: 0 0 12px 4px;
|
|
2596
|
-
}
|
|
2597
|
-
|
|
2598
|
-
.BPNavScreen-subtitle {
|
|
2599
|
-
margin: 12px 0 4px;
|
|
2600
|
-
font-size: 11px;
|
|
2601
|
-
font-weight: 600;
|
|
2602
|
-
letter-spacing: 0.06em;
|
|
2603
|
-
text-transform: uppercase;
|
|
2604
|
-
color: var(--bp-c-text-3, var(--bp-c-text-2));
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
|
-
.BPNavScreen-link {
|
|
2608
|
-
display: block;
|
|
2609
|
-
padding: 8px 0;
|
|
2610
|
-
font-size: 14px;
|
|
2611
|
-
font-weight: 500;
|
|
2612
|
-
color: var(--bp-c-text-2);
|
|
2613
|
-
text-decoration: none;
|
|
2614
|
-
}
|
|
2615
|
-
|
|
2616
|
-
.BPNavScreen-section > .BPNavScreen-link {
|
|
2617
|
-
padding: 12px 4px;
|
|
2618
|
-
font-size: 15px;
|
|
2619
|
-
font-weight: 600;
|
|
2620
|
-
color: var(--bp-c-text-1);
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
.BPNavScreen-link:hover,
|
|
2624
|
-
.BPNavScreen-link.is-active {
|
|
2625
|
-
color: var(--bp-c-brand-1);
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
@media (max-width: 959px) {
|
|
2629
|
-
.BPNavToggle {
|
|
2630
|
-
display: inline-flex;
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2633
|
-
/* Absolute, not fixed. .BPNav sets a backdrop-filter, which makes it the
|
|
2634
|
-
* containing block for fixed-position descendants, so a fixed panel
|
|
2635
|
-
* measured its top/bottom against the 64px bar and collapsed to nothing.
|
|
2636
|
-
* Anchoring to the bar's own bottom edge is what was meant anyway. */
|
|
2637
|
-
.BPNavScreen {
|
|
2638
|
-
display: block;
|
|
2639
|
-
position: absolute;
|
|
2640
|
-
top: 100%;
|
|
2641
|
-
left: 0;
|
|
2642
|
-
right: 0;
|
|
2643
|
-
max-height: calc(100dvh - var(--bp-nav-height, 64px));
|
|
2644
|
-
overflow-y: auto;
|
|
2645
|
-
overscroll-behavior: contain;
|
|
2646
|
-
background: var(--bp-c-bg);
|
|
2647
|
-
border-bottom: 1px solid var(--bp-c-divider);
|
|
2648
|
-
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
|
|
2649
|
-
z-index: 40;
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
.BPNavScreen[hidden] {
|
|
2653
|
-
display: none;
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
html.bp-nav-screen-open,
|
|
2657
|
-
html.bp-nav-screen-open body {
|
|
2658
|
-
overflow: hidden;
|
|
2659
|
-
}
|
|
2660
|
-
}
|
|
2661
|
-
|
|
2662
|
-
/* Search trigger. A button that looks like a field: the real input lives in
|
|
2663
|
-
* the search dialog it opens. */
|
|
2664
|
-
.BPNavBarSearch {
|
|
2665
|
-
display: flex;
|
|
2666
|
-
align-items: center;
|
|
2667
|
-
gap: 8px;
|
|
2668
|
-
width: 100%;
|
|
2669
|
-
max-width: 240px;
|
|
2670
|
-
height: 32px;
|
|
2671
|
-
padding: 0 8px 0 10px;
|
|
2672
|
-
font-family: inherit;
|
|
2673
|
-
font-size: 13px;
|
|
2674
|
-
text-align: left;
|
|
2675
|
-
color: var(--bp-c-text-3);
|
|
2676
|
-
background-color: var(--bp-c-bg-alt);
|
|
2677
|
-
border: 1px solid var(--bp-c-divider);
|
|
2678
|
-
border-radius: 6px;
|
|
2679
|
-
cursor: pointer;
|
|
2680
|
-
transition: border-color 0.25s, background-color 0.25s, color 0.25s;
|
|
2681
|
-
}
|
|
2682
|
-
|
|
2683
|
-
.BPNavBarSearch:hover {
|
|
2684
|
-
color: var(--bp-c-text-2);
|
|
2685
|
-
border-color: var(--bp-c-brand-1);
|
|
2686
|
-
background-color: var(--bp-c-bg);
|
|
2687
|
-
}
|
|
2688
|
-
|
|
2689
|
-
.BPNavBarSearch:focus-visible {
|
|
2690
|
-
outline: 2px solid var(--bp-c-brand-1);
|
|
2691
|
-
outline-offset: 2px;
|
|
2692
|
-
}
|
|
2693
|
-
|
|
2694
|
-
.BPNavBarSearch-icon {
|
|
2695
|
-
width: 15px;
|
|
2696
|
-
height: 15px;
|
|
2697
|
-
flex-shrink: 0;
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
|
-
.BPNavBarSearch-label {
|
|
2701
|
-
flex: 1;
|
|
2702
|
-
min-width: 0;
|
|
2703
|
-
overflow: hidden;
|
|
2704
|
-
text-overflow: ellipsis;
|
|
2705
|
-
white-space: nowrap;
|
|
2706
|
-
}
|
|
2707
|
-
|
|
2708
|
-
.BPNavBarSearch-kbd {
|
|
2709
|
-
flex-shrink: 0;
|
|
2710
|
-
padding: 1px 5px;
|
|
2711
|
-
font-size: 11px;
|
|
2712
|
-
font-weight: 600;
|
|
2713
|
-
font-family: inherit;
|
|
2714
|
-
line-height: 1.5;
|
|
2715
|
-
color: var(--bp-c-text-3);
|
|
2716
|
-
background-color: var(--bp-c-bg);
|
|
2717
|
-
border: 1px solid var(--bp-c-divider);
|
|
2718
|
-
border-radius: 4px;
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2721
|
-
.BPSocialLinks-text {
|
|
2722
|
-
font-size: 13px;
|
|
2723
|
-
font-weight: 500;
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
/* Social/icon links cluster */
|
|
2727
|
-
.BPSocialLinks {
|
|
2728
|
-
display: flex;
|
|
2729
|
-
align-items: center;
|
|
2730
|
-
gap: 12px;
|
|
2731
|
-
padding-left: 24px;
|
|
2732
|
-
border-left: 1px solid var(--bp-c-divider);
|
|
2733
|
-
}
|
|
2734
|
-
|
|
2735
|
-
.BPSocialLinks > a {
|
|
2736
|
-
display: inline-flex;
|
|
2737
|
-
align-items: center;
|
|
2738
|
-
justify-content: center;
|
|
2739
|
-
width: 32px;
|
|
2740
|
-
height: 32px;
|
|
2741
|
-
color: var(--bp-c-text-2);
|
|
2742
|
-
border-radius: 4px;
|
|
2743
|
-
transition: color 0.25s, background-color 0.25s;
|
|
2744
|
-
}
|
|
2745
|
-
|
|
2746
|
-
.BPSocialLinks > a:hover {
|
|
2747
|
-
color: var(--bp-c-text-1);
|
|
2748
|
-
background-color: var(--bp-c-bg-soft);
|
|
2749
|
-
}
|
|
2750
|
-
|
|
2751
|
-
.BPSocialLinks > a svg {
|
|
2752
|
-
width: 20px;
|
|
2753
|
-
height: 20px;
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
/* Content area */
|
|
2757
|
-
.BPContent {
|
|
2758
|
-
flex: 1;
|
|
2759
|
-
}
|
|
2760
|
-
|
|
2761
|
-
.BPContent--doc {
|
|
2762
|
-
position: fixed;
|
|
2763
|
-
top: var(--bp-nav-height, 64px);
|
|
2764
|
-
bottom: 0;
|
|
2765
|
-
overflow-y: auto;
|
|
2766
|
-
left: max(var(--bp-sidebar-width, 272px), calc((100vw - var(--bp-layout-max-width, 1440px)) / 2 + var(--bp-sidebar-width, 272px)));
|
|
2767
|
-
right: max(0px, calc((100vw - var(--bp-layout-max-width, 1440px)) / 2));
|
|
2768
|
-
}
|
|
2769
|
-
|
|
2770
|
-
.BPContent--page {
|
|
2771
|
-
padding-top: var(--bp-nav-height, 64px);
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
.BPDoc {
|
|
2775
|
-
padding: 32px 24px;
|
|
2776
|
-
padding-right: 32px;
|
|
2777
|
-
}
|
|
2778
|
-
|
|
2779
|
-
@media (min-width: 1280px) {
|
|
2780
|
-
.BPDoc {
|
|
2781
|
-
padding: 48px 32px 128px;
|
|
2782
|
-
}
|
|
2783
|
-
}
|
|
2784
|
-
|
|
2785
|
-
.BPDocContent {
|
|
2786
|
-
max-width: 768px;
|
|
2787
|
-
margin: 0;
|
|
2788
|
-
}
|
|
2789
|
-
|
|
2790
|
-
.BPPage {
|
|
2791
|
-
padding: 48px 24px;
|
|
2792
|
-
max-width: 768px;
|
|
2793
|
-
margin: 0 auto;
|
|
2794
|
-
}
|
|
2795
|
-
|
|
2796
|
-
@media (min-width: 1280px) {
|
|
2797
|
-
.BPPage {
|
|
2798
|
-
padding: 64px 32px;
|
|
2799
|
-
}
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
|
-
/* Mobile sidebar drawer behaviour */
|
|
2803
|
-
@media (max-width: 959px) {
|
|
2804
|
-
/* Collapses to an icon button rather than disappearing: search is the main
|
|
2805
|
-
* way to get around a docs site on a phone, where the sidebar is behind a
|
|
2806
|
-
* drawer and the TOC behind a disclosure. */
|
|
2807
|
-
.BPNavBarSearch {
|
|
2808
|
-
width: 36px;
|
|
2809
|
-
max-width: none;
|
|
2810
|
-
padding: 0;
|
|
2811
|
-
justify-content: center;
|
|
2812
|
-
background-color: transparent;
|
|
2813
|
-
border-color: transparent;
|
|
2814
|
-
}
|
|
2815
|
-
.BPNavBarSearch-label,
|
|
2816
|
-
.BPNavBarSearch-kbd {
|
|
2817
|
-
display: none;
|
|
2818
|
-
}
|
|
2819
|
-
.BPNavBarSearch-icon {
|
|
2820
|
-
width: 18px;
|
|
2821
|
-
height: 18px;
|
|
2822
|
-
}
|
|
2823
|
-
.BPSocialLinks {
|
|
2824
|
-
/* The divider separates the nav links from the icons — with the links
|
|
2825
|
-
* hidden it is a rule floating against the title, so drop it. */
|
|
2826
|
-
padding-left: 0;
|
|
2827
|
-
border-left: none;
|
|
2828
|
-
gap: 4px;
|
|
2829
|
-
}
|
|
2830
|
-
.BPNavBarMenu {
|
|
2831
|
-
display: none;
|
|
2832
|
-
}
|
|
2833
|
-
.BPNavBar {
|
|
2834
|
-
padding: 0 16px;
|
|
2835
|
-
gap: 12px;
|
|
2836
|
-
}
|
|
2837
|
-
.BPNavBarStart {
|
|
2838
|
-
gap: 8px;
|
|
2839
|
-
}
|
|
2840
|
-
.BPNavBarEnd {
|
|
2841
|
-
gap: 4px;
|
|
2842
|
-
}
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
|
-
@media (max-width: 419px) {
|
|
2846
|
-
.BPNavBarTitle {
|
|
2847
|
-
font-size: 15px;
|
|
2848
|
-
}
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
|
-
/**
|
|
2852
|
-
* Hero (home layout) — used by hero.stx + serve.ts generateHero
|
|
2853
|
-
* -------------------------------------------------------------------------- */
|
|
2854
|
-
|
|
2855
|
-
.BPHero-announcement {
|
|
2856
|
-
display: inline-flex;
|
|
2857
|
-
align-items: center;
|
|
2858
|
-
gap: 8px;
|
|
2859
|
-
margin: 0 0 20px;
|
|
2860
|
-
padding: 5px 14px 5px 6px;
|
|
2861
|
-
border: 1px solid var(--bp-c-divider);
|
|
2862
|
-
border-radius: 999px;
|
|
2863
|
-
background: var(--bp-c-bg-soft);
|
|
2864
|
-
font-size: 13px;
|
|
2865
|
-
color: var(--bp-c-text-2);
|
|
2866
|
-
text-decoration: none;
|
|
2867
|
-
transition: border-color 0.25s, color 0.25s;
|
|
2868
|
-
}
|
|
2869
|
-
|
|
2870
|
-
.BPHero-announcement:hover {
|
|
2871
|
-
border-color: var(--bp-c-brand-1);
|
|
2872
|
-
color: var(--bp-c-text-1);
|
|
2873
|
-
}
|
|
2874
|
-
|
|
2875
|
-
.BPHero-announcement-tag {
|
|
2876
|
-
padding: 2px 8px;
|
|
2877
|
-
border-radius: 999px;
|
|
2878
|
-
background: var(--bp-c-brand-soft, var(--bp-c-bg-alt));
|
|
2879
|
-
color: var(--bp-c-brand-1);
|
|
2880
|
-
font-size: 12px;
|
|
2881
|
-
font-weight: 600;
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
.BPHero-announcement-arrow {
|
|
2885
|
-
width: 13px;
|
|
2886
|
-
height: 13px;
|
|
2887
|
-
transition: transform 0.25s;
|
|
2888
|
-
}
|
|
2889
|
-
|
|
2890
|
-
.BPHero-announcement:hover .BPHero-announcement-arrow {
|
|
2891
|
-
transform: translateX(2px);
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
/**
|
|
2895
|
-
* Hero code panel — the visual for a tool people evaluate by reading code.
|
|
2896
|
-
* -------------------------------------------------------------------------- */
|
|
2897
|
-
|
|
2898
|
-
.BPHeroCode {
|
|
2899
|
-
width: 100%;
|
|
2900
|
-
min-width: 0;
|
|
2901
|
-
border: 1px solid var(--bp-c-divider);
|
|
2902
|
-
border-radius: 12px;
|
|
2903
|
-
background: var(--bp-code-block-bg, var(--bp-c-bg-alt));
|
|
2904
|
-
overflow: hidden;
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
.BPHeroCode-head {
|
|
2908
|
-
display: flex;
|
|
2909
|
-
align-items: center;
|
|
2910
|
-
gap: 4px;
|
|
2911
|
-
min-height: 38px;
|
|
2912
|
-
padding: 0 12px;
|
|
2913
|
-
border-bottom: 1px solid var(--bp-c-divider);
|
|
2914
|
-
}
|
|
2915
|
-
|
|
2916
|
-
.BPHeroCode-head:empty {
|
|
2917
|
-
display: none;
|
|
2918
|
-
}
|
|
2919
|
-
|
|
2920
|
-
.BPHeroCode-file {
|
|
2921
|
-
font-family: var(--bp-font-family-mono, ui-monospace, monospace);
|
|
2922
|
-
font-size: 12px;
|
|
2923
|
-
color: var(--bp-c-text-3, var(--bp-c-text-2));
|
|
2924
|
-
}
|
|
2925
|
-
|
|
2926
|
-
.BPHeroCode-tabs {
|
|
2927
|
-
display: flex;
|
|
2928
|
-
gap: 2px;
|
|
2929
|
-
overflow-x: auto;
|
|
2930
|
-
}
|
|
2931
|
-
|
|
2932
|
-
.BPHeroCode-tab {
|
|
2933
|
-
padding: 8px 12px;
|
|
2934
|
-
border: none;
|
|
2935
|
-
border-bottom: 2px solid transparent;
|
|
2936
|
-
background: none;
|
|
2937
|
-
font-family: var(--bp-font-family-mono, ui-monospace, monospace);
|
|
2938
|
-
font-size: 12px;
|
|
2939
|
-
color: var(--bp-c-text-2);
|
|
2940
|
-
white-space: nowrap;
|
|
2941
|
-
cursor: pointer;
|
|
2942
|
-
transition: color 0.25s, border-color 0.25s;
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2945
|
-
.BPHeroCode-tab:hover {
|
|
2946
|
-
color: var(--bp-c-text-1);
|
|
2947
|
-
}
|
|
2948
|
-
|
|
2949
|
-
.BPHeroCode-tab.is-active {
|
|
2950
|
-
color: var(--bp-c-text-1);
|
|
2951
|
-
border-bottom-color: var(--bp-c-brand-1);
|
|
2952
|
-
}
|
|
2953
|
-
|
|
2954
|
-
.BPHeroCode-body pre {
|
|
2955
|
-
margin: 0;
|
|
2956
|
-
padding: 18px 20px;
|
|
2957
|
-
overflow-x: auto;
|
|
2958
|
-
background: transparent;
|
|
2959
|
-
font-size: 13px;
|
|
2960
|
-
line-height: 1.7;
|
|
2961
|
-
}
|
|
2962
|
-
|
|
2963
|
-
/* The head already names the sample, and the fence language is often a
|
|
2964
|
-
* stand-in for a grammar the highlighter does not ship. Printing it in the
|
|
2965
|
-
* corner of the panel labels the code as the wrong language. */
|
|
2966
|
-
.BPHeroCode pre[data-lang]::before {
|
|
2967
|
-
content: none;
|
|
2968
|
-
}
|
|
2969
|
-
|
|
2970
|
-
.BPHeroCode-body code {
|
|
2971
|
-
background: none;
|
|
2972
|
-
padding: 0;
|
|
2973
|
-
font-size: inherit;
|
|
2974
|
-
}
|
|
2975
|
-
|
|
2976
|
-
.BPHero-name {
|
|
2977
|
-
font-size: clamp(18px, 4vw, 24px);
|
|
2978
|
-
font-weight: 700;
|
|
2979
|
-
letter-spacing: -0.02em;
|
|
2980
|
-
line-height: 1.2;
|
|
2981
|
-
margin: 0 0 8px;
|
|
2982
|
-
background: linear-gradient(135deg, var(--bp-c-brand-1, #5672cd) 0%, var(--bp-c-brand-2, #8b9cf7) 100%);
|
|
2983
|
-
-webkit-background-clip: text;
|
|
2984
|
-
-webkit-text-fill-color: transparent;
|
|
2985
|
-
background-clip: text;
|
|
2986
|
-
}
|
|
2987
|
-
|
|
2988
|
-
/* Fluid rather than stepped: a fixed 48px headline on a 375px phone puts a
|
|
2989
|
-
* single long word (\`documentation\`) wider than the viewport, and a hard
|
|
2990
|
-
* breakpoint only moves the problem to the widths either side of it. */
|
|
2991
|
-
.BPHero-text {
|
|
2992
|
-
font-size: clamp(30px, 8vw, 56px);
|
|
2993
|
-
font-weight: 800;
|
|
2994
|
-
letter-spacing: -0.02em;
|
|
2995
|
-
line-height: 1.1;
|
|
2996
|
-
color: var(--bp-c-text-1);
|
|
2997
|
-
margin: 0 0 8px;
|
|
2998
|
-
/* Last resort for a word that still cannot fit at the minimum size. */
|
|
2999
|
-
overflow-wrap: break-word;
|
|
3000
|
-
}
|
|
3001
|
-
|
|
3002
|
-
.BPHero-tagline {
|
|
3003
|
-
max-width: 720px;
|
|
3004
|
-
font-size: clamp(16px, 2.4vw, 20px);
|
|
3005
|
-
font-weight: 400;
|
|
3006
|
-
line-height: 1.6;
|
|
3007
|
-
color: var(--bp-c-text-2);
|
|
3008
|
-
margin: 12px 0 0;
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3011
|
-
.BPHero-actions {
|
|
3012
|
-
display: flex;
|
|
3013
|
-
flex-wrap: wrap;
|
|
3014
|
-
gap: 12px;
|
|
3015
|
-
margin-top: 28px;
|
|
3016
|
-
}
|
|
3017
|
-
|
|
3018
|
-
.BPButton {
|
|
3019
|
-
display: inline-flex;
|
|
3020
|
-
align-items: center;
|
|
3021
|
-
justify-content: center;
|
|
3022
|
-
padding: 0 24px;
|
|
3023
|
-
height: 40px;
|
|
3024
|
-
font-size: 14px;
|
|
3025
|
-
font-weight: 600;
|
|
3026
|
-
border-radius: 20px;
|
|
3027
|
-
text-decoration: none;
|
|
3028
|
-
transition: background-color 0.25s, color 0.25s, border-color 0.25s;
|
|
3029
|
-
border: 1px solid transparent;
|
|
3030
|
-
white-space: nowrap;
|
|
3031
|
-
cursor: pointer;
|
|
3032
|
-
}
|
|
3033
|
-
|
|
3034
|
-
.BPButton-brand {
|
|
3035
|
-
color: var(--bp-button-brand-text, #03110b);
|
|
3036
|
-
background-color: var(--bp-c-brand-1);
|
|
3037
|
-
border-color: var(--bp-c-brand-1);
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
.BPButton-brand:hover {
|
|
3041
|
-
background-color: var(--bp-c-brand-2);
|
|
3042
|
-
border-color: var(--bp-c-brand-2);
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
|
-
.BPButton-alt {
|
|
3046
|
-
color: var(--bp-c-text-1);
|
|
3047
|
-
background-color: transparent;
|
|
3048
|
-
border-color: var(--bp-c-divider);
|
|
3049
|
-
}
|
|
3050
|
-
|
|
3051
|
-
.BPButton-alt:hover {
|
|
3052
|
-
border-color: var(--bp-c-text-2);
|
|
3053
|
-
color: var(--bp-c-brand-1);
|
|
3054
|
-
}
|
|
3055
|
-
|
|
3056
|
-
/**
|
|
3057
|
-
* Features grid — used by features.stx + serve.ts generateFeatures
|
|
3058
|
-
* -------------------------------------------------------------------------- */
|
|
3059
|
-
|
|
3060
|
-
.BPHomeFeatures {
|
|
3061
|
-
padding: 48px 24px;
|
|
3062
|
-
border-top: 1px solid var(--bp-c-divider);
|
|
3063
|
-
}
|
|
3064
|
-
|
|
3065
|
-
.BPHomeFeatures-inner {
|
|
3066
|
-
max-width: 1152px;
|
|
3067
|
-
margin: 0 auto;
|
|
3068
|
-
}
|
|
3069
|
-
|
|
3070
|
-
.BPFeatures {
|
|
3071
|
-
display: grid;
|
|
3072
|
-
grid-template-columns: repeat(1, 1fr);
|
|
3073
|
-
gap: 16px;
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
|
-
@media (min-width: 640px) {
|
|
3077
|
-
.BPFeatures {
|
|
3078
|
-
grid-template-columns: repeat(2, 1fr);
|
|
3079
|
-
gap: 24px;
|
|
3080
|
-
}
|
|
3081
|
-
}
|
|
3082
|
-
|
|
3083
|
-
@media (min-width: 960px) {
|
|
3084
|
-
.BPHomeFeatures {
|
|
3085
|
-
padding: 64px 32px;
|
|
3086
|
-
}
|
|
3087
|
-
.BPFeatures {
|
|
3088
|
-
grid-template-columns: repeat(3, 1fr);
|
|
3089
|
-
}
|
|
3090
|
-
}
|
|
3091
|
-
|
|
3092
|
-
.BPFeature {
|
|
3093
|
-
display: flex;
|
|
3094
|
-
flex-direction: column;
|
|
3095
|
-
align-items: flex-start;
|
|
3096
|
-
padding: 26px;
|
|
3097
|
-
background-color: var(--bp-c-bg-soft, var(--bp-c-bg-alt));
|
|
3098
|
-
border: 1px solid var(--bp-c-divider);
|
|
3099
|
-
border-radius: 12px;
|
|
3100
|
-
transition: border-color 0.25s, box-shadow 0.25s;
|
|
3101
|
-
text-decoration: none;
|
|
3102
|
-
color: inherit;
|
|
3103
|
-
}
|
|
3104
|
-
|
|
3105
|
-
/* A cell can claim extra columns, turning the equal grid into a bento. Only
|
|
3106
|
-
* from 640px up, where there is more than one column to claim. */
|
|
3107
|
-
@media (min-width: 640px) {
|
|
3108
|
-
.BPFeature {
|
|
3109
|
-
grid-column: span min(var(--bp-feature-span, 1), 2);
|
|
3110
|
-
}
|
|
3111
|
-
}
|
|
3112
|
-
|
|
3113
|
-
@media (min-width: 960px) {
|
|
3114
|
-
.BPFeature {
|
|
3115
|
-
grid-column: span var(--bp-feature-span, 1);
|
|
3116
|
-
}
|
|
3117
|
-
}
|
|
3118
|
-
|
|
3119
|
-
.BPFeature:hover {
|
|
3120
|
-
border-color: var(--bp-c-brand-1);
|
|
3121
|
-
box-shadow: 0 2px 12px rgba(86, 114, 205, 0.08);
|
|
3122
|
-
}
|
|
3123
|
-
|
|
3124
|
-
/* The affordance that says a card navigates. Pushed to the bottom so it lines
|
|
3125
|
-
* up across a row of cards with different amounts of body copy. */
|
|
3126
|
-
.BPFeature-link {
|
|
3127
|
-
display: inline-flex;
|
|
3128
|
-
align-items: center;
|
|
3129
|
-
gap: 5px;
|
|
3130
|
-
margin-top: auto;
|
|
3131
|
-
padding-top: 14px;
|
|
3132
|
-
font-size: 13px;
|
|
3133
|
-
font-weight: 600;
|
|
3134
|
-
color: var(--bp-c-brand-1);
|
|
3135
|
-
}
|
|
3136
|
-
|
|
3137
|
-
.BPFeature-link svg {
|
|
3138
|
-
width: 13px;
|
|
3139
|
-
height: 13px;
|
|
3140
|
-
transition: transform 0.25s;
|
|
3141
|
-
}
|
|
3142
|
-
|
|
3143
|
-
.BPFeature.is-linked:hover .BPFeature-link svg {
|
|
3144
|
-
transform: translateX(3px);
|
|
3145
|
-
}
|
|
3146
|
-
|
|
3147
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3148
|
-
.BPFeature-link svg,
|
|
3149
|
-
.BPHero-announcement-arrow {
|
|
3150
|
-
transition: none;
|
|
3151
|
-
}
|
|
3152
|
-
}
|
|
3153
|
-
|
|
3154
|
-
.BPFeature-icon {
|
|
3155
|
-
width: 40px;
|
|
3156
|
-
height: 40px;
|
|
3157
|
-
display: flex;
|
|
3158
|
-
align-items: center;
|
|
3159
|
-
justify-content: center;
|
|
3160
|
-
border-radius: 8px;
|
|
3161
|
-
background: var(--bp-c-brand-soft, rgba(86, 114, 205, 0.1));
|
|
3162
|
-
color: var(--bp-c-brand-1);
|
|
3163
|
-
margin-bottom: 12px;
|
|
3164
|
-
}
|
|
3165
|
-
|
|
3166
|
-
.BPFeature-icon svg {
|
|
3167
|
-
width: 24px;
|
|
3168
|
-
height: 24px;
|
|
3169
|
-
}
|
|
3170
|
-
|
|
3171
|
-
.BPFeature-icon-text {
|
|
3172
|
-
font-size: 24px;
|
|
3173
|
-
font-weight: 700;
|
|
3174
|
-
}
|
|
3175
|
-
|
|
3176
|
-
.BPFeature-title {
|
|
3177
|
-
margin: 0 0 8px;
|
|
3178
|
-
font-size: 16px;
|
|
3179
|
-
font-weight: 600;
|
|
3180
|
-
line-height: 1.4;
|
|
3181
|
-
color: var(--bp-c-text-1);
|
|
3182
|
-
}
|
|
3183
|
-
|
|
3184
|
-
.BPFeature-details {
|
|
3185
|
-
margin: 0;
|
|
3186
|
-
font-size: 14px;
|
|
3187
|
-
line-height: 1.6;
|
|
3188
|
-
color: var(--bp-c-text-2);
|
|
3189
|
-
}
|
|
3190
|
-
|
|
3191
|
-
/**
|
|
3192
|
-
* Home page markdown body — rendered below the hero + features grid.
|
|
3193
|
-
* Wrapped as .BPHome-content > .bp-doc.vp-doc.container by markdownToHtml.
|
|
3194
|
-
* -------------------------------------------------------------------------- */
|
|
3195
|
-
|
|
3196
|
-
/* The nav is fixed, so the home layout has to reserve its height. Previously
|
|
3197
|
-
* only the hero's own top padding cleared it, which meant any change to that
|
|
3198
|
-
* padding slid the first line of the hero under the bar. */
|
|
3199
|
-
.BPHome {
|
|
3200
|
-
padding-top: var(--bp-nav-height, 64px);
|
|
3201
|
-
}
|
|
3202
|
-
|
|
3203
|
-
.BPHome-content {
|
|
3204
|
-
padding: 48px 24px 96px;
|
|
3205
|
-
}
|
|
3206
|
-
|
|
3207
|
-
.BPHome-content .container {
|
|
3208
|
-
margin: 0 auto;
|
|
3209
|
-
max-width: 1152px;
|
|
3210
|
-
}
|
|
3211
|
-
|
|
3212
|
-
@media (min-width: 960px) {
|
|
3213
|
-
.BPHome-content {
|
|
3214
|
-
padding: 64px 32px 128px;
|
|
3215
|
-
}
|
|
3216
|
-
}
|
|
3217
|
-
|
|
3218
|
-
/**
|
|
3219
|
-
* Inline content — badges, external link icons
|
|
3220
|
-
* -------------------------------------------------------------------------- */
|
|
3221
|
-
|
|
3222
|
-
/* The UA default is pure yellow with forced black text, which is jarring in
|
|
3223
|
-
* light mode and unreadable against a dark page. */
|
|
3224
|
-
.bp-doc mark {
|
|
3225
|
-
padding: 1px 3px;
|
|
3226
|
-
border-radius: 3px;
|
|
3227
|
-
background-color: var(--bp-c-warning-soft, rgba(234, 179, 8, 0.28));
|
|
3228
|
-
color: inherit;
|
|
3229
|
-
-webkit-box-decoration-break: clone;
|
|
3230
|
-
box-decoration-break: clone;
|
|
3231
|
-
}
|
|
3232
|
-
|
|
3233
|
-
.badge {
|
|
3234
|
-
display: inline-block;
|
|
3235
|
-
padding: 2px 8px;
|
|
3236
|
-
font-size: 0.85em;
|
|
3237
|
-
font-weight: 600;
|
|
3238
|
-
border-radius: 4px;
|
|
3239
|
-
margin: 0 4px;
|
|
3240
|
-
vertical-align: middle;
|
|
3241
|
-
border: 1px solid transparent;
|
|
3242
|
-
line-height: 1.5;
|
|
3243
|
-
}
|
|
3244
|
-
|
|
3245
|
-
.badge-tip {
|
|
3246
|
-
background: var(--bp-c-tip-soft, rgba(16, 185, 129, 0.14));
|
|
3247
|
-
color: var(--bp-c-tip-1, var(--bp-c-green-1));
|
|
3248
|
-
border-color: var(--bp-c-tip-2, var(--bp-c-green-2));
|
|
3249
|
-
}
|
|
3250
|
-
|
|
3251
|
-
.badge-info {
|
|
3252
|
-
background: var(--bp-c-default-soft, var(--bp-c-gray-soft));
|
|
3253
|
-
color: var(--bp-c-text-1);
|
|
3254
|
-
border-color: var(--bp-c-divider);
|
|
3255
|
-
}
|
|
3256
|
-
|
|
3257
|
-
.badge-warning {
|
|
3258
|
-
background: var(--bp-c-warning-soft, rgba(234, 179, 8, 0.14));
|
|
3259
|
-
color: var(--bp-c-warning-1, var(--bp-c-yellow-1));
|
|
3260
|
-
border-color: var(--bp-c-warning-2, var(--bp-c-yellow-2));
|
|
3261
|
-
}
|
|
3262
|
-
|
|
3263
|
-
.badge-danger {
|
|
3264
|
-
background: var(--bp-c-danger-soft, rgba(244, 63, 94, 0.14));
|
|
3265
|
-
color: var(--bp-c-danger-1, var(--bp-c-red-1));
|
|
3266
|
-
border-color: var(--bp-c-danger-2, var(--bp-c-red-2));
|
|
3267
|
-
}
|
|
3268
|
-
|
|
3269
|
-
.external-link-icon {
|
|
3270
|
-
display: inline-block;
|
|
3271
|
-
margin-left: 4px;
|
|
3272
|
-
vertical-align: middle;
|
|
3273
|
-
width: 12px;
|
|
3274
|
-
height: 12px;
|
|
3275
|
-
}
|
|
3276
|
-
|
|
3277
|
-
/**
|
|
3278
|
-
* Polish: prose elements
|
|
3279
|
-
* -------------------------------------------------------------------------- */
|
|
3280
|
-
|
|
3281
|
-
/* Subtle row hover on tables */
|
|
3282
|
-
.bp-doc tbody tr:hover {
|
|
3283
|
-
background-color: var(--bp-c-default-soft, var(--bp-c-gray-soft));
|
|
3284
|
-
}
|
|
3285
|
-
|
|
3286
|
-
/* Slightly stronger blockquote with brand-tinted accent */
|
|
3287
|
-
.bp-doc blockquote {
|
|
3288
|
-
border-left-color: var(--bp-c-brand-1);
|
|
3289
|
-
padding: 8px 0 8px 16px;
|
|
3290
|
-
}
|
|
3291
|
-
|
|
3292
|
-
/* Code-block scrollbar */
|
|
3293
|
-
.bp-doc [class*='language-'] pre::-webkit-scrollbar,
|
|
3294
|
-
.bp-doc pre[data-lang]::-webkit-scrollbar {
|
|
3295
|
-
height: 6px;
|
|
3296
|
-
width: 6px;
|
|
3297
|
-
}
|
|
3298
|
-
.bp-doc [class*='language-'] pre::-webkit-scrollbar-thumb,
|
|
3299
|
-
.bp-doc pre[data-lang]::-webkit-scrollbar-thumb {
|
|
3300
|
-
background-color: var(--bp-c-divider);
|
|
3301
|
-
border-radius: 3px;
|
|
3302
|
-
}
|
|
3303
|
-
.bp-doc [class*='language-'] pre::-webkit-scrollbar-thumb:hover,
|
|
3304
|
-
.bp-doc pre[data-lang]::-webkit-scrollbar-thumb:hover {
|
|
3305
|
-
background-color: var(--bp-c-text-3);
|
|
3306
|
-
}
|
|
3307
|
-
|
|
3308
|
-
/* Heading anchor: keep it subtle */
|
|
3309
|
-
.bp-doc .header-anchor {
|
|
3310
|
-
color: var(--bp-c-text-3);
|
|
3311
|
-
}
|
|
3312
|
-
.bp-doc .header-anchor:hover,
|
|
3313
|
-
.bp-doc .header-anchor:focus {
|
|
3314
|
-
color: var(--bp-c-brand-1);
|
|
3315
|
-
}
|
|
3316
|
-
|
|
3317
|
-
/**
|
|
3318
|
-
* Layout scrollbars
|
|
3319
|
-
* --------------------------------------------------------------------------
|
|
3320
|
-
* The doc layout scrolls in independent panes, so on any platform with
|
|
3321
|
-
* always-visible scrollbars the reader gets full-height grey tracks down the
|
|
3322
|
-
* middle of the page. Thin them to match the code-block treatment. (The TOC
|
|
3323
|
-
* aside hides its scrollbar outright — see page-toc.stx.)
|
|
3324
|
-
*/
|
|
3325
|
-
|
|
3326
|
-
.BPSidebar,
|
|
3327
|
-
.BPContent--doc {
|
|
3328
|
-
scrollbar-width: thin;
|
|
3329
|
-
scrollbar-color: var(--bp-c-divider) transparent;
|
|
3330
|
-
}
|
|
3331
|
-
|
|
3332
|
-
.BPSidebar::-webkit-scrollbar,
|
|
3333
|
-
.BPContent--doc::-webkit-scrollbar {
|
|
3334
|
-
width: 8px;
|
|
3335
|
-
height: 8px;
|
|
3336
|
-
}
|
|
3337
|
-
|
|
3338
|
-
.BPSidebar::-webkit-scrollbar-track,
|
|
3339
|
-
.BPContent--doc::-webkit-scrollbar-track {
|
|
3340
|
-
background: transparent;
|
|
3341
|
-
}
|
|
3342
|
-
|
|
3343
|
-
.BPSidebar::-webkit-scrollbar-thumb,
|
|
3344
|
-
.BPContent--doc::-webkit-scrollbar-thumb {
|
|
3345
|
-
background-color: var(--bp-c-divider);
|
|
3346
|
-
border-radius: 4px;
|
|
3347
|
-
}
|
|
3348
|
-
|
|
3349
|
-
.BPSidebar:hover::-webkit-scrollbar-thumb,
|
|
3350
|
-
.BPContent--doc:hover::-webkit-scrollbar-thumb {
|
|
3351
|
-
background-color: var(--bp-c-text-3);
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
/**
|
|
3355
|
-
* Keyboard focus
|
|
3356
|
-
* --------------------------------------------------------------------------
|
|
3357
|
-
* :focus-visible only, so pointer users never see a ring, but every
|
|
3358
|
-
* interactive control in the chrome is reachable and visible by keyboard.
|
|
3359
|
-
*/
|
|
3360
|
-
|
|
3361
|
-
.BPNavBarTitle:focus-visible,
|
|
3362
|
-
.BPNavBarMenu a:focus-visible,
|
|
3363
|
-
.BPSocialLinks > a:focus-visible,
|
|
3364
|
-
.BPNavBarHamburger:focus-visible,
|
|
3365
|
-
.theme-toggle:focus-visible,
|
|
3366
|
-
.BPSidebarItem-link:focus-visible,
|
|
3367
|
-
.sidebar-section-toggle:focus-visible,
|
|
3368
|
-
.BPDocAside a:focus-visible,
|
|
3369
|
-
.bp-doc a:focus-visible,
|
|
3370
|
-
.BPButton:focus-visible {
|
|
3371
|
-
outline: 2px solid var(--bp-c-brand-1);
|
|
3372
|
-
outline-offset: 2px;
|
|
3373
|
-
border-radius: 3px;
|
|
3374
|
-
}
|
|
3375
|
-
|
|
3376
|
-
/**
|
|
3377
|
-
* Mobile nav / sidebar drawer
|
|
3378
|
-
* -------------------------------------------------------------------------- */
|
|
3379
|
-
|
|
3380
|
-
.BPNavBarHamburger {
|
|
3381
|
-
display: none;
|
|
3382
|
-
/* 40px keeps the hit area at the minimum comfortable touch target even
|
|
3383
|
-
* though the icon itself is 20px. */
|
|
3384
|
-
width: 40px;
|
|
3385
|
-
height: 40px;
|
|
3386
|
-
flex-shrink: 0;
|
|
3387
|
-
background: transparent;
|
|
3388
|
-
border: none;
|
|
3389
|
-
cursor: pointer;
|
|
3390
|
-
align-items: center;
|
|
3391
|
-
justify-content: center;
|
|
3392
|
-
color: var(--bp-c-text-2);
|
|
3393
|
-
border-radius: 8px;
|
|
3394
|
-
padding: 0;
|
|
3395
|
-
margin-left: -8px;
|
|
3396
|
-
}
|
|
3397
|
-
|
|
3398
|
-
.BPNavBarHamburger:hover {
|
|
3399
|
-
color: var(--bp-c-text-1);
|
|
3400
|
-
background-color: var(--bp-c-bg-soft);
|
|
3401
|
-
}
|
|
3402
|
-
|
|
3403
|
-
.BPNavBarHamburger svg {
|
|
3404
|
-
width: 20px;
|
|
3405
|
-
height: 20px;
|
|
3406
|
-
}
|
|
3407
|
-
|
|
3408
|
-
@media (max-width: 959px) {
|
|
3409
|
-
.BPNavBarHamburger {
|
|
3410
|
-
display: inline-flex;
|
|
3411
|
-
}
|
|
3412
|
-
|
|
3413
|
-
.BPSidebar {
|
|
3414
|
-
transform: translateX(-100%);
|
|
3415
|
-
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
|
3416
|
-
z-index: var(--bp-z-index-sidebar, 25);
|
|
3417
|
-
background-color: var(--bp-c-bg-alt);
|
|
3418
|
-
box-shadow: none;
|
|
3419
|
-
}
|
|
3420
|
-
|
|
3421
|
-
.BPSidebar.is-open {
|
|
3422
|
-
transform: translateX(0);
|
|
3423
|
-
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
|
|
3424
|
-
}
|
|
3425
|
-
|
|
3426
|
-
.BPSidebar-backdrop {
|
|
3427
|
-
position: fixed;
|
|
3428
|
-
/* Starts below the nav: the drawer opens under the bar, so scrimming the
|
|
3429
|
-
* bar too dims the very controls (menu button, theme toggle) that stay
|
|
3430
|
-
* live while the drawer is open. */
|
|
3431
|
-
top: var(--bp-nav-height, 64px);
|
|
3432
|
-
right: 0;
|
|
3433
|
-
bottom: 0;
|
|
3434
|
-
left: 0;
|
|
3435
|
-
background-color: rgba(0, 0, 0, 0.32);
|
|
3436
|
-
opacity: 0;
|
|
3437
|
-
pointer-events: none;
|
|
3438
|
-
transition: opacity 0.2s ease;
|
|
3439
|
-
z-index: calc(var(--bp-z-index-sidebar, 25) - 1);
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
.BPSidebar-backdrop.is-open {
|
|
3443
|
-
opacity: 1;
|
|
3444
|
-
pointer-events: auto;
|
|
3445
|
-
}
|
|
3446
|
-
|
|
3447
|
-
.BPContent--doc {
|
|
3448
|
-
left: 0;
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
|
-
.BPDoc {
|
|
3452
|
-
padding: 24px 20px 64px;
|
|
3453
|
-
}
|
|
3454
|
-
}
|
|
3455
|
-
|
|
3456
|
-
/* Small phones: reclaim horizontal space from the gutters. */
|
|
3457
|
-
@media (max-width: 419px) {
|
|
3458
|
-
.BPDoc {
|
|
3459
|
-
padding: 20px 16px 56px;
|
|
3460
|
-
}
|
|
3461
|
-
}
|
|
3462
|
-
`
|
|
3463
|
-
|
|
3464
|
-
/**
|
|
3465
|
-
* Get all VitePress theme CSS combined
|
|
3466
|
-
*/
|
|
3467
|
-
export function getVitePressThemeCSS(): string {
|
|
3468
|
-
return `
|
|
3469
|
-
/* VitePress Theme for BunPress */
|
|
3470
|
-
${varsCSS}
|
|
3471
|
-
${baseCSS}
|
|
3472
|
-
${layoutCSS}
|
|
3473
|
-
${customBlockCSS}
|
|
3474
|
-
${codeGroupCSS}
|
|
3475
|
-
`
|
|
3476
|
-
}
|
|
3477
|
-
|
|
3478
|
-
/**
|
|
3479
|
-
* Get VitePress theme CSS variables only
|
|
3480
|
-
*/
|
|
3481
|
-
export function getVitePressVars(): string {
|
|
3482
|
-
return varsCSS
|
|
3483
|
-
}
|
|
3484
|
-
|
|
3485
|
-
/**
|
|
3486
|
-
* Get VitePress base styles only
|
|
3487
|
-
*/
|
|
3488
|
-
export function getVitePressBase(): string {
|
|
3489
|
-
return baseCSS
|
|
3490
|
-
}
|
|
3491
|
-
|
|
3492
|
-
/**
|
|
3493
|
-
* Get VitePress custom block styles only
|
|
3494
|
-
*/
|
|
3495
|
-
export function getVitePressCustomBlocks(): string {
|
|
3496
|
-
return customBlockCSS
|
|
3497
|
-
}
|
|
3498
|
-
|
|
3499
|
-
/**
|
|
3500
|
-
* Get VitePress code group styles only
|
|
3501
|
-
*/
|
|
3502
|
-
export function getVitePressCodeGroups(): string {
|
|
3503
|
-
return codeGroupCSS
|
|
3504
|
-
}
|
|
3505
|
-
|
|
3506
|
-
export interface VitePressTheme {
|
|
3507
|
-
name: string
|
|
3508
|
-
getCSS: () => string
|
|
3509
|
-
getVars: () => string
|
|
3510
|
-
getBase: () => string
|
|
3511
|
-
getCustomBlocks: () => string
|
|
3512
|
-
getCodeGroups: () => string
|
|
3513
|
-
}
|
|
3514
|
-
|
|
3515
|
-
const vitePressTheme: VitePressTheme = {
|
|
3516
|
-
name: 'vitepress',
|
|
3517
|
-
getCSS: getVitePressThemeCSS,
|
|
3518
|
-
getVars: getVitePressVars,
|
|
3519
|
-
getBase: getVitePressBase,
|
|
3520
|
-
getCustomBlocks: getVitePressCustomBlocks,
|
|
3521
|
-
getCodeGroups: getVitePressCodeGroups,
|
|
3522
|
-
}
|
|
3523
|
-
|
|
3524
|
-
export default vitePressTheme
|