@janga/norna 0.7.24 → 0.7.26
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/README.md +5 -4
- package/astro.config.mjs +27 -11
- package/bin/norna-cli.mjs +12 -0
- package/package.json +26 -5
- package/schemas/card-list.schema.json +121 -0
- package/schemas/category.schema.json +2 -2
- package/schemas/config.schema.json +342 -33
- package/schemas/content-frontmatter.schema.json +7 -7
- package/schemas/image-carousel.schema.json +43 -0
- package/schemas/image-stack.schema.json +43 -0
- package/schemas/manifest.json +6 -1
- package/schemas/page-theme.schema.json +26 -26
- package/schemas/sitewide-content.schema.json +18 -18
- package/schemas/theme.schema.json +237 -262
- package/scripts/check-config.mjs +5 -1
- package/scripts/dev-local.mjs +130 -13
- package/scripts/generate-schemas.mjs +15 -3
- package/scripts/init-site.mjs +2 -0
- package/scripts/lib/category-destinations.mjs +48 -0
- package/scripts/lib/code-fence-metadata.mjs +25 -43
- package/scripts/lib/content-tabs.mjs +155 -0
- package/scripts/lib/details-headings.mjs +58 -0
- package/scripts/lib/docusaurus-migration-audit.mjs +603 -0
- package/scripts/lib/edit-source-link.mjs +53 -0
- package/scripts/lib/editor-language-service.mjs +238 -116
- package/scripts/lib/locale-registry.mjs +597 -0
- package/scripts/lib/locales/az-Latn.mjs +78 -0
- package/scripts/lib/locales/be.mjs +78 -0
- package/scripts/lib/locales/bg.mjs +78 -0
- package/scripts/lib/locales/bs.mjs +78 -0
- package/scripts/lib/locales/ca.mjs +78 -0
- package/scripts/lib/locales/cnr.mjs +78 -0
- package/scripts/lib/locales/cs.mjs +78 -0
- package/scripts/lib/locales/da.mjs +78 -0
- package/scripts/lib/locales/de.mjs +78 -0
- package/scripts/lib/locales/el.mjs +78 -0
- package/scripts/lib/locales/en.mjs +78 -0
- package/scripts/lib/locales/es.mjs +78 -0
- package/scripts/lib/locales/et.mjs +78 -0
- package/scripts/lib/locales/fi.mjs +78 -0
- package/scripts/lib/locales/fil.mjs +78 -0
- package/scripts/lib/locales/fr.mjs +78 -0
- package/scripts/lib/locales/ga.mjs +78 -0
- package/scripts/lib/locales/ha.mjs +78 -0
- package/scripts/lib/locales/hr.mjs +78 -0
- package/scripts/lib/locales/hu.mjs +78 -0
- package/scripts/lib/locales/id.mjs +78 -0
- package/scripts/lib/locales/is.mjs +78 -0
- package/scripts/lib/locales/it.mjs +78 -0
- package/scripts/lib/locales/jv.mjs +78 -0
- package/scripts/lib/locales/lb.mjs +78 -0
- package/scripts/lib/locales/lt.mjs +78 -0
- package/scripts/lib/locales/lv.mjs +78 -0
- package/scripts/lib/locales/mk.mjs +78 -0
- package/scripts/lib/locales/mt.mjs +78 -0
- package/scripts/lib/locales/nb.mjs +78 -0
- package/scripts/lib/locales/nl.mjs +78 -0
- package/scripts/lib/locales/nn.mjs +78 -0
- package/scripts/lib/locales/pcm.mjs +78 -0
- package/scripts/lib/locales/pl.mjs +78 -0
- package/scripts/lib/locales/pt.mjs +78 -0
- package/scripts/lib/locales/ro.mjs +78 -0
- package/scripts/lib/locales/ru.mjs +78 -0
- package/scripts/lib/locales/sk.mjs +78 -0
- package/scripts/lib/locales/sl.mjs +78 -0
- package/scripts/lib/locales/sq.mjs +78 -0
- package/scripts/lib/locales/sr-Cyrl.mjs +78 -0
- package/scripts/lib/locales/sr-Latn.mjs +78 -0
- package/scripts/lib/locales/sv.mjs +78 -0
- package/scripts/lib/locales/sw.mjs +78 -0
- package/scripts/lib/locales/tr.mjs +78 -0
- package/scripts/lib/locales/uk.mjs +78 -0
- package/scripts/lib/locales/vi.mjs +78 -0
- package/scripts/lib/markdown-links.mjs +4 -25
- package/scripts/lib/markdown-notes-render-plugin.mjs +75 -0
- package/scripts/lib/markdown-notes.mjs +165 -0
- package/scripts/lib/navigation-model.mjs +1 -1
- package/scripts/lib/norna-markdown-blocks.mjs +123 -447
- package/scripts/lib/norna-markdown-render-plugin.mjs +4 -0
- package/scripts/lib/page-aliases.mjs +12 -1
- package/scripts/lib/page-markdown.mjs +63 -16
- package/scripts/lib/page-move-plan.mjs +22 -5
- package/scripts/lib/pagefind-translations.mjs +620 -0
- package/scripts/lib/presentation-contract.mjs +6 -1
- package/scripts/lib/presentation.mjs +29 -30
- package/scripts/lib/project-config.mjs +22 -163
- package/scripts/lib/schema-definitions.mjs +13 -12
- package/scripts/lib/schema-editor-metadata.mjs +42 -46
- package/scripts/lib/schema-value-definitions.mjs +7 -8
- package/scripts/lib/semantic-callouts.mjs +4 -2
- package/scripts/lib/site-content.mjs +4 -2
- package/scripts/lib/site-link-graph.mjs +16 -6
- package/scripts/lib/site-navigation-tree.mjs +0 -11
- package/scripts/lib/site-paths.mjs +14 -2
- package/scripts/lib/sitemap.mjs +5 -3
- package/scripts/lib/structured-blocks.mjs +108 -0
- package/scripts/lib/table-render-plugin.mjs +76 -0
- package/scripts/lib/table-row-headers.mjs +218 -0
- package/scripts/lib/theme-presets.mjs +3 -10
- package/scripts/lib/yaml-config.mjs +2 -6
- package/scripts/migrate-check.mjs +19 -0
- package/scripts/sync-content-sections.mjs +39 -10
- package/scripts/sync-site-public.mjs +7 -1
- package/src/components/CardList.astro +1 -0
- package/src/components/CodeBlockCopyScript.astro +49 -6
- package/src/components/ContentBlocks.astro +39 -0
- package/src/components/ContentTabsScript.astro +60 -0
- package/src/components/DisplaySettings.astro +17 -19
- package/src/components/ImageCarousel.astro +4 -1
- package/src/components/ImageStack.astro +34 -9
- package/src/components/ImageStackEnhancement.astro +331 -0
- package/src/components/NavigationPageTree.astro +1 -1
- package/src/components/NoteNavigationScript.astro +4 -0
- package/src/components/PageAliasRedirect.astro +5 -4
- package/src/components/PageContentsNavigation.astro +2 -3
- package/src/components/SearchNavigationScript.astro +4 -0
- package/src/components/SearchPage.astro +43 -2
- package/src/components/SectionNavigationScript.astro +86 -16
- package/src/components/SiteBreadcrumbs.astro +1 -1
- package/src/components/SiteNavigation.astro +98 -65
- package/src/components/SitePage.astro +73 -33
- package/src/components/SiteSection.astro +5 -81
- package/src/components/SiteTreeNavigation.astro +5 -2
- package/src/components/TableOverflowScript.astro +579 -0
- package/src/components/TopPageMenu.astro +47 -0
- package/src/components/TreeNavigationScript.astro +86 -23
- package/src/layouts/BaseLayout.astro +34 -12
- package/src/lib/generatedImages.ts +18 -0
- package/src/lib/navigationFollowing.ts +142 -0
- package/src/lib/noteNavigation.ts +50 -0
- package/src/lib/searchNavigation.ts +107 -0
- package/src/lib/sectionContent.ts +23 -116
- package/src/lib/siteNavigation.ts +0 -5
- package/src/lib/sitePages.ts +18 -4
- package/src/lib/table-sort-tooltip.ts +109 -0
- package/src/pages/[...slug].astro +16 -6
- package/src/styles/content.css +563 -26
- package/src/styles/foundations.css +9 -0
- package/src/styles/media.css +192 -3
- package/src/styles/navigation.css +214 -60
- package/src/styles/page-layout.css +55 -16
- package/src/styles/responsive.css +62 -20
package/src/styles/content.css
CHANGED
|
@@ -197,6 +197,90 @@ ul {
|
|
|
197
197
|
font-size: clamp(0.96rem, 0.94rem + 0.08vw, 1rem);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
+
.content-tabs {
|
|
201
|
+
display: flow-root;
|
|
202
|
+
clear: both;
|
|
203
|
+
min-width: 0;
|
|
204
|
+
margin-block: var(--space-content-block-gap, 1.5rem);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.content-tabs-controls {
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-wrap: wrap;
|
|
210
|
+
gap: 0.25rem;
|
|
211
|
+
width: var(--layout-reading-width);
|
|
212
|
+
margin-inline: var(--layout-inline-start-margin) var(--layout-inline-end-margin);
|
|
213
|
+
border-bottom: 1px solid var(--color-border);
|
|
214
|
+
margin-bottom: 1rem;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.content-tabs-controls[hidden],
|
|
218
|
+
.content-tab-panel[hidden] { display: none; }
|
|
219
|
+
|
|
220
|
+
.content-tabs-controls button {
|
|
221
|
+
font: inherit;
|
|
222
|
+
color: inherit;
|
|
223
|
+
background: transparent;
|
|
224
|
+
border: 0;
|
|
225
|
+
border-bottom: 2px solid transparent;
|
|
226
|
+
padding: 0.65rem 0.9rem;
|
|
227
|
+
min-height: 44px;
|
|
228
|
+
max-width: 100%;
|
|
229
|
+
overflow-wrap: anywhere;
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.content-tabs-controls button[aria-selected='true'] {
|
|
234
|
+
border-bottom-color: currentColor;
|
|
235
|
+
font-weight: 700;
|
|
236
|
+
background: color-mix(in srgb, currentColor 7%, transparent);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.content-tabs-controls button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
|
|
240
|
+
.content-tabs-controls button:focus-visible,
|
|
241
|
+
.content-tab-panel:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; }
|
|
242
|
+
.content-tab-panel { display: flow-root; min-width: 0; }
|
|
243
|
+
.content-tab-label {
|
|
244
|
+
width: var(--layout-reading-width);
|
|
245
|
+
margin-inline: var(--layout-inline-start-margin) var(--layout-inline-end-margin);
|
|
246
|
+
font-weight: 700;
|
|
247
|
+
margin-block: 1.5rem 0.75rem;
|
|
248
|
+
}
|
|
249
|
+
[data-tabs-ready='true'] .content-tab-label { display: none; }
|
|
250
|
+
.content-tab-panel > :first-child + .section-markdown > :first-child { margin-top: 0; }
|
|
251
|
+
|
|
252
|
+
@media print {
|
|
253
|
+
.content-tabs-controls { display: none; }
|
|
254
|
+
.content-tabs .content-tab-panel[hidden] { display: flow-root; }
|
|
255
|
+
[data-tabs-ready='true'] .content-tab-label { display: block; }
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.section-note-paragraph {
|
|
259
|
+
display: grid;
|
|
260
|
+
grid-template-columns: minmax(0, 1fr);
|
|
261
|
+
align-items: start;
|
|
262
|
+
gap: var(--section-body-paragraph-spacing, 0.85em) var(--layout-note-gap);
|
|
263
|
+
margin-block: 0 var(--section-body-paragraph-spacing, 1em);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.section-markdown .section-note-paragraph > p {
|
|
267
|
+
margin: 0;
|
|
268
|
+
min-width: 0;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.section-note-stack {
|
|
272
|
+
display: grid;
|
|
273
|
+
gap: 0.75rem;
|
|
274
|
+
min-width: 0;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.section-note-stack > .section-note {
|
|
278
|
+
float: none;
|
|
279
|
+
clear: none;
|
|
280
|
+
width: 100%;
|
|
281
|
+
margin: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
200
284
|
.section-note {
|
|
201
285
|
display: grid;
|
|
202
286
|
grid-template-columns: auto minmax(0, 1fr);
|
|
@@ -221,6 +305,11 @@ ul {
|
|
|
221
305
|
text-decoration: none;
|
|
222
306
|
}
|
|
223
307
|
|
|
308
|
+
.section-note-number a {
|
|
309
|
+
color: inherit;
|
|
310
|
+
text-decoration: none;
|
|
311
|
+
}
|
|
312
|
+
|
|
224
313
|
.section-note-ref {
|
|
225
314
|
display: inline-block;
|
|
226
315
|
margin-left: 0.03em;
|
|
@@ -237,12 +326,12 @@ ul {
|
|
|
237
326
|
text-underline-offset: 0.15em;
|
|
238
327
|
}
|
|
239
328
|
|
|
240
|
-
.section-note:target
|
|
329
|
+
.section-note:target,
|
|
330
|
+
.section-note.is-reference-highlighted {
|
|
241
331
|
border-inline-start-color: currentColor;
|
|
242
332
|
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
243
333
|
}
|
|
244
334
|
|
|
245
|
-
.section-note-ref:has(+ .section-note:hover) a,
|
|
246
335
|
.section-note-ref a:hover,
|
|
247
336
|
.section-note-ref a:focus-visible {
|
|
248
337
|
text-decoration-thickness: 0.16em;
|
|
@@ -250,6 +339,14 @@ ul {
|
|
|
250
339
|
|
|
251
340
|
.section-note-content {
|
|
252
341
|
min-width: 0;
|
|
342
|
+
overflow-wrap: anywhere;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
@media print {
|
|
346
|
+
.section-note-paragraph {
|
|
347
|
+
grid-template-columns: minmax(0, 1fr) !important;
|
|
348
|
+
width: 100% !important;
|
|
349
|
+
}
|
|
253
350
|
}
|
|
254
351
|
|
|
255
352
|
.section-markdown {
|
|
@@ -351,33 +448,365 @@ ul {
|
|
|
351
448
|
margin-bottom: var(--space-content-block-gap);
|
|
352
449
|
}
|
|
353
450
|
|
|
354
|
-
.
|
|
355
|
-
|
|
451
|
+
.norna-table-frame {
|
|
452
|
+
position: relative;
|
|
453
|
+
width: 100%;
|
|
454
|
+
margin-block: var(--section-body-paragraph-spacing, 0.85em);
|
|
455
|
+
margin-inline: 0;
|
|
456
|
+
color: inherit;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.section-markdown > :is(.norna-table-frame, .code-block) {
|
|
460
|
+
/* Width probes need final geometry, including with reduced-motion overrides. */
|
|
461
|
+
transition-property: none;
|
|
462
|
+
--wide-block-prose-width: 100%;
|
|
463
|
+
--wide-block-end-width: calc((100cqi + var(--layout-reading-width)) / 2);
|
|
464
|
+
--wide-block-canvas-width: 100cqi;
|
|
465
|
+
--wide-block-canvas-inline-offset: calc((var(--layout-reading-width) - 100cqi) / 2);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.section-markdown > .norna-table-frame {
|
|
469
|
+
width: var(--wide-block-end-width);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.section-markdown > :is([data-table-layout='prose'], [data-code-layout='prose']) {
|
|
473
|
+
width: var(--wide-block-prose-width);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.section-markdown > :is([data-table-layout='end'], [data-code-layout='end']) {
|
|
477
|
+
width: var(--wide-block-end-width);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.section-markdown > :is(.norna-table-frame[data-table-layout='canvas'], .code-block[data-code-layout='canvas']) {
|
|
481
|
+
width: var(--wide-block-canvas-width);
|
|
482
|
+
margin-inline-start: var(--wide-block-canvas-inline-offset);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.norna-table-scroll {
|
|
486
|
+
width: 100%;
|
|
356
487
|
max-width: 100%;
|
|
357
|
-
|
|
358
|
-
border-collapse: collapse;
|
|
359
|
-
font-size: 0.92em;
|
|
360
|
-
line-height: 1.45;
|
|
488
|
+
border-inline: 1px solid transparent;
|
|
361
489
|
overflow-x: auto;
|
|
490
|
+
overflow-y: hidden;
|
|
362
491
|
overscroll-behavior-inline: contain;
|
|
363
492
|
scrollbar-gutter: stable;
|
|
364
493
|
}
|
|
365
494
|
|
|
366
|
-
.
|
|
495
|
+
.norna-table-scroll:focus-visible {
|
|
496
|
+
outline: var(--focus-indicator-width) solid var(--color-focus-ring);
|
|
497
|
+
outline-offset: 2px;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.norna-table-frame[data-table-custom-scrollbars='true'] > .norna-table-scroll {
|
|
501
|
+
scrollbar-width: none;
|
|
502
|
+
scrollbar-gutter: auto;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.norna-table-frame[data-table-custom-scrollbars='true'] > .norna-table-scroll::-webkit-scrollbar {
|
|
506
|
+
display: none;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.norna-table-sort-tooltip {
|
|
510
|
+
position: fixed;
|
|
511
|
+
z-index: 100;
|
|
512
|
+
width: max-content;
|
|
513
|
+
max-width: calc(100vw - 1rem);
|
|
514
|
+
padding: 0.375rem 0.625rem;
|
|
515
|
+
border: 1px solid var(--color-border);
|
|
516
|
+
border-radius: var(--corner-radius-small, 2px);
|
|
517
|
+
background: var(--color-surface-emphasis-background);
|
|
518
|
+
color: var(--color-surface-emphasis-text);
|
|
519
|
+
font-size: 0.8125rem;
|
|
520
|
+
line-height: 1.4;
|
|
521
|
+
overflow-wrap: anywhere;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.norna-table-sort-tooltip[hidden] {
|
|
525
|
+
display: none;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.norna-table-sticky-context {
|
|
529
|
+
position: sticky;
|
|
530
|
+
top: var(--site-top-anchor-offset);
|
|
531
|
+
z-index: 5;
|
|
532
|
+
background: var(--section-background-color, var(--color-page));
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.norna-table-navigation {
|
|
536
|
+
position: relative;
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
padding: 0;
|
|
540
|
+
background: var(--section-background-color, var(--color-page));
|
|
541
|
+
color: inherit;
|
|
542
|
+
pointer-events: none;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.norna-table-navigation[hidden] {
|
|
546
|
+
display: none;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.norna-table-scrollbar {
|
|
550
|
+
position: relative;
|
|
551
|
+
flex: 1;
|
|
552
|
+
min-width: 2.75rem;
|
|
553
|
+
height: 1.5rem;
|
|
554
|
+
pointer-events: auto;
|
|
555
|
+
touch-action: none;
|
|
556
|
+
user-select: none;
|
|
557
|
+
cursor: pointer;
|
|
558
|
+
border-radius: var(--corner-radius-small, 2px);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.norna-table-scrollbar::before,
|
|
562
|
+
.norna-table-scrollbar-thumb::before {
|
|
563
|
+
position: absolute;
|
|
564
|
+
left: 0;
|
|
565
|
+
right: 0;
|
|
566
|
+
top: calc(50% - 2px);
|
|
567
|
+
height: 4px;
|
|
568
|
+
border-radius: 2px;
|
|
569
|
+
content: '';
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.norna-table-scrollbar::before {
|
|
573
|
+
background: var(--color-surface-emphasis-background);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.norna-table-scrollbar-thumb {
|
|
577
|
+
position: absolute;
|
|
578
|
+
top: 0;
|
|
579
|
+
height: 100%;
|
|
580
|
+
cursor: grab;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.norna-table-scrollbar-thumb::before {
|
|
584
|
+
background: var(--section-secondary-text-color, var(--color-secondary-text));
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.norna-table-scrollbar:hover .norna-table-scrollbar-thumb::before,
|
|
588
|
+
.norna-table-scrollbar:focus-visible .norna-table-scrollbar-thumb::before {
|
|
589
|
+
background: var(--section-text-color, var(--color-text));
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.norna-table-scrollbar[data-dragging='true'],
|
|
593
|
+
.norna-table-scrollbar[data-dragging='true'] .norna-table-scrollbar-thumb {
|
|
594
|
+
cursor: grabbing;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.norna-table-scrollbar:focus-visible {
|
|
598
|
+
outline: var(--focus-indicator-width) solid var(--color-focus-ring);
|
|
599
|
+
outline-offset: 2px;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
@media (forced-colors: active) {
|
|
603
|
+
.norna-table-scrollbar::before {
|
|
604
|
+
background: Canvas;
|
|
605
|
+
border: 1px solid CanvasText;
|
|
606
|
+
}
|
|
607
|
+
.norna-table-scrollbar .norna-table-scrollbar-thumb::before {
|
|
608
|
+
background: ButtonText !important;
|
|
609
|
+
forced-color-adjust: none;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.norna-table-sticky-heading {
|
|
614
|
+
display: none;
|
|
615
|
+
position: relative;
|
|
616
|
+
z-index: 4;
|
|
617
|
+
width: 100%;
|
|
618
|
+
height: var(--table-sticky-heading-height, 0px);
|
|
619
|
+
overflow: hidden;
|
|
620
|
+
background: var(--section-background-color, var(--color-page));
|
|
621
|
+
pointer-events: none;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.norna-table-frame[data-table-overflow='true'][data-table-sticky-heading='true']
|
|
625
|
+
> .norna-table-sticky-context > .norna-table-sticky-heading {
|
|
626
|
+
display: block;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.norna-table-frame[data-table-overflow='true'][data-table-sticky-heading='true']
|
|
630
|
+
> .norna-table-scroll {
|
|
631
|
+
margin-block-start: calc(0px - var(--table-sticky-heading-height, 0px));
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.norna-table-sticky-heading-track {
|
|
635
|
+
position: absolute;
|
|
636
|
+
top: 0;
|
|
637
|
+
left: 0;
|
|
638
|
+
transform: translateX(0);
|
|
639
|
+
transform-origin: left top;
|
|
640
|
+
will-change: transform;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.norna-table-sticky-heading-cell {
|
|
644
|
+
position: absolute;
|
|
645
|
+
overflow: hidden;
|
|
646
|
+
border-bottom: 1px solid color-mix(in srgb, currentColor 48%, transparent);
|
|
647
|
+
background: var(--section-background-color, var(--color-page));
|
|
648
|
+
color: inherit;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.norna-table-frame[data-table-row-headers='true'] table {
|
|
652
|
+
--table-row-header-min-width: min(12ch, 40vw);
|
|
653
|
+
--table-row-header-max-width: min(18rem, 55vw);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.norna-table-frame[data-table-row-headers='true'] :is(
|
|
657
|
+
thead th:first-child,
|
|
658
|
+
tbody th[scope='row'],
|
|
659
|
+
.norna-table-sticky-heading-cell-row-header
|
|
660
|
+
) {
|
|
661
|
+
min-width: var(--table-row-header-min-width);
|
|
662
|
+
max-width: var(--table-row-header-max-width);
|
|
663
|
+
border-inline-end: 1px solid color-mix(in srgb, currentColor 38%, transparent);
|
|
664
|
+
background: var(--section-background-color, var(--color-page));
|
|
665
|
+
overflow-wrap: break-word;
|
|
666
|
+
text-align: start;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.section-markdown > .norna-table-frame[data-table-row-headers='true'] :is(
|
|
670
|
+
thead th:first-child,
|
|
671
|
+
tbody th[scope='row']
|
|
672
|
+
) {
|
|
673
|
+
position: sticky;
|
|
674
|
+
inset-inline-start: 0;
|
|
675
|
+
z-index: 2;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.section-markdown > .norna-table-frame[data-table-row-headers='true'] thead th:first-child,
|
|
679
|
+
.norna-table-sticky-heading-cell-row-header {
|
|
680
|
+
z-index: 3;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.norna-table-frame table {
|
|
684
|
+
display: table;
|
|
685
|
+
width: auto;
|
|
686
|
+
max-width: none;
|
|
687
|
+
margin: 0;
|
|
688
|
+
border-collapse: collapse;
|
|
689
|
+
font-size: 0.92em;
|
|
690
|
+
line-height: 1.45;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.section-markdown
|
|
694
|
+
> .norna-table-frame[data-table-layout='canvas'][data-table-overflow='false'] table {
|
|
695
|
+
margin-inline-start: auto;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.norna-table-frame :is(th, td) {
|
|
367
699
|
border-bottom: 1px solid color-mix(in srgb, currentColor 24%, transparent);
|
|
368
700
|
padding: 0.65rem 0.75rem;
|
|
369
701
|
text-align: left;
|
|
370
702
|
vertical-align: top;
|
|
371
703
|
}
|
|
372
704
|
|
|
373
|
-
.
|
|
705
|
+
.norna-table-frame thead th {
|
|
374
706
|
border-bottom-color: color-mix(in srgb, currentColor 48%, transparent);
|
|
707
|
+
background: var(--section-background-color, var(--color-page));
|
|
375
708
|
}
|
|
376
709
|
|
|
377
|
-
|
|
378
|
-
|
|
710
|
+
.norna-table-sort-button {
|
|
711
|
+
display: flex;
|
|
712
|
+
width: 100%;
|
|
713
|
+
min-height: 1.5rem;
|
|
714
|
+
align-items: flex-start;
|
|
715
|
+
justify-content: space-between;
|
|
716
|
+
gap: 0.6rem;
|
|
717
|
+
margin: -0.55rem -0.65rem;
|
|
718
|
+
border: 0;
|
|
719
|
+
padding: 0.55rem 0.65rem;
|
|
720
|
+
background: transparent;
|
|
721
|
+
color: inherit;
|
|
722
|
+
font: inherit;
|
|
723
|
+
font-weight: inherit;
|
|
724
|
+
text-align: inherit;
|
|
725
|
+
cursor: pointer;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.norna-table-sort-button:hover {
|
|
729
|
+
background: color-mix(in srgb, var(--color-surface-soft-background) 64%, transparent);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.norna-table-sort-button:focus-visible {
|
|
733
|
+
outline: var(--focus-indicator-width) solid var(--color-focus-ring);
|
|
734
|
+
outline-offset: -2px;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.norna-table-sticky-heading:not([inert]) .norna-table-sort-button {
|
|
738
|
+
pointer-events: auto;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.norna-table-sort-indicator {
|
|
742
|
+
display: inline-grid;
|
|
743
|
+
flex: 0 0 auto;
|
|
744
|
+
width: 0.95rem;
|
|
745
|
+
height: 0.95rem;
|
|
746
|
+
/* Center on the first text line, not the full wrapped heading. */
|
|
747
|
+
margin-block-start: calc((1lh - 0.95rem) / 2);
|
|
748
|
+
place-items: center;
|
|
749
|
+
color: var(--section-secondary-text-color, var(--color-secondary-text));
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.norna-table-sort-indicator > span {
|
|
753
|
+
display: none;
|
|
754
|
+
grid-area: 1 / 1;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.norna-table-sort-button[data-table-sort-state='unsorted'] .norna-table-sort-indicator > [data-table-sort-icon='unsorted'],
|
|
758
|
+
.norna-table-sort-button[data-table-sort-state='ascending'] .norna-table-sort-indicator > [data-table-sort-icon='ascending'],
|
|
759
|
+
.norna-table-sort-button[data-table-sort-state='descending'] .norna-table-sort-indicator > [data-table-sort-icon='descending'] {
|
|
760
|
+
display: inline-flex;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.section-markdown > .norna-table-frame[data-table-overflow='false'] .norna-table-scroll {
|
|
764
|
+
overflow: visible;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.section-markdown > .norna-table-frame[data-table-overflow='false'] thead th {
|
|
768
|
+
position: sticky;
|
|
769
|
+
top: var(--site-top-anchor-offset);
|
|
770
|
+
z-index: 2;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
@media (min-width: 961px) {
|
|
774
|
+
.site-page-layout-tree .section-markdown > :is(.norna-table-frame, .code-block) {
|
|
775
|
+
--wide-block-end-width: 100cqi;
|
|
776
|
+
--wide-block-canvas-width: var(--wide-block-end-width);
|
|
777
|
+
--wide-block-canvas-inline-offset: 0px;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
:root[data-reader-preferences-ready='true'][data-focus-reading='on']
|
|
781
|
+
.site-page-layout-tree .section-markdown > :is(.norna-table-frame, .code-block) {
|
|
782
|
+
--wide-block-canvas-width: calc(100cqi + var(--tree-navigation-width) + var(--tree-layout-gap));
|
|
783
|
+
--wide-block-canvas-inline-offset: calc(0px - var(--tree-navigation-width) - var(--tree-layout-gap));
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
@media (min-width: 1101px) {
|
|
788
|
+
:root[data-reader-preferences-ready='true'][data-focus-reading='on']
|
|
789
|
+
.site-page-layout-tree .section-markdown > :is(.norna-table-frame, .code-block) {
|
|
790
|
+
--wide-block-end-width: calc(100cqi + var(--contents-navigation-width) + var(--tree-layout-gap));
|
|
791
|
+
--wide-block-canvas-width: calc(
|
|
792
|
+
100cqi
|
|
793
|
+
+ var(--tree-navigation-width)
|
|
794
|
+
+ var(--contents-navigation-width)
|
|
795
|
+
+ (var(--tree-layout-gap) * 2)
|
|
796
|
+
);
|
|
797
|
+
--wide-block-canvas-inline-offset: calc(0px - var(--tree-navigation-width) - var(--tree-layout-gap));
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
@media (min-width: 1281px) {
|
|
802
|
+
.site-page-layout-tree:not(.site-page-layout-contents) .section-markdown > :is(.norna-table-frame, .code-block) {
|
|
803
|
+
--wide-block-end-width: calc(100cqi + var(--contents-navigation-width) + var(--tree-layout-gap));
|
|
804
|
+
--wide-block-canvas-width: var(--wide-block-end-width);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
:root[data-reader-preferences-ready='true'][data-focus-reading='on'] :is(
|
|
379
809
|
.site-nav,
|
|
380
|
-
.mobile-nav-menu,
|
|
381
810
|
.page-nav,
|
|
382
811
|
.tree-local-navigation,
|
|
383
812
|
.page-contents-navigation,
|
|
@@ -387,36 +816,33 @@ ul {
|
|
|
387
816
|
display: none !important;
|
|
388
817
|
}
|
|
389
818
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
@media (min-width: 701px) {
|
|
395
|
-
:root[data-focus-reading='on'] .site-page-layout-tree {
|
|
819
|
+
@media (min-width: 961px) {
|
|
820
|
+
:root[data-reader-preferences-ready='true'][data-focus-reading='on'] .site-page-layout-tree {
|
|
396
821
|
display: grid;
|
|
397
822
|
grid-template-columns: var(--tree-navigation-width) minmax(0, 1fr);
|
|
398
823
|
gap: var(--tree-layout-gap);
|
|
399
824
|
width: min(calc(100% - (var(--content-gutter) * 2)), var(--tree-layout-width));
|
|
400
825
|
}
|
|
401
826
|
|
|
402
|
-
:root[data-focus-reading='on'] .site-page-layout-tree > .site-content {
|
|
827
|
+
:root[data-reader-preferences-ready='true'][data-focus-reading='on'] .site-page-layout-tree > .site-content {
|
|
403
828
|
grid-column: 2;
|
|
404
829
|
width: 100%;
|
|
405
830
|
}
|
|
406
831
|
|
|
407
|
-
:root[data-focus-reading='on'] .site-page-layout-tree .site-section::before {
|
|
832
|
+
:root[data-reader-preferences-ready='true'][data-focus-reading='on'] .site-page-layout-tree .site-section::before {
|
|
408
833
|
left: 0;
|
|
409
834
|
right: calc(0px - var(--tree-layout-outer-margin));
|
|
410
835
|
}
|
|
411
836
|
}
|
|
412
837
|
|
|
413
838
|
@media (min-width: 1101px) {
|
|
414
|
-
:root[data-focus-reading='on'] .site-page-layout-tree {
|
|
839
|
+
:root[data-reader-preferences-ready='true'][data-focus-reading='on'] .site-page-layout-tree {
|
|
415
840
|
grid-template-columns: var(--tree-navigation-width) minmax(0, 1fr) var(--contents-navigation-width);
|
|
416
841
|
}
|
|
417
842
|
}
|
|
418
843
|
|
|
419
|
-
:root[data-focus-reading='on']
|
|
844
|
+
:root[data-reader-preferences-ready='true'][data-focus-reading='on']
|
|
845
|
+
.site-content-has-breadcrumbs > .site-section:first-of-type {
|
|
420
846
|
padding-top: var(--space-nav-to-first-section);
|
|
421
847
|
}
|
|
422
848
|
|
|
@@ -434,6 +860,61 @@ ul {
|
|
|
434
860
|
margin-bottom: 0;
|
|
435
861
|
}
|
|
436
862
|
|
|
863
|
+
.section-markdown details {
|
|
864
|
+
margin: 0 0 var(--section-body-paragraph-spacing, 1em);
|
|
865
|
+
border: 1px solid color-mix(in srgb, var(--color-accent) 34%, transparent);
|
|
866
|
+
border-inline-start: 0.3rem solid var(--color-accent);
|
|
867
|
+
border-radius: var(--corner-radius-medium, 6px);
|
|
868
|
+
background: var(--color-surface-soft-background);
|
|
869
|
+
color: var(--color-surface-soft-text);
|
|
870
|
+
contain: paint;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.section-markdown details > summary {
|
|
874
|
+
position: relative;
|
|
875
|
+
padding: 0.7rem 1rem 0.65rem 1.45rem;
|
|
876
|
+
color: inherit;
|
|
877
|
+
font-family: var(--font-sans);
|
|
878
|
+
font-size: 0.82rem;
|
|
879
|
+
font-weight: 700;
|
|
880
|
+
line-height: 1.35;
|
|
881
|
+
cursor: pointer;
|
|
882
|
+
list-style: none;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.section-markdown details > summary::-webkit-details-marker {
|
|
886
|
+
display: none;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.section-markdown details > summary::before {
|
|
890
|
+
position: absolute;
|
|
891
|
+
left: 0.4rem;
|
|
892
|
+
top: 0.9rem;
|
|
893
|
+
width: 0;
|
|
894
|
+
height: 0;
|
|
895
|
+
border-top: 0.3rem solid transparent;
|
|
896
|
+
border-bottom: 0.3rem solid transparent;
|
|
897
|
+
border-left: 0.4rem solid var(--color-accent);
|
|
898
|
+
content: '';
|
|
899
|
+
transition: transform 0.15s ease;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.section-markdown details[open] > summary::before {
|
|
903
|
+
transform: rotate(90deg);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.section-markdown details > summary::marker {
|
|
907
|
+
color: var(--color-accent);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.section-markdown details > :not(summary) {
|
|
911
|
+
margin-inline: 1rem;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.section-markdown details > :last-child {
|
|
915
|
+
margin-bottom: 1rem;
|
|
916
|
+
}
|
|
917
|
+
|
|
437
918
|
.section-markdown .norna-callout {
|
|
438
919
|
--callout-accent: var(--color-accent);
|
|
439
920
|
--callout-background: var(--color-surface-soft-background);
|
|
@@ -459,12 +940,18 @@ ul {
|
|
|
459
940
|
--callout-text: var(--color-success-text);
|
|
460
941
|
}
|
|
461
942
|
|
|
462
|
-
.section-markdown
|
|
943
|
+
.section-markdown .norna-callout-warning {
|
|
463
944
|
--callout-accent: var(--color-warning-accent);
|
|
464
945
|
--callout-background: var(--color-warning-surface);
|
|
465
946
|
--callout-text: var(--color-warning-text);
|
|
466
947
|
}
|
|
467
948
|
|
|
949
|
+
.section-markdown .norna-callout-caution {
|
|
950
|
+
--callout-accent: var(--color-caution-accent);
|
|
951
|
+
--callout-background: var(--color-caution-surface);
|
|
952
|
+
--callout-text: var(--color-caution-text);
|
|
953
|
+
}
|
|
954
|
+
|
|
468
955
|
.section-markdown .norna-callout-danger {
|
|
469
956
|
--callout-accent: var(--color-error-accent);
|
|
470
957
|
--callout-background: var(--color-error-surface);
|
|
@@ -503,23 +990,38 @@ ul {
|
|
|
503
990
|
|
|
504
991
|
.section-markdown .code-block {
|
|
505
992
|
position: relative;
|
|
993
|
+
clear: both;
|
|
506
994
|
margin: 0 0 var(--section-body-paragraph-spacing, 1em);
|
|
507
995
|
}
|
|
508
996
|
|
|
997
|
+
.code-block[data-code-overflow='true'] > pre {
|
|
998
|
+
border-inline-end: 3px solid var(--color-code-text);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.code-block > pre:focus-visible {
|
|
1002
|
+
outline: var(--focus-indicator-width) solid var(--color-focus-ring);
|
|
1003
|
+
outline-offset: 2px;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
509
1006
|
.section-markdown .norna-code-example {
|
|
510
1007
|
margin: 0 0 var(--section-body-paragraph-spacing, 1em);
|
|
511
1008
|
border: 1px solid color-mix(in srgb, var(--color-code-text) 18%, transparent);
|
|
512
1009
|
border-radius: var(--corner-radius-medium, 6px);
|
|
513
|
-
overflow:
|
|
1010
|
+
overflow: visible;
|
|
514
1011
|
background: var(--color-code-background);
|
|
515
1012
|
color: var(--color-code-text);
|
|
516
1013
|
}
|
|
517
1014
|
|
|
518
1015
|
.section-markdown .norna-code-title {
|
|
1016
|
+
position: sticky;
|
|
1017
|
+
top: var(--site-top-anchor-offset);
|
|
1018
|
+
z-index: 2;
|
|
519
1019
|
min-height: 3.25rem;
|
|
520
1020
|
margin: 0;
|
|
521
1021
|
padding: 0.85rem 3.85rem 0.75rem 0.9rem;
|
|
522
1022
|
border-bottom: 1px solid color-mix(in srgb, var(--color-code-text) 22%, transparent);
|
|
1023
|
+
border-radius: calc(var(--corner-radius-medium, 6px) - 1px) calc(var(--corner-radius-medium, 6px) - 1px) 0 0;
|
|
1024
|
+
background: var(--color-code-background);
|
|
523
1025
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
524
1026
|
font-size: 0.82rem;
|
|
525
1027
|
font-weight: 650;
|
|
@@ -530,7 +1032,7 @@ ul {
|
|
|
530
1032
|
.section-markdown .norna-code-example > pre.astro-code {
|
|
531
1033
|
margin: 0;
|
|
532
1034
|
border: 0;
|
|
533
|
-
border-radius: 0;
|
|
1035
|
+
border-radius: 0 0 calc(var(--corner-radius-medium, 6px) - 1px) calc(var(--corner-radius-medium, 6px) - 1px);
|
|
534
1036
|
}
|
|
535
1037
|
|
|
536
1038
|
.section-markdown .norna-code-example.code-block > pre.astro-code {
|
|
@@ -591,6 +1093,41 @@ ul {
|
|
|
591
1093
|
display: none;
|
|
592
1094
|
}
|
|
593
1095
|
|
|
1096
|
+
.code-block-copy-status {
|
|
1097
|
+
position: absolute;
|
|
1098
|
+
top: 50%;
|
|
1099
|
+
inset-inline-end: calc(100% + 0.45rem);
|
|
1100
|
+
inline-size: max-content;
|
|
1101
|
+
max-inline-size: min(16rem, calc(100vw - 5.5rem));
|
|
1102
|
+
padding: 0.25rem 0.45rem;
|
|
1103
|
+
border: 1px solid currentColor;
|
|
1104
|
+
border-radius: var(--corner-radius-small, 2px);
|
|
1105
|
+
font-family: var(--font-sans);
|
|
1106
|
+
font-size: 0.75rem;
|
|
1107
|
+
font-weight: 650;
|
|
1108
|
+
line-height: 1.25;
|
|
1109
|
+
text-align: start;
|
|
1110
|
+
transform: translateY(-50%);
|
|
1111
|
+
white-space: normal;
|
|
1112
|
+
pointer-events: none;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.code-block-copy:not([data-copy-state='failed']) .code-block-copy-status {
|
|
1116
|
+
inline-size: 1px;
|
|
1117
|
+
block-size: 1px;
|
|
1118
|
+
padding: 0;
|
|
1119
|
+
border: 0;
|
|
1120
|
+
overflow: hidden;
|
|
1121
|
+
clip-path: inset(50%);
|
|
1122
|
+
white-space: nowrap;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
.code-block-copy[data-copy-state='failed'] .code-block-copy-status {
|
|
1126
|
+
border-color: var(--color-error-accent);
|
|
1127
|
+
background: var(--color-error-surface);
|
|
1128
|
+
color: var(--color-error-text);
|
|
1129
|
+
}
|
|
1130
|
+
|
|
594
1131
|
.section-markdown pre.astro-code code {
|
|
595
1132
|
font: inherit;
|
|
596
1133
|
}
|