@wulechuan/css-stylus-markdown-themes 7.7.0 → 7.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/ReadMe.md +2 -2
  2. package/package.json +4 -4
  3. package//346/226/207/346/241/243/351/233/206//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/225/210/346/236/234/347/244/272/344/276/213/351/233/206//345/216/237/345/247/213/347/232/204-markdown-/346/240/274/345/274/217/347/232/204/346/226/207/347/253/240/theming-example-article.en-US.md +4 -4
  4. package//346/226/207/346/241/243/351/233/206//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/225/210/346/236/234/347/244/272/344/276/213/351/233/206//345/216/237/345/247/213/347/232/204-markdown-/346/240/274/345/274/217/347/232/204/346/226/207/347/253/240/theming-example-article.zh-hans-CN.md +6 -6
  5. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206/javascript/table-of-contents-and-back-to-top-anchor-behaviors.js +26 -1
  6. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206/javascript/table-of-contents-and-back-to-top-anchor-behaviors.min.js +1 -1
  7. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown--firefox-addon.default.css +64 -33
  8. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown--typora.default.css +64 -33
  9. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown--vscode.default.min.css +2 -2
  10. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--no-toc.css +84 -53
  11. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--no-toc.min.css +2 -2
  12. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--with-toc.css +84 -53
  13. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--with-toc.min.css +2 -2
  14. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--wrapped--no-toc.css +84 -53
  15. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--wrapped--no-toc.min.css +2 -2
  16. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--wrapped--with-toc.css +84 -53
  17. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--wrapped--with-toc.min.css +2 -2
  18. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--no-toc.css +84 -53
  19. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--no-toc.min.css +2 -2
  20. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--with-toc.css +84 -53
  21. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--with-toc.min.css +2 -2
  22. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--wrapped--no-toc.css +84 -53
  23. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--wrapped--no-toc.min.css +2 -2
  24. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--wrapped--with-toc.css +84 -53
  25. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--wrapped--with-toc.min.css +2 -2
  26. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--no-toc.css +84 -53
  27. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--no-toc.min.css +2 -2
  28. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--with-toc.css +84 -53
  29. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--with-toc.min.css +2 -2
  30. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--wrapped--no-toc.css +84 -53
  31. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--wrapped--no-toc.min.css +2 -2
  32. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--wrapped--with-toc.css +84 -53
  33. package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--wrapped--with-toc.min.css +2 -2
