@xiee/utils 1.12.16 → 1.12.18
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/build.sh +2 -2
- package/css/article.css +1 -1
- package/css/article.min.css +2 -1
- package/css/article.min.css.map +1 -0
- package/css/book.css +16 -14
- package/css/book.min.css +2 -1
- package/css/book.min.css.map +1 -0
- package/css/callout.min.css +2 -1
- package/css/callout.min.css.map +1 -0
- package/css/circled-numbers.min.css +2 -1
- package/css/circled-numbers.min.css.map +1 -0
- package/css/copy-button.min.css +2 -1
- package/css/copy-button.min.css.map +1 -0
- package/css/default.css +20 -11
- package/css/default.min.css +2 -1
- package/css/default.min.css.map +1 -0
- package/css/docco-classic.min.css +2 -1
- package/css/docco-classic.min.css.map +1 -0
- package/css/faq.min.css +2 -1
- package/css/faq.min.css.map +1 -0
- package/css/heading-anchor.min.css +2 -1
- package/css/heading-anchor.min.css.map +1 -0
- package/css/key-buttons.min.css +2 -1
- package/css/key-buttons.min.css.map +1 -0
- package/css/prism-xcode.min.css +2 -1
- package/css/prism-xcode.min.css.map +1 -0
- package/css/site.min.css +2 -1
- package/css/site.min.css.map +1 -0
- package/css/snap.min.css +2 -1
- package/css/snap.min.css.map +1 -0
- package/css/tabsets.min.css +2 -1
- package/css/tabsets.min.css.map +1 -0
- package/js/toc-highlight.js +1 -4
- package/js/toc-highlight.min.js +1 -1
- package/package.json +1 -1
package/build.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
npm install
|
|
3
|
+
npm install lightningcss-cli terser -g
|
|
4
4
|
|
|
5
5
|
cd js
|
|
6
6
|
for i in *.js; do
|
|
@@ -9,7 +9,7 @@ done
|
|
|
9
9
|
|
|
10
10
|
cd ../css
|
|
11
11
|
for i in *.css; do
|
|
12
|
-
|
|
12
|
+
lightningcss --minify --sourcemap -o ${i%.*}.min.css $i
|
|
13
13
|
done
|
|
14
14
|
|
|
15
15
|
cd ..
|
package/css/article.css
CHANGED
package/css/article.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
body,blockquote,.side,.menu{background:#fafafa}.article-list,.body,.single main,.single .appendix,.body~.appendix,.frontmatter,.fullwidth,.embed-left,.embed-right{background:#fff;margin-top:2em;padding:1em;box-shadow:0 0 8px #ccc}.article-meta{background:#f8f8f8}.article-meta .terms,.appendix,.footnotes,main .side>*,.body .side,figcaption,.caption{font-size:.9em}.single .appendix,.body~.appendix,.frontmatter{background:0 0}.appendix h2{border-bottom:1px dashed #666}#TOC{top:0}#TOC ul{list-style-position:inside}#TOC>ul{margin:0;padding:0}#TOC li>ul{padding-left:1em}#TOC .numbered{list-style:none}#TOC a{text-decoration:none}#TOC ul ul{border-left:1px solid #b0c4de}.bg-number{color:#fff;background:#789;border-radius:5px;padding:1px 5px}.side{width:200px;margin:0 auto}.side-left{float:left;clear:left;margin-left:calc(-200px - 2em);position:sticky}.side-right{float:right;clear:right;margin-right:calc(-200px - 2em)}.quote-left,.quote-right{width:45%}.embed-left,.embed-right{margin-top:auto;padding:0}.quote-left,.embed-left{float:left;margin-right:1em}.quote-right,.embed-right{float:right;margin-left:1em}.embed-left{margin-left:calc(-200px - 2em)}.embed-right{margin-right:calc(-200px - 2em)}.side>:first-child,.embed-left>:first-child,.embed-right>:first-child{margin-top:0}.embed-left>:last-child,.embed-right>:last-child{margin-bottom:0}.quote-left>:first-child,.quote-right>:first-child{padding-top:.1px}.quote-left>:last-child,.quote-right>:last-child{padding-bottom:.1px}.fullwidth,.fullwidth *{margin:auto 0}.fullwidth *{max-width:calc(100vw - 4em)}.fullscroll *{max-width:initial}.fullwidth{float:left;background:#fff;min-width:100%;max-width:calc(100vw - 2em);margin:1em 0 1em 50%;transform:translate(-50%)}.fullscroll,.fullscroll figure,.fullscroll .figure{overflow-x:auto}.fullwidth figcaption,.fullwidth .caption{width:800px;margin-left:calc(50% - 400px);padding:1em 1em 0}@media (width>=1280.02px){.article,.body,.appendix{position:relative}#TOC .active{color:#32cd32}#TOC li li .active{border-left:3px solid;margin-left:calc(-1em - 3px);padding-left:1em}#TOC li:not(:has(.active)) ul{display:none}.note-ref{cursor:pointer}.note-ref:hover+.side{box-sizing:content-box;background-color:#f8f8f8;margin-left:1em;padding:.5em;display:inline-block;position:absolute}}@media (width<=1280px){#TOC{position:initial;float:none;columns:2;border:1px solid #eee;border-radius:5px;padding:1em}.side{width:100%}main .side,.body .side{color:#2f4f4f;padding:0 2em}.side-left,.side-right{clear:both;background:0 0;margin:1em auto}:not(.note-ref)+.side{float:none}.side>:last-child{margin-bottom:0}.embed-left,.embed-right{float:inherit;margin:auto;padding:1em}}@media (width<=800px){body{padding:initial}main,.body{padding:0 .5em}#TOC{columns:1}.quote-left,.quote-right{width:inherit;float:inherit;margin:auto}.fullwidth:not(.fullscroll) *{max-width:100%}.fullwidth{margin:initial;transform:initial;float:none;min-width:initial;background:0 0;border:none}.fullwidth figcaption,.fullwidth .caption{margin:initial;padding:initial}}
|
|
2
|
+
/*# sourceMappingURL=article.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,+CACA,uLAMA,iCACA,sGACA,8DACA,2CACA,WACA,mCACA,2BAIA,4BACA,+BACA,4BAGA,yCAGA,wEAQA,gCAIA,gFAMA,oEAKA,mCACA,mDAIA,oDAIA,sDAIA,2CACA,6CACA,mFACA,iEACA,oEACA,qEAGA,sCACA,yCACA,gCACA,gIAQA,mEACA,sGAMA,0BACE,2CACA,2BAGA,uFAKA,2CAGA,yBACA,2IASF,uBACE,+FAQA,iBACA,mDAIA,iEAKA,iCACA,kCACA,gEAMF,sBACE,qBACA,0BACA,eACA,iEAKA,6CACA,oGAQA","sources":["article.css"],"sourcesContent":["body, blockquote, .side, .menu { background: #fafafa; }\n.article-list, .body, .single main, .single .appendix, .body ~ .appendix, .frontmatter, .fullwidth, .embed-left, .embed-right {\n margin-top: 2em;\n padding: 1em;\n box-shadow: 0 0 8px #ccc;\n background: #fff;\n}\n.article-meta { background: #f8f8f8; }\n.article-meta .terms, .appendix, .footnotes, main .side > *, .body .side, figcaption, .caption { font-size: .9em; }\n.single .appendix, .body ~ .appendix, .frontmatter { background: none; }\n.appendix h2 { border-bottom: 1px dashed #666; }\n#TOC { top: 0; }\n#TOC ul { list-style-position: inside; }\n#TOC > ul {\n padding: 0;\n margin: 0;\n}\n#TOC li > ul { padding-left: 1em; }\n#TOC .numbered { list-style: none; }\n#TOC a {\n text-decoration: none;\n}\n#TOC ul ul {\n border-left: 1px solid lightsteelblue;\n}\n.bg-number {\n padding: 1px 5px;\n border-radius: 5px;\n background: lightslategray;\n color: #fff;\n}\n\n/* left/right elements*/\n.side {\n width: 200px;\n margin: 0 auto;\n}\n.side-left {\n float: left;\n clear: left;\n margin-left: calc(-200px - 2em);\n position: sticky;\n}\n.side-right {\n float: right;\n clear: right;\n margin-right: calc(-200px - 2em);\n}\n.quote-left, .quote-right { width: 45%; }\n.embed-left, .embed-right {\n margin-top: auto;\n padding: 0;\n}\n.quote-left, .embed-left {\n float: left;\n margin-right: 1em;\n}\n.quote-right, .embed-right {\n float: right;\n margin-left: 1em;\n}\n.embed-left { margin-left: calc(-200px - 2em); }\n.embed-right { margin-right: calc(-200px - 2em); }\n.side > :first-child, .embed-left > :first-child, .embed-right > :first-child { margin-top: 0; }\n.embed-left > :last-child, .embed-right > :last-child { margin-bottom: 0; }\n.quote-left > :first-child, .quote-right > :first-child { padding-top: .1px; }\n.quote-left > :last-child, .quote-right > :last-child { padding-bottom: .1px; }\n\n/* wide elements */\n.fullwidth, .fullwidth * { margin: auto 0; }\n.fullwidth * { max-width: calc(100vw - 4em); }\n.fullscroll * { max-width: initial; }\n.fullwidth {\n max-width: calc(100vw - 2em);\n margin: 1em 0 1em 50%;\n transform: translateX(-50%);\n float: left;\n min-width: 100%;\n background: #fff;\n}\n.fullscroll, .fullscroll figure, .fullscroll .figure { overflow-x: auto; }\n.fullwidth figcaption, .fullwidth .caption {\n margin-left: calc(50% - 400px);\n width: 800px;\n padding: 1em 1em 0;\n}\n\n@media (min-width: 1280.02px) {\n .article, .body, .appendix { position: relative; }\n #TOC .active {\n color: limegreen;\n }\n #TOC li li .active {\n border-left: 3px solid;\n margin-left: calc(-1em - 3px);\n padding-left: 1em;\n }\n #TOC li:not(:has(.active)) ul {\n display: none;\n }\n .note-ref { cursor: pointer; }\n .note-ref:hover + .side {\n display: inline-block;\n background-color: #f8f8f8;\n position: absolute;\n margin-left: 1em;\n padding: .5em;\n box-sizing: content-box;\n }\n}\n@media (max-width: 1280px) {\n #TOC {\n border: 1px solid #eee;\n border-radius: 5px;\n padding: 1em;\n position: initial;\n float: none;\n columns: 2;\n }\n .side { width: 100%; }\n main .side, .body .side {\n padding: 0 2em;\n color: darkslategray;\n }\n .side-left, .side-right {\n clear: both;\n margin: 1em auto;\n background: none;\n }\n :not(.note-ref) + .side { float: none; }\n .side > :last-child { margin-bottom: 0; }\n .embed-left, .embed-right {\n float: inherit;\n margin: auto;\n padding: 1em;\n }\n}\n@media (max-width: 800px) {\n body { padding: initial; }\n main, .body { padding: 0 .5em 0; }\n #TOC { columns: 1; }\n .quote-left, .quote-right {\n width: inherit;\n float: inherit;\n margin: auto;\n }\n .fullwidth:not(.fullscroll) * { max-width: 100%; }\n .fullwidth {\n margin: initial;\n transform: initial;\n float: none;\n min-width: initial;\n background: none;\n border: none;\n }\n .fullwidth figcaption, .fullwidth .caption {\n margin: initial;\n padding: initial;\n }\n}\n"],"names":[]}
|
package/css/book.css
CHANGED
|
@@ -13,15 +13,15 @@ body {
|
|
|
13
13
|
background-size: 2em 2em;
|
|
14
14
|
background-color: #fff;
|
|
15
15
|
padding-bottom: 0;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
& > div {
|
|
17
|
+
margin: 0 -1em;
|
|
18
|
+
background-color: #ebf6f9;
|
|
19
|
+
padding: 1em;
|
|
20
|
+
}
|
|
21
|
+
& .title {
|
|
22
|
+
padding: 20vh 1em 1em;
|
|
23
|
+
margin-top: -1em;
|
|
24
|
+
}
|
|
25
25
|
}
|
|
26
26
|
#TOC {
|
|
27
27
|
margin-left: calc(-200px - .8em);
|
|
@@ -31,11 +31,13 @@ body {
|
|
|
31
31
|
margin-left: auto;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
.chapter:not(.appendix) .main-number
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
.chapter:not(.appendix) .main-number {
|
|
35
|
+
&::before {
|
|
36
|
+
content: "Chapter ";
|
|
37
|
+
}
|
|
38
|
+
&::after {
|
|
39
|
+
content: none;
|
|
40
|
+
}
|
|
39
41
|
}
|
|
40
42
|
.chapter h1 {
|
|
41
43
|
margin: 1em auto 3em;
|
package/css/book.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
body{font-
|
|
1
|
+
body{font-family:Palatino,Georgia,serif;font-size:1em}.footnotes,code,.side,.body .side{font-size:.85em}.frontmatter,.chapter{min-height:calc(100vh - 1em)}.frontmatter{background-color:#fff;background-image:radial-gradient(#b6cee2 1px,#fff 1px);background-size:2em 2em;padding-bottom:0;&>div{background-color:#ebf6f9;margin:0 -1em;padding:1em}& .title{margin-top:-1em;padding:20vh 1em 1em}}#TOC{margin-left:calc(-200px - .8em)}@media (width<=1280px){#TOC{margin-left:auto}}.chapter:not(.appendix) .main-number{&:before{content:"Chapter "}&:after{content:none}}.chapter h1{border-bottom:1px solid;margin:1em auto 3em}h1 .section-number{border-bottom:4px solid;margin-bottom:-4px;display:inline-block}.body h2{border-bottom-style:dashed}
|
|
2
|
+
/*# sourceMappingURL=book.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,sDAIA,kDAGA,mDAGA,mIAKE,yDAKA,+CAKF,qCAGA,uBACE,uBAIF,qCACE,4BAGA,sBAIF,wDAIA,mFAKA","sources":["book.css"],"sourcesContent":["body {\n font-size: 1em;\n font-family: Palatino, Georgia, serif;\n}\n.footnotes, code, .side, .body .side {\n font-size: .85em;\n}\n.frontmatter, .chapter {\n min-height: calc(100vh - 1em);\n}\n.frontmatter {\n background-image: radial-gradient(#b6cee2 1px, #fff 1px);\n background-size: 2em 2em;\n background-color: #fff;\n padding-bottom: 0;\n & > div {\n margin: 0 -1em;\n background-color: #ebf6f9;\n padding: 1em;\n }\n & .title {\n padding: 20vh 1em 1em;\n margin-top: -1em;\n }\n}\n#TOC {\n margin-left: calc(-200px - .8em);\n}\n@media (max-width: 1280px) {\n #TOC {\n margin-left: auto;\n }\n}\n.chapter:not(.appendix) .main-number {\n &::before {\n content: \"Chapter \";\n }\n &::after {\n content: none;\n }\n}\n.chapter h1 {\n margin: 1em auto 3em;\n border-bottom: 1px solid;\n}\nh1 .section-number {\n display: inline-block;\n border-bottom: 4px solid;\n margin-bottom: -4px;\n}\n.body h2 { border-bottom-style: dashed; }\n/* TODO: style for h1.part and printing */\n"],"names":[]}
|
package/css/callout.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
fieldset{font-size:.9em
|
|
1
|
+
fieldset{margin:1em auto;font-size:.9em}legend{border-style:groove;padding:2px .5em;font-weight:700}.callout-tip{border-color:#9eeaf9}.callout-caution{background:#fff3cd;border-color:#fff3cd}.callout-important{background:#f8d7da;border-color:#f8d7da}.callout-tip legend:before{content:"☆ "}.callout-caution legend:before{content:"☂ "}.callout-important legend:before{content:"☀ "}
|
|
2
|
+
/*# sourceMappingURL=callout.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,wCAIA,4DAKA,kCAGA,yDAIA,2DAIA,0CAGA,8CAGA","sources":["callout.css"],"sourcesContent":["fieldset {\n font-size: .9em;\n margin: 1em auto;\n}\nlegend {\n font-weight: bold;\n border-style: groove;\n padding: 2px .5em;\n}\n.callout-tip {\n border-color: #9eeaf9;\n}\n.callout-caution {\n background: #fff3cd;\n border-color: #fff3cd;\n}\n.callout-important {\n background: #f8d7da;\n border-color: #f8d7da;\n}\n.callout-tip legend::before {\n content: \"☆ \";\n}\n.callout-caution legend::before {\n content: \"☂ \";\n}\n.callout-important legend::before {\n content: \"☀ \";\n}\n"],"names":[]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
#TableOfContents,#TableOfContents~p:first-of-type{counter-reset:circled-numbers}
|
|
1
|
+
#TableOfContents,#TableOfContents~p:first-of-type{counter-reset:circled-numbers}h2:not([class]):before,#TableOfContents>ul>li>ul>li:before{counter-increment:circled-numbers;content:counter(circled-numbers);color:#333;text-align:center;background:#fff;border:1px dashed #999;border-radius:50%;min-width:1.75em;margin-right:.5em;font-size:.8em;line-height:1.75em;display:inline-block}h2:not([class]):before{vertical-align:bottom;color:#fff;background:#999;border:none}#TableOfContents>ul>li>ul>li{display:inline-block}
|
|
2
|
+
/*# sourceMappingURL=circled-numbers.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AACA,gFACA,8SAcA,oFAMA","sources":["circled-numbers.css"],"sourcesContent":["/* Add circled numbers to h2 and TOC items generated by Hugo */\n#TableOfContents, #TableOfContents ~ p:first-of-type { counter-reset: circled-numbers; }\nh2:not([class])::before, #TableOfContents > ul > li > ul > li::before {\n counter-increment: circled-numbers;\n content: counter(circled-numbers);\n border-radius: 50%;\n border: 1px dashed #999;\n color: #333;\n background: white;\n display: inline-block;\n min-width: 1.75em;\n line-height: 1.75em;\n margin-right: .5em;\n text-align: center;\n font-size: .8em;\n}\nh2:not([class])::before {\n vertical-align: bottom;\n color: white;\n border: none;\n background: #999;\n}\n#TableOfContents > ul > li > ul > li {\n display: inline-block;\n}\n"],"names":[]}
|
package/css/copy-button.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.copy-button{
|
|
1
|
+
.copy-button{cursor:pointer;border:1px solid;width:1em;height:1em;display:none;position:absolute;inset:5px 5px auto auto;box-shadow:-3px 3px #999}:hover>.copy-button{display:inline-block}.copy-success{box-shadow:none;background-color:#999;transition:box-shadow .3s ease-out,background-color .3s ease-out}.copy-fail{border-style:dotted}
|
|
2
|
+
/*# sourceMappingURL=copy-button.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,kJAUA,yCAGA,qHAKA","sources":["copy-button.css"],"sourcesContent":[".copy-button {\n position: absolute;\n display: none;\n cursor: pointer;\n inset: 5px 5px auto auto;\n width: 1em;\n height: 1em;\n border: 1px solid;\n box-shadow: -3px 3px #999;\n}\n:hover > .copy-button {\n display: inline-block;\n}\n.copy-success {\n box-shadow: none;\n background-color: #999;\n transition: box-shadow 300ms ease-out, background-color 300ms ease-out;\n}\n.copy-fail {\n border-style: dotted;\n}\n"],"names":[]}
|
package/css/default.css
CHANGED
|
@@ -8,6 +8,7 @@ body {
|
|
|
8
8
|
}
|
|
9
9
|
body, .footnotes, code { font-size: .9em; }
|
|
10
10
|
li li { font-size: .95em; }
|
|
11
|
+
ul:has(li > input[type="checkbox"]) { list-style: none; padding-left: 1em; }
|
|
11
12
|
*, *:before, *:after { box-sizing: inherit; }
|
|
12
13
|
a { color: steelblue; }
|
|
13
14
|
pre, img { max-width: 100%; }
|
|
@@ -35,10 +36,12 @@ pre[class*=language-].line-numbers { padding: 1em 0; margin-left: 3.5em; }
|
|
|
35
36
|
.box > :first-child, .box > :first-child > p:first-child { margin-top: 0; }
|
|
36
37
|
.box > :last-child, .box > :last-child > p:last-child { margin-bottom: 0; }
|
|
37
38
|
.figure > p { text-align: center; }
|
|
38
|
-
table {
|
|
39
|
-
|
|
40
|
-
th
|
|
41
|
-
|
|
39
|
+
table {
|
|
40
|
+
margin: auto; border-top: 1px solid #666;
|
|
41
|
+
thead th { border-bottom: 1px solid #ddd; }
|
|
42
|
+
th, td { padding: 5px; }
|
|
43
|
+
thead, tfoot, tr:nth-child(even) { background: #eee; }
|
|
44
|
+
}
|
|
42
45
|
blockquote {
|
|
43
46
|
color: #666;
|
|
44
47
|
margin: 0;
|
|
@@ -47,9 +50,11 @@ blockquote {
|
|
|
47
50
|
}
|
|
48
51
|
hr, .footnotes::before { border: 1px dashed #ddd; }
|
|
49
52
|
.frontmatter { text-align: center; }
|
|
50
|
-
#TOC .numbered
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
#TOC .numbered {
|
|
54
|
+
padding-left: 0;
|
|
55
|
+
li { list-style: none; }
|
|
56
|
+
ul { padding-left: 1em; }
|
|
57
|
+
}
|
|
53
58
|
table, .body h2 { border-bottom: 1px solid #666; }
|
|
54
59
|
.body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }
|
|
55
60
|
.main-number::after { content: "."; }
|
|
@@ -58,10 +63,14 @@ table, .body h2 { border-bottom: 1px solid #666; }
|
|
|
58
63
|
.cross-ref-sec::before { content: "Section "; }
|
|
59
64
|
.cross-ref-fig::before, .ref-number-fig::before { content: "Figure "; }
|
|
60
65
|
.cross-ref-tab::before, .ref-number-tab::before { content: "Table "; }
|
|
61
|
-
.footnote-ref a
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
.footnote-ref a {
|
|
67
|
+
&::before { content: "["; }
|
|
68
|
+
&::after { content: "]"; }
|
|
69
|
+
}
|
|
70
|
+
section.footnotes {
|
|
71
|
+
margin-top: 2em;
|
|
72
|
+
&::before { content: ""; display: block; max-width: 20em; }
|
|
73
|
+
}
|
|
65
74
|
|
|
66
75
|
@media print {
|
|
67
76
|
body { font-size: 12pt; max-width: 100%; }
|
package/css/default.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
body{
|
|
1
|
+
body{box-sizing:border-box;max-width:800px;margin:auto;padding:1em;font-family:sans-serif;line-height:1.5}body,.footnotes,code{font-size:.9em}li li{font-size:.95em}ul:has(li>input[type=checkbox]){padding-left:1em;list-style:none}*,:before,:after{box-sizing:inherit}a{color:#4682b4}pre,img{max-width:100%}pre,pre:hover{white-space:pre-wrap;word-break:break-all}pre code{display:block;overflow-x:auto}code{font-family:DejaVu Sans Mono,Droid Sans Mono,Lucida Console,Consolas,Monaco,monospace}:not(pre)>code,code[class],.line-numbers,.box>div{background-color:#f8f8f8}pre>code:not([class]),pre>.language-plain,.box{background-color:inherit;border:1px solid #eee}pre>.message{border-color:#9eeaf9}pre>.warning{background:#fff3cd;border-color:#fff3cd}pre>.error{background:#f8d7da;border-color:#f8d7da}.fenced-chunk{border-left:1px solid #666}.code-fence{opacity:.4;border:1px dashed #666;border-left:2px solid}.code-fence:hover{opacity:inherit}.line-numbers code{padding:0 0 0 1em;display:table}pre[class*=language-].line-numbers{margin-left:3.5em;padding:1em 0}.line-numbers .line-numbers-rows{left:-3.5em}.line-numbers-rows>span:before{padding-right:.5em}.box{margin:1em 0}.box>:first-child>p:first-child,.box>:last-child>p:last-child{padding:1em}.box>:first-child,.box>:first-child>p:first-child{margin-top:0}.box>:last-child,.box>:last-child>p:last-child{margin-bottom:0}.figure>p{text-align:center}table{border-top:1px solid #666;margin:auto;& thead th{border-bottom:1px solid #ddd}& th,& td{padding:5px}& thead,& tfoot,& tr:nth-child(2n){background:#eee}}blockquote{color:#666;border-left:.5em solid #eee;margin:0;padding:1px 1em}hr,.footnotes:before{border:1px dashed #ddd}.frontmatter{text-align:center}#TOC .numbered{padding-left:0;& li{list-style:none}& ul{padding-left:1em}}table,.body h2{border-bottom:1px solid #666}.body .appendix,.appendix~h2{border-bottom-style:dashed}.main-number:after{content:"."}.ref-number-fig:after,.ref-number-tab:after{content:":"}.cross-ref-chp:before{content:"Chapter "}.cross-ref-sec:before{content:"Section "}.cross-ref-fig:before,.ref-number-fig:before{content:"Figure "}.cross-ref-tab:before,.ref-number-tab:before{content:"Table "}.footnote-ref a{&:before{content:"["}&:after{content:"]"}}section.footnotes{margin-top:2em;&:before{content:"";max-width:20em;display:block}}@media print{body{max-width:100%;font-size:12pt}tr,img{page-break-inside:avoid}}@media only screen and (width>=992px){pre{white-space:pre}}
|
|
2
|
+
/*# sourceMappingURL=default.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,0GAQA,oCACA,sBACA,iEACA,oCACA,gBACA,uBACA,wDACA,uCACA,2FACA,2EACA,8FACA,kCACA,qDACA,mDACA,yCACA,oEAKA,kCACA,mDACA,mEACA,6CACA,kDACA,kBACA,0EACA,+DACA,+DACA,4BACA,4CAEE,wCACA,sBACA,oDAEF,2EAMA,4CACA,+BACA,8BAEE,qBACA,uBAEF,4CACA,wDACA,+BACA,wDACA,yCACA,yCACA,+DACA,8DACA,gBACE,qBACA,qBAEF,iCAEE,kDAGF,aACE,mCACA,gCAEF,sCACE","sources":["default.css"],"sourcesContent":["body {\n font-family: sans-serif;\n max-width: 800px;\n margin: auto;\n padding: 1em;\n line-height: 1.5;\n box-sizing: border-box;\n}\nbody, .footnotes, code { font-size: .9em; }\nli li { font-size: .95em; }\nul:has(li > input[type=\"checkbox\"]) { list-style: none; padding-left: 1em; }\n*, *:before, *:after { box-sizing: inherit; }\na { color: steelblue; }\npre, img { max-width: 100%; }\npre, pre:hover { white-space: pre-wrap; word-break: break-all; }\npre code { display: block; overflow-x: auto; }\ncode { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; }\n:not(pre) > code, code[class], .line-numbers, .box > div { background-color: #f8f8f8; }\npre > code:not([class]), pre > .language-plain, .box { background-color: inherit; border: 1px solid #eee; }\npre > .message { border-color: #9eeaf9; }\npre > .warning { background: #fff3cd; border-color: #fff3cd; }\npre > .error { background: #f8d7da; border-color: #f8d7da; }\n.fenced-chunk { border-left: 1px solid #666; }\n.code-fence {\n opacity: .4;\n border: 1px dashed #666;\n border-left: 2px solid;\n}\n.code-fence:hover { opacity: inherit; }\n.line-numbers code { display: table; padding: 0 0 0 1em; }\npre[class*=language-].line-numbers { padding: 1em 0; margin-left: 3.5em; }\n.line-numbers .line-numbers-rows { left: -3.5em; }\n.line-numbers-rows > span:before { padding-right: .5em; }\n.box { margin: 1em 0; }\n.box > :first-child > p:first-child, .box > :last-child > p:last-child { padding: 1em; }\n.box > :first-child, .box > :first-child > p:first-child { margin-top: 0; }\n.box > :last-child, .box > :last-child > p:last-child { margin-bottom: 0; }\n.figure > p { text-align: center; }\ntable {\n margin: auto; border-top: 1px solid #666; \n thead th { border-bottom: 1px solid #ddd; }\n th, td { padding: 5px; }\n thead, tfoot, tr:nth-child(even) { background: #eee; }\n}\nblockquote {\n color: #666;\n margin: 0;\n padding: 1px 1em;\n border-left: .5em solid #eee;\n}\nhr, .footnotes::before { border: 1px dashed #ddd; }\n.frontmatter { text-align: center; }\n#TOC .numbered {\n padding-left: 0;\n li { list-style: none; }\n ul { padding-left: 1em; }\n}\ntable, .body h2 { border-bottom: 1px solid #666; }\n.body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }\n.main-number::after { content: \".\"; }\n.ref-number-fig::after, .ref-number-tab::after { content: \":\"; }\n.cross-ref-chp::before { content: \"Chapter \"; }\n.cross-ref-sec::before { content: \"Section \"; }\n.cross-ref-fig::before, .ref-number-fig::before { content: \"Figure \"; }\n.cross-ref-tab::before, .ref-number-tab::before { content: \"Table \"; }\n.footnote-ref a {\n &::before { content: \"[\"; } \n &::after { content: \"]\"; }\n}\nsection.footnotes {\n margin-top: 2em;\n &::before { content: \"\"; display: block; max-width: 20em; }\n}\n\n@media print {\n body { font-size: 12pt; max-width: 100%; }\n tr, img { page-break-inside: avoid; }\n}\n@media only screen and (min-width: 992px) {\n pre { white-space: pre; }\n}\n"],"names":[]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
body{font-family:
|
|
1
|
+
body{color:#30404f;margin:0;padding:0;font-family:Palatino Linotype,Book Antiqua,Palatino,FreeSerif,serif;line-height:1.5}h1,h2,h3,h4,h5,h6{color:#123;margin:0 0 1rem;font-weight:400}.frontmatter{text-align:center;margin-top:2em}a{color:#08c;text-decoration:none}a:hover,a:focus{color:#005580;text-decoration:underline}table{border:0;width:100%}td.docs,td.code{vertical-align:top;padding:1em 1em 1px 2em}td.docs{width:50%}td.code{background:#f5f5ff;overflow-x:hidden}code{font-size:.9em}td.docs code{background:#f8f8ff;border:1px solid #dedede}img{max-width:100%}pre code{white-space:pre-wrap;display:block}.pilwrap{position:relative}.pilcrow{color:#454545;opacity:0;padding:1px 2px;font:12px Arial;text-decoration:none;position:absolute;top:3px;left:-1.5em}td.docs:hover .pilcrow{opacity:1}blockquote{color:#777;border-left:4px solid #ddd;padding:0 1em}.container{position:relative}.handler{cursor:col-resize;z-index:5;width:5px;padding:0;position:absolute}
|
|
2
|
+
/*# sourceMappingURL=docco-classic.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AACA,0HAOA,6DAKA,8CAIA,kCAIA,wDAIA,0BAIA,2DAIA,kBAGA,6CAIA,oBAGA,yDAIA,mBAGA,4CAIA,2BAGA,4HAUA,iCAGA,+DAKA,6BAGA","sources":["docco-classic.css"],"sourcesContent":["/* Derived from the Docco package by Jeremy Ashkenas: https://github.com/jashkenas/docco/ */\nbody {\n font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;\n line-height: 1.5;\n color: #30404f;\n margin: 0;\n padding: 0;\n}\nh1, h2, h3, h4, h5, h6 {\n color: #112233;\n font-weight: normal;\n margin: 0 0 1rem 0;\n}\n.frontmatter {\n text-align: center;\n margin-top: 2em;\n}\na {\n color: #0088cc;\n text-decoration: none;\n}\na:hover, a:focus{\n color: #005580;\n text-decoration: underline;\n}\ntable {\n width: 100%;\n border: 0;\n}\ntd.docs, td.code {\n vertical-align: top;\n padding: 1em 1em 1px 2em;\n}\ntd.docs {\n width: 50%;\n}\ntd.code{\n background: #f5f5ff;\n overflow-x: hidden;\n}\ncode{\n font-size: .9em;\n}\ntd.docs code{\n background: #f8f8ff;\n border: 1px solid #dedede;\n}\nimg {\n max-width: 100%;\n}\npre code{\n display: block;\n white-space: pre-wrap;\n}\n.pilwrap {\n position: relative;\n}\n.pilcrow {\n font: 12px Arial;\n text-decoration: none;\n color: rgb(69, 69, 69);\n position: absolute;\n top: 3px;\n left: -1.5em;\n padding: 1px 2px;\n opacity: 0;\n}\ntd.docs:hover .pilcrow {\n opacity: 1;\n}\nblockquote {\n border-left: 4px solid #DDD;\n padding: 0 1em;\n color: #777;\n}\n.container {\n position: relative;\n}\n.handler{\n width: 5px;\n padding: 0;\n cursor: col-resize;\n position: absolute;\n z-index: 5;\n}\n"],"names":[]}
|
package/css/faq.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.faq-button{cursor:pointer}.faq-list>li>:first-child{
|
|
1
|
+
.faq-button{cursor:pointer}.faq-list>li>:first-child{cursor:pointer;background:#fafafa;margin:-.5em;padding:.5em;display:block}.faq-list>:not(.faq-clicked)>*{display:none}.faq-button{float:right;margin-left:1em}.faq-list .anchor{display:none}.faq-list>li:hover .anchor{display:inline}.faq-list>li{border:1px solid #eee;padding:.5em}
|
|
2
|
+
/*# sourceMappingURL=faq.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,2BAGA,oGAOA,4CAGA,wCAIA,+BAGA,0CAGA","sources":["faq.css"],"sourcesContent":[".faq-button {\n cursor: pointer;\n}\n.faq-list > li > :first-child {\n display: block;\n cursor: pointer;\n background: #fafafa;\n margin: -.5em;\n padding: .5em;\n}\n.faq-list > :not(.faq-clicked) > * {\n display: none;\n}\n.faq-button {\n float: right;\n margin-left: 1em;\n}\n.faq-list .anchor {\n display: none;\n}\n.faq-list > li:hover .anchor {\n display: inline;\n}\n.faq-list > li {\n border: 1px solid #eee;\n padding: .5em;\n}\n"],"names":[]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.anchor{display:none}:hover>.anchor{display:inline}
|
|
1
|
+
.anchor{display:none}:hover>.anchor{display:inline}
|
|
2
|
+
/*# sourceMappingURL=heading-anchor.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,qBACA","sources":["heading-anchor.css"],"sourcesContent":[".anchor { display: none; }\n:hover > .anchor { display: inline; }\n"],"names":[]}
|
package/css/key-buttons.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
kbd{border:2px solid #ccc;
|
|
1
|
+
kbd{text-align:center;border:2px solid #ccc;border-radius:.25em;min-width:1.5em;margin-right:.15em;padding:0 5px;display:inline-block;box-shadow:2px 2px #999}kbd:hover{position:relative;top:2px;left:2px}
|
|
2
|
+
/*# sourceMappingURL=key-buttons.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,8JAUA","sources":["key-buttons.css"],"sourcesContent":["kbd {\n border: 2px solid #ccc;\n box-shadow: 2px 2px #999;\n display: inline-block;\n padding: 0 5px;\n border-radius: 0.25em;\n min-width: 1.5em;\n text-align: center;\n margin-right: .15em;\n}\nkbd:hover {\n position: relative;\n top: 2px;\n left: 2px;\n}\n"],"names":[]}
|
package/css/prism-xcode.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
pre code{padding:1em}.token.comment{color:#007400}.token.punctuation{color:#999}.token.
|
|
1
|
+
pre code{padding:1em}.token.comment{color:#007400}.token.punctuation{color:#999}.token.tag,.token.selector{color:#aa0d91}.token.boolean,.token.number,.token.constant,.token.symbol{color:#1c00cf}.token.property,.token.attr-name,.token.string,.token.char,.token.builtin{color:#c41a16}.token.inserted{background-color:#ccffd8}.token.deleted{background-color:#ffebe9}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a}.token.atrule,.token.attr-value,.token.keyword{color:#836c28}.token.function,.token.class-name{color:#dd4a68}.token.regex,.token.important,.token.variable{color:#5c2699}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}
|
|
2
|
+
/*# sourceMappingURL=prism-xcode.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAGA,qBAGA,6BAGA,8BAGA,yCAIA,yEAMA,wFAOA,yCAGA,wCAGA,wGAOA,6DAKA,gDAIA,4DAKA,6CAIA","sources":["prism-xcode.css"],"sourcesContent":["/**\n * Prism.s theme ported from highlight.js's xcode style\n */\npre code {\n padding: 1em;\n}\n.token.comment {\n color: #007400;\n}\n.token.punctuation {\n color: #999;\n}\n.token.tag,\n.token.selector {\n color: #aa0d91;\n}\n.token.boolean,\n.token.number,\n.token.constant,\n.token.symbol {\n color: #1c00cf;\n}\n.token.property,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin {\n color: #c41a16;\n}\n.token.inserted {\n background-color: #ccffd8;\n}\n.token.deleted {\n background-color: #ffebe9;\n}\n.token.operator,\n.token.entity,\n.token.url,\n.language-css .token.string,\n.style .token.string {\n color: #9a6e3a;\n}\n.token.atrule,\n.token.attr-value,\n.token.keyword {\n color: #836c28;\n}\n.token.function,\n.token.class-name {\n color: #DD4A68;\n}\n.token.regex,\n.token.important,\n.token.variable {\n color: #5c2699;\n}\n.token.important,\n.token.bold {\n font-weight: bold;\n}\n.token.italic {\n font-style: italic;\n}\n"],"names":[]}
|
package/css/site.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
nav>p:last-child{border-bottom:1px dashed #666}footer{border-top:1px dashed #666;margin-top:2em}
|
|
1
|
+
nav>p:last-child{border-bottom:1px dashed #666}footer{border-top:1px dashed #666;margin-top:2em}nav a,footer a{text-decoration:none}nav a{background-color:#fff;margin-right:.5em;padding:.2em .5em;display:inline-block}nav a:hover{filter:invert()}.body,.frontmatter{box-shadow:none;margin-top:auto}
|
|
2
|
+
/*# sourceMappingURL=site.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,+CAGA,iDAIA,oCAGA,qFAMA,4BAGA","sources":["site.css"],"sourcesContent":["nav > p:last-child {\n border-bottom: 1px dashed #666;\n}\nfooter {\n border-top: 1px dashed #666;\n margin-top: 2em;\n}\nnav a, footer a {\n text-decoration: none;\n}\nnav a {\n display: inline-block;\n background-color: white;\n padding: .2em .5em;\n margin-right: .5em;\n}\nnav a:hover {\n filter: invert(1);\n}\n.body, .frontmatter {\n box-shadow: none;\n margin-top: auto;\n}\n"],"names":[]}
|
package/css/snap.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
:root{--slide-width:100%}html{scroll-snap-type:y mandatory}td
|
|
1
|
+
:root{--slide-width:100%}html{scroll-snap-type:y mandatory}th,td{padding:.2em .5em}.slide{padding:0 1em}.slide,.frontmatter .main,.middle .main{flex-direction:column;display:flex}.slide>.main{flex-grow:1}.slide>.header{margin-bottom:1em}.slide h2,.slide h3{margin-top:unset}body{max-width:fit-content;padding:0}a{color:#eb4a47}:not(pre)>code{background-color:#fdfded}#TOC{columns:2}#TOC:before{border-bottom:1px solid #666;font-size:1.3em;font-weight:700;display:block}.frontmatter .main,.middle .main{justify-content:center}.footer{opacity:.5;justify-content:space-between;font:.7em monospace;display:flex}.inverse{filter:invert();background-color:#eee}.fade{opacity:.6;background:repeating-linear-gradient(135deg,#fff,#fff 30px,#ddd 32px 32px)}.center{text-align:center}.slide-container h2 .section-number{color:#fff;background-color:#666;margin-right:.3em;padding:0 .1em;display:inline-block}.overview{font-size:.8em}.overview .slide-container{flex-wrap:wrap;justify-content:space-evenly;display:flex}.overview .slide-container .slide{width:var(--slide-width);border:1px dotted #ccc;margin-bottom:.5em}.mirrored{transform:scaleX(-1)}.timer{opacity:0}html:fullscreen::-webkit-scrollbar,.spacer{display:none}html:fullscreen{-ms-overflow-style:none;scrollbar-width:none}@media screen and (width>=992px){:root{--slide-width:49%;--slide-scale:1;--slide-ratio:.75;--slide-top:auto}.slide-mode{scale:var(--slide-scale);margin-top:var(--slide-top);background-color:#d7d8d2;font-size:2em}.slide-mode .slide{min-height:calc(100vh/var(--slide-scale));width:calc(100vh/var(--slide-ratio)/var(--slide-scale));clip-path:inset(0 -2em);scroll-snap-align:start;background-color:#fff;box-shadow:0 0 2em #888}li li{font-size:.9em}.slide-mode .spacer{display:block}.slide-mode .timer{opacity:initial}}@media (width>=1400px){:root{--slide-width:33%}}@media (width>=1800px){:root{--slide-width:24.67%}}
|
|
2
|
+
/*# sourceMappingURL=snap.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,yBACA,kCACA,wBACA,qBACA,2EAIA,yBACA,iCACA,qCACA,qCAIA,gBACA,wCACA,eACA,uFAMA,wDAGA,kFAMA,+CAIA,4FAIA,0BACA,2HAOA,yBACA,oFAKA,qGAKA,+BACA,iBACA,wDACA,6DAIA,iCACE,2EAMA,wGAMA,mNAQA,qBACA,kCACA,oCAEF,uBACE,yBAEF,uBACE","sources":["snap.css"],"sourcesContent":[":root { --slide-width: 100%; }\nhtml { scroll-snap-type: y mandatory; }\nth, td { padding: .2em .5em; }\n.slide { padding: 0 1em; }\n.slide, .frontmatter .main, .middle .main {\n display: flex;\n flex-direction: column;\n}\n.slide > .main { flex-grow: 1; }\n.slide > .header { margin-bottom: 1em; }\n.slide h2, .slide h3 { margin-top: unset; }\nbody {\n max-width: fit-content;\n padding: 0;\n}\na { color: #eb4a47; }\n:not(pre) > code { background-color: #fdfded; }\n#TOC { columns: 2; }\n#TOC::before {\n font-size: 1.3em;\n font-weight: bold;\n display: block;\n border-bottom: 1px solid #666;\n}\n.frontmatter .main, .middle .main {\n justify-content: center;\n}\n.footer {\n display: flex;\n justify-content: space-between;\n opacity: .5;\n font: .7em monospace;\n}\n.inverse {\n background-color: #eee;\n filter: invert(1);\n}\n.fade {\n background: repeating-linear-gradient(135deg, white, white 30px, #ddd 32px, #ddd 32px);\n opacity: 0.6;\n}\n.center { text-align: center; }\n.slide-container h2 .section-number {\n display: inline-block;\n background-color: #666;\n color: white;\n padding: 0 .1em;\n margin-right: .3em;\n}\n.overview { font-size: .8em; }\n.overview .slide-container {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-evenly;\n}\n.overview .slide-container .slide {\n width: var(--slide-width);\n border: 1px dotted #ccc;\n margin-bottom: 0.5em;\n}\n.mirrored { transform: scale(-1, 1); }\n.timer { opacity: 0; }\nhtml:fullscreen::-webkit-scrollbar, .spacer { display: none; }\nhtml:fullscreen {\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n@media screen and (min-width: 992px) {\n :root {\n --slide-width: 49%;\n --slide-scale: 1;\n --slide-ratio: 0.75;\n --slide-top: auto;\n }\n .slide-mode {\n font-size: 2em;\n background-color: #d7d8d2;\n scale: var(--slide-scale);\n margin-top: var(--slide-top);\n }\n .slide-mode .slide {\n min-height: calc(100vh / var(--slide-scale));\n width: calc(100vh / var(--slide-ratio) / var(--slide-scale));\n box-shadow: 0 0 2em #888;\n clip-path: inset(0 -2em 0 -2em);\n background-color: white;\n scroll-snap-align: start;\n }\n li li { font-size: .9em; }\n .slide-mode .spacer { display: block; }\n .slide-mode .timer { opacity: initial; }\n}\n@media (min-width: 1400px) {\n :root { --slide-width: 33%; }\n}\n@media (min-width: 1800px) {\n :root { --slide-width: 24.67%; }\n}\n"],"names":[]}
|
package/css/tabsets.min.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.tab-link,.tab-pane{border:1px solid
|
|
1
|
+
.tab-link,.tab-pane{border:1px solid #0000000d;border-radius:5px 5px 0 0}.tab-link+.tab-pane.active{border-radius:0 5px 0 0}.tab-link.active,.tab-pane.active{border-color:#00000080}.tab-link:not(.active):hover{background:#0000000d}.tab-pane{padding:.2em .5em;display:none}.tab-pane.active{display:block}.tab-link{cursor:pointer;margin:0 .5em -1px 0;padding:.2em .5em;display:inline-block}.tab-link.active{border-bottom-color:#fff}
|
|
2
|
+
/*# sourceMappingURL=tabsets.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,yEAIA,mDAGA,yDAGA,kDAGA,yCAIA,+BAGA,qFAMA","sources":["tabsets.css"],"sourcesContent":[".tab-link, .tab-pane {\n border: 1px solid rgba(0, 0, 0, .05);\n border-radius: 5px 5px 0 0;\n}\n.tab-link + .tab-pane.active {\n border-radius: 0 5px 0 0;\n}\n.tab-link.active, .tab-pane.active {\n border-color: rgba(0, 0, 0, .5);\n}\n.tab-link:not(.active):hover {\n background: rgba(0, 0, 0, .05);\n}\n.tab-pane {\n display: none;\n padding: .2em .5em;\n}\n.tab-pane.active {\n display: block;\n}\n.tab-link {\n display: inline-block;\n margin: 0 .5em -1px 0;\n padding: .2em .5em;\n cursor: pointer;\n}\n.tab-link.active {\n border-bottom-color: white;\n}\n"],"names":[]}
|
package/js/toc-highlight.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
if (!toc) return;
|
|
6
6
|
const links = toc.querySelectorAll('a[href^="#"]');
|
|
7
7
|
if (!links.length) return;
|
|
8
|
-
const
|
|
8
|
+
const dict = {};
|
|
9
9
|
links.forEach(a => dict[a.getAttribute('href').replace('#', '')] = a);
|
|
10
10
|
const ids = Object.keys(dict);
|
|
11
11
|
|
|
@@ -26,9 +26,6 @@
|
|
|
26
26
|
for (const i in dict) {
|
|
27
27
|
dict[i].classList[i === id_active ? 'add' : 'remove']('active');
|
|
28
28
|
}
|
|
29
|
-
lis.forEach(li => {
|
|
30
|
-
li.classList[li.querySelector('.active') ? 'add' : 'remove']('open');
|
|
31
|
-
});
|
|
32
29
|
}));
|
|
33
30
|
|
|
34
31
|
// observe all section headings associated with TOC links
|
package/js/toc-highlight.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(e=>{const t=e.querySelector("#TableOfContents, #TOC");if(!t)return;const r=t.querySelectorAll('a[href^="#"]');if(!r.length)return;const n=
|
|
1
|
+
(e=>{const t=e.querySelector("#TableOfContents, #TOC");if(!t)return;const r=t.querySelectorAll('a[href^="#"]');if(!r.length)return;const n={};r.forEach((e=>n[e.getAttribute("href").replace("#","")]=e));const o=Object.keys(n),c=[],s=new IntersectionObserver((e=>e.forEach((e=>{const t=e.target.id,r=c.indexOf(t);let s;e.isIntersecting?c.push(t):r>-1&&c.splice(r,1);const i=c.length;if(i)s=c[i-1];else{if(e.target.getBoundingClientRect().top<0)return;const r=o.indexOf(t)-1;r>=0&&(s=o[r])}for(const e in n)n[e].classList[e===s?"add":"remove"]("active")}))));e.querySelectorAll("h1,h2,h3,h4,h5,h6").forEach((e=>{1===e.nodeType&&n.hasOwnProperty(e.id)&&s.observe(e)}))})(document);
|