@xiee/utils 1.12.12 → 1.12.14
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/book.css +2 -8
- package/css/book.min.css +1 -1
- package/css/default.css +5 -0
- package/css/default.min.css +1 -1
- package/js/snap.js +1 -1
- package/package.json +1 -1
package/css/book.css
CHANGED
|
@@ -31,18 +31,12 @@ body {
|
|
|
31
31
|
margin-left: auto;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
.main-number::before {
|
|
34
|
+
.chapter:not(.appendix) .main-number::before {
|
|
35
35
|
content: "Chapter ";
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
.chapter:not(.appendix) .main-number::after {
|
|
38
38
|
content: none;
|
|
39
39
|
}
|
|
40
|
-
.main-number::after {
|
|
41
|
-
content: none;
|
|
42
|
-
}
|
|
43
|
-
.appendix .main-number::after {
|
|
44
|
-
content: ".";
|
|
45
|
-
}
|
|
46
40
|
.chapter h1 {
|
|
47
41
|
margin: 1em auto 3em;
|
|
48
42
|
border-bottom: 1px solid;
|
package/css/book.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
body{font-size:1em;font-family:Palatino,Georgia,serif}.body .side,.footnotes,.side,code{font-size:.85em}.chapter,.frontmatter{min-height:calc(100vh - 1em)}.frontmatter{background-image:radial-gradient(#b6cee2 1px,#fff 1px);background-size:2em 2em;background-color:#fff;padding-bottom:0}.frontmatter>div{margin:0 -1em;background-color:#ebf6f9;padding:1em}.frontmatter .title{padding:20vh 1em 1em;margin-top:-1em}#TOC{margin-left:calc(-200px - .8em)}@media (max-width:1280px){#TOC{margin-left:auto}}.
|
|
1
|
+
body{font-size:1em;font-family:Palatino,Georgia,serif}.body .side,.footnotes,.side,code{font-size:.85em}.chapter,.frontmatter{min-height:calc(100vh - 1em)}.frontmatter{background-image:radial-gradient(#b6cee2 1px,#fff 1px);background-size:2em 2em;background-color:#fff;padding-bottom:0}.frontmatter>div{margin:0 -1em;background-color:#ebf6f9;padding:1em}.frontmatter .title{padding:20vh 1em 1em;margin-top:-1em}#TOC{margin-left:calc(-200px - .8em)}@media (max-width:1280px){#TOC{margin-left:auto}}.chapter:not(.appendix) .main-number::before{content:"Chapter "}.chapter:not(.appendix) .main-number::after{content:none}.chapter h1{margin:1em auto 3em;border-bottom:1px solid}h1 .section-number{display:inline-block;border-bottom:4px solid;margin-bottom:-4px}.body h2{border-bottom-style:dashed}
|
package/css/default.css
CHANGED
|
@@ -53,6 +53,11 @@ hr, .footnotes::before { border: 1px dashed #ddd; }
|
|
|
53
53
|
table, .body h2 { border-bottom: 1px solid #666; }
|
|
54
54
|
.body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }
|
|
55
55
|
.main-number::after { content: "."; }
|
|
56
|
+
.ref-number-fig::after, .ref-number-tab::after { content: ":"; }
|
|
57
|
+
.cross-ref-chp::before { content: "Chapter "; }
|
|
58
|
+
.cross-ref-sec::before { content: "Section "; }
|
|
59
|
+
.cross-ref-fig::before, .ref-number-fig::before { content: "Figure "; }
|
|
60
|
+
.cross-ref-tab::before, .ref-number-tab::before { content: "Table "; }
|
|
56
61
|
.footnote-ref a::before { content: "["; }
|
|
57
62
|
.footnote-ref a::after { content: "]"; }
|
|
58
63
|
section.footnotes { margin-top: 2em; }
|
package/css/default.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
body{font-family:sans-serif;max-width:800px;margin:auto;padding:1em;line-height:1.5;box-sizing:border-box}.footnotes,body,code{font-size:.9em}li li{font-size:.95em}*,:after,:before{box-sizing:inherit}a{color:#4682b4}img,pre{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}.box>div,.line-numbers,:not(pre)>code,code[class]{background-color:#f8f8f8}.box,pre>.language-plain,pre>code:not([class]){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{display:table;padding:0 0 0 1em}pre[class*=language-].line-numbers{padding:1em 0;margin-left:3.5em}.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{margin:auto;border-top:1px solid #666}table thead th{border-bottom:1px solid #ddd}td,th{padding:5px}tfoot,thead,tr:nth-child(2n){background:#eee}blockquote{color:#666;margin:0;padding:1px 1em;border-left:.5em solid #eee}.footnotes::before,hr{border:1px dashed #ddd}.frontmatter{text-align:center}#TOC .numbered li{list-style:none}#TOC .numbered{padding-left:0}#TOC .numbered ul{padding-left:1em}.body h2,table{border-bottom:1px solid #666}.appendix~h2,.body .appendix{border-bottom-style:dashed}.main-number::after{content:"."}.footnote-ref a::before{content:"["}.footnote-ref a::after{content:"]"}section.footnotes{margin-top:2em}section.footnotes::before{content:"";display:block;max-width:20em}@media print{body{font-size:12pt;max-width:100%}img,tr{page-break-inside:avoid}}@media only screen and (min-width:992px){pre{white-space:pre}}
|
|
1
|
+
body{font-family:sans-serif;max-width:800px;margin:auto;padding:1em;line-height:1.5;box-sizing:border-box}.footnotes,body,code{font-size:.9em}li li{font-size:.95em}*,:after,:before{box-sizing:inherit}a{color:#4682b4}img,pre{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}.box>div,.line-numbers,:not(pre)>code,code[class]{background-color:#f8f8f8}.box,pre>.language-plain,pre>code:not([class]){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{display:table;padding:0 0 0 1em}pre[class*=language-].line-numbers{padding:1em 0;margin-left:3.5em}.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{margin:auto;border-top:1px solid #666}table thead th{border-bottom:1px solid #ddd}td,th{padding:5px}tfoot,thead,tr:nth-child(2n){background:#eee}blockquote{color:#666;margin:0;padding:1px 1em;border-left:.5em solid #eee}.footnotes::before,hr{border:1px dashed #ddd}.frontmatter{text-align:center}#TOC .numbered li{list-style:none}#TOC .numbered{padding-left:0}#TOC .numbered ul{padding-left:1em}.body h2,table{border-bottom:1px solid #666}.appendix~h2,.body .appendix{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:"["}.footnote-ref a::after{content:"]"}section.footnotes{margin-top:2em}section.footnotes::before{content:"";display:block;max-width:20em}@media print{body{font-size:12pt;max-width:100%}img,tr{page-break-inside:avoid}}@media only screen and (min-width:992px){pre{white-space:pre}}
|
package/js/snap.js
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
['load', 'resize'].forEach(evt => window.addEventListener(evt, setScale));
|
|
190
|
-
// restore
|
|
190
|
+
// restore previously saved body class
|
|
191
191
|
const bc = sessionStorage.getItem('body-class');
|
|
192
192
|
if (bc) d.body.className += ' ' + bc;
|
|
193
193
|
})(document);
|