package/ReadMe.md CHANGED
@@ -353,7 +353,7 @@ declare type 范_吴乐川用于美化文章的层叠样式表集_拾取默认Ja
353
353
  ```
354
354
 
355
355
 
356
- #### 重大变更记录
356
+ ## 重大变更记录
357
357
 
358
358
  - 2022 年 4 月 27 日,本工具之版本从 `v7.4.2` 升迁至 `v7.5.0` 时, JavaScript 代码没有任何变动。**但针对 TypeScript 的类型定义全部更名。** 由原来的以“`类型定义之`”开头,统一变更为以“`范_`”开头。故而有此版本变动。
359
359
 
@@ -387,7 +387,7 @@ declare type 范_吴乐川用于美化文章的层叠样式表集_拾取默认Ja
387
387
  1. 旧版代码不复存在。
388
388
  2. 当前的范文截图常常与代码所能产出之真正面貌有所差异,因为范文更新进度多半时候落后于代码,也落后于 NPM 版本发布。
389
389
 
390
- > 最末发布的截图系针对本工具之 `v7.6.0` 版,各图均制作于 2022 年 5 月 1 日。
390
+ > 最末发布的截图系针对本工具之 `v7.8.0` 版,各图均制作于 2022 年 5 月 8 日。
391
391
  >
392
392
  > 但若再有新图发布替换旧图,亦可因为本人遗漏对此文之修订而令上述版本、发布日期均不实。
393
393
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wulechuan/css-stylus-markdown-themes",
3
- "version": "7.7.0",
3
+ "version": "7.8.0",
4
4
  "author": "吴乐川 <wulechuan@live.com>",
5
5
  "license": "WTFPL",
6
6
  "description": "此为吴乐川的《HTML 文章排版与配色之方案集与相关制作工具》。本工具可用于构建一组层叠样式表(即 CSS )文件。本工具亦提供了一组现成的层叠样式表文件。凡这些样式表,均可用于美化超文本标记语言(即 HTML)格式的文章。于单一文章,不必同时取用多个样式表文件,仅取其一足矣。",
@@ -40,13 +40,13 @@
40
40
  "globby": "^11.1.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@wulechuan/cli-scripts--git-push": "^2.0.3",
44
- "@wulechuan/generate-html-via-markdown": "^3.2.3",
43
+ "@wulechuan/cli-scripts--git-push": "^2.0.4",
44
+ "@wulechuan/generate-html-via-markdown": "^3.2.4",
45
45
  "@wulechuan/gulp-classical-task-cycle": "^0.3.0",
46
46
  "chalk": "^4.1.2",
47
47
  "cssnano": "^5.1.7",
48
48
  "del": "^6.0.0",
49
- "eslint": "^8.14.0",
49
+ "eslint": "^8.15.0",
50
50
  "esm": "^3.2.25",
51
51
  "fs-extra": "^10.1.0",
52
52
  "gulp": "^4.0.2",
@@ -16,14 +16,14 @@ A link to a section of the page itselfs should look a bit different from a link
16
16
 
17
17
  See some lists below:
18
18
 
19
- - Reprehenderit aute ea pariatur tempor labore. Ullamco do incididunt sint velit duis ipsum irure amet voluptate. Cupidatat et do occaecat `nulla`. Nulla voluptate enim aute `magna do` non nisi qui qui et et irure. Dolore mollit dolore adipisicing consectetur sit. Aliquip fugiat Lorem in sunt Lorem aliqua ex in sunt.
19
+ - Reprehenderit aute ea pariatur tempor labore. Ullamco do incididunt sint velit duis ipsum irure amet voluptate. Cupidatat et do occaecat `nulla`. Nulla voluptate enim aute **emphasized texts _italic phrase_ nisi qui qui et et irure. Dolore mollit dolore adipisicing consectetur sit.** Aliquip fugiat Lorem in sunt Lorem aliqua ex in sunt.
20
20
 
21
- Nisi minim nulla elit non ut labore **aliquip et deserunt** culpa. Sint amet est laborum eu irure voluptate. In id et proident nulla pariatur ex cupidatat labore aliqua.
21
+ Nisi minim nulla elit non ut labore **aliquip et deserunt** culpa. Sint amet est laborum eu irure voluptate. In id et proident nulla pariatur ex cupi-datat labore aliqua.
22
22
 
23
- - Non adipisicing consectetur laborum quis anim ea consequat.
23
+ - Non adipisicing consectetur [`SOFTIMAGE.com`](https://www.softimage.com/) quis anim ea consequat.
24
24
 
25
25
  - Aliqua excepteur nostrud ad `ullamco` minim commodo esse
26
- - elit elit ea nulla.
26
+ - elit ~~[a linkage that simply does not exist](https://www.1.2.3.4.org/)~~ nulla.
27
27
  - Sint est elit sint minim.
28
28
 
29
29
  - Sunt ex eiusmod reprehenderit ullamco _fugiat_ ex duis cupidatat velit. Cillum commodo mollit dolore occaecat. Nulla Lorem deserunt minim ea nostrud reprehenderit do qui anim duis dolor.
@@ -158,21 +158,21 @@
158
158
  6. 第 1 级第 6 项。“`81192`,收到请返航。”
159
159
 
160
160
 
161
- ### 多级标题(这是 h3
161
+ ### 多级标题(这是 &lt;h3&gt;)
162
162
 
163
- #### 电影《哪吒之魔童降世》的剧情简介(这是 h4
163
+ #### 动画片《九色鹿》(这是 &lt;h4&gt;)
164
164
 
165
- 天地灵气孕育出一颗能量巨大的混元珠,元始天尊将混元珠提炼成灵珠和魔丸,灵珠投胎为人,助周伐纣时可堪大用;而魔丸则会诞出魔王,为祸人间。元始天尊启动了天劫咒语,3 年后天雷将会降临,摧毁魔丸。太乙受命将灵珠托生于陈塘关李靖家的儿子哪吒身上。然而阴差阳错,灵珠和魔丸竟然被掉包。本应是灵珠英雄的哪吒却成了混世大魔王。调皮捣蛋顽劣不堪的哪吒却徒有一颗做英雄的心。然而面对众人对魔丸的误解和即将来临的天雷的降临,哪吒是否命中注定会立地成魔?他将何去何从?
165
+ 《九色鹿》是根据敦煌壁画《鹿王本生》故事改编,由中国上海美术电影制片厂 1981 年出品的动画美术作品。由钱家骏、戴铁郎担任导演,潘絜兹任编剧。该片采用敦煌壁画的形式,用中国古代佛教绘画的风格讲述了九色鹿经常帮助遇到困难的人,在帮助过弄蛇人后,弄蛇人向国王告密出卖九色鹿,九色鹿用神力化险,弄蛇人受到应有报应的故事。
166
166
 
167
- #### Web API 可以分为很多类(这是 h4
167
+ #### Web API 可以分为很多类(这是 &lt;h4&gt;)
168
168
 
169
- ##### 文档对象模型(这是 h5
169
+ ##### 假如某标题非常长,则该标题可能折行,即占据多行,尤其是在窄小的浏览器窗口中(这是 &lt;h5&gt;)
170
170
 
171
171
  文档对象模型(DOM)将 web 页面与到脚本或编程语言连接起来。通常是指 JavaScript,但将 HTML、SVG 或 XML 文档建模为对象并不是 JavaScript 语言的一部分。DOM 模型用一个逻辑树来表示一个文档,树的每个分支的终点都是一个节点(node),每个节点都包含着对象(object)。DOM 的方法(method)让你可以用特定方式操作这个树,用这些方法你可以改变文档的结构、样式或者内容。节点可以关联上事件处理器,一旦某一事件被触发了,那些事件处理器就会被执行。<sup>[1]</sup>
172
172
 
173
173
 
174
174
 
175
- ##### 层叠样式表对象模型(这是 h5
175
+ ##### 层叠样式表对象模型(这是 &lt;h5&gt;)
176
176
 
177
177
  CSS Object Model 是一组允许用 JavaScript 操纵 CSS 的 API。 它是继 DOM 和 HTML API 之后,又一个操纵 CSS 的接口,使得我们能够动态地读取和修改 CSS 样式。<sup>[2]</sup>
178
178
 
@@ -17,7 +17,7 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
17
17
  const printDoubleLine = '='.repeat(fullWidth)
18
18
 
19
19
  const emailAddress = 'wulechuan@live.com'
20
- const timeStamp = '北京时间 2022-05-06'
20
+ const timeStamp = '北京时间 2022-05-08'
21
21
 
22
22
  const welcomeZhHansCN = '欢迎使用吴乐川设计的用于“控制文章目录之交互”的控制器。'
23
23
  const welcomeEn = 'Welcome to wulechuan\'s article TOC controller.'
@@ -336,3 +336,28 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
336
336
  }
337
337
  }
338
338
  })()
339
+
340
+ ;(function () {
341
+ const allH1ToH6Elements = Array.from(
342
+ document.querySelectorAll('h1, h2, h3, h4, h5, h6')
343
+ )
344
+
345
+ allH1ToH6Elements.forEach(hElement => {
346
+ const headeLinkAnchor = hElement.querySelector('.header-anchor')
347
+ if (headeLinkAnchor) {
348
+ const firstTextElement = headeLinkAnchor.nextSibling
349
+ // console.debug(`${hElement.tagName} "${firstTextElement.nodeValue}"`)
350
+ const firstTextElementContent = firstTextElement.nodeValue
351
+
352
+ if (/^ /.test(firstTextElementContent)) {
353
+ const singleSpacebar = document.createElement('span')
354
+ singleSpacebar.className = 'hidden-spacebar-between-head-linkage-and-head-text'
355
+ singleSpacebar.innerText = ' '
356
+
357
+ hElement.insertBefore(singleSpacebar, firstTextElement)
358
+
359
+ firstTextElement.nodeValue = firstTextElementContent.slice(1)
360
+ }
361
+ }
362
+ })
363
+ })()
@@ -1 +1 @@
1
- window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost=!1,window.atBeginingShouldCollapseAllTOCItemsOfLevelsGreaterThan=1,window.atBeginingShouldExpandTOCWhenWindowIsWideEnough=!1,function(){const e=["https://gitee.com/nanchang-wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns.git","https://github.com/wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns.git"],n=e.reduce(((e,n)=>Math.max(e,n.length)),0)+0,t=Math.floor(n/2)+6,o="-".repeat(n),l="=".repeat(n),s="wulechuan@live.com",i="北京时间 2022-05-06",c=[];"中国人——特别是汉族人,理应坚持广泛、规范地使用汉语。凡非必要之情形不说外国话、不用外国字。此乃天经地义!\n然则每当必要,亦不排斥采用外国之语言。不妨博世界之学问,养中国之精神。\n本人亦支持少数民族坚持采用自己民族的传统语言。仍须强调,凡中国人,皆应会用汉语、积极使用汉语,此乃中华各民族之大一统之必由。".split("\n").forEach((e=>{c.push(""),c.push(" "+e.slice(0,t-4));let n=e.slice(t-4);for(;n.length>0;){const e=n.match(/^(,|。|!|,”|。”|!”| 》,|》。| 》!| 》,”| 》。”| 》!”)/);if(e){const t=e[1],o=c[c.length-1];c[c.length-1]=o+t,n=n.slice(t.length)}const o=n.slice(0,t);o&&c.push(o),n=n.slice(o.length)}})),console.log(`\n${l}\n\n%c欢迎使用吴乐川设计的用于“控制文章目录之交互”的控制器。%c\n( Welcome to wulechuan's article TOC controller. )\n\n${" ".repeat(n-s.length)}${s}\n${" ".repeat(n-i.length-3)}${i}\n\n${o}\n\n${e.join("\n")}\n\n${o}\n${c.join("\n")}\n\n${l}\n\n\n`,["font-family: sans-serif;","font-size: 1.25em;","display: inline-block;","vertical-align: baseline;","color: #000;","text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.51);","background-color: #ffe0be;","border-radius: 3px;","margin: 0.5em 0;","padding: 0.5em 1em 0.5em 1.5em;"].join(""),null);const a="has-nested-toc-list",r="is-collapsed",d="is-expanded",u="markdown-article-toc-toggling-button",h=1e3,m=document.querySelector(".markdown-article");if(!m)return;const p=document.querySelector("nav.markdown-article-toc");if(!p)return;p.classList.toggle("should-show-2-levels-at-most",window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost);const f=document.querySelector(".markdown-article-back-to-top");f&&(f.onclick=function(){if(!O())return;k(!1)}),m.onclick=function(){if(!(window.innerWidth<=h))return;k(!1)};const w=document.body,g=w,y=w;let v;y.classList.add("markdown-article-toc-exists"),function e(n,t){const o=n.querySelector("ol, ul");if(!o)return;t||(t=1);o.classList.add(`toc-list-level-${t}`);Array.prototype.slice.apply(o.children).filter((e=>"li"===e.tagName.toLowerCase())).forEach((n=>{n.tocLevelId=t,n.classList.add(`toc-list-level-${t}-item`),e(n,t+1)}))}(p),function(){let e;if(Array.prototype.slice.apply(p.querySelectorAll("li")).forEach((e=>{if(e.querySelectorAll("li").length>0){const n=e.querySelector("a");e.classList.add(a),e.hasNestedList=!0,e.isCollapsible=!1,e.selfAnchor=n,e.onclick=b}})),window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost){const n=p.querySelector("ol, ul").children;e=n}else e=p.querySelectorAll("li.has-nested-toc-list");Array.prototype.slice.apply(e).forEach((e=>{e.isCollapsible=!0;C(e,e.tocLevelId<=window.atBeginingShouldCollapseAllTOCItemsOfLevelsGreaterThan)}))}(),function(){let e=document.querySelector(`.${u}`);e||(e=document.createElement("button"),e.className=u,g===w?g.insertBefore(e,document.scripts[0]):g.appendChild(e));null===e.onclick&&(e.onclick=S)}();let L="";function S(){k(!v)}function k(e){y.classList.toggle("markdown-article-toc-is-visible",e),v=e}function O(){return window.innerWidth<=600}function b(e){e.stopPropagation();const{srcElement:n}=e,t=this,{selfAnchor:o}=t;if(n!==t&&n!==o)return;const l=o.href;let s="";l.match(/#/)&&(s=`#${l.split("#").pop()}`);const i=!!s&&L!==s;L=s;let c=t.isCollapsible;if(O()&&(c=!1),c){const{classList:e}=t;C(t,e.contains(r)||i)}}function C(e,n){const{classList:t}=e;n?(t.contains(d)||t.add(d),t.contains(r)&&t.remove(r)):(t.contains(r)||t.add(r),t.contains(d)&&t.remove(d))}k(window.atBeginingShouldExpandTOCWhenWindowIsWideEnough&&window.innerWidth>=h)}();
1
+ window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost=!1,window.atBeginingShouldCollapseAllTOCItemsOfLevelsGreaterThan=1,window.atBeginingShouldExpandTOCWhenWindowIsWideEnough=!1,function(){const e=["https://gitee.com/nanchang-wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns.git","https://github.com/wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns.git"],n=e.reduce(((e,n)=>Math.max(e,n.length)),0)+0,t=Math.floor(n/2)+6,o="-".repeat(n),l="=".repeat(n),s="wulechuan@live.com",i="北京时间 2022-05-08",c=[];"中国人——特别是汉族人,理应坚持广泛、规范地使用汉语。凡非必要之情形不说外国话、不用外国字。此乃天经地义!\n然则每当必要,亦不排斥采用外国之语言。不妨博世界之学问,养中国之精神。\n本人亦支持少数民族坚持采用自己民族的传统语言。仍须强调,凡中国人,皆应会用汉语、积极使用汉语,此乃中华各民族之大一统之必由。".split("\n").forEach((e=>{c.push(""),c.push(" "+e.slice(0,t-4));let n=e.slice(t-4);for(;n.length>0;){const e=n.match(/^(,|。|!|,”|。”|!”| 》,|》。| 》!| 》,”| 》。”| 》!”)/);if(e){const t=e[1],o=c[c.length-1];c[c.length-1]=o+t,n=n.slice(t.length)}const o=n.slice(0,t);o&&c.push(o),n=n.slice(o.length)}})),console.log(`\n${l}\n\n%c欢迎使用吴乐川设计的用于“控制文章目录之交互”的控制器。%c\n( Welcome to wulechuan's article TOC controller. )\n\n${" ".repeat(n-s.length)}${s}\n${" ".repeat(n-i.length-3)}${i}\n\n${o}\n\n${e.join("\n")}\n\n${o}\n${c.join("\n")}\n\n${l}\n\n\n`,["font-family: sans-serif;","font-size: 1.25em;","display: inline-block;","vertical-align: baseline;","color: #000;","text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.51);","background-color: #ffe0be;","border-radius: 3px;","margin: 0.5em 0;","padding: 0.5em 1em 0.5em 1.5em;"].join(""),null);const a="has-nested-toc-list",r="is-collapsed",d="is-expanded",h="markdown-article-toc-toggling-button",u=1e3,m=document.querySelector(".markdown-article");if(!m)return;const f=document.querySelector("nav.markdown-article-toc");if(!f)return;f.classList.toggle("should-show-2-levels-at-most",window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost);const p=document.querySelector(".markdown-article-back-to-top");p&&(p.onclick=function(){if(!L())return;k(!1)}),m.onclick=function(){if(!(window.innerWidth<=u))return;k(!1)};const w=document.body,g=w,y=w;let S;y.classList.add("markdown-article-toc-exists"),function e(n,t){const o=n.querySelector("ol, ul");if(!o)return;t||(t=1);o.classList.add(`toc-list-level-${t}`);Array.prototype.slice.apply(o.children).filter((e=>"li"===e.tagName.toLowerCase())).forEach((n=>{n.tocLevelId=t,n.classList.add(`toc-list-level-${t}-item`),e(n,t+1)}))}(f),function(){let e;if(Array.prototype.slice.apply(f.querySelectorAll("li")).forEach((e=>{if(e.querySelectorAll("li").length>0){const n=e.querySelector("a");e.classList.add(a),e.hasNestedList=!0,e.isCollapsible=!1,e.selfAnchor=n,e.onclick=O}})),window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost){const n=f.querySelector("ol, ul").children;e=n}else e=f.querySelectorAll("li.has-nested-toc-list");Array.prototype.slice.apply(e).forEach((e=>{e.isCollapsible=!0;A(e,e.tocLevelId<=window.atBeginingShouldCollapseAllTOCItemsOfLevelsGreaterThan)}))}(),function(){let e=document.querySelector(`.${h}`);e||(e=document.createElement("button"),e.className=h,g===w?g.insertBefore(e,document.scripts[0]):g.appendChild(e));null===e.onclick&&(e.onclick=v)}();let b="";function v(){k(!S)}function k(e){y.classList.toggle("markdown-article-toc-is-visible",e),S=e}function L(){return window.innerWidth<=600}function O(e){e.stopPropagation();const{srcElement:n}=e,t=this,{selfAnchor:o}=t;if(n!==t&&n!==o)return;const l=o.href;let s="";l.match(/#/)&&(s=`#${l.split("#").pop()}`);const i=!!s&&b!==s;b=s;let c=t.isCollapsible;if(L()&&(c=!1),c){const{classList:e}=t;A(t,e.contains(r)||i)}}function A(e,n){const{classList:t}=e;n?(t.contains(d)||t.add(d),t.contains(r)&&t.remove(r)):(t.contains(r)||t.add(r),t.contains(d)&&t.remove(d))}k(window.atBeginingShouldExpandTOCWhenWindowIsWideEnough&&window.innerWidth>=u)}(),Array.from(document.querySelectorAll("h1, h2, h3, h4, h5, h6")).forEach((e=>{const n=e.querySelector(".header-anchor");if(n){const t=n.nextSibling,o=t.nodeValue;if(/^ /.test(o)){const n=document.createElement("span");n.className="hidden-spacebar-between-head-linkage-and-head-text",n.innerText=" ",e.insertBefore(n,t),t.nodeValue=o.slice(1)}}}));
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * 吾乃南昌吴乐川是也
16
16
  * wulechuan@live.com
17
- * 2022-05-06
17
+ * 2022-05-08
18
18
  *
19
19
  *
20
20
  *
@@ -454,12 +454,12 @@ blockquote {
454
454
  display: inline-block;
455
455
  vertical-align: top;
456
456
  border-style: solid;
457
- padding: 1px 1.25em 1px 1.15em;
457
+ padding: 1px 1.25em 1px 1.1em;
458
458
  margin-top: 0;
459
459
  margin-bottom: 1.5em;
460
- margin-left: 3em;
460
+ margin-left: 2.5em;
461
461
  margin-right: 1em;
462
- max-width: calc(100% - 4em);
462
+ max-width: calc(100% - 3.5em);
463
463
  }
464
464
  details {
465
465
  margin: 0.5em 1.5em 1.5em;
@@ -540,6 +540,15 @@ kbd {
540
540
  font-size: 80%;
541
541
  letter-spacing: 0;
542
542
  }
543
+ pre {
544
+ display: block;
545
+ box-sizing: border-box;
546
+ padding: 0 5em 0 0;
547
+ margin: 0.5em 2em 2em;
548
+ max-height: 75vh;
549
+ overflow: auto;
550
+ white-space: nowrap;
551
+ }
543
552
  pre,
544
553
  pre > code {
545
554
  letter-spacing: 0;
@@ -550,24 +559,23 @@ pre > code {
550
559
  position: static;
551
560
  top: auto;
552
561
  cursor: auto;
562
+ line-height: 1.6;
553
563
  }
554
564
  pre > code {
565
+ display: inline-block;
555
566
  box-sizing: border-box;
556
- display: block;
557
- width: 100%;
558
- line-height: inherit;
559
- padding: 0.25em 0.5em;
560
567
  border: none !important;
561
- margin: 0 !important;
562
568
  border-radius: 0;
563
- overflow-x: auto;
564
569
  }
565
- pre {
566
- line-height: 1.6;
567
- display: block;
568
- box-sizing: border-box;
569
- padding: 0.5em;
570
- margin: 0.5em 2em 2em;
570
+ pre > code,
571
+ [lang*="zh-" i] pre > code,
572
+ [lang*="-hans" i] pre > code,
573
+ [lang*="-CN" i] pre > code,
574
+ [lang*="zh-"] pre > code,
575
+ [lang*="-hans"] pre > code,
576
+ [lang*="-CN"] pre > code {
577
+ padding: 0.5em 1em;
578
+ margin: 0 !important;
571
579
  }
572
580
  td > pre,
573
581
  li > pre {
@@ -576,6 +584,7 @@ li > pre {
576
584
  }
577
585
  td > pre {
578
586
  margin-right: 0;
587
+ padding-right: 0;
579
588
  }
580
589
  li > pre:first-child {
581
590
  margin-top: 0;
@@ -706,16 +715,24 @@ hr::after {
706
715
  background-image: inherit !important;
707
716
  transform: scaleX(-1);
708
717
  }
718
+ @media (max-width: 900px) {
719
+ pre {
720
+ margin-left: 0;
721
+ margin-right: 0;
722
+ }
723
+ table,
724
+ pre {
725
+ max-width: 100%;
726
+ }
727
+ }
709
728
  @media (max-width: 600px) {
710
729
  h1,
711
730
  h2,
712
- h3 {
713
- padding-left: 1em;
714
- }
731
+ h3,
715
732
  h4,
716
733
  h5,
717
734
  h6 {
718
- padding-left: 0.8em;
735
+ padding-left: 1.25em;
719
736
  }
720
737
  h1 {
721
738
  font-size: 2.25em;
@@ -742,8 +759,8 @@ hr::after {
742
759
  padding-right: 0;
743
760
  }
744
761
  p {
745
- margin-left: 0;
746
- margin-right: 0;
762
+ margin-left: 0.25em;
763
+ margin-right: 0.25em;
747
764
  }
748
765
  blockquote {
749
766
  margin-left: 0;
@@ -757,8 +774,7 @@ hr::after {
757
774
  margin-right: 0;
758
775
  }
759
776
  table {
760
- max-width: none;
761
- width: 100%;
777
+ max-width: 100%;
762
778
  }
763
779
  td {
764
780
  max-width: 400px;
@@ -820,12 +836,18 @@ hr::after {
820
836
  [lang*="-CN"] .centered {
821
837
  text-indent: 0;
822
838
  }
839
+ .hidden-spacebar-between-head-linkage-and-head-text {
840
+ display: none;
841
+ }
823
842
  .header-anchor,
824
843
  a.header-anchor {
825
- margin: -0.2em -0.15em 0em -1.35em;
826
- padding: 0.25em 0;
827
- width: 1.5em;
844
+ margin-top: -0.2em;
845
+ margin-bottom: 0em;
846
+ margin-left: -1.65em;
847
+ margin-right: 0.15em;
828
848
  box-sizing: border-box;
849
+ padding: 0.25em 0;
850
+ min-width: 1.5em;
829
851
  text-align: center;
830
852
  font-weight: normal;
831
853
  border-radius: 0.25em;
@@ -856,6 +878,12 @@ td > h1 .header-anchor {
856
878
  display: none;
857
879
  }
858
880
  @media (max-width: 900px) {
881
+ .header-anchor,
882
+ a.header-anchor {
883
+ margin-left: -1.35em;
884
+ margin-right: 0.15em;
885
+ min-width: 1.2em;
886
+ }
859
887
  .markdownRoot {
860
888
  padding-top: 3em;
861
889
  padding-bottom: 7em;
@@ -867,17 +895,17 @@ td > h1 .header-anchor {
867
895
  }
868
896
  }
869
897
  @media (max-width: 600px) {
898
+ .header-anchor,
899
+ a.header-anchor {
900
+ margin-left: -1.2em;
901
+ margin-right: 0.2em;
902
+ min-width: 1em;
903
+ }
870
904
  .markdown-article-toc-is-visible .markdownRoot,
871
905
  .markdownRoot {
872
906
  padding-left: 1.5em;
873
907
  padding-right: 1.5em;
874
908
  }
875
- .header-anchor,
876
- a.header-anchor {
877
- margin-left: -1.2em;
878
- margin-right: -0.2em;
879
- width: 1em;
880
- }
881
909
  }
882
910
  input#__markdown-viewer__show-tools:not(:checked)~.toggleable {
883
911
  max-height: 0;
@@ -3335,4 +3363,7 @@ pre,
3335
3363
  h3 {
3336
3364
  page-break-after: avoid;
3337
3365
  }
3366
+ .hidden-spacebar-between-head-linkage-and-head-text {
3367
+ display: inline;
3368
+ }
3338
3369
  }
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * 吾乃南昌吴乐川是也
16
16
  * wulechuan@live.com
17
- * 2022-05-06
17
+ * 2022-05-08
18
18
  *
19
19
  *
20
20
  *
@@ -449,12 +449,12 @@ blockquote {
449
449
  display: inline-block;
450
450
  vertical-align: top;
451
451
  border-style: solid;
452
- padding: 1px 1.25em 1px 1.15em;
452
+ padding: 1px 1.25em 1px 1.1em;
453
453
  margin-top: 0;
454
454
  margin-bottom: 1.5em;
455
- margin-left: 3em;
455
+ margin-left: 2.5em;
456
456
  margin-right: 1em;
457
- max-width: calc(100% - 4em);
457
+ max-width: calc(100% - 3.5em);
458
458
  }
459
459
  details {
460
460
  margin: 0.5em 1.5em 1.5em;
@@ -535,6 +535,15 @@ kbd {
535
535
  font-size: 80%;
536
536
  letter-spacing: 0;
537
537
  }
538
+ pre {
539
+ display: block;
540
+ box-sizing: border-box;
541
+ padding: 0 5em 0 0;
542
+ margin: 0.5em 2em 2em;
543
+ max-height: 75vh;
544
+ overflow: auto;
545
+ white-space: nowrap;
546
+ }
538
547
  pre,
539
548
  pre > code {
540
549
  letter-spacing: 0;
@@ -545,24 +554,23 @@ pre > code {
545
554
  position: static;
546
555
  top: auto;
547
556
  cursor: auto;
557
+ line-height: 1.6;
548
558
  }
549
559
  pre > code {
560
+ display: inline-block;
550
561
  box-sizing: border-box;
551
- display: block;
552
- width: 100%;
553
- line-height: inherit;
554
- padding: 0.25em 0.5em;
555
562
  border: none !important;
556
- margin: 0 !important;
557
563
  border-radius: 0;
558
- overflow-x: auto;
559
564
  }
560
- pre {
561
- line-height: 1.6;
562
- display: block;
563
- box-sizing: border-box;
564
- padding: 0.5em;
565
- margin: 0.5em 2em 2em;
565
+ pre > code,
566
+ [lang*="zh-" i] pre > code,
567
+ [lang*="-hans" i] pre > code,
568
+ [lang*="-CN" i] pre > code,
569
+ [lang*="zh-"] pre > code,
570
+ [lang*="-hans"] pre > code,
571
+ [lang*="-CN"] pre > code {
572
+ padding: 0.5em 1em;
573
+ margin: 0 !important;
566
574
  }
567
575
  td > pre,
568
576
  li > pre {
@@ -571,6 +579,7 @@ li > pre {
571
579
  }
572
580
  td > pre {
573
581
  margin-right: 0;
582
+ padding-right: 0;
574
583
  }
575
584
  li > pre:first-child {
576
585
  margin-top: 0;
@@ -701,16 +710,24 @@ hr::after {
701
710
  background-image: inherit !important;
702
711
  transform: scaleX(-1);
703
712
  }
713
+ @media (max-width: 900px) {
714
+ pre {
715
+ margin-left: 0;
716
+ margin-right: 0;
717
+ }
718
+ table,
719
+ pre {
720
+ max-width: 100%;
721
+ }
722
+ }
704
723
  @media (max-width: 600px) {
705
724
  h1,
706
725
  h2,
707
- h3 {
708
- padding-left: 1em;
709
- }
726
+ h3,
710
727
  h4,
711
728
  h5,
712
729
  h6 {
713
- padding-left: 0.8em;
730
+ padding-left: 1.25em;
714
731
  }
715
732
  h1 {
716
733
  font-size: 2.25em;
@@ -737,8 +754,8 @@ hr::after {
737
754
  padding-right: 0;
738
755
  }
739
756
  p {
740
- margin-left: 0;
741
- margin-right: 0;
757
+ margin-left: 0.25em;
758
+ margin-right: 0.25em;
742
759
  }
743
760
  blockquote {
744
761
  margin-left: 0;
@@ -752,8 +769,7 @@ hr::after {
752
769
  margin-right: 0;
753
770
  }
754
771
  table {
755
- max-width: none;
756
- width: 100%;
772
+ max-width: 100%;
757
773
  }
758
774
  td {
759
775
  max-width: 400px;
@@ -815,12 +831,18 @@ hr::after {
815
831
  [lang*="-CN"] .centered {
816
832
  text-indent: 0;
817
833
  }
834
+ .hidden-spacebar-between-head-linkage-and-head-text {
835
+ display: none;
836
+ }
818
837
  .header-anchor,
819
838
  a.header-anchor {
820
- margin: -0.2em -0.15em 0em -1.35em;
821
- padding: 0.25em 0;
822
- width: 1.5em;
839
+ margin-top: -0.2em;
840
+ margin-bottom: 0em;
841
+ margin-left: -1.65em;
842
+ margin-right: 0.15em;
823
843
  box-sizing: border-box;
844
+ padding: 0.25em 0;
845
+ min-width: 1.5em;
824
846
  text-align: center;
825
847
  font-weight: normal;
826
848
  border-radius: 0.25em;
@@ -851,6 +873,12 @@ td > h1 .header-anchor {
851
873
  display: none;
852
874
  }
853
875
  @media (max-width: 900px) {
876
+ .header-anchor,
877
+ a.header-anchor {
878
+ margin-left: -1.35em;
879
+ margin-right: 0.15em;
880
+ min-width: 1.2em;
881
+ }
854
882
  .typora-node #write {
855
883
  padding-top: 3em;
856
884
  padding-bottom: 7em;
@@ -862,17 +890,17 @@ td > h1 .header-anchor {
862
890
  }
863
891
  }
864
892
  @media (max-width: 600px) {
893
+ .header-anchor,
894
+ a.header-anchor {
895
+ margin-left: -1.2em;
896
+ margin-right: 0.2em;
897
+ min-width: 1em;
898
+ }
865
899
  .markdown-article-toc-is-visible .typora-node #write,
866
900
  .typora-node #write {
867
901
  padding-left: 1.5em;
868
902
  padding-right: 1.5em;
869
903
  }
870
- .header-anchor,
871
- a.header-anchor {
872
- margin-left: -1.2em;
873
- margin-right: -0.2em;
874
- width: 1em;
875
- }
876
904
  }
877
905
  pre.CodeMirror-line {
878
906
  display: block;
@@ -3095,4 +3123,7 @@ tbody tr:nth-child(even) {
3095
3123
  h3 {
3096
3124
  page-break-after: avoid;
3097
3125
  }
3126
+ .hidden-spacebar-between-head-linkage-and-head-text {
3127
+ display: inline;
3128
+ }
3098
3129
  }