@xiee/utils 1.12.6 → 1.12.8
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 +21 -0
- package/css/book.min.css +1 -1
- package/css/default.css +2 -2
- package/css/default.min.css +1 -1
- package/package.json +1 -1
package/css/book.css
CHANGED
|
@@ -23,4 +23,25 @@ body {
|
|
|
23
23
|
padding: 20vh 1em 1em;
|
|
24
24
|
margin-top: -1em;
|
|
25
25
|
}
|
|
26
|
+
.main-number::before {
|
|
27
|
+
content: "Chapter ";
|
|
28
|
+
}
|
|
29
|
+
.appendix .main-number::before {
|
|
30
|
+
content: none;
|
|
31
|
+
}
|
|
32
|
+
.main-number::after {
|
|
33
|
+
content: none;
|
|
34
|
+
}
|
|
35
|
+
.appendix .main-number::after {
|
|
36
|
+
content: ".";
|
|
37
|
+
}
|
|
38
|
+
.chapter h1 {
|
|
39
|
+
margin: 1em auto 3em;
|
|
40
|
+
border-bottom: 1px solid;
|
|
41
|
+
}
|
|
42
|
+
h1 .section-number {
|
|
43
|
+
display: inline-block;
|
|
44
|
+
border-bottom: 4px solid;
|
|
45
|
+
margin-bottom: -4px;
|
|
46
|
+
}
|
|
26
47
|
/* TODO: style for h1.part and printing */
|
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}
|
|
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}.main-number::before{content:"Chapter "}.appendix .main-number::before{content:none}.main-number::after{content:none}.appendix .main-number::after{content:"."}.chapter h1{margin:1em auto 3em;border-bottom:1px solid}h1 .section-number{display:inline-block;border-bottom:4px solid;margin-bottom:-4px}
|
package/css/default.css
CHANGED
|
@@ -42,8 +42,8 @@ thead, tfoot, tr:nth-child(even) { background: #eee; }
|
|
|
42
42
|
blockquote {
|
|
43
43
|
color: #666;
|
|
44
44
|
margin: 0;
|
|
45
|
-
padding
|
|
46
|
-
border-left:
|
|
45
|
+
padding: 1px 1em;
|
|
46
|
+
border-left: .5em solid #eee;
|
|
47
47
|
}
|
|
48
48
|
hr, .footnotes::before { border: 1px dashed #ddd; }
|
|
49
49
|
.frontmatter { text-align: center; }
|
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
|
|
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}}
|