@xiee/utils 1.13.45 โ 1.13.46
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/README.md +2 -2
- package/css/book-litedown.css +38 -0
- package/css/book-litedown.min.css +2 -0
- package/css/book-litedown.min.css.map +1 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[](https://www.jsdelivr.com/package/npm/@xiee/utils)
|
|
3
3
|
|
|
4
|
-
This repo contains miscellaneous tools and utilities written in
|
|
5
|
-
are published as an NPM package
|
|
4
|
+
This repo contains miscellaneous lightweight tools and utilities written in
|
|
5
|
+
JavaScript. They are published as an NPM package
|
|
6
6
|
[`@xiee/utils`](https://www.npmjs.com/package/@xiee/utils). You can load them
|
|
7
7
|
via [jsdelivr.com](https://www.jsdelivr.com), e.g.,
|
|
8
8
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* CSS for https://yihui.org/litedown/ */
|
|
2
|
+
|
|
3
|
+
/* hide 4th-level TOC items when printing to PDF */
|
|
4
|
+
.pagesjs #TOC > ul > li > ul > li > ul > li > ul {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* a tale of two buttons */
|
|
9
|
+
.new-road {
|
|
10
|
+
p {
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
gap: .5em;
|
|
14
|
+
}
|
|
15
|
+
button::before { font-size: 200%; }
|
|
16
|
+
.old-knit, .new-fuse {
|
|
17
|
+
&:hover::before { content: "โ "; }
|
|
18
|
+
}
|
|
19
|
+
.old-knit {
|
|
20
|
+
&::before { content: "๐งถ "; }
|
|
21
|
+
&:focus::before { content: "๐ก "; }
|
|
22
|
+
}
|
|
23
|
+
.new-fuse::before { content: "โฏ "; }
|
|
24
|
+
.new-preview::before { content: "โต "; }
|
|
25
|
+
.new-fuse:focus::before { content: "๐ "; }
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* arrange elements in columns */
|
|
29
|
+
.flex-col {
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
gap: .5em;
|
|
33
|
+
* {
|
|
34
|
+
flex: 1;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.larger { font-size: 1.5em; }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.pagesjs #TOC>ul>li>ul>li>ul>li>ul{display:none}.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}}.larger{font-size:1.5em}
|
|
2
|
+
/*# sourceMappingURL=book-litedown.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAGA,gDAKA,UACE,iDAKA,+BACA,wBACE,+BAEF,YACE,yBACA,gCAEF,kCACA,qCACA,0CAIF,8DAIE,YAKF","sources":["book-litedown.css"],"sourcesContent":["/* CSS for https://yihui.org/litedown/ */\n\n/* hide 4th-level TOC items when printing to PDF */\n.pagesjs #TOC > ul > li > ul > li > ul > li > ul {\n display: none;\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}\n\n.larger { font-size: 1.5em; }\n"],"names":[]}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiee/utils",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.46",
|
|
4
4
|
"description": "Miscellaneous tools and utilities to manipulate HTML pages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
7
|
},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/yihui/
|
|
10
|
+
"url": "git+https://github.com/yihui/lite.js.git"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Yihui Xie <xie@yihui.name> (https://yihui.org)",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"bugs": {
|
|
24
|
-
"url": "https://github.com/yihui/
|
|
24
|
+
"url": "https://github.com/yihui/lite.js/issues"
|
|
25
25
|
},
|
|
26
|
-
"homepage": "https://github.com/yihui/
|
|
26
|
+
"homepage": "https://github.com/yihui/lite.js#readme"
|
|
27
27
|
}
|