@xiee/utils 1.12.24 → 1.12.25
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/default.css +10 -8
- package/css/default.min.css +1 -1
- package/css/default.min.css.map +1 -1
- package/package.json +1 -1
package/css/default.css
CHANGED
|
@@ -13,7 +13,8 @@ ul:has(li > input[type="checkbox"]) { list-style: none; padding-left: 1em; }
|
|
|
13
13
|
a { color: steelblue; }
|
|
14
14
|
pre, img { max-width: 100%; }
|
|
15
15
|
pre, pre:hover { white-space: pre-wrap; word-break: break-all; }
|
|
16
|
-
pre code { display: block;
|
|
16
|
+
pre code { display: block; }
|
|
17
|
+
pre:not(.line-numbers) code { overflow-x: auto; }
|
|
17
18
|
code { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; }
|
|
18
19
|
:not(pre) > code, code[class], .line-numbers, .box > div { background-color: #f8f8f8; }
|
|
19
20
|
pre > code:not([class]), pre > .language-plain, .box { background-color: inherit; border: 1px solid #eee; }
|
|
@@ -25,17 +26,18 @@ pre > .error { background: #f8d7da; border-color: #f8d7da; }
|
|
|
25
26
|
opacity: .4;
|
|
26
27
|
border: 1px dashed #666;
|
|
27
28
|
border-left: 2px solid;
|
|
29
|
+
&:hover { opacity: inherit; }
|
|
30
|
+
}
|
|
31
|
+
pre[class*=language-].line-numbers {
|
|
32
|
+
padding-top: 1em;
|
|
33
|
+
padding-bottom: 1em;
|
|
34
|
+
code { padding: initial; }
|
|
28
35
|
}
|
|
29
|
-
.code-fence:hover { opacity: inherit; }
|
|
30
|
-
.line-numbers code { display: table; padding: 0 0 0 1em; }
|
|
31
|
-
pre[class*=language-].line-numbers { padding: 1em 0; margin-left: 3.5em; }
|
|
32
|
-
.line-numbers .line-numbers-rows { left: -3.5em; }
|
|
33
|
-
.line-numbers-rows > span:before { padding-right: .5em; }
|
|
34
36
|
.box { margin: 1em 0; }
|
|
35
37
|
.box > :first-child > p:first-child, .box > :last-child > p:last-child { padding: 1em; }
|
|
36
38
|
.box > :first-child, .box > :first-child > p:first-child { margin-top: 0; }
|
|
37
39
|
.box > :last-child, .box > :last-child > p:last-child { margin-bottom: 0; }
|
|
38
|
-
.figure > p { text-align: center; }
|
|
40
|
+
.figure > p:has(img) { text-align: center; }
|
|
39
41
|
table {
|
|
40
42
|
margin: auto; border-top: 1px solid #666;
|
|
41
43
|
thead th { border-bottom: 1px solid #ddd; }
|
|
@@ -77,5 +79,5 @@ section.footnotes {
|
|
|
77
79
|
tr, img { page-break-inside: avoid; }
|
|
78
80
|
}
|
|
79
81
|
@media only screen and (min-width: 992px) {
|
|
80
|
-
pre { white-space: pre; }
|
|
82
|
+
pre:not(.line-numbers) { white-space: pre; }
|
|
81
83
|
}
|
package/css/default.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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
|
|
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}pre:not(.line-numbers) code{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;&:hover{opacity:inherit}}pre[class*=language-].line-numbers{padding-top:1em;padding-bottom:1em;& code{padding:initial}}.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:has(img){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:not(.line-numbers){white-space:pre}}
|
|
2
2
|
/*# sourceMappingURL=default.min.css.map */
|
package/css/default.min.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,0GAQA,oCACA,sBACA,iEACA,oCACA,gBACA,uBACA,wDACA,
|
|
1
|
+
{"version":3,"mappings":"AAAA,0GAQA,oCACA,sBACA,iEACA,oCACA,gBACA,uBACA,wDACA,uBACA,4CACA,2FACA,2EACA,8FACA,kCACA,qDACA,mDACA,yCACA,oEAIE,yBAEF,sEAGE,wBAEF,kBACA,0EACA,+DACA,+DACA,qCACA,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; }\npre:not(.line-numbers) code { 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 &:hover { opacity: inherit; }\n}\npre[class*=language-].line-numbers {\n padding-top: 1em;\n padding-bottom: 1em;\n code { padding: initial; }\n}\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:has(img) { 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:not(.line-numbers) { white-space: pre; }\n}\n"],"names":[]}
|