astro-accelerator 7.1.30 → 7.1.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/package.json +3 -3
- package/pnpm-workspace.yaml +0 -3
- package/public/css/{main.7.1.25.css → main.7.1.31.css} +4 -99
- package/public/css/main.css +4 -99
- package/src/themes/accelerator/components/Breadcrumbs.astro +78 -17
- package/src/themes/accelerator/components/Footer.astro +24 -0
- package/src/themes/accelerator/components/HtmlHead.astro +4 -0
- package/src/themes/accelerator/components/TableOfContents.astro +72 -40
- /package/public/css/{vars.7.1.25.css → vars.7.1.31.css} +0 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "7.1.
|
|
2
|
+
"version": "7.1.31",
|
|
3
3
|
"author": "Steve Fenton",
|
|
4
4
|
"name": "astro-accelerator",
|
|
5
5
|
"description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@astrojs/mdx": "^8.0.2",
|
|
40
40
|
"@img/sharp-linux-x64": "^0.35.5",
|
|
41
41
|
"astro": "^7.3.5",
|
|
42
|
-
"astro-accelerator-utils": "^0.3.
|
|
42
|
+
"astro-accelerator-utils": "^0.3.112",
|
|
43
43
|
"csv": "^6.6.4",
|
|
44
44
|
"hast-util-from-selector": "^3.0.1",
|
|
45
45
|
"html-to-text": "^10.0.1",
|
|
@@ -90,4 +90,4 @@
|
|
|
90
90
|
"public/css/*",
|
|
91
91
|
"public/js/*"
|
|
92
92
|
]
|
|
93
|
-
}
|
|
93
|
+
}
|
package/pnpm-workspace.yaml
CHANGED
|
@@ -42,6 +42,7 @@ summary {
|
|
|
42
42
|
color: var(--fore-link);
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
text-decoration: underline;
|
|
45
|
+
text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
|
|
45
46
|
|
|
46
47
|
@media (prefers-reduced-motion: no-preference) {
|
|
47
48
|
transition: all 200ms ease-in-out;
|
|
@@ -335,36 +336,6 @@ table {
|
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
338
|
|
|
338
|
-
/* Breadcrumbs */
|
|
339
|
-
|
|
340
|
-
.site-breadcrumbs {
|
|
341
|
-
& ol {
|
|
342
|
-
font-size: 0.8rem;
|
|
343
|
-
padding: 0.1em 1em;
|
|
344
|
-
text-align: center;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
& li {
|
|
348
|
-
display: inline;
|
|
349
|
-
padding: 0.2em;
|
|
350
|
-
|
|
351
|
-
&::before {
|
|
352
|
-
content: '>';
|
|
353
|
-
margin-inline-end: 0.3rem;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
&:first-child::before {
|
|
357
|
-
content: '';
|
|
358
|
-
margin-inline-end: 0;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
& a[aria-current] {
|
|
363
|
-
color: var(--fore);
|
|
364
|
-
text-decoration: none;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
339
|
/* Navigation */
|
|
369
340
|
|
|
370
341
|
.overlay-menu {
|
|
@@ -447,71 +418,7 @@ table {
|
|
|
447
418
|
}
|
|
448
419
|
}
|
|
449
420
|
|
|
450
|
-
/*
|
|
451
|
-
|
|
452
|
-
.page-toc {
|
|
453
|
-
font-size: var(--font-size-meta);
|
|
454
|
-
margin: 0 0 var(--paragraph-margin) 0;
|
|
455
|
-
|
|
456
|
-
& ol {
|
|
457
|
-
list-style: none;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
& li {
|
|
461
|
-
& a {
|
|
462
|
-
display: block;
|
|
463
|
-
padding: 0.5rem 1rem;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
&.toc-lev-2 {
|
|
467
|
-
margin-left: 0rem;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
&.toc-lev-3 a {
|
|
471
|
-
margin-left: 1rem;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
&.toc-lev-4 a {
|
|
475
|
-
margin-left: 2rem;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
&.toc-lev-5 a {
|
|
479
|
-
margin-left: 3rem;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
&.toc-lev-6 a {
|
|
483
|
-
margin-left: 4rem;
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
/* Footer */
|
|
489
|
-
|
|
490
|
-
.site-footer {
|
|
491
|
-
background-color: var(--aft-block);
|
|
492
|
-
margin-top: 4rem;
|
|
493
|
-
padding: 0.5rem 0;
|
|
494
|
-
text-align: center;
|
|
495
|
-
width: 100%;
|
|
496
|
-
|
|
497
|
-
& h2 {
|
|
498
|
-
padding-top: 2rem;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
& a {
|
|
502
|
-
color: var(--fore-link);
|
|
503
|
-
display: block;
|
|
504
|
-
padding: 0.5rem 1rem;
|
|
505
|
-
text-decoration: none;
|
|
506
|
-
|
|
507
|
-
&:hover,
|
|
508
|
-
&:focus {
|
|
509
|
-
color: var(--fore-link-alt);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
/* Overlay (Mobile Navigation, Search) */
|
|
421
|
+
/* Overlay (Mobile Navigation) */
|
|
515
422
|
|
|
516
423
|
.overlay {
|
|
517
424
|
background-color: var(--aft);
|
|
@@ -530,8 +437,6 @@ table {
|
|
|
530
437
|
margin: 0 auto;
|
|
531
438
|
}
|
|
532
439
|
|
|
533
|
-
/* Site Search */
|
|
534
|
-
|
|
535
440
|
/* Articles */
|
|
536
441
|
|
|
537
442
|
.post-list {
|
|
@@ -694,6 +599,8 @@ table {
|
|
|
694
599
|
padding-left: 0.6rem;
|
|
695
600
|
}
|
|
696
601
|
|
|
602
|
+
/* Post meta */
|
|
603
|
+
|
|
697
604
|
.post-meta {
|
|
698
605
|
&:not(.mini) {
|
|
699
606
|
border-top: 1px solid var(--icon-block);
|
|
@@ -827,8 +734,6 @@ table {
|
|
|
827
734
|
}
|
|
828
735
|
}
|
|
829
736
|
|
|
830
|
-
/* Taxonomy */
|
|
831
|
-
|
|
832
737
|
/* Video */
|
|
833
738
|
|
|
834
739
|
.yt-video {
|
package/public/css/main.css
CHANGED
|
@@ -42,6 +42,7 @@ summary {
|
|
|
42
42
|
color: var(--fore-link);
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
text-decoration: underline;
|
|
45
|
+
text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
|
|
45
46
|
|
|
46
47
|
@media (prefers-reduced-motion: no-preference) {
|
|
47
48
|
transition: all 200ms ease-in-out;
|
|
@@ -335,36 +336,6 @@ table {
|
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
338
|
|
|
338
|
-
/* Breadcrumbs */
|
|
339
|
-
|
|
340
|
-
.site-breadcrumbs {
|
|
341
|
-
& ol {
|
|
342
|
-
font-size: 0.8rem;
|
|
343
|
-
padding: 0.1em 1em;
|
|
344
|
-
text-align: center;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
& li {
|
|
348
|
-
display: inline;
|
|
349
|
-
padding: 0.2em;
|
|
350
|
-
|
|
351
|
-
&::before {
|
|
352
|
-
content: '>';
|
|
353
|
-
margin-inline-end: 0.3rem;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
&:first-child::before {
|
|
357
|
-
content: '';
|
|
358
|
-
margin-inline-end: 0;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
& a[aria-current] {
|
|
363
|
-
color: var(--fore);
|
|
364
|
-
text-decoration: none;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
339
|
/* Navigation */
|
|
369
340
|
|
|
370
341
|
.overlay-menu {
|
|
@@ -447,71 +418,7 @@ table {
|
|
|
447
418
|
}
|
|
448
419
|
}
|
|
449
420
|
|
|
450
|
-
/*
|
|
451
|
-
|
|
452
|
-
.page-toc {
|
|
453
|
-
font-size: var(--font-size-meta);
|
|
454
|
-
margin: 0 0 var(--paragraph-margin) 0;
|
|
455
|
-
|
|
456
|
-
& ol {
|
|
457
|
-
list-style: none;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
& li {
|
|
461
|
-
& a {
|
|
462
|
-
display: block;
|
|
463
|
-
padding: 0.5rem 1rem;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
&.toc-lev-2 {
|
|
467
|
-
margin-left: 0rem;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
&.toc-lev-3 a {
|
|
471
|
-
margin-left: 1rem;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
&.toc-lev-4 a {
|
|
475
|
-
margin-left: 2rem;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
&.toc-lev-5 a {
|
|
479
|
-
margin-left: 3rem;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
&.toc-lev-6 a {
|
|
483
|
-
margin-left: 4rem;
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
/* Footer */
|
|
489
|
-
|
|
490
|
-
.site-footer {
|
|
491
|
-
background-color: var(--aft-block);
|
|
492
|
-
margin-top: 4rem;
|
|
493
|
-
padding: 0.5rem 0;
|
|
494
|
-
text-align: center;
|
|
495
|
-
width: 100%;
|
|
496
|
-
|
|
497
|
-
& h2 {
|
|
498
|
-
padding-top: 2rem;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
& a {
|
|
502
|
-
color: var(--fore-link);
|
|
503
|
-
display: block;
|
|
504
|
-
padding: 0.5rem 1rem;
|
|
505
|
-
text-decoration: none;
|
|
506
|
-
|
|
507
|
-
&:hover,
|
|
508
|
-
&:focus {
|
|
509
|
-
color: var(--fore-link-alt);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
/* Overlay (Mobile Navigation, Search) */
|
|
421
|
+
/* Overlay (Mobile Navigation) */
|
|
515
422
|
|
|
516
423
|
.overlay {
|
|
517
424
|
background-color: var(--aft);
|
|
@@ -530,8 +437,6 @@ table {
|
|
|
530
437
|
margin: 0 auto;
|
|
531
438
|
}
|
|
532
439
|
|
|
533
|
-
/* Site Search */
|
|
534
|
-
|
|
535
440
|
/* Articles */
|
|
536
441
|
|
|
537
442
|
.post-list {
|
|
@@ -694,6 +599,8 @@ table {
|
|
|
694
599
|
padding-left: 0.6rem;
|
|
695
600
|
}
|
|
696
601
|
|
|
602
|
+
/* Post meta */
|
|
603
|
+
|
|
697
604
|
.post-meta {
|
|
698
605
|
&:not(.mini) {
|
|
699
606
|
border-top: 1px solid var(--icon-block);
|
|
@@ -827,8 +734,6 @@ table {
|
|
|
827
734
|
}
|
|
828
735
|
}
|
|
829
736
|
|
|
830
|
-
/* Taxonomy */
|
|
831
|
-
|
|
832
737
|
/* Video */
|
|
833
738
|
|
|
834
739
|
.yt-video {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
// warning: This file is overwritten by Astro Accelerator
|
|
3
3
|
|
|
4
|
-
import { Accelerator } from
|
|
5
|
-
import type { Frontmatter } from
|
|
6
|
-
import { SITE } from
|
|
7
|
-
import { Translations, Lang } from
|
|
4
|
+
import { Accelerator } from "astro-accelerator-utils";
|
|
5
|
+
import type { Frontmatter } from "astro-accelerator-utils/types/Frontmatter";
|
|
6
|
+
import { SITE } from "@config";
|
|
7
|
+
import { Translations, Lang } from "@util/Languages";
|
|
8
8
|
|
|
9
9
|
const accelerator = new Accelerator(SITE);
|
|
10
|
-
const stats = new accelerator.statistics(
|
|
10
|
+
const stats = new accelerator.statistics(
|
|
11
|
+
"accelerator/components/Breadcrumbs.astro",
|
|
12
|
+
);
|
|
11
13
|
stats.start();
|
|
12
14
|
|
|
13
15
|
// Properties
|
|
@@ -24,7 +26,11 @@ const _ = Lang(lang);
|
|
|
24
26
|
|
|
25
27
|
// Logic
|
|
26
28
|
const currentUrl = new URL(Astro.request.url);
|
|
27
|
-
const navPages = accelerator.navigation.breadcrumbs(
|
|
29
|
+
const navPages = accelerator.navigation.breadcrumbs(
|
|
30
|
+
currentUrl,
|
|
31
|
+
SITE.subfolder,
|
|
32
|
+
breadcrumbs?.length ?? 0,
|
|
33
|
+
);
|
|
28
34
|
|
|
29
35
|
let metaIndex = navPages.length + 1;
|
|
30
36
|
|
|
@@ -35,22 +41,77 @@ stats.stop();
|
|
|
35
41
|
<ol vocab="http://schema.org/" typeof="BreadcrumbList">
|
|
36
42
|
{
|
|
37
43
|
navPages.map((page, index) => (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
<li property="itemListElement" typeof="ListItem">
|
|
45
|
+
<meta
|
|
46
|
+
property="position"
|
|
47
|
+
content={(index + 1).toString()}
|
|
48
|
+
/>
|
|
49
|
+
<a
|
|
50
|
+
property="item"
|
|
51
|
+
typeof="WebPage"
|
|
52
|
+
href={accelerator.urlFormatter.formatAddress(page.url)}
|
|
53
|
+
aria-current={
|
|
54
|
+
page.ariaCurrent ? page.ariaCurrent : null
|
|
55
|
+
}
|
|
56
|
+
rel={page.rel}>
|
|
57
|
+
<span property="name">{page.title}</span>
|
|
58
|
+
</a>
|
|
59
|
+
</li>
|
|
43
60
|
))
|
|
44
61
|
}
|
|
45
62
|
{
|
|
46
63
|
breadcrumbs &&
|
|
47
|
-
breadcrumbs.map(crumb => (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
64
|
+
breadcrumbs.map((crumb) => (
|
|
65
|
+
<li property="itemListElement" typeof="ListItem">
|
|
66
|
+
<meta
|
|
67
|
+
property="position"
|
|
68
|
+
content={(metaIndex++).toString()}
|
|
69
|
+
/>
|
|
70
|
+
<a
|
|
71
|
+
property="item"
|
|
72
|
+
typeof="WebPage"
|
|
73
|
+
href={accelerator.urlFormatter.formatAddress(
|
|
74
|
+
crumb.url,
|
|
75
|
+
)}
|
|
76
|
+
aria-current={
|
|
77
|
+
crumb.ariaCurrent ? crumb.ariaCurrent : null
|
|
78
|
+
}>
|
|
79
|
+
<span property="name">{crumb.title}</span>
|
|
80
|
+
</a>
|
|
81
|
+
</li>
|
|
53
82
|
))
|
|
54
83
|
}
|
|
55
84
|
</ol>
|
|
56
85
|
</nav>
|
|
86
|
+
|
|
87
|
+
<style is:global>
|
|
88
|
+
/* Breadcrumbs */
|
|
89
|
+
|
|
90
|
+
.site-breadcrumbs {
|
|
91
|
+
& ol {
|
|
92
|
+
font-size: 0.8rem;
|
|
93
|
+
padding: 0.1em 1em;
|
|
94
|
+
text-align: center;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
& li {
|
|
98
|
+
display: inline;
|
|
99
|
+
padding: 0.2em;
|
|
100
|
+
|
|
101
|
+
&::before {
|
|
102
|
+
content: ">";
|
|
103
|
+
margin-inline-end: 0.3rem;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:first-child::before {
|
|
107
|
+
content: "";
|
|
108
|
+
margin-inline-end: 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
& a[aria-current] {
|
|
113
|
+
color: var(--fore);
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
</style>
|
|
@@ -44,6 +44,30 @@ stats.stop();
|
|
|
44
44
|
</footer>
|
|
45
45
|
|
|
46
46
|
<style is:global>
|
|
47
|
+
.site-footer {
|
|
48
|
+
background-color: var(--aft-block);
|
|
49
|
+
margin-top: 4rem;
|
|
50
|
+
padding: 0.5rem 0;
|
|
51
|
+
text-align: center;
|
|
52
|
+
width: 100%;
|
|
53
|
+
|
|
54
|
+
& h2 {
|
|
55
|
+
padding-top: 2rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
& a {
|
|
59
|
+
color: var(--fore-link);
|
|
60
|
+
display: block;
|
|
61
|
+
padding: 0.5rem 1rem;
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
|
|
64
|
+
&:hover,
|
|
65
|
+
&:focus {
|
|
66
|
+
color: var(--fore-link-alt);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
47
71
|
.footer-columns {
|
|
48
72
|
display: grid;
|
|
49
73
|
gap: var(--block-gap);
|
|
@@ -52,6 +52,10 @@ const pkg = JSON.parse(
|
|
|
52
52
|
const cssDir = path.join(process.cwd(), "public", SITE.subfolder, "css");
|
|
53
53
|
|
|
54
54
|
const cssHref = (baseName: string) => {
|
|
55
|
+
if (!import.meta.env.PROD) {
|
|
56
|
+
return SITE.subfolder + `/css/${baseName}`;
|
|
57
|
+
}
|
|
58
|
+
|
|
55
59
|
const baseWithoutExt = baseName.slice(0, -".css".length);
|
|
56
60
|
const versionedName = `${baseWithoutExt}.${pkg.version}.css`;
|
|
57
61
|
const versionedPath = path.join(cssDir, versionedName);
|
|
@@ -34,6 +34,22 @@ if (maxLevel == null) {
|
|
|
34
34
|
maxLevel = 3;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
const tocItems: {
|
|
38
|
+
heading: (typeof headings)[number];
|
|
39
|
+
children: (typeof headings)[number][];
|
|
40
|
+
}[] = [];
|
|
41
|
+
let currentParent: (typeof tocItems)[number] | undefined;
|
|
42
|
+
|
|
43
|
+
for (const heading of (headings ?? []).filter((h) => h.depth <= maxLevel)) {
|
|
44
|
+
if (heading.depth === 3 && currentParent) {
|
|
45
|
+
currentParent.children.push(heading);
|
|
46
|
+
} else {
|
|
47
|
+
const item = { heading, children: [] };
|
|
48
|
+
tocItems.push(item);
|
|
49
|
+
currentParent = heading.depth === 2 ? item : undefined;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
37
53
|
if (typeof expanded === "number") {
|
|
38
54
|
openInteraction = expanded;
|
|
39
55
|
} else if (expanded === true) {
|
|
@@ -49,13 +65,20 @@ stats.stop();
|
|
|
49
65
|
<details open={openAttribute} data-openon={openInteraction}>
|
|
50
66
|
<summary>{_(Translations.toc.title)}</summary>
|
|
51
67
|
<ol>
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
{tocItems.map(({ heading, children }) => (
|
|
69
|
+
<li class={"toc-lev-" + heading.depth}>
|
|
70
|
+
<a href={"#" + heading.slug}>{heading.text}</a>
|
|
71
|
+
{children.length > 0 && (
|
|
72
|
+
<ol>
|
|
73
|
+
{children.map((child) => (
|
|
74
|
+
<li class={"toc-lev-" + child.depth}>
|
|
75
|
+
<a href={"#" + child.slug}>{child.text}</a>
|
|
76
|
+
</li>
|
|
77
|
+
))}
|
|
78
|
+
</ol>
|
|
79
|
+
)}
|
|
80
|
+
</li>
|
|
81
|
+
))}
|
|
59
82
|
</ol>
|
|
60
83
|
</details>
|
|
61
84
|
</nav>
|
|
@@ -63,41 +86,50 @@ stats.stop();
|
|
|
63
86
|
}
|
|
64
87
|
|
|
65
88
|
<style is:global>
|
|
89
|
+
/* Table of Contents (TOC) */
|
|
90
|
+
|
|
66
91
|
.page-toc {
|
|
67
|
-
margin: 0 0 var(--paragraph-margin) 0;
|
|
68
92
|
font-size: var(--font-size-meta);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.page-toc ol {
|
|
72
|
-
list-style: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.page-toc li a {
|
|
76
|
-
display: block;
|
|
77
|
-
padding: 0.5rem 1rem;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.page-toc li.toc-lev-2 {
|
|
81
|
-
margin-left: 0rem;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.page-toc li.toc-lev-3 a {
|
|
85
|
-
margin-left: 1rem;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.page-toc li.toc-lev-4 a {
|
|
89
|
-
margin-left: 2rem;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.page-toc li.toc-lev-5 a {
|
|
93
|
-
margin-left: 3rem;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.page-toc li.toc-lev-6 a {
|
|
97
|
-
margin-left: 4rem;
|
|
98
|
-
}
|
|
93
|
+
margin: 0 0 var(--paragraph-margin) 0;
|
|
99
94
|
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
& ol {
|
|
96
|
+
list-style: square;
|
|
97
|
+
margin-block: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
& li {
|
|
101
|
+
& a {
|
|
102
|
+
display: block;
|
|
103
|
+
padding: 0.5rem;
|
|
104
|
+
font-size: 1rem;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
& ol {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
list-style: none;
|
|
111
|
+
|
|
112
|
+
& li {
|
|
113
|
+
text-align: left;
|
|
114
|
+
hyphens: none;
|
|
115
|
+
|
|
116
|
+
& a {
|
|
117
|
+
border-radius: var(--block-radius);
|
|
118
|
+
background-color: var(--aft-block);
|
|
119
|
+
color: var(--fore-link);
|
|
120
|
+
display: inline-block;
|
|
121
|
+
margin-inline: 0 0.3rem;
|
|
122
|
+
margin-block: 0 0.3rem;
|
|
123
|
+
font-size: var(--font-size-meta);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
& a:hover,
|
|
127
|
+
a:focus {
|
|
128
|
+
background-color: var(--fore-link-alt);
|
|
129
|
+
color: var(--aft);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
102
134
|
}
|
|
103
135
|
</style>
|
|
File without changes
|