@xiee/utils 1.13.66 → 1.13.68
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/css/article.css +4 -1
- package/css/article.min.css +1 -1
- package/css/article.min.css.map +1 -1
- package/css/book-litedown.css +1 -9
- package/css/book-litedown.min.css +1 -1
- package/css/book-litedown.min.css.map +1 -1
- package/css/book.css +2 -10
- package/css/book.min.css +1 -1
- package/css/book.min.css.map +1 -1
- package/css/copy-button.css +2 -2
- package/css/copy-button.min.css +1 -1
- package/css/copy-button.min.css.map +1 -1
- package/css/default.css +2 -2
- package/css/default.min.css +1 -1
- package/css/default.min.css.map +1 -1
- package/css/pages.css +16 -6
- package/css/pages.min.css +1 -1
- package/css/pages.min.css.map +1 -1
- package/css/prism-xcode.css +2 -2
- package/css/prism-xcode.min.css +1 -1
- package/css/prism-xcode.min.css.map +1 -1
- package/css/site.css +1 -1
- package/css/site.min.css +1 -1
- package/css/site.min.css.map +1 -1
- package/css/snap.css +5 -5
- package/css/snap.min.css +1 -1
- package/css/snap.min.css.map +1 -1
- package/js/math-code.js +2 -2
- package/js/math-code.min.js +1 -1
- package/js/math-code.min.js.map +1 -1
- package/js/pages.js +88 -42
- package/js/pages.min.js +1 -1
- package/js/pages.min.js.map +1 -1
- package/package.json +1 -1
package/css/article.css
CHANGED
|
@@ -30,6 +30,9 @@ body, blockquote, .side { background: #fafafa; }
|
|
|
30
30
|
float: left;
|
|
31
31
|
clear: left;
|
|
32
32
|
margin-left: var(--side-margin);
|
|
33
|
+
&:not(.body > *) {
|
|
34
|
+
margin-left: calc(var(--side-margin) + 1em);
|
|
35
|
+
}
|
|
33
36
|
position: sticky;
|
|
34
37
|
}
|
|
35
38
|
.side-right {
|
|
@@ -99,7 +102,7 @@ body, blockquote, .side { background: #fafafa; }
|
|
|
99
102
|
.note-ref { cursor: pointer; }
|
|
100
103
|
.note-ref:hover + .side {
|
|
101
104
|
display: inline-block;
|
|
102
|
-
background
|
|
105
|
+
background: #f8f8f8;
|
|
103
106
|
position: absolute;
|
|
104
107
|
z-index: 1;
|
|
105
108
|
margin-left: 1em;
|
package/css/article.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
:root{--side-width:200px;--side-gap:2em;--side-margin:calc(0px - var(--side-width) - var(--side-gap))}body,blockquote,.side{background:#fafafa}.body,.body~.appendix,.frontmatter,.fullwidth,.embed-left,.embed-right{background:#fff;margin-top:2em;padding:1em;box-shadow:0 0 8px #ccc}.appendix,.footnotes,.body .side{font-size:.9em}.body~.appendix,.frontmatter{background:0 0}.appendix h2{border-bottom:1px dashed #666}#TOC{top:0}.bg-number{color:#fff;background:#789;border-radius:5px;padding:1px 5px}.side{width:var(--side-width);margin:0 auto}.side-left{float:left;clear:left;margin-left:var(--side-margin);position:sticky}.side-right{float:right;clear:right;margin-right:var(--side-margin)}.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:var(--side-margin)}.embed-right{margin-right:var(--side-margin)}:is(.side,.embed-left,.embed-right)>:first-child{margin-top:0}:is(.embed-left,.embed-right)>:last-child{margin-bottom:0}:is(.quote-left,.quote-right){&>:first-child{padding-top:.1px}&>:last-child{padding-bottom:.1px}}.fullwidth{float:left;background:#fff;min-width:100%;max-width:calc(100vw - 2em);margin:1em 0 1em 50%;transform:translate(-50%);& *{max-width:calc(100vw - 4em);margin:auto 0}& :is(figcaption,.caption){width:800px;margin-left:calc(50% - 400px);padding:1em 1em 0}}.fullscroll{& *{max-width:initial}&,& figure,& .figure{overflow-x:auto}}@media (width>=1264.02px){#TOC.side{& .active{color:#32cd32}& li li .active{border-left:3px solid;margin-left:calc(-1em - 3px);padding-left:1em}&:has(.active) li:not(:has(.active)) ul{display:none}}.note-ref{cursor:pointer}.note-ref:hover+.side{z-index:1;box-sizing:content-box;background
|
|
1
|
+
:root{--side-width:200px;--side-gap:2em;--side-margin:calc(0px - var(--side-width) - var(--side-gap))}body,blockquote,.side{background:#fafafa}.body,.body~.appendix,.frontmatter,.fullwidth,.embed-left,.embed-right{background:#fff;margin-top:2em;padding:1em;box-shadow:0 0 8px #ccc}.appendix,.footnotes,.body .side{font-size:.9em}.body~.appendix,.frontmatter{background:0 0}.appendix h2{border-bottom:1px dashed #666}#TOC{top:0}.bg-number{color:#fff;background:#789;border-radius:5px;padding:1px 5px}.side{width:var(--side-width);margin:0 auto}.side-left{float:left;clear:left;margin-left:var(--side-margin);position:sticky;&:not(.body>*){margin-left:calc(var(--side-margin) + 1em)}}.side-right{float:right;clear:right;margin-right:var(--side-margin)}.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:var(--side-margin)}.embed-right{margin-right:var(--side-margin)}:is(.side,.embed-left,.embed-right)>:first-child{margin-top:0}:is(.embed-left,.embed-right)>:last-child{margin-bottom:0}:is(.quote-left,.quote-right){&>:first-child{padding-top:.1px}&>:last-child{padding-bottom:.1px}}.fullwidth{float:left;background:#fff;min-width:100%;max-width:calc(100vw - 2em);margin:1em 0 1em 50%;transform:translate(-50%);& *{max-width:calc(100vw - 4em);margin:auto 0}& :is(figcaption,.caption){width:800px;margin-left:calc(50% - 400px);padding:1em 1em 0}}.fullscroll{& *{max-width:initial}&,& figure,& .figure{overflow-x:auto}}@media (width>=1264.02px){#TOC.side{& .active{color:#32cd32}& li li .active{border-left:3px solid;margin-left:calc(-1em - 3px);padding-left:1em}&:has(.active) li:not(:has(.active)) ul{display:none}}.note-ref{cursor:pointer}.note-ref:hover+.side{z-index:1;box-sizing:content-box;background:#f8f8f8;margin-left:1em;padding:.5em;display:inline-block;position:absolute}}@media (width<=1264px){body:not(.pagesjs){& #TOC{position:initial;float:none;columns:2;border:1px solid #eee;border-radius:5px;padding:1em}& .side{width:100%}& :is(main,.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}& .footnote-ref+.footnotes{float:left}& .side>:last-child{margin-bottom:0}& .embed-left,& .embed-right{float:inherit;margin:auto;padding:1em}}}@media (width<=800px){body:not(.pagesjs){padding:initial;& main,& .body{padding:0 .5em}& #TOC{columns:1}& .quote-left,& .quote-right{width:inherit;float:inherit;margin:auto}& .fullwidth{margin:initial;transform:initial;float:none;min-width:initial;background:0 0;border:none;& :is(figcaption,.caption){margin:initial;padding:initial}&:not(.fullscroll) *{max-width:100%}}}}@media print{body{background:0 0}}
|
|
2
2
|
/*# sourceMappingURL=article.min.css.map */
|
package/css/article.min.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,sGAKA,yCACA,0IAMA,gDACA,4CACA,2CACA,WACA,wEAQA,4CAIA,
|
|
1
|
+
{"version":3,"mappings":"AAAA,sGAKA,yCACA,0IAMA,gDACA,4CACA,2CACA,WACA,wEAQA,4CAIA,gFAIE,2DAKF,oEAKA,mCACA,mDAIA,oDAIA,sDAIA,2CACA,6CACA,8DACA,0DACA,8BACE,gCACA,mCAIF,gIAGE,8CAQA,wFAMF,YACE,sBACA,sCAGF,0BACE,UACE,wBAGA,oFAKA,sDAIF,yBACA,+IAUF,uBACE,mBACE,iGAQA,mBACA,oDAIA,qEAKA,mCACA,sCACA,oCACA,qEAOJ,sBACE,mCAEE,8BACA,iBACA,qEAKA,sGAOE,0DAIA,uCAKN,aACE","sources":["article.css"],"sourcesContent":[":root {\n --side-width: 200px;\n --side-gap: 2em;\n --side-margin: calc(0px - var(--side-width) - var(--side-gap));\n}\nbody, blockquote, .side { background: #fafafa; }\n.body, .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.appendix, .footnotes, .body .side { font-size: .9em; }\n.body ~ .appendix, .frontmatter { background: none; }\n.appendix h2 { border-bottom: 1px dashed #666; }\n#TOC { top: 0; }\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: var(--side-width);\n margin: 0 auto;\n}\n.side-left {\n float: left;\n clear: left;\n margin-left: var(--side-margin);\n &:not(.body > *) {\n margin-left: calc(var(--side-margin) + 1em);\n }\n position: sticky;\n}\n.side-right {\n float: right;\n clear: right;\n margin-right: var(--side-margin);\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: var(--side-margin); }\n.embed-right { margin-right: var(--side-margin); }\n:is(.side, .embed-left, .embed-right) > :first-child { margin-top: 0; }\n:is(.embed-left, .embed-right) > :last-child { margin-bottom: 0; }\n:is(.quote-left, .quote-right) {\n & > :first-child { padding-top: .1px; }\n & > :last-child { padding-bottom: .1px; }\n}\n\n/* wide elements */\n.fullwidth {\n max-width: calc(100vw - 2em);\n margin: 1em 0 1em 50%;\n & * {\n max-width: calc(100vw - 4em);\n margin: auto 0;\n }\n transform: translateX(-50%);\n float: left;\n min-width: 100%;\n background: #fff;\n & :is(figcaption, .caption) {\n margin-left: calc(50% - 400px);\n width: 800px;\n padding: 1em 1em 0;\n }\n}\n.fullscroll {\n & * { max-width: initial; }\n &, & figure, & .figure { overflow-x: auto; }\n}\n\n@media (min-width: 1264.02px) {\n #TOC.side {\n .active {\n color: limegreen;\n }\n li li .active {\n border-left: 3px solid;\n margin-left: calc(-1em - 3px);\n padding-left: 1em;\n }\n &:has(.active) li:not(:has(.active)) ul {\n display: none;\n }\n }\n .note-ref { cursor: pointer; }\n .note-ref:hover + .side {\n display: inline-block;\n background: #f8f8f8;\n position: absolute;\n z-index: 1;\n margin-left: 1em;\n padding: .5em;\n box-sizing: content-box;\n }\n}\n@media (max-width: 1264px) {\n body:not(.pagesjs) {\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 :is(main, .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 .footnote-ref + .footnotes { float: left; }\n .side > :last-child { margin-bottom: 0; }\n .embed-left, .embed-right {\n float: inherit;\n margin: auto;\n padding: 1em;\n }\n }\n}\n@media (max-width: 800px) {\n body:not(.pagesjs) {\n 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 {\n margin: initial;\n transform: initial;\n float: none;\n min-width: initial;\n background: none;\n border: none;\n & :is(figcaption, .caption) {\n margin: initial;\n padding: initial;\n }\n &:not(.fullscroll) * { max-width: 100%; }\n }\n }\n}\n\n@media print {\n body {\n background: none;\n }\n}\n"],"names":[]}
|
package/css/book-litedown.css
CHANGED
|
@@ -101,7 +101,7 @@ code[data-file]::before {
|
|
|
101
101
|
content: attr(data-file);
|
|
102
102
|
font-size: .9em;
|
|
103
103
|
float: right;
|
|
104
|
-
background
|
|
104
|
+
background: lightyellow;
|
|
105
105
|
display: inline-block;
|
|
106
106
|
padding: .5em;
|
|
107
107
|
margin: -1em -1em 1em 1em;
|
|
@@ -126,18 +126,10 @@ pre:has(code[data-file]) {
|
|
|
126
126
|
&::before, code::before {
|
|
127
127
|
content: unset;
|
|
128
128
|
}
|
|
129
|
-
code {
|
|
130
|
-
border-top: none;
|
|
131
|
-
}
|
|
132
129
|
}
|
|
133
130
|
code, &::before {
|
|
134
131
|
border: groove mintcream;
|
|
135
132
|
}
|
|
136
|
-
&.pagesjs-fragmented:last-child {
|
|
137
|
-
code {
|
|
138
|
-
border-bottom: none;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
133
|
&::before {
|
|
142
134
|
border-bottom: none;
|
|
143
135
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.pagesjs #TOC>ul>li>ul>li>ul>li>ul,.chapter-toc>ul>li>ul>li>ul{display:none}.pagesjs{& #tab\:assets tr>:nth-child(2){display:none}}.epigraph{margin-bottom:4em;padding:5px;position:relative;&,& blockquote{border:1px solid}&:before,&:after,& blockquote:before,& blockquote:after{content:"•";text-align:center;border:1px solid;width:1em;height:1em;line-height:1;display:inline-block;position:absolute}&:before{left:5px}&:after{content:"❀";color:#639;text-align:right;opacity:.2;border:none;font-size:3em;inset:5px 5px auto auto}& blockquote{padding:1em;&:before{inset:auto auto 5px 5px}&:after{inset:auto 5px 5px auto}}}.new-road{& p{justify-content:center;gap:.5em;display:flex}& button:before{font-size:200%}& .old-knit,& .new-fuse{&:hover:before{content:"❓ "}}& .old-knit{&:before{content:"🧶 "}&:focus:before{content:"😡 "}}& .new-fuse:before{content:"↯ "}& .new-preview:before{content:"⏵ "}& .new-fuse:focus:before{content:"😇 "}}.flex-col{justify-content:space-between;gap:.5em;display:flex;& *{flex:1}& pre:has(code[data-file]){&,&:before{border:groove #f5fffa}& code{border:none;border-top:1px dashed #d3d3d3}&{border-top:none}&:before{border-bottom:none;border-left:none}}}code[data-file]:before{content:attr(data-file);float:right;background
|
|
1
|
+
.pagesjs #TOC>ul>li>ul>li>ul>li>ul,.chapter-toc>ul>li>ul>li>ul{display:none}.pagesjs{& #tab\:assets tr>:nth-child(2){display:none}}.epigraph{margin-bottom:4em;padding:5px;position:relative;&,& blockquote{border:1px solid}&:before,&:after,& blockquote:before,& blockquote:after{content:"•";text-align:center;border:1px solid;width:1em;height:1em;line-height:1;display:inline-block;position:absolute}&:before{left:5px}&:after{content:"❀";color:#639;text-align:right;opacity:.2;border:none;font-size:3em;inset:5px 5px auto auto}& blockquote{padding:1em;&:before{inset:auto auto 5px 5px}&:after{inset:auto 5px 5px auto}}}.new-road{& p{justify-content:center;gap:.5em;display:flex}& button:before{font-size:200%}& .old-knit,& .new-fuse{&:hover:before{content:"❓ "}}& .old-knit{&:before{content:"🧶 "}&:focus:before{content:"😡 "}}& .new-fuse:before{content:"↯ "}& .new-preview:before{content:"⏵ "}& .new-fuse:focus:before{content:"😇 "}}.flex-col{justify-content:space-between;gap:.5em;display:flex;& *{flex:1}& pre:has(code[data-file]){&,&:before{border:groove #f5fffa}& code{border:none;border-top:1px dashed #d3d3d3}&{border-top:none}&:before{border-bottom:none;border-left:none}}}code[data-file]:before{content:attr(data-file);float:right;background:#ffffe0;margin:-1em -1em 1em 1em;padding:.5em;font-size:.9em;display:inline-block}pre:has(code[data-file]){&:before{content:"Output";text-transform:uppercase;border-bottom:none;padding:.5em 1em;font-weight:700;display:inline-block}&:has(code[data-file$=\.Rmd]):before{content:"♧ Example"}&:has(code[data-source]):before{content:"♧ Source"}&.pagesjs-fragmented:first-child{&:before,& code:before{content:unset}}& code,&:before{border:groove #f5fffa}&:before{border-bottom:none}}.no-ref-label{& .cross-ref-sec:before{content:""}}.larger{font-size:1.5em}
|
|
2
2
|
/*# sourceMappingURL=book-litedown.min.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAGA,4EAIA,SACE,8CAKF,0DAIE,gCAGA,mLAUA,kBAGA,+GASA,yBAEE,iCAGA,kCAOJ,UACE,iDAKA,+BACA,wBACE,+BAEF,YACE,yBACA,gCAEF,kCACA,qCACA,0CAIF,8DAIE,WAGA,2BACE,iCAGA,iDAIA,kBAGA,+CAOJ,
|
|
1
|
+
{"version":3,"mappings":"AAGA,4EAIA,SACE,8CAKF,0DAIE,gCAGA,mLAUA,kBAGA,+GASA,yBAEE,iCAGA,kCAOJ,UACE,iDAKA,+BACA,wBACE,+BAEF,YACE,yBACA,gCAEF,kCACA,qCACA,0CAIF,8DAIE,WAGA,2BACE,iCAGA,iDAIA,kBAGA,+CAOJ,wJAUA,yBACE,4HAQA,2DAGA,qDAGA,iCACE,sCAIF,sCAGA,6BAKF,cACE,oCAKF","sources":["book-litedown.css"],"sourcesContent":["/* CSS for https://yihui.org/litedown/ */\n\n/* hide 4th-level TOC items when printing to PDF and 3rd-level in chapter TOC */\n.pagesjs #TOC > ul > li > ul > li > ul > li > ul, .chapter-toc > ul > li > ul > li > ul {\n display: none;\n}\n\n.pagesjs {\n #tab\\:assets tr > :nth-child(2) {\n display: none;\n }\n}\n\n.epigraph {\n position: relative;\n padding: 5px;\n margin-bottom: 4em;\n &, blockquote {\n border: 1px solid;\n }\n &::before, &::after, blockquote::before, blockquote::after {\n content: \"•\";\n position: absolute;\n border: 1px solid;\n display: inline-block;\n width: 1em;\n height: 1em;\n text-align: center;\n line-height: 1;\n }\n &::before {\n left: 5px;\n }\n &::after {\n content: \"❀\";\n color: rebeccapurple;\n font-size: 3em;\n text-align: right;\n border: none;\n opacity: .2;\n inset: 5px 5px auto auto;\n }\n blockquote {\n padding: 1em;\n &::before {\n inset: auto auto 5px 5px;\n }\n &::after {\n inset: auto 5px 5px auto;\n }\n }\n}\n\n/* a tale of two buttons */\n.new-road {\n p {\n display: flex;\n justify-content: center;\n gap: .5em;\n }\n button::before { font-size: 200%; }\n .old-knit, .new-fuse {\n &:hover::before { content: \"❓ \"; }\n }\n .old-knit {\n &::before { content: \"🧶 \"; }\n &:focus::before { content: \"😡 \"; }\n }\n .new-fuse::before { content: \"↯ \"; }\n .new-preview::before { content: \"⏵ \"; }\n .new-fuse:focus::before { content: \"😇 \"; }\n}\n\n/* arrange elements in columns */\n.flex-col {\n display: flex;\n justify-content: space-between;\n gap: .5em;\n * {\n flex: 1;\n }\n pre:has(code[data-file]) {\n &, &::before {\n border: groove mintcream;\n }\n code {\n border: none;\n border-top: 1px dashed lightgray;\n }\n & {\n border-top: none;\n }\n &::before {\n border-left: none;\n border-bottom: none;\n }\n }\n}\n\ncode[data-file]::before {\n content: attr(data-file);\n font-size: .9em;\n float: right;\n background: lightyellow;\n display: inline-block;\n padding: .5em;\n margin: -1em -1em 1em 1em;\n}\n\npre:has(code[data-file]) {\n &::before {\n content: \"Output\";\n text-transform: uppercase;\n font-weight: bold;\n display: inline-block;\n padding: .5em 1em;\n border-bottom: none;\n }\n &:has(code[data-file$=\".Rmd\"])::before {\n content: \"♧ Example\";\n }\n &:has(code[data-source])::before {\n content: \"♧ Source\";\n }\n &.pagesjs-fragmented:first-child {\n &::before, code::before {\n content: unset;\n }\n }\n code, &::before {\n border: groove mintcream;\n }\n &::before {\n border-bottom: none;\n }\n}\n\n.no-ref-label {\n .cross-ref-sec:before {\n content: \"\";\n }\n}\n\n.larger { font-size: 1.5em; }\n"],"names":[]}
|
package/css/book.css
CHANGED
|
@@ -11,11 +11,11 @@ body {
|
|
|
11
11
|
.frontmatter {
|
|
12
12
|
background-image: radial-gradient(#b6cee2 1px, #fff 1px);
|
|
13
13
|
background-size: 2em 2em;
|
|
14
|
-
background
|
|
14
|
+
background: #fff;
|
|
15
15
|
padding-bottom: 0;
|
|
16
16
|
& > div {
|
|
17
17
|
margin: 0 -1em;
|
|
18
|
-
background
|
|
18
|
+
background: #ebf6f9;
|
|
19
19
|
padding: 1em;
|
|
20
20
|
}
|
|
21
21
|
& .title {
|
|
@@ -23,14 +23,6 @@ body {
|
|
|
23
23
|
margin-top: -1em;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
#TOC.side {
|
|
27
|
-
margin-left: calc(-200px - .8em);
|
|
28
|
-
}
|
|
29
|
-
@media (max-width: 1264px) {
|
|
30
|
-
#TOC.side {
|
|
31
|
-
margin-left: auto;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
26
|
@media (min-width: 1264.02px) {
|
|
35
27
|
body:not(.pagesjs) .chapter-toc {
|
|
36
28
|
display: none;
|
package/css/book.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
body{font-family:Palatino,Georgia,serif;font-size:1em}.footnotes,code,.side,.body .side,.chapter-toc{font-size:.85em}.frontmatter,.chapter{min-height:calc(100vh - 1em)}.frontmatter{background
|
|
1
|
+
body{font-family:Palatino,Georgia,serif;font-size:1em}.footnotes,code,.side,.body .side,.chapter-toc{font-size:.85em}.frontmatter,.chapter{min-height:calc(100vh - 1em)}.frontmatter{background:#fff;padding-bottom:0;&>div{background:#ebf6f9;margin:0 -1em;padding:1em}& .title{margin-top:-1em;padding:20vh 1em 1em}}@media (width>=1264.02px){body:not(.pagesjs) .chapter-toc{display:none}}.chapter-toc{border:1px solid #eee;border-radius:5px;margin-bottom:2em;padding:1em;&>ul{columns:18em}}.chapter:not(.appendix) .main-number{&:before{content:"Chapter "}&:after{content:none}}.chapter h1{border-bottom:1px solid;margin:1em auto 3em;&:has(+.epigraph){margin-bottom:2em}}h1 .section-number{border-bottom:4px solid;margin-bottom:-4px;display:inline-block}.body h2{border-bottom-style:dashed}.pagesjs .pagesjs-page:first-child:has(.frontmatter){padding:0;& .pagesjs-header,& .pagesjs-footer{display:none}& .frontmatter{padding:var(--paper-margin-top)var(--paper-margin-right)var(--paper-margin-bottom)var(--paper-margin-left);height:100%;margin:0;& .title{margin-top:calc(0px - var(--paper-margin-top))}&>div{margin:0 calc(0px - var(--paper-margin-right))0 calc(0px - var(--paper-margin-left))}}}
|
|
2
2
|
/*# sourceMappingURL=book.min.css.map */
|
package/css/book.min.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,sDAIA,+DAGA,mDAGA,
|
|
1
|
+
{"version":3,"mappings":"AAAA,sDAIA,+DAGA,mDAGA,8CAKE,mDAKA,+CAKF,0BACE,8CAIF,mFAKE,mBAIF,qCACE,4BAGA,sBAIF,wDAGE,qCAIF,mFAKA,oCAGA,+DAEE,iDAGA,+IAIE,wDAGA","sources":["book.css"],"sourcesContent":["body {\n font-size: 1em;\n font-family: Palatino, Georgia, serif;\n}\n.footnotes, code, .side, .body .side, .chapter-toc {\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: #fff;\n padding-bottom: 0;\n & > div {\n margin: 0 -1em;\n background: #ebf6f9;\n padding: 1em;\n }\n & .title {\n padding: 20vh 1em 1em;\n margin-top: -1em;\n }\n}\n@media (min-width: 1264.02px) {\n body:not(.pagesjs) .chapter-toc {\n display: none;\n }\n}\n.chapter-toc {\n border: 1px solid #eee;\n border-radius: 5px;\n padding: 1em;\n margin-bottom: 2em;\n & > ul {\n columns: 18em;\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 &:has(+ .epigraph) {\n margin-bottom: 2em;\n }\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\n.pagesjs .pagesjs-page:first-child:has(.frontmatter) {\n padding: 0;\n .pagesjs-header, .pagesjs-footer {\n display: none;\n }\n .frontmatter {\n margin: 0;\n padding: var(--paper-margin-top) var(--paper-margin-right) var(--paper-margin-bottom) var(--paper-margin-left);\n height: 100%;\n .title {\n margin-top: calc(0px - var(--paper-margin-top));\n }\n & > div {\n margin: 0 calc(0px - var(--paper-margin-right)) 0 calc(0px - var(--paper-margin-left));\n }\n }\n}\n"],"names":[]}
|
package/css/copy-button.css
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
.copy-success {
|
|
15
15
|
box-shadow: none;
|
|
16
|
-
background
|
|
17
|
-
transition: box-shadow 300ms ease-out, background
|
|
16
|
+
background: #999;
|
|
17
|
+
transition: box-shadow 300ms ease-out, background 300ms ease-out;
|
|
18
18
|
}
|
|
19
19
|
.copy-fail {
|
|
20
20
|
border-style: dotted;
|
package/css/copy-button.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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}:is(:focus,:hover)>.copy-button{display:inline-block}.copy-success{box-shadow:none;background
|
|
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}:is(:focus,:hover)>.copy-button{display:inline-block}.copy-success{box-shadow:none;background:#999;transition:box-shadow .3s ease-out,background .3s ease-out}.copy-fail{border-style:dotted}
|
|
2
2
|
/*# sourceMappingURL=copy-button.min.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,kJAUA,qDAGA,
|
|
1
|
+
{"version":3,"mappings":"AAAA,kJAUA,qDAGA,yGAKA","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:is(:focus, :hover) > .copy-button {\n display: inline-block;\n}\n.copy-success {\n box-shadow: none;\n background: #999;\n transition: box-shadow 300ms ease-out, background 300ms ease-out;\n}\n.copy-fail {\n border-style: dotted;\n}\n"],"names":[]}
|
package/css/default.css
CHANGED
|
@@ -14,8 +14,8 @@ pre, img { max-width: 100%; }
|
|
|
14
14
|
pre { white-space: pre-wrap; word-break: break-word; }
|
|
15
15
|
pre code { display: block; padding: 1em; overflow-x: auto; }
|
|
16
16
|
code { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; }
|
|
17
|
-
:not(pre) > code, code[class], div > .caption { background
|
|
18
|
-
pre > code:is(:not([class]), .language-plain, .language-none, .plain), .box, .figure, .table { background
|
|
17
|
+
:not(pre) > code, code[class], div > .caption { background: #f8f8f8; }
|
|
18
|
+
pre > code:is(:not([class]), .language-plain, .language-none, .plain), .box, .figure, .table { background: inherit; border: 1px solid #eee; }
|
|
19
19
|
pre > code {
|
|
20
20
|
&.message { border-color: #9eeaf9; }
|
|
21
21
|
&.warning { background: #fff3cd; border-color: #fff3cd; }
|
package/css/default.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
body{max-width:800px;margin:auto;padding:1em;font-family:sans-serif;line-height:1.5}body,.abstract,code,.footnotes,footer,#refs,.caption{font-size:.9em}li li{font-size:.95em}ul:has(li>input[type=checkbox]){padding-left:1em;list-style:none}*,:before,:after{box-sizing:border-box}a{color:#4682b4}pre,img{max-width:100%}pre{white-space:pre-wrap;word-break:break-word}pre code{padding:1em;display:block;overflow-x:auto}code{font-family:DejaVu Sans Mono,Droid Sans Mono,Lucida Console,Consolas,Monaco,monospace}:not(pre)>code,code[class],div>.caption{background
|
|
1
|
+
body{max-width:800px;margin:auto;padding:1em;font-family:sans-serif;line-height:1.5}body,.abstract,code,.footnotes,footer,#refs,.caption{font-size:.9em}li li{font-size:.95em}ul:has(li>input[type=checkbox]){padding-left:1em;list-style:none}*,:before,:after{box-sizing:border-box}a{color:#4682b4}pre,img{max-width:100%}pre{white-space:pre-wrap;word-break:break-word}pre code{padding:1em;display:block;overflow-x:auto}code{font-family:DejaVu Sans Mono,Droid Sans Mono,Lucida Console,Consolas,Monaco,monospace}:not(pre)>code,code[class],div>.caption{background:#f8f8f8}pre>code:is(:not([class]),.language-plain,.language-none,.plain),.box,.figure,.table{background:inherit;border:1px solid #eee}pre>code{&.message{border-color:#9eeaf9}&.warning{background:#fff3cd;border-color:#fff3cd}&.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;&:hover{opacity:inherit}}.box,.figure,.table{margin:1em auto}div>.caption{padding:1px 1em}.figure{& p:has(img),& pre:has(svg){text-align:center}}.flex-col{justify-content:space-between;display:flex}table :is(th,td){font-variant-numeric:tabular-nums;padding:5px}table:not([class]){border-top:1px solid #666;margin:1em auto;& thead th{border-bottom:1px solid #ddd}}table:not([class]),.table-striped{& thead,& tfoot,& tr:nth-child(2n){background:#f5f5f5}}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{& a{text-decoration:none}& ul{padding-left:1em;list-style:none}&>ul{padding:0}& ul ul{border-left:1px solid #b0c4de}}table:not([class]),.body h2{border-bottom:1px solid #666}.body .appendix,.appendix~h2{border-bottom-style:dashed}.main-number:after{content:"."}span[class^=ref-number-]{font-weight:700}.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 "}.cross-ref-eqn:before,.MathJax_ref:has(mjx-mtext>mjx-c+mjx-c):before{content:"Equation "}.abstract,#refs{&:before{margin:1em auto;font-weight:700;display:block}}.abstract:before{content:"Abstract";text-align:center}#refs:before{content:"Bibliography";font-size:1.5em}.ref-paren-open:before{content:"("}.ref-paren-close:after{content:")"}.ref-semicolon:after{content:"; "}.ref-and:after{content:" and "}.ref-et-al:after{content:" et al.";font-style:italic}.footnote-ref a{&:before{content:"["}&:after{content:"]"}}section.footnotes{margin-top:2em;&:before{content:"";max-width:20em;display:block}}.fade{opacity:.6;background:repeating-linear-gradient(135deg,#fff,#fff 30px,#ddd 32px 32px)}@media print{body{max-width:100%}tr,img{break-inside:avoid}}@media only screen and (width>=992px){body:not(.pagesjs) pre:has(.line-numbers):not(:hover){white-space:pre}}
|
|
2
2
|
/*# sourceMappingURL=default.min.css.map */
|
package/css/default.min.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,oFAOA,oEACA,sBACA,iEACA,uCACA,gBACA,uBACA,+CACA,mDACA,2FACA,
|
|
1
|
+
{"version":3,"mappings":"AAAA,oFAOA,oEACA,sBACA,iEACA,uCACA,gBACA,uBACA,+CACA,mDACA,2FACA,2DACA,8HACA,SACE,+BACA,kDACA,iDAEF,yCACA,oEAIE,yBAEF,oCACA,6BACA,QAAU,+CACV,qDACA,+DACA,6DAGE,yCAEF,kCACE,uDAEF,2EAMA,4CACA,+BACA,KACE,yBACA,sCACA,eACA,uCAEF,yDACA,wDACA,+BACA,yCACA,wDACA,yCACA,yCACA,+DACA,8DACA,yFACA,gBACE,wDAEF,sDACA,oDACA,mCACA,mCACA,kCACA,+BACA,qDACA,gBACE,qBACA,qBAEF,iCAEE,kDAEF,4FAKA,aACE,oBACA,2BAEF,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}\nbody, .abstract, code, .footnotes, footer, #refs, .caption { 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: border-box; }\na { color: steelblue; }\npre, img { max-width: 100%; }\npre { white-space: pre-wrap; word-break: break-word; }\npre code { display: block; padding: 1em; overflow-x: auto; }\ncode { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; }\n:not(pre) > code, code[class], div > .caption { background: #f8f8f8; }\npre > code:is(:not([class]), .language-plain, .language-none, .plain), .box, .figure, .table { background: inherit; border: 1px solid #eee; }\npre > code {\n &.message { border-color: #9eeaf9; }\n &.warning { background: #fff3cd; border-color: #fff3cd; }\n &.error { background: #f8d7da; border-color: #f8d7da; }\n}\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 &:hover { opacity: inherit; }\n}\n.box, .figure, .table { margin: 1em auto; }\ndiv > .caption { padding: 1px 1em; }\n.figure { p:has(img), pre:has(svg) { text-align: center; } }\n.flex-col { display: flex; justify-content: space-between; }\ntable :is(th, td) { padding: 5px; font-variant-numeric: tabular-nums; }\ntable:not([class]) {\n margin: 1em auto;\n border-top: 1px solid #666;\n thead th { border-bottom: 1px solid #ddd; }\n}\ntable:not([class]), .table-striped {\n thead, tfoot, tr:nth-child(even) { background: whitesmoke; }\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 {\n a { text-decoration: none; }\n ul { list-style: none; padding-left: 1em; }\n & > ul { padding: 0; }\n ul ul { border-left: 1px solid lightsteelblue; }\n}\ntable:not([class]), .body h2 { border-bottom: 1px solid #666; }\n.body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }\n.main-number::after { content: \".\"; }\nspan[class^=\"ref-number-\"] { font-weight: bold; }\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.cross-ref-eqn::before, .MathJax_ref:has(mjx-mtext > mjx-c + mjx-c)::before { content: \"Equation \"; }\n.abstract, #refs {\n &::before { display: block; margin: 1em auto; font-weight: bold; }\n}\n.abstract::before { content: \"Abstract\"; text-align: center; }\n#refs::before { content: \"Bibliography\"; font-size: 1.5em; }\n.ref-paren-open::before { content: \"(\"; }\n.ref-paren-close::after { content: \")\"; }\n.ref-semicolon::after { content: \"; \"; }\n.ref-and::after { content: \" and \"; }\n.ref-et-al::after { content: \" et al.\"; font-style: italic; }\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.fade {\n background: repeating-linear-gradient(135deg, white, white 30px, #ddd 32px, #ddd 32px);\n opacity: 0.6;\n}\n\n@media print {\n body { max-width: 100%; }\n tr, img { break-inside: avoid; }\n}\n@media only screen and (min-width: 992px) {\n body:not(.pagesjs) pre:has(.line-numbers):not(:hover) { white-space: pre; }\n}\n"],"names":[]}
|
package/css/pages.css
CHANGED
|
@@ -41,9 +41,7 @@
|
|
|
41
41
|
height: var(--paper-height);
|
|
42
42
|
padding: var(--paper-margin-top) var(--paper-margin-right) var(--paper-margin-bottom) var(--paper-margin-left);
|
|
43
43
|
break-after: page;
|
|
44
|
-
|
|
45
|
-
display: flex;
|
|
46
|
-
}
|
|
44
|
+
display: flex;
|
|
47
45
|
flex-direction: column;
|
|
48
46
|
justify-content: space-between;
|
|
49
47
|
overflow: hidden;
|
|
@@ -57,7 +55,7 @@
|
|
|
57
55
|
border: none;
|
|
58
56
|
padding: 0;
|
|
59
57
|
margin-left: auto;
|
|
60
|
-
&:not(.
|
|
58
|
+
&:not(.chapter-toc):is(.fragment-first, :not(.pagesjs-fragmented))::before {
|
|
61
59
|
content: "Contents";
|
|
62
60
|
display: block;
|
|
63
61
|
font-weight: bold;
|
|
@@ -83,6 +81,18 @@
|
|
|
83
81
|
}
|
|
84
82
|
}
|
|
85
83
|
}
|
|
84
|
+
& > .pagesjs-body > .pagesjs-fragmented {
|
|
85
|
+
&:not(.fragment-first) {
|
|
86
|
+
&, & .pagesjs-fragmented {
|
|
87
|
+
border-top: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
&:not(.fragment-last) {
|
|
91
|
+
&, & .pagesjs-fragmented {
|
|
92
|
+
border-bottom: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
86
96
|
.fullwidth {
|
|
87
97
|
float: none;
|
|
88
98
|
max-width: none;
|
|
@@ -145,10 +155,10 @@
|
|
|
145
155
|
@media only screen {
|
|
146
156
|
.pagesjs {
|
|
147
157
|
&:has(.pagesjs-page) {
|
|
148
|
-
background
|
|
158
|
+
background: #f7f7f7;
|
|
149
159
|
}
|
|
150
160
|
.pagesjs-page {
|
|
151
|
-
background
|
|
161
|
+
background: white;
|
|
152
162
|
}
|
|
153
163
|
.page-multiple {
|
|
154
164
|
overflow-y: auto;
|
package/css/pages.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
:root{--paper-width:210mm;--paper-height:297mm;--paper-margin-top:40px;--paper-margin-right:80px;--paper-margin-bottom:40px;--paper-margin-left:80px;--page-header-height:40px;--page-header-bottom:40px;--page-footer-height:40px;--page-footer-top:40px}@page{size:var(--paper-width)var(--paper-height);margin:0}@page multiple{margin-top:var(--paper-margin-top);margin-bottom:var(--paper-margin-bottom)}.page-multiple{page:multiple}.pagesjs{flex-wrap:wrap;justify-content:center;gap:5mm;max-width:100%;margin:5mm;padding:0;display:flex;& .frontmatter,& .chapter{min-height:unset;box-shadow:none}&>*,&:not(:has(.frontmatter)):has(.chapter-toc) #TOC:not(.chapter-toc){display:none}& .pagesjs-page{width:var(--paper-width);height:var(--paper-height);padding:var(--paper-margin-top)var(--paper-margin-right)var(--paper-margin-bottom)var(--paper-margin-left);break-after:page;flex-direction:column;justify-content:space-between;overflow:hidden
|
|
1
|
+
:root{--paper-width:210mm;--paper-height:297mm;--paper-margin-top:40px;--paper-margin-right:80px;--paper-margin-bottom:40px;--paper-margin-left:80px;--page-header-height:40px;--page-header-bottom:40px;--page-footer-height:40px;--page-footer-top:40px}@page{size:var(--paper-width)var(--paper-height);margin:0}@page multiple{margin-top:var(--paper-margin-top);margin-bottom:var(--paper-margin-bottom)}.page-multiple{page:multiple}.pagesjs{flex-wrap:wrap;justify-content:center;gap:5mm;max-width:100%;margin:5mm;padding:0;display:flex;& .frontmatter,& .chapter{min-height:unset;box-shadow:none}&>*,&:not(:has(.frontmatter)):has(.chapter-toc) #TOC:not(.chapter-toc){display:none}& .pagesjs-page{width:var(--paper-width);height:var(--paper-height);padding:var(--paper-margin-top)var(--paper-margin-right)var(--paper-margin-bottom)var(--paper-margin-left);break-after:page;flex-direction:column;justify-content:space-between;display:flex;overflow:hidden;& img{max-width:100%}& .chapter-before,& .chapter-after,& .buttons:has(+.chapter-before){display:none}& #TOC{border:none;margin-left:auto;padding:0;&:not(.chapter-toc):is(.fragment-first,:not(.pagesjs-fragmented)):before{content:"Contents";margin-bottom:1em;font-size:1.5em;font-weight:700;display:block}&>ul{columns:18em}& a{display:flex;&:after{content:attr(data-page-number);align-self:end}& .section-number{margin-right:.3em}& .dot-leader{border-bottom:1px dashed;flex:1 0 2em;margin:0 1ex 1ex}}}&>.pagesjs-body>.pagesjs-fragmented{&:not(.fragment-first){&,& .pagesjs-fragmented{border-top:none}}&:not(.fragment-last){&,& .pagesjs-fragmented{border-bottom:none}}}& .fullwidth{float:none;max-width:none;width:var(--paper-width);margin-left:calc(0px - var(--paper-margin-left));transform:none}& .footnotes:before{content:"";border-top:1px solid;max-width:20em;display:block}&:has(.side-left,.embed-left) .pagesjs-body{padding-left:calc(0px - var(--side-margin));& .fullwidth{transform:translate(var(--side-margin))}}&:has(.side-right,.embed-right) .pagesjs-body{padding-right:calc(0px - var(--side-margin))}& .side{background:0 0;font-size:.9em}}}.pagesjs-header,.pagesjs-footer{justify-content:space-between;font-size:.9em;display:flex}.pagesjs-header{flex:0 0 var(--page-header-height);margin-bottom:var(--page-header-bottom);align-items:end;&:before{content:attr(data-main-title)}&:after{content:attr(data-page-title)}}.pagesjs-footer{flex:0 0 var(--page-footer-height);margin-top:var(--page-footer-top);align-items:start;&:before{content:" "}&:after{content:attr(data-page-number)}}.pagesjs-body{flex-grow:1;position:relative}@media only screen{.pagesjs{&:has(.pagesjs-page){background:#f7f7f7}& .pagesjs-page{background:#fff}& .page-multiple{overflow-y:auto}}.pagesjs-filling{display:block;& .pagesjs-page{height:auto;& .pagesjs-body:has(.footnotes){margin-bottom:1em}}}}@media print{.pagesjs{gap:0;margin:0;& .page-multiple{height:auto;padding-top:0;padding-bottom:0}}}
|
|
2
2
|
/*# sourceMappingURL=pages.min.css.map */
|
package/css/pages.min.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,0PAYA,0DAIA,2FAIA,6BAGA,wGAQE,2DAIA,oFAGA,
|
|
1
|
+
{"version":3,"mappings":"AAAA,0PAYA,0DAIA,2FAIA,6BAGA,wGAQE,2DAIA,oFAGA,iRASE,qBAGA,iFAGA,8CAIE,4JAOA,kBAGA,iBAEE,sDAIA,oCAGA,uEAOJ,oCACE,uBACE,yCAIF,sBACE,6CAKJ,gIAOA,iFAMA,wFAEE,sDAIF,2FAGA,wCAMJ,0FAKA,2GAIE,uCAGA,uCAIF,uGAIE,qBAGA,wCAIF,4CAIA,mBACE,SACE,wCAGA,gCAGA,kCAIF,+BAEE,4BAEE,qDAMN,aACE,wBAGE","sources":["pages.css"],"sourcesContent":[":root {\n --paper-width: 210mm;\n --paper-height: 297mm;\n --paper-margin-top: 40px;\n --paper-margin-right: 80px;\n --paper-margin-bottom: 40px;\n --paper-margin-left: 80px;\n --page-header-height: 40px;\n --page-header-bottom: 40px;\n --page-footer-height: 40px;\n --page-footer-top: 40px;\n}\n@page {\n size: var(--paper-width) var(--paper-height);\n margin: 0;\n}\n@page multiple {\n margin-top: var(--paper-margin-top);\n margin-bottom: var(--paper-margin-bottom);\n}\n.page-multiple {\n page: multiple;\n}\n.pagesjs {\n padding: 0;\n max-width: 100%;\n margin: 5mm;\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n gap: 5mm;\n .frontmatter, .chapter {\n min-height: unset;\n box-shadow: none;\n }\n & > *, &:not(:has(.frontmatter)):has(.chapter-toc) #TOC:not(.chapter-toc) {\n display: none;\n }\n .pagesjs-page {\n width: var(--paper-width);\n height: var(--paper-height);\n padding: var(--paper-margin-top) var(--paper-margin-right) var(--paper-margin-bottom) var(--paper-margin-left);\n break-after: page;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n overflow: hidden;\n img {\n max-width: 100%;\n }\n .chapter-before, .chapter-after, .buttons:has(+ .chapter-before) {\n display: none;\n }\n #TOC {\n border: none;\n padding: 0;\n margin-left: auto;\n &:not(.chapter-toc):is(.fragment-first, :not(.pagesjs-fragmented))::before {\n content: \"Contents\";\n display: block;\n font-weight: bold;\n font-size: 1.5em;\n margin-bottom: 1em;\n }\n & > ul {\n columns: 18em;\n }\n a {\n display: flex;\n &::after {\n content: attr(data-page-number);\n align-self: end;\n }\n .section-number {\n margin-right: .3em;\n }\n .dot-leader {\n flex: 1 0 2em;\n border-bottom: dashed 1px;\n margin: 0 1ex 1ex;\n }\n }\n }\n & > .pagesjs-body > .pagesjs-fragmented {\n &:not(.fragment-first) {\n &, & .pagesjs-fragmented {\n border-top: none;\n }\n }\n &:not(.fragment-last) {\n &, & .pagesjs-fragmented {\n border-bottom: none;\n }\n }\n }\n .fullwidth {\n float: none;\n max-width: none;\n width: var(--paper-width);\n margin-left: calc(0px - var(--paper-margin-left));\n transform: none;\n }\n .footnotes::before {\n content: \"\";\n display: block;\n max-width: 20em;\n border-top: solid 1px;\n }\n &:has(.side-left, .embed-left) .pagesjs-body {\n padding-left: calc(0px - var(--side-margin));\n .fullwidth {\n transform: translate(var(--side-margin));\n }\n }\n &:has(.side-right, .embed-right) .pagesjs-body {\n padding-right: calc(0px - var(--side-margin));\n }\n .side {\n font-size: .9em;\n background: none;\n }\n }\n}\n.pagesjs-header, .pagesjs-footer {\n font-size: .9em;\n display: flex;\n justify-content: space-between;\n}\n.pagesjs-header {\n flex: 0 0 var(--page-header-height);\n margin-bottom: var(--page-header-bottom);\n align-items: end;\n &::before {\n content: attr(data-main-title);\n }\n &::after {\n content: attr(data-page-title);\n }\n}\n.pagesjs-footer {\n flex: 0 0 var(--page-footer-height);\n margin-top: var(--page-footer-top);\n align-items: start;\n &::before {\n content: \" \";\n }\n &::after {\n content: attr(data-page-number);\n }\n}\n.pagesjs-body {\n flex-grow: 1;\n position: relative;\n}\n@media only screen {\n .pagesjs {\n &:has(.pagesjs-page) {\n background: #f7f7f7;\n }\n .pagesjs-page {\n background: white;\n }\n .page-multiple {\n overflow-y: auto;\n }\n }\n .pagesjs-filling {\n display: block;\n .pagesjs-page {\n height: auto;\n .pagesjs-body:has(.footnotes) {\n margin-bottom: 1em;\n }\n }\n }\n}\n@media print {\n .pagesjs {\n margin: 0;\n gap: 0;\n .page-multiple {\n padding-top: 0;\n padding-bottom: 0;\n height: auto;\n }\n }\n}\n"],"names":[]}
|
package/css/prism-xcode.css
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
&.tag, &.selector { color: #aa0d91; }
|
|
8
8
|
&.boolean, &.number, &.constant, &.symbol { color: #1c00cf; }
|
|
9
9
|
&.property, &.attr-name, &.string, &.char, &.builtin { color: #c41a16; }
|
|
10
|
-
&.inserted { background
|
|
11
|
-
&.deleted { background
|
|
10
|
+
&.inserted { background: #ccffd8; }
|
|
11
|
+
&.deleted { background: #ffebe9; }
|
|
12
12
|
&.operator, &.entity, &.url, .language-css &.string, .style &.string { color: #9a6e3a; }
|
|
13
13
|
&.atrule, &.attr-value, &.keyword { color: #836c28; }
|
|
14
14
|
&.function, &.class-name { color: #DD4A68; }
|
package/css/prism-xcode.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.token{&.comment{color:#007400}&.punctuation{color:#999}&.tag,&.selector{color:#aa0d91}&.boolean,&.number,&.constant,&.symbol{color:#1c00cf}&.property,&.attr-name,&.string,&.char,&.builtin{color:#c41a16}&.inserted{background
|
|
1
|
+
.token{&.comment{color:#007400}&.punctuation{color:#999}&.tag,&.selector{color:#aa0d91}&.boolean,&.number,&.constant,&.symbol{color:#1c00cf}&.property,&.attr-name,&.string,&.char,&.builtin{color:#c41a16}&.inserted{background:#ccffd8}&.deleted{background:#ffebe9}&.operator,&.entity,&.url,.language-css &.string,.style &.string{color:#9a6e3a}&.atrule,&.attr-value,&.keyword{color:#836c28}&.function,&.class-name{color:#dd4a68}&.regex,&.important,&.variable{color:#5c2699}&.important,&.bold{font-weight:700}&.italic{font-style:italic}}
|
|
2
2
|
/*# sourceMappingURL=prism-xcode.min.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAGA,OACE,wBACA,yBACA,+BACA,qDACA,+DACA,
|
|
1
|
+
{"version":3,"mappings":"AAGA,OACE,wBACA,yBACA,+BACA,qDACA,+DACA,8BACA,6BACA,+EACA,8CACA,sCACA,6CACA,mCACA","sources":["prism-xcode.css"],"sourcesContent":["/**\n * Prism.s theme ported from highlight.js's xcode style\n */\n.token {\n &.comment { color: #007400; }\n &.punctuation { color: #999; }\n &.tag, &.selector { color: #aa0d91; }\n &.boolean, &.number, &.constant, &.symbol { color: #1c00cf; }\n &.property, &.attr-name, &.string, &.char, &.builtin { color: #c41a16; }\n &.inserted { background: #ccffd8; }\n &.deleted { background: #ffebe9; }\n &.operator, &.entity, &.url, .language-css &.string, .style &.string { color: #9a6e3a; }\n &.atrule, &.attr-value, &.keyword { color: #836c28; }\n &.function, &.class-name { color: #DD4A68; }\n &.regex, &.important, &.variable { color: #5c2699; }\n &.important, &.bold { font-weight: bold; }\n &.italic { font-style: italic; }\n}\n"],"names":[]}
|
package/css/site.css
CHANGED
package/css/site.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
nav>p:last-child{border-bottom:1px dashed #666}footer{border-top:1px dashed #666;margin-top:2em;& .flex-col{gap:2em}}nav a,footer a{text-decoration:none}nav a{background
|
|
1
|
+
nav>p:last-child{border-bottom:1px dashed #666}footer{border-top:1px dashed #666;margin-top:2em;& .flex-col{gap:2em}}nav a,footer a{text-decoration:none}nav a{background:#fff;margin-right:.5em;padding:.2em .5em;display:inline-block}nav a:hover{filter:invert()}.body,.frontmatter,.body~.appendix{box-shadow:none;margin-top:auto}.frontmatter{background:linear-gradient(#f0f8ff,#fff)}.body~.appendix{background:linear-gradient(#fff,#f5f5f5)}
|
|
2
2
|
/*# sourceMappingURL=site.min.css.map */
|
package/css/site.min.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,+CAGA,iDAGE,qBAIF,oCAGA,
|
|
1
|
+
{"version":3,"mappings":"AAAA,+CAGA,iDAGE,qBAIF,oCAGA,+EAMA,4BAGA,mEAIA,sDAGA","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 .flex-col {\n gap: 2em;\n }\n}\nnav a, footer a {\n text-decoration: none;\n}\nnav a {\n display: inline-block;\n background: white;\n padding: .2em .5em;\n margin-right: .5em;\n}\nnav a:hover {\n filter: invert(1);\n}\n.body, .frontmatter, .body ~ .appendix {\n box-shadow: none;\n margin-top: auto;\n}\n.frontmatter {\n background: linear-gradient(0, white, aliceblue);\n}\n.body ~ .appendix {\n background: linear-gradient(0, whitesmoke, white);\n}\n"],"names":[]}
|
package/css/snap.css
CHANGED
|
@@ -14,7 +14,7 @@ body {
|
|
|
14
14
|
padding: 0;
|
|
15
15
|
}
|
|
16
16
|
a { color: #eb4a47; }
|
|
17
|
-
:not(pre) > code { background
|
|
17
|
+
:not(pre) > code { background: #fdfded; }
|
|
18
18
|
#TOC { columns: 2; }
|
|
19
19
|
#TOC::before {
|
|
20
20
|
font-size: 1.3em;
|
|
@@ -32,13 +32,13 @@ a { color: #eb4a47; }
|
|
|
32
32
|
font: .7em monospace;
|
|
33
33
|
}
|
|
34
34
|
.inverse {
|
|
35
|
-
background
|
|
35
|
+
background: #eee;
|
|
36
36
|
filter: invert(1);
|
|
37
37
|
}
|
|
38
38
|
.center { text-align: center; }
|
|
39
39
|
.slide-container h2 .section-number {
|
|
40
40
|
display: inline-block;
|
|
41
|
-
background
|
|
41
|
+
background: #666;
|
|
42
42
|
color: white;
|
|
43
43
|
padding: 0 .1em;
|
|
44
44
|
margin-right: .3em;
|
|
@@ -70,7 +70,7 @@ html:fullscreen {
|
|
|
70
70
|
}
|
|
71
71
|
.slide-mode {
|
|
72
72
|
font-size: 2em;
|
|
73
|
-
background
|
|
73
|
+
background: #d7d8d2;
|
|
74
74
|
scale: var(--slide-scale);
|
|
75
75
|
margin-top: var(--slide-top);
|
|
76
76
|
}
|
|
@@ -79,7 +79,7 @@ html:fullscreen {
|
|
|
79
79
|
width: calc(100vh / var(--slide-ratio) / var(--slide-scale));
|
|
80
80
|
box-shadow: 0 0 2em #888;
|
|
81
81
|
clip-path: inset(0 -2em 0 -2em);
|
|
82
|
-
background
|
|
82
|
+
background: white;
|
|
83
83
|
scroll-snap-align: start;
|
|
84
84
|
}
|
|
85
85
|
li li { font-size: .9em; }
|
package/css/snap.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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
|
|
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:#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:#eee}.center{text-align:center}.slide-container h2 .section-number{color:#fff;background:#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:#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:#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
2
|
/*# sourceMappingURL=snap.min.css.map */
|
package/css/snap.min.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,yBACA,kCACA,wBACA,qBACA,2EAIA,yBACA,iCACA,qCACA,qCAIA,gBACA,
|
|
1
|
+
{"version":3,"mappings":"AAAA,yBACA,kCACA,wBACA,qBACA,2EAIA,yBACA,iCACA,qCACA,qCAIA,gBACA,kCACA,eACA,uFAMA,wDAGA,kFAMA,yCAIA,0BACA,qHAOA,yBACA,oFAKA,qGAKA,+BACA,iBACA,wDACA,6DAIA,iCACE,2EAMA,kGAMA,6MAQA,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: #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: #eee;\n filter: invert(1);\n}\n.center { text-align: center; }\n.slide-container h2 .section-number {\n display: inline-block;\n background: #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: #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: 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/js/math-code.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// <code>$math$</code> to \(math\), and <code>$$math$$</code> to $$math$$:
|
|
2
2
|
// https://yihui.org/en/2018/07/latex-math-markdown/
|
|
3
|
-
|
|
3
|
+
document.querySelectorAll(':not(pre) > code:not(.nolatex)').forEach(code => {
|
|
4
4
|
// skip <pre> tags and <code> that has children or the nolatex class
|
|
5
|
-
if (code.
|
|
5
|
+
if (code.childElementCount > 0) return;
|
|
6
6
|
let text = code.textContent;
|
|
7
7
|
if (/^\$[^$]/.test(text) && /[^$]\$$/.test(text)) {
|
|
8
8
|
text = text.replace(/^\$/, '\\(').replace(/\$$/, '\\)');
|
package/js/math-code.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
document.querySelectorAll(":not(pre) > code:not(.nolatex)").forEach((t=>{if(t.childElementCount>0)return;let e=t.textContent;/^\$[^$]/.test(e)&&/[^$]\$$/.test(e)&&(e=e.replace(/^\$/,"\\(").replace(/\$$/,"\\)"),t.textContent=e),(/^\\\((.|\s)+\\\)$/.test(e)||/^\\\[(.|\s)+\\\]$/.test(e)||/^\$(.|\s)+\$$/.test(e)||/^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(e))&&(t.outerHTML=t.innerHTML)}));
|
|
2
2
|
//# sourceMappingURL=math-code.min.js.map
|
package/js/math-code.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["document","
|
|
1
|
+
{"version":3,"names":["document","querySelectorAll","forEach","code","childElementCount","text","textContent","test","replace","outerHTML","innerHTML"],"sources":["math-code.js"],"mappings":"AAEAA,SAASC,iBAAiB,kCAAkCC,SAAQC,IAElE,GAAIA,EAAKC,kBAAoB,EAAG,OAChC,IAAIC,EAAOF,EAAKG,YACZ,UAAUC,KAAKF,IAAS,UAAUE,KAAKF,KACzCA,EAAOA,EAAKG,QAAQ,MAAO,OAAOA,QAAQ,MAAO,OACjDL,EAAKG,YAAcD,IAEjB,oBAAoBE,KAAKF,IAAS,oBAAoBE,KAAKF,IAC3D,gBAAgBE,KAAKF,IACrB,4CAA4CE,KAAKF,MACnDF,EAAKM,UAAYN,EAAKO,UACxB","ignoreList":[]}
|
package/js/pages.js
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
function $$(s, el = d) { return el ? el.querySelectorAll(s) : []; }
|
|
6
6
|
function nChild(el) { return el.childElementCount; }
|
|
7
7
|
|
|
8
|
-
const tpl = d.createElement('div'), book = $$('h1').length > 1,
|
|
9
|
-
|
|
8
|
+
const tpl = d.createElement('div'), book = $$('h1').length > 1,
|
|
9
|
+
fr_cls = 'pagesjs-fragmented', fr_1 = 'fragment-first', fr_2 = 'fragment-last',
|
|
10
|
+
tb = ['top', 'bottom'].map(i => {
|
|
10
11
|
const v = getComputedStyle(d.documentElement).getPropertyValue(`--paper-margin-${i}`);
|
|
11
12
|
return +v.replace('px', '') || 0;
|
|
12
13
|
}); // top/bottom page margin
|
|
@@ -14,21 +15,28 @@
|
|
|
14
15
|
tpl.innerHTML = `<div class="pagesjs-header"></div>
|
|
15
16
|
<div class="pagesjs-body"></div>
|
|
16
17
|
<div class="pagesjs-footer"></div>`;
|
|
17
|
-
let box, box_body, H,
|
|
18
|
+
let box, box_body, box_cls = [], boxes = [], box_n = 0, H, h_code, l_code = [];
|
|
18
19
|
function newPage(el) {
|
|
20
|
+
const n = boxes.length;
|
|
21
|
+
// finish previous n - 1 boxes
|
|
22
|
+
if (n - box_n > 1) {
|
|
23
|
+
boxes.slice(box_n, n - 1).forEach(finish);
|
|
24
|
+
box_n = n - 1;
|
|
25
|
+
}
|
|
19
26
|
el && !$('.pagesjs-body', el) && el.insertAdjacentHTML('afterbegin', tpl.innerHTML);
|
|
20
27
|
box = el || tpl.cloneNode(true); box_body = box.children[1];
|
|
21
28
|
box_cls.length && box.classList.add(...box_cls);
|
|
22
|
-
boxes.push(box); // store new pages in boxes
|
|
29
|
+
boxes.includes(box) || boxes.push(box); // store new pages in boxes
|
|
23
30
|
return box;
|
|
24
31
|
}
|
|
25
|
-
|
|
32
|
+
// compute page numbers and temporarily remove the box
|
|
33
|
+
function finish(box) {
|
|
26
34
|
const h = box.scrollHeight;
|
|
27
35
|
if (h > H && !box.dataset.pagesOffset) {
|
|
28
36
|
const n = calcPages(box, h);
|
|
29
37
|
if (n > 1) box.dataset.pagesOffset = n;
|
|
30
38
|
}
|
|
31
|
-
box.
|
|
39
|
+
box.remove();
|
|
32
40
|
}
|
|
33
41
|
function removeBlank(el) {
|
|
34
42
|
if (!el) return false;
|
|
@@ -37,7 +45,6 @@
|
|
|
37
45
|
return v;
|
|
38
46
|
}
|
|
39
47
|
function fill(el) {
|
|
40
|
-
const n1 = boxes.length;
|
|
41
48
|
// if the element is already a page, just use it as the box
|
|
42
49
|
if (el.classList.contains('pagesjs-page')) {
|
|
43
50
|
box.after(newPage(el));
|
|
@@ -48,26 +55,26 @@
|
|
|
48
55
|
box.after(newPage()); // create a new empty page
|
|
49
56
|
}
|
|
50
57
|
} else {
|
|
51
|
-
// create a new box when too much content (exceeding original height)
|
|
52
|
-
if (box.scrollHeight > H) {
|
|
53
|
-
const [box2, box_body2] = [box, box_body]; // store old box
|
|
54
|
-
box2.after(newPage());
|
|
55
|
-
// if there's more than one child in the box, move the last child to next box
|
|
56
|
-
nChild(box_body2) > 1 && box_body.append(box_body2.lastChild);
|
|
57
|
-
}
|
|
58
58
|
box_body.append(el);
|
|
59
|
+
if (box.scrollHeight <= H) return;
|
|
60
|
+
const cls = el.classList;
|
|
61
|
+
// if el can be fragmented, add class *-last, otherwise remove class (e.g.,
|
|
62
|
+
// current box can't even hold el's first child so move whole el to new box)
|
|
63
|
+
const h0 = el.innerHTML;
|
|
59
64
|
fragment(el);
|
|
65
|
+
(cls.contains(fr_cls) && el.innerHTML !== h0) ? cls.add(fr_2) :
|
|
66
|
+
[el].concat(...$$(`.${fr_cls}`, el)).forEach(el => el.classList.remove(fr_cls, fr_1));
|
|
67
|
+
l_code = []; // clean up code lines
|
|
60
68
|
}
|
|
61
|
-
const n2 = boxes.length;
|
|
62
|
-
// mark all boxes (except the last one) with class 'pagesjs-done'
|
|
63
|
-
n2 > n1 && n2 > 1 && boxes.splice(0, n2 - 1).forEach(addOffset);
|
|
64
69
|
}
|
|
65
70
|
// break elements that are relatively easy to break (such as <ul>)
|
|
66
71
|
function fragment(el, container, parent, page) {
|
|
67
|
-
const tag = el.tagName, is_code = tag === 'CODE'
|
|
72
|
+
const tag = el.tagName, is_code = tag === 'CODE', cls = el.classList,
|
|
73
|
+
frag = cls.contains(fr_cls);
|
|
74
|
+
parent || frag && cls.remove(fr_1);
|
|
68
75
|
// if <code>, keep fragmenting; otherwise exit when box fits
|
|
69
|
-
if (!
|
|
70
|
-
|
|
76
|
+
if (!l_code.length && box.scrollHeight <= H) return;
|
|
77
|
+
parent ? cls.add(fr_cls) : (frag || cls.add(fr_cls, fr_1));
|
|
71
78
|
const box_cur = page || box, el2 = el.cloneNode(); // shallow clone (wrapper only)
|
|
72
79
|
// add the clone to current box, and move original el to next box
|
|
73
80
|
container ? container.append(el2) : (
|
|
@@ -76,7 +83,18 @@
|
|
|
76
83
|
// fragment <pre>'s <code> and <div>'s single child (e.g., #TOC > ul)
|
|
77
84
|
if (tag === 'PRE') {
|
|
78
85
|
const code = el.firstElementChild;
|
|
79
|
-
code?.tagName == 'CODE'
|
|
86
|
+
if (code?.tagName == 'CODE') {
|
|
87
|
+
const initial = l_code.length;
|
|
88
|
+
// store all lines in l_code
|
|
89
|
+
if (!initial) l_code = code.innerHTML.split('\n');
|
|
90
|
+
let n_code = l_code.length;
|
|
91
|
+
if (n_code > 1 && l_code[n_code - 1] === '') n_code -= 1; // ignore trailing \n
|
|
92
|
+
if (n_code > 1) {
|
|
93
|
+
if (!initial) h_code = code.offsetHeight / n_code; // approx line height
|
|
94
|
+
code.innerHTML = ''; // temporarily empty <code>; will use l_code
|
|
95
|
+
fragment(code, el2, el, box_cur);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
80
98
|
} else if (tag === 'DIV' && nChild(el) === 1) {
|
|
81
99
|
fragment(el.firstElementChild, el2, el, box_cur);
|
|
82
100
|
}
|
|
@@ -96,24 +114,47 @@
|
|
|
96
114
|
break;
|
|
97
115
|
}
|
|
98
116
|
}
|
|
99
|
-
// split lines in <code> and try to move
|
|
117
|
+
// split lines in <code> and try to move as many lines into el2 as possible
|
|
100
118
|
if (is_code) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
119
|
+
// figure out how many lines can fit the box via bisection
|
|
120
|
+
let i = 0, i1 = 1, i2 = n = l_code.length;
|
|
121
|
+
const sols = []; // solutions tried
|
|
122
|
+
function fillCode(el, i1, i2) {
|
|
123
|
+
el.innerHTML = l_code.slice(i1, i2).join('\n');
|
|
124
|
+
}
|
|
125
|
+
while (i2 - i1 > 1) {
|
|
126
|
+
fillCode(el2, 0, i || 1);
|
|
127
|
+
const delta = H - box_cur.offsetHeight;
|
|
128
|
+
if (delta === 0) {
|
|
129
|
+
i1 = i || 1; break;
|
|
130
|
+
}
|
|
131
|
+
if (delta < 0) {
|
|
132
|
+
if (i <= 0) break;
|
|
133
|
+
i2 = i;
|
|
134
|
+
} else {
|
|
135
|
+
i1 = i;
|
|
107
136
|
}
|
|
137
|
+
sols.push(i);
|
|
138
|
+
// estimate the number of (more or less) lines needed
|
|
139
|
+
const i3 = i + Math.round(delta / h_code);
|
|
140
|
+
// if a solution has been tried, shorten step and (in/de)crement by 1
|
|
141
|
+
i = sols.includes(i3) ? i + (delta > 0 ? 1 : -1) : i3;
|
|
142
|
+
(delta > 0 && i >= n) && (i2 = n + 1, i = n); // solution may be n
|
|
108
143
|
}
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
|
|
144
|
+
if (i > 0) {
|
|
145
|
+
fillCode(el2, 0, i1); l_code.splice(0, i1);
|
|
146
|
+
// exit if the rest of lines are empty
|
|
147
|
+
if (l_code.join('').trim() === '') {
|
|
148
|
+
container.before(parent); el.remove(); parent.append(el2);
|
|
149
|
+
boxes.pop().remove(); newPage(boxes[boxes.length - 1]);
|
|
150
|
+
return (l_code = []);
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
el2.innerHTML = ''; fillCode(el, 0); l_code = []; parent.classList.remove(fr_cls, fr_1);
|
|
112
154
|
}
|
|
113
155
|
}
|
|
114
156
|
const el2_empty = removeBlank(el2);
|
|
115
157
|
// if the clone is empty, remove it, otherwise keep fragmenting the remaining el
|
|
116
|
-
el2_empty && el.classList.remove(fr_cls);
|
|
117
158
|
if (!el2_empty || is_code || prev) fragment(container ? parent : el);
|
|
118
159
|
}
|
|
119
160
|
|
|
@@ -171,25 +212,30 @@
|
|
|
171
212
|
a.dataset.pageNumber = '000'; // placeholder for page numbers
|
|
172
213
|
});
|
|
173
214
|
|
|
215
|
+
const els = [];
|
|
216
|
+
$$('.body').forEach(el => {
|
|
217
|
+
const ch = [...el.children];
|
|
218
|
+
els.push(ch); ch.forEach(el => el.remove());
|
|
219
|
+
});
|
|
174
220
|
// iteratively add elements to pages
|
|
175
|
-
|
|
176
|
-
|
|
221
|
+
$$('.frontmatter, .abstract, #TOC:not(.chapter-toc)').forEach(el => {
|
|
222
|
+
(fill(el), book && box.after(newPage()));
|
|
177
223
|
});
|
|
178
|
-
$$('.body').forEach(el => {
|
|
224
|
+
$$('.body').forEach((el, i) => {
|
|
179
225
|
// preserve book chapter classes if exist
|
|
180
226
|
box_cls = ['chapter', 'appendix'].filter(i => el.classList.contains(i));
|
|
181
227
|
book && (box.innerText === '' ? newPage(box) : box.after(newPage()));
|
|
182
|
-
[
|
|
228
|
+
els[i].forEach(fill);
|
|
183
229
|
// clean up container and self if empty
|
|
184
230
|
removeBlank(el.parentNode); removeBlank(el);
|
|
185
231
|
});
|
|
186
|
-
boxes.forEach(
|
|
232
|
+
boxes.slice(box_n).forEach(finish); // finish the rest of pages
|
|
187
233
|
cls.remove('pagesjs-filling');
|
|
188
234
|
|
|
189
235
|
// add page number, title, etc. to data-* attributes of page elements
|
|
190
236
|
let page_title, i = 0;
|
|
191
|
-
|
|
192
|
-
|
|
237
|
+
boxes = boxes.filter(box => !removeBlank(box)); // remove empty pages
|
|
238
|
+
boxes.forEach(box => {
|
|
193
239
|
if (book) {
|
|
194
240
|
if ($('.frontmatter', box)) return; // skip book frontmatter page
|
|
195
241
|
$(ps, box) && (page_title = ''); // empty title for first page of chapter
|
|
@@ -213,15 +259,15 @@
|
|
|
213
259
|
});
|
|
214
260
|
});
|
|
215
261
|
|
|
262
|
+
// unhide all pages
|
|
263
|
+
d.body.prepend(...boxes);
|
|
264
|
+
|
|
216
265
|
// add page numbers to TOC with data-* attributes
|
|
217
266
|
$$('#TOC a[href^="#"]').forEach(a => {
|
|
218
267
|
const id = CSS.escape(a.getAttribute('href').replace(/^#/, '')),
|
|
219
268
|
p = $(`.pagesjs-page:has(#${id}) .pagesjs-header`);
|
|
220
269
|
a.dataset.pageNumber = p ? p.dataset.pageNumber : '';
|
|
221
270
|
});
|
|
222
|
-
|
|
223
|
-
// unhide all pages
|
|
224
|
-
$$('.pagesjs-done').forEach(box => box.classList.remove('pagesjs-done'));
|
|
225
271
|
}
|
|
226
272
|
addEventListener('beforeprint', paginate);
|
|
227
273
|
// persistent pagination upon page reload (press p again to cancel it)
|
package/js/pages.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(e=>{function t(t,n=e){return n?.querySelector(t)}function
|
|
1
|
+
(e=>{function t(t,n=e){return n?.querySelector(t)}function s(t,n=e){return n?n.querySelectorAll(t):[]}function r(e){return e.childElementCount}const a=e.createElement("div"),i=s("h1").length>1,o="pagesjs-fragmented",c="fragment-first",l=["top","bottom"].map((t=>+getComputedStyle(e.documentElement).getPropertyValue(`--paper-margin-${t}`).replace("px","")||0));a.className="pagesjs-page",a.innerHTML='<div class="pagesjs-header"></div>\n<div class="pagesjs-body"></div>\n<div class="pagesjs-footer"></div>';let f,d,p,h,g=[],u=[],m=0,E=[];function b(e){const n=u.length;return n-m>1&&(u.slice(m,n-1).forEach(L),m=n-1),e&&!t(".pagesjs-body",e)&&e.insertAdjacentHTML("afterbegin",a.innerHTML),f=e||a.cloneNode(!0),d=f.children[1],g.length&&f.classList.add(...g),u.includes(f)||u.push(f),f}function L(e){const t=e.scrollHeight;if(t>p&&!e.dataset.pagesOffset){const n=function(e,t){let n=+e.dataset.pagesOffset;if(n)return n;if(n=Math.ceil(t/p),n<=1)return n;const r=l.concat([...s("thead",e)].map((e=>+e.offsetHeight))).reduce(((e,t)=>e+t));if(!r)return n;function a(){return Math.ceil((t+(n-1)*r)/p)}let i=a();for(;i>n;)n=i,i=a();return n}(e,t);n>1&&(e.dataset.pagesOffset=n)}e.remove()}function v(e){if(!e)return!1;const t=""===e.innerText.trim();return t&&e.remove(),t}function T(e){if(e.classList.contains("pagesjs-page"))f.after(b(e)),r(e)>3&&(d.append(...[...e.children].slice(3)),f.after(b()));else{if(d.append(e),f.scrollHeight<=p)return;const t=e.classList,n=e.innerHTML;j(e),t.contains(o)&&e.innerHTML!==n?t.add("fragment-last"):[e].concat(...s(`.${o}`,e)).forEach((e=>e.classList.remove(o,c))),E=[]}}function j(e,t,s,a){const i=e.tagName,l="CODE"===i,g=e.classList,m=g.contains(o);if(s||m&&g.remove(c),!E.length&&f.scrollHeight<=p)return;s?g.add(o):m||g.add(o,c);const L=a||f,T=e.cloneNode();if(t?t.append(T):(d.append(T),L.after(b()),d.append(e)),"PRE"===i){const y=e.firstElementChild;if("CODE"==y?.tagName){const O=E.length;O||(E=y.innerHTML.split("\n"));let M=E.length;M>1&&""===E[M-1]&&(M-=1),M>1&&(O||(h=y.offsetHeight/M),y.innerHTML="",j(y,T,e,L))}}else"DIV"===i&&1===r(e)&&j(e.firstElementChild,T,e,L);const H=T.previousElementSibling;if(["UL","OL","BLOCKQUOTE"].includes(i)&&r(e)>1)for(;;){const N=e.firstChild;if(!N)break;if(T.append(N),!N.nodeName.startsWith("#")&&L.scrollHeight>p){(H||r(T)>1)&&e.insertBefore(N,e.firstChild),"OL"===i&&(e.start+=r(T));break}}if(l){let S=0,x=1,k=n=E.length;const A=[];function C(e,t,n){e.innerHTML=E.slice(t,n).join("\n")}for(;k-x>1;){C(T,0,S||1);const D=p-L.offsetHeight;if(0===D){x=S||1;break}if(D<0){if(S<=0)break;k=S}else x=S;A.push(S);const I=S+Math.round(D/h);S=A.includes(I)?S+(D>0?1:-1):I,D>0&&S>=n&&(k=n+1,S=n)}if(S>0){if(C(T,0,x),E.splice(0,x),""===E.join("").trim())return t.before(s),e.remove(),s.append(T),u.pop().remove(),b(u[u.length-1]),E=[]}else T.innerHTML="",C(e,0),E=[],s.classList.remove(o,c)}(!v(T)||l||H)&&j(t?s:e)}function H(e){return e&&(e.dataset.shortTitle||e.innerText)}const C=H(t("h1.title, .frontmatter h1, .title, h1")),y=(i?"h1":"h2")+":not(.frontmatter *)";function O(){if("complete"!==e.readyState)return setTimeout(O,10);const n=e.body.classList;if(n.contains("pagesjs"))return;n.add("pagesjs"),e.body.insertAdjacentElement("afterbegin",b()),p=f.clientHeight||window.innerHeight,s(":is(#TOC, .footnotes, .chapter-before, .chapter-after):is(.side-left, .side-right).side").forEach((e=>{e.classList.remove("side","side-left","side-right")})),n.add("pagesjs-filling"),s('#TOC a[href^="#"]').forEach((t=>{const n=e.createElement("span"),s=t.firstElementChild;for(s?.classList.contains("section-number")?s.after(n):t.insertAdjacentElement("afterbegin",n);n.nextSibling;)n.append(n.nextSibling);t.insertAdjacentHTML("beforeend",'<span class="dot-leader"></span>'),t.dataset.pageNumber="000"}));const r=[];s(".body").forEach((e=>{const t=[...e.children];r.push(t),t.forEach((e=>e.remove()))})),s(".frontmatter, .abstract, #TOC:not(.chapter-toc)").forEach((e=>{T(e),i&&f.after(b())})),s(".body").forEach(((e,t)=>{g=["chapter","appendix"].filter((t=>e.classList.contains(t))),i&&(""===f.innerText?b(f):f.after(b())),r[t].forEach(T),v(e.parentNode),v(e)})),u.slice(m).forEach(L),n.remove("pagesjs-filling");let a,o=0;u=u.filter((e=>!v(e))),u.forEach((e=>{if(i){if(t(".frontmatter",e))return;t(y,e)&&(a="")}const n=+e.dataset.pagesOffset||1;n>1&&e.classList.add("page-multiple"),o+=n,e.classList.add("page-"+(o%2==0?"even":"odd"));const r={pageNumber:o,mainTitle:C,pageTitle:a};let c;[e.children[0],e.children[2]].forEach((e=>{for(const t in r)r[t]&&(e.dataset[t]=r[t])})),a=H([...s(y,e)].pop())||a,s(".footnotes",e).forEach(((t,n)=>{0===n?(c=t,e.children[1].after(t)):(c.append(...t.children),t.remove())}))})),e.body.prepend(...u),s('#TOC a[href^="#"]').forEach((e=>{const n=t(`.pagesjs-page:has(#${CSS.escape(e.getAttribute("href").replace(/^#/,""))}) .pagesjs-header`);e.dataset.pageNumber=n?n.dataset.pageNumber:""}))}addEventListener("beforeprint",O);let M=sessionStorage.getItem("pagesjs");M&&O(),addEventListener("keypress",(e=>"p"===e.key&&(O(),M=M?"":"1",sessionStorage.setItem("pagesjs",M),M||location.reload())))})(document);
|
|
2
2
|
//# sourceMappingURL=pages.min.js.map
|
package/js/pages.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["d","$","s","el","querySelector","$$","querySelectorAll","nChild","childElementCount","tpl","createElement","book","length","
|
|
1
|
+
{"version":3,"names":["d","$","s","el","querySelector","$$","querySelectorAll","nChild","childElementCount","tpl","createElement","book","length","fr_cls","fr_1","tb","map","i","getComputedStyle","documentElement","getPropertyValue","replace","className","innerHTML","box","box_body","H","h_code","box_cls","boxes","box_n","l_code","newPage","n","slice","forEach","finish","insertAdjacentHTML","cloneNode","children","classList","add","includes","push","h","scrollHeight","dataset","pagesOffset","Math","ceil","m","concat","offsetHeight","reduce","m1","m2","newPages","n2","calcPages","remove","removeBlank","v","innerText","trim","fill","contains","after","append","cls","h0","fragment","container","parent","page","tag","tagName","is_code","frag","box_cur","el2","code","firstElementChild","initial","split","n_code","prev","previousElementSibling","item","firstChild","nodeName","startsWith","insertBefore","start","i1","i2","sols","fillCode","join","delta","i3","round","splice","before","pop","shortTitle","main","ps","paginate","readyState","setTimeout","body","insertAdjacentElement","clientHeight","window","innerHeight","a","nextSibling","pageNumber","els","ch","filter","parentNode","page_title","N","info","mainTitle","pageTitle","ft","key","prepend","p","CSS","escape","getAttribute","addEventListener","pg","sessionStorage","getItem","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