@stacksjs/bunpress 0.2.0 → 0.2.2
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/bin/commands/doctor.d.ts +1 -0
- package/dist/bin/commands/seo.d.ts +19 -0
- package/dist/{chunk-2ns9va8d.js → chunk-2vne40yj.js} +1291 -419
- package/dist/{chunk-n0ebp7d8.js → chunk-3f29kjd8.js} +1 -1
- package/dist/{chunk-av14gbps.js → chunk-5cxb3t2e.js} +1 -1
- package/dist/chunk-8b52ry67.js +393 -0
- package/dist/{chunk-avg4ftb9.js → chunk-he00q0q4.js} +323 -7
- package/dist/chunk-m6pshd6t.js +2 -0
- package/dist/{chunk-fyb5bzsp.js → chunk-mbcjfn27.js} +1 -1
- package/dist/{chunk-trhgd2dy.js → chunk-pbdzef6w.js} +1 -1
- package/dist/src/highlighter.d.ts +1 -0
- package/dist/src/index.js +1 -1
- package/dist/src/markdown-fences.d.ts +37 -0
- package/dist/src/toc.d.ts +14 -0
- package/dist/src/types.d.ts +44 -1
- package/dist/templates/hero.stx +22 -0
- package/dist/templates/navbar.stx +2 -0
- package/dist/themes/vitepress/index.ts +515 -10
- package/package.json +1 -1
- package/dist/chunk-w615shtf.js +0 -2
- package/dist/chunk-x5m3c6jd.js +0 -469
|
@@ -2284,27 +2284,51 @@ export const layoutCSS = `/**
|
|
|
2284
2284
|
transition: transform 0.25s;
|
|
2285
2285
|
}
|
|
2286
2286
|
|
|
2287
|
-
.BPNavBarMenu-group:hover > .BPNavBarMenu-group-button .chevron
|
|
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 {
|
|
2288
2290
|
transform: rotate(180deg);
|
|
2289
2291
|
}
|
|
2290
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. */
|
|
2291
2297
|
.BPNavBarMenu-group-items {
|
|
2292
|
-
display: none;
|
|
2293
2298
|
position: absolute;
|
|
2294
2299
|
right: 0;
|
|
2295
2300
|
top: 100%;
|
|
2296
|
-
|
|
2297
|
-
padding: 8px 0;
|
|
2301
|
+
padding-top: 8px;
|
|
2298
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;
|
|
2299
2323
|
background: var(--bp-c-bg);
|
|
2300
2324
|
border: 1px solid var(--bp-c-divider);
|
|
2301
|
-
border-radius:
|
|
2325
|
+
border-radius: 12px;
|
|
2302
2326
|
box-shadow: var(--bp-shadow-3, 0 12px 32px rgba(0, 0, 0, 0.1));
|
|
2303
|
-
z-index:
|
|
2327
|
+
z-index: -1;
|
|
2304
2328
|
}
|
|
2305
2329
|
|
|
2306
|
-
.BPNavBarMenu-group
|
|
2307
|
-
|
|
2330
|
+
.BPNavBarMenu-group-items > * {
|
|
2331
|
+
position: relative;
|
|
2308
2332
|
}
|
|
2309
2333
|
|
|
2310
2334
|
.BPNavBarMenu-group-items a {
|
|
@@ -2316,11 +2340,325 @@ export const layoutCSS = `/**
|
|
|
2316
2340
|
transition: color 0.25s, background-color 0.25s;
|
|
2317
2341
|
}
|
|
2318
2342
|
|
|
2319
|
-
.BPNavBarMenu-group-items
|
|
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;
|
|
2320
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);
|
|
2321
2534
|
background-color: var(--bp-c-bg-soft);
|
|
2322
2535
|
}
|
|
2323
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
|
+
|
|
2324
2662
|
/* Search trigger. A button that looks like a field: the real input lives in
|
|
2325
2663
|
* the search dialog it opens. */
|
|
2326
2664
|
.BPNavBarSearch {
|
|
@@ -2514,6 +2852,127 @@ export const layoutCSS = `/**
|
|
|
2514
2852
|
* Hero (home layout) — used by hero.stx + serve.ts generateHero
|
|
2515
2853
|
* -------------------------------------------------------------------------- */
|
|
2516
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
|
+
|
|
2517
2976
|
.BPHero-name {
|
|
2518
2977
|
font-size: clamp(18px, 4vw, 24px);
|
|
2519
2978
|
font-weight: 700;
|
|
@@ -2631,7 +3090,9 @@ export const layoutCSS = `/**
|
|
|
2631
3090
|
}
|
|
2632
3091
|
|
|
2633
3092
|
.BPFeature {
|
|
2634
|
-
display:
|
|
3093
|
+
display: flex;
|
|
3094
|
+
flex-direction: column;
|
|
3095
|
+
align-items: flex-start;
|
|
2635
3096
|
padding: 26px;
|
|
2636
3097
|
background-color: var(--bp-c-bg-soft, var(--bp-c-bg-alt));
|
|
2637
3098
|
border: 1px solid var(--bp-c-divider);
|
|
@@ -2641,11 +3102,55 @@ export const layoutCSS = `/**
|
|
|
2641
3102
|
color: inherit;
|
|
2642
3103
|
}
|
|
2643
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
|
+
|
|
2644
3119
|
.BPFeature:hover {
|
|
2645
3120
|
border-color: var(--bp-c-brand-1);
|
|
2646
3121
|
box-shadow: 0 2px 12px rgba(86, 114, 205, 0.08);
|
|
2647
3122
|
}
|
|
2648
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
|
+
|
|
2649
3154
|
.BPFeature-icon {
|
|
2650
3155
|
width: 40px;
|
|
2651
3156
|
height: 40px;
|
package/package.json
CHANGED
package/dist/chunk-w615shtf.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$ as d,Y as a,Z as b,_ as c,aa as e,ba as f,ca as g,da as h,ea as i}from"./chunk-n0ebp7d8.js";export{c as splitLocaleFromPath,a as resolveI18nConfig,d as localizeUrl,g as localeLabel,e as localeContentCandidates,b as loadI18nTranslations,i as generateLocaleDetectionScript,h as generateHreflangTags,f as configForLocale};
|