@bytechain.cn/colamd 1.5.1-beta.2 → 1.5.2
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/CHANGELOG.md +194 -162
- package/README.md +148 -5
- package/README_CN.md +163 -13
- package/dist/lib/colamd-renderer.js +193804 -0
- package/dist/lib/colamd-renderer.js.map +1 -0
- package/dist/lib/colamd.css +1810 -0
- package/dist/lib/editor/editor.d.ts +27 -0
- package/dist/lib/editor/html-view.d.ts +2 -0
- package/dist/lib/editor/lib.d.ts +49 -0
- package/dist/lib/editor/plugins/index.d.ts +56 -0
- package/dist/lib/editor/plugins/lib-entry.d.ts +10 -0
- package/dist/lib/editor/plugins/math-plugin.d.ts +9 -0
- package/dist/lib/editor/plugins/mermaid-plugin.d.ts +19 -0
- package/dist/lib/editor/plugins/themes/theme-manager.d.ts +30 -0
- package/dist/main/index.js +107 -37
- package/dist/preload/index.js +3 -2
- package/dist/renderer/assets/{arc-CPdeInCG.js → arc-CpIo2PoE.js} +1 -1
- package/dist/renderer/assets/{architectureDiagram-3BPJPVTR-BAbnaR9G.js → architectureDiagram-3BPJPVTR-T-4Cq0Bz.js} +2 -2
- package/dist/renderer/assets/{blockDiagram-GPEHLZMM-CYSWjnJg.js → blockDiagram-GPEHLZMM-C-SuR6eu.js} +4 -4
- package/dist/renderer/assets/{c4Diagram-AAUBKEIU-Rb1tstnr.js → c4Diagram-AAUBKEIU-PJp81cGm.js} +2 -2
- package/dist/renderer/assets/{channel-DpG2A6fE.js → channel-CtIHaaRI.js} +1 -1
- package/dist/renderer/assets/{chunk-2J33WTMH-DFc0Jxy_.js → chunk-2J33WTMH-BrchfQL6.js} +1 -1
- package/dist/renderer/assets/{chunk-4BX2VUAB-BhRxDTNn.js → chunk-4BX2VUAB-BCc3Ev_H.js} +1 -1
- package/dist/renderer/assets/{chunk-55IACEB6-DEgMVBk8.js → chunk-55IACEB6-B2M27HQo.js} +1 -1
- package/dist/renderer/assets/{chunk-727SXJPM-bjBIfiz8.js → chunk-727SXJPM-DXDHGECs.js} +5 -5
- package/dist/renderer/assets/{chunk-AQP2D5EJ-DwQMzTzD.js → chunk-AQP2D5EJ-BNb1lOQY.js} +3 -3
- package/dist/renderer/assets/{chunk-FMBD7UC4-CkphwJzs.js → chunk-FMBD7UC4-CzgfEH2z.js} +1 -1
- package/dist/renderer/assets/{chunk-ND2GUHAM-oU09z4y4.js → chunk-ND2GUHAM-BUFT_yOe.js} +1 -1
- package/dist/renderer/assets/{chunk-QZHKN3VN-rCbVuPBn.js → chunk-QZHKN3VN-C-zV7oBi.js} +1 -1
- package/dist/renderer/assets/{classDiagram-v2-Q7XG4LA2-DGS2faoM.js → classDiagram-4FO5ZUOK-CAyhGSvf.js} +6 -6
- package/dist/renderer/assets/{classDiagram-4FO5ZUOK-DGS2faoM.js → classDiagram-v2-Q7XG4LA2-CAyhGSvf.js} +6 -6
- package/dist/renderer/assets/{cose-bilkent-S5V4N54A-iqY6-EwA.js → cose-bilkent-S5V4N54A-ldu81kCk.js} +1 -1
- package/dist/renderer/assets/{dagre-BM42HDAG-5t3X5sDa.js → dagre-BM42HDAG-NJgy8CTw.js} +3 -3
- package/dist/renderer/assets/{diagram-2AECGRRQ-DzHiYDPh.js → diagram-2AECGRRQ-CuIcMpOn.js} +2 -2
- package/dist/renderer/assets/{diagram-5GNKFQAL-BiNv6Keq.js → diagram-5GNKFQAL-BJwFCroB.js} +3 -3
- package/dist/renderer/assets/{diagram-KO2AKTUF-ClzeDG6f.js → diagram-KO2AKTUF-C7NgQ8ju.js} +2 -2
- package/dist/renderer/assets/{diagram-LMA3HP47-CGkw7wII.js → diagram-LMA3HP47-B71v6MOq.js} +2 -2
- package/dist/renderer/assets/{diagram-OG6HWLK6-Dl-Hyk1_.js → diagram-OG6HWLK6-D2ZxkrSe.js} +3 -3
- package/dist/renderer/assets/{erDiagram-TEJ5UH35-BxUN79Qb.js → erDiagram-TEJ5UH35-4ToW0p3h.js} +4 -4
- package/dist/renderer/assets/{flowDiagram-I6XJVG4X-CzFk-KNI.js → flowDiagram-I6XJVG4X-DBkZLqwn.js} +6 -6
- package/dist/renderer/assets/{ganttDiagram-6RSMTGT7-C2xl6Igx.js → ganttDiagram-6RSMTGT7-G3xD2VXj.js} +2 -2
- package/dist/renderer/assets/{gitGraphDiagram-PVQCEYII-_fn7XCa7.js → gitGraphDiagram-PVQCEYII-BcTNiFfg.js} +3 -3
- package/dist/renderer/assets/{graph-CDoHYrHm.js → graph--Vhl4p4D.js} +1 -1
- package/dist/renderer/assets/{index-DAlXyxzt.js → index-C63bU7CF.js} +693 -162
- package/dist/renderer/assets/{index-CeFpoCKV.css → index-D8nA981z.css} +17 -6
- package/dist/renderer/assets/{infoDiagram-5YYISTIA-DL6XIxLz.js → infoDiagram-5YYISTIA-DjKa7Yv-.js} +1 -1
- package/dist/renderer/assets/{ishikawaDiagram-YF4QCWOH-BUZLjRo-.js → ishikawaDiagram-YF4QCWOH-xIWzW1pL.js} +1 -1
- package/dist/renderer/assets/{journeyDiagram-JHISSGLW-C4rH_mQM.js → journeyDiagram-JHISSGLW-DxMBkVOF.js} +4 -4
- package/dist/renderer/assets/{kanban-definition-UN3LZRKU-DRbrBcWV.js → kanban-definition-UN3LZRKU-DqJeL6E1.js} +2 -2
- package/dist/renderer/assets/{layout-DZl4n4qu.js → layout-B3giiMoK.js} +2 -2
- package/dist/renderer/assets/{linear-B0Krxg21.js → linear-Cqh3vVIf.js} +1 -1
- package/dist/renderer/assets/{mindmap-definition-RKZ34NQL-DdmPsWrn.js → mindmap-definition-RKZ34NQL-DUay02ma.js} +3 -3
- package/dist/renderer/assets/{pieDiagram-4H26LBE5-BPZLqwG0.js → pieDiagram-4H26LBE5-CVcfLtky.js} +3 -3
- package/dist/renderer/assets/{quadrantDiagram-W4KKPZXB-Dr-oWRk9.js → quadrantDiagram-W4KKPZXB-wDHffPOs.js} +2 -2
- package/dist/renderer/assets/{requirementDiagram-4Y6WPE33-B6QZd0lo.js → requirementDiagram-4Y6WPE33-C4pgGDGv.js} +3 -3
- package/dist/renderer/assets/{sankeyDiagram-5OEKKPKP-Cyl9ojEt.js → sankeyDiagram-5OEKKPKP-Jsf0rRMo.js} +1 -1
- package/dist/renderer/assets/{sequenceDiagram-3UESZ5HK-D48Yr9T6.js → sequenceDiagram-3UESZ5HK-e6QS7gt8.js} +3 -3
- package/dist/renderer/assets/{stateDiagram-AJRCARHV-qyb8ETsa.js → stateDiagram-AJRCARHV-DgYKZzDq.js} +6 -6
- package/dist/renderer/assets/{stateDiagram-v2-BHNVJYJU-DmDOyyrJ.js → stateDiagram-v2-BHNVJYJU-CUdmd_50.js} +4 -4
- package/dist/renderer/assets/{timeline-definition-PNZ67QCA-C-KQxTi1.js → timeline-definition-PNZ67QCA-S12e1Mp_.js} +2 -2
- package/dist/renderer/assets/{vennDiagram-CIIHVFJN-BdaZlnH-.js → vennDiagram-CIIHVFJN-CNDBG6A2.js} +1 -1
- package/dist/renderer/assets/{wardleyDiagram-YWT4CUSO-B2hBE-EE.js → wardleyDiagram-YWT4CUSO-CLlGQcof.js} +2 -2
- package/dist/renderer/assets/{xychartDiagram-2RQKCTM6-CSvswDTY.js → xychartDiagram-2RQKCTM6-CUtsHUQd.js} +2 -2
- package/dist/renderer/index.html +6 -2
- package/package.json +25 -1
- package/themes/README.md +18 -1
- package/themes/academic-paper-pt.css +1321 -0
- package/themes/academic-paper.css +192 -97
- package/.github/workflows/release.yml +0 -66
- package/.trae/specs/optimize-theme-loading/checklist.md +0 -20
- package/.trae/specs/optimize-theme-loading/spec.md +0 -103
- package/.trae/specs/optimize-theme-loading/tasks.md +0 -40
- package/CLAUDE.md +0 -143
- package/android/app/build/.npmkeep +0 -0
- package/android/app/build.gradle +0 -76
- package/android/app/capacitor.build.gradle +0 -24
- package/android/app/proguard-rules.pro +0 -21
- package/android/app/release.keystore +0 -0
- package/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +0 -26
- package/android/app/src/main/AndroidManifest.xml +0 -64
- package/android/app/src/main/java/cn/bytechain/colamd/MainActivity.java +0 -180
- package/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -170
- package/android/app/src/main/res/drawable/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +0 -34
- package/android/app/src/main/res/layout/activity_main.xml +0 -12
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/values/ic_launcher_background.xml +0 -4
- package/android/app/src/main/res/values/strings.xml +0 -7
- package/android/app/src/main/res/values/styles.xml +0 -22
- package/android/app/src/main/res/xml/file_paths.xml +0 -5
- package/android/app/src/main/res/xml/network_security_config.xml +0 -8
- package/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +0 -18
- package/android/build.gradle +0 -29
- package/android/capacitor.settings.gradle +0 -21
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/android/gradle.properties +0 -22
- package/android/gradlew +0 -248
- package/android/gradlew.bat +0 -92
- package/android/settings.gradle +0 -5
- package/android/variables.gradle +0 -16
- package/bytechain.cn-colamd-1.5.1-beta.2.tgz +0 -0
- package/capacitor.config.js +0 -29
- package/capacitor.config.ts +0 -30
- package/demo.md +0 -193
- package/docs/academic-demo.md +0 -566
- package/docs/agent-diff-view.md +0 -48
- package/docs/demo.html +0 -748
- package/docs/demo.md +0 -546
- package/docs/demo.pdf +0 -0
- package/docs/theme-paradigm.md +0 -658
- package/electron-builder.yml +0 -64
- package/electron.vite.config.js +0 -31
- package/electron.vite.config.ts +0 -30
- package/ios/App/App/AppDelegate.swift +0 -49
- package/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -14
- package/ios/App/App/Assets.xcassets/Contents.json +0 -6
- package/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +0 -23
- package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/ios/App/App/Base.lproj/LaunchScreen.storyboard +0 -32
- package/ios/App/App/Base.lproj/Main.storyboard +0 -19
- package/ios/App/App/Info.plist +0 -49
- package/ios/App/App.xcodeproj/project.pbxproj +0 -408
- package/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/App/Podfile +0 -28
- package/resources/entitlements.mac.plist +0 -12
- package/resources/icon.icns +0 -0
- package/resources/icon.png +0 -0
- package/resources/icon.svg +0 -23
- package/resources/templates/slides/icon.png +0 -0
- package/resources/templates/slides/slides-template.md +0 -74
- package/resources/templates/slides/template-forest-ink.html +0 -540
- package/resources/templates/slides/template.html +0 -535
- package/scripts/afterPack.js +0 -13
- package/scripts/generate-icons.js +0 -102
- package/src/main/index.ts +0 -905
- package/src/preload/index.d.ts +0 -51
- package/src/preload/index.js +0 -70
- package/src/preload/index.ts +0 -110
- package/src/renderer/capacitor-api.ts +0 -713
- package/src/renderer/editor/editor.ts +0 -287
- package/src/renderer/editor/html-view.ts +0 -15
- package/src/renderer/editor/plugins/index.ts +0 -68
- package/src/renderer/editor/plugins/math-plugin.ts +0 -297
- package/src/renderer/editor/plugins/mermaid-plugin-custom.css +0 -46
- package/src/renderer/editor/plugins/mermaid-plugin-dark.css +0 -428
- package/src/renderer/editor/plugins/mermaid-plugin-elegant.css +0 -443
- package/src/renderer/editor/plugins/mermaid-plugin-newsprint.css +0 -208
- package/src/renderer/editor/plugins/mermaid-plugin.css +0 -111
- package/src/renderer/editor/plugins/mermaid-plugin.ts +0 -670
- package/src/renderer/editor/plugins/themes/base/dark.css +0 -23
- package/src/renderer/editor/plugins/themes/base/elegant.css +0 -32
- package/src/renderer/editor/plugins/themes/base/light.css +0 -20
- package/src/renderer/editor/plugins/themes/base/newsprint.css +0 -27
- package/src/renderer/editor/plugins/themes/base.css +0 -509
- package/src/renderer/editor/plugins/themes/components/mermaid/academic.css +0 -43
- package/src/renderer/editor/plugins/themes/components/mermaid/dark.css +0 -20
- package/src/renderer/editor/plugins/themes/components/mermaid/elegant.css +0 -24
- package/src/renderer/editor/plugins/themes/components/mermaid/light.css +0 -21
- package/src/renderer/editor/plugins/themes/components/mermaid/newsprint.css +0 -26
- package/src/renderer/editor/plugins/themes/components/mermaid/variables.css +0 -592
- package/src/renderer/editor/plugins/themes/foundation.css +0 -143
- package/src/renderer/editor/plugins/themes/theme-manager.ts +0 -92
- package/src/renderer/env.d.ts +0 -10
- package/src/renderer/index.html +0 -76
- package/src/renderer/main.ts +0 -678
- package/src/renderer/mobile.css +0 -429
- package/tsconfig.json +0 -14
- package/tsconfig.main.json +0 -12
- package/tsconfig.main.tsbuildinfo +0 -1
- package/tsconfig.preload.json +0 -12
- package/tsconfig.preload.tsbuildinfo +0 -1
- package/tsconfig.renderer.json +0 -13
- package/tsconfig.renderer.tsbuildinfo +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,10 +1,90 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* ═══════════════════════════════════════════════════════════════
|
|
2
3
|
* ColaMD 主题:Academic Paper (学术论文打印)
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* ═══════════════════════════════════════════════════════════════
|
|
5
|
+
*
|
|
6
|
+
* 📋 基本信息
|
|
7
|
+
* ────────────────────────────────────────────────
|
|
8
|
+
* 配色方案:纯白底 + 纯黑正文 + 灰度 Mermaid 图表
|
|
9
|
+
* 排版规范:遵循中文学术论文排版规范(GB/T 7713)
|
|
10
|
+
* 兼容平台:ColaMD (body.theme-custom) / Typora / VSCode
|
|
11
|
+
* 导入方式:Theme > Import Theme
|
|
12
|
+
* 模板类型:@template: light (浅色主题)
|
|
13
|
+
*
|
|
14
|
+
* 🎨 设计特点
|
|
15
|
+
* ────────────────────────────────────────────────
|
|
16
|
+
* 1. 字体系统:
|
|
17
|
+
* - 正文:宋体 (SimSun) 小四号 16px
|
|
18
|
+
* - 标题:黑体 (SimHei) 三号~五号 22px~14px
|
|
19
|
+
* - 代码:Courier New 五号 14px
|
|
20
|
+
* - Mermaid:黑体 小五号 12px
|
|
21
|
+
*
|
|
22
|
+
* 2. 色彩系统:
|
|
23
|
+
* - 采用 10 级灰度色板(--gray-0 至 --gray-9)
|
|
24
|
+
* - 无彩色设计,确保打印/屏幕一致性
|
|
25
|
+
* - 符合 WCAG AAA 对比度标准(≥7:1)
|
|
26
|
+
*
|
|
27
|
+
* 3. 排版规范:
|
|
28
|
+
* - 页面尺寸:A4 (210mm × 297mm)
|
|
29
|
+
* - 页边距:上25mm 下25mm 左30mm 右25mm
|
|
30
|
+
* - 正文行距:1.5 倍,首行缩进 2em
|
|
31
|
+
* - 标题层级:h1(三号) → h2(四号) → h3/h4(小四号) → h5/h6(五号)
|
|
32
|
+
*
|
|
33
|
+
* ⚙️ 开发规范(必须遵守)
|
|
34
|
+
* ────────────────────────────────────────────────
|
|
35
|
+
* 【单位使用】
|
|
36
|
+
* ✅ 强制要求:所有字号、间距、边距统一使用 px 单位
|
|
37
|
+
* ✅ 偶数整数原则:px 值优先使用偶数(2, 4, 6, 8, ...)
|
|
38
|
+
* ❌ 禁止使用:pt 单位(会导致 PDF 导出时缩小 25%)
|
|
39
|
+
*
|
|
40
|
+
* 【转换公式】
|
|
41
|
+
* px = pt × (96/72) ≈ pt × 1.3333
|
|
42
|
+
* 示例:12pt → 16px, 10.5pt → 14px, 9pt → 12px
|
|
43
|
+
*
|
|
44
|
+
* 【常用值对照表】
|
|
45
|
+
* 中文字号 | pt | px (偶数) | 用途
|
|
46
|
+
* ─────────┼────┼──────────┼──────────
|
|
47
|
+
* 三号 | 16 | 22 | 一级标题(h1)
|
|
48
|
+
* 四号 | 14 | 18 | 二级标题(h2)
|
|
49
|
+
* 小四号 | 12 | 16 | 正文/三四级标题
|
|
50
|
+
* 五号 |10.5| 14 | 代码块/表格/图题
|
|
51
|
+
* 小五号 | 9 | 12 | Mermaid/脚注
|
|
52
|
+
*
|
|
53
|
+
* 【允许的非 px 单位】
|
|
54
|
+
* • mm:页面尺寸、页边距(如 max-width: 210mm)
|
|
55
|
+
* • em:相对字号(如 font-size: 0.88em 用于内联代码)
|
|
56
|
+
* • %:百分比宽度(如 width: 100%)
|
|
57
|
+
* • 无单位:零值(margin: 0)、行高倍率(line-height: 1.5)
|
|
58
|
+
*
|
|
59
|
+
* 【特殊例外】
|
|
60
|
+
* • 1px 边框:分割线、表格竖线等需最细效果时可保留奇数
|
|
61
|
+
*
|
|
62
|
+
* 🔧 验证方法
|
|
63
|
+
* ────────────────────────────────────────────────
|
|
64
|
+
* 1. 检查是否还有 pt 单位残留:
|
|
65
|
+
* grep -n "pt" academic-paper.css
|
|
66
|
+
* 预期结果:No matches found
|
|
67
|
+
*
|
|
68
|
+
* 2. 验证所有 px 值为偶数:
|
|
69
|
+
* grep -oP '\d+px' academic-paper.css | grep -vP '^[02468]px'
|
|
70
|
+
* 预期结果:仅少量 1px 边框
|
|
71
|
+
*
|
|
72
|
+
* 3. 导出 PDF 验证字号一致性:
|
|
73
|
+
* 屏幕显示字号 = PDF 导出后字号(无缩放损失)
|
|
74
|
+
*
|
|
75
|
+
* 📚 相关文档
|
|
76
|
+
* ────────────────────────────────────────────────
|
|
77
|
+
* • 范式定义:docs/theme-paradigm.md (v3.3)
|
|
78
|
+
* • 单位规范:docs/theme-paradigm.md Section 9
|
|
79
|
+
* • GB/T 7713:《科学技术报告、学位论文和学术论文的编写格式》
|
|
80
|
+
*
|
|
81
|
+
* 📅 版本信息
|
|
82
|
+
* ────────────────────────────────────────────────
|
|
83
|
+
* 最后更新:2026-05-23
|
|
84
|
+
* 主要变更:从 pt 单位全面迁移至 px 偶数整数单位系统
|
|
85
|
+
* 新增单位转换公式和验证清单
|
|
86
|
+
*
|
|
87
|
+
* ═══════════════════════════════════════════════════════════════
|
|
8
88
|
*/
|
|
9
89
|
|
|
10
90
|
/* ── 1. 根变量 & 主题变量 ── */
|
|
@@ -77,9 +157,9 @@ body.theme-custom {
|
|
|
77
157
|
|
|
78
158
|
/* 分割线 */
|
|
79
159
|
--hr-color: var(--gray-9);
|
|
80
|
-
/* Mermaid 全局字体:黑体 小五号
|
|
160
|
+
/* Mermaid 全局字体:黑体 小五号 12px(GB/T 7713 图表字),独立于正文 */
|
|
81
161
|
--mermaid-font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
|
|
82
|
-
--mermaid-font-size:
|
|
162
|
+
--mermaid-font-size: 12px;
|
|
83
163
|
--mermaid-dark-mode: false;
|
|
84
164
|
/* ═══ Mermaid 图表系统(印刷友好灰度) ═══ */
|
|
85
165
|
/* 背景与边框 */
|
|
@@ -155,14 +235,14 @@ body.theme-custom {
|
|
|
155
235
|
pre { --select-text-bg-color: rgba(0, 0, 0, 0.12); --select-text-font-color: var(--gray-9); }
|
|
156
236
|
|
|
157
237
|
/* ── 2. 全局 ── */
|
|
158
|
-
html { font-size:
|
|
238
|
+
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
|
|
159
239
|
|
|
160
240
|
body.theme-custom, html, body {
|
|
161
241
|
background-color: var(--gray-0);
|
|
162
242
|
color: var(--gray-9);
|
|
163
243
|
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
|
|
164
244
|
line-height: 1.5;
|
|
165
|
-
font-size:
|
|
245
|
+
font-size: 16px;
|
|
166
246
|
}
|
|
167
247
|
|
|
168
248
|
body.theme-custom { -webkit-font-smoothing: antialiased; }
|
|
@@ -178,10 +258,10 @@ body.theme-custom #editor { max-width: 210mm; margin: 0 auto; padding: 25mm 25mm
|
|
|
178
258
|
body.theme-custom .mermaid-preview,
|
|
179
259
|
.md-diagram-panel.md-mermaid { padding: 12px; margin: 1em 0; }
|
|
180
260
|
body.theme-custom .mermaid-preview svg { max-width: 100% !important; height: auto !important; }
|
|
181
|
-
body.theme-custom .mermaid-preview svg text { font-size:
|
|
182
|
-
.md-diagram-panel.md-mermaid svg text { font-size:
|
|
183
|
-
body.theme-custom .mermaid-preview svg .titleText { font-size:
|
|
184
|
-
.md-diagram-panel.md-mermaid svg .titleText { font-size:
|
|
261
|
+
body.theme-custom .mermaid-preview svg text { font-size: 12px !important; }
|
|
262
|
+
.md-diagram-panel.md-mermaid svg text { font-size: 12px !important; }
|
|
263
|
+
body.theme-custom .mermaid-preview svg .titleText { font-size: 14px !important; }
|
|
264
|
+
.md-diagram-panel.md-mermaid svg .titleText { font-size: 14px !important; }
|
|
185
265
|
}
|
|
186
266
|
|
|
187
267
|
/* ── 3. 标题(GB/T 7713 学术论文规范) ── */
|
|
@@ -196,53 +276,53 @@ body.theme-custom h4, body.theme-custom h5, body.theme-custom h6 {
|
|
|
196
276
|
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", "Arial", sans-serif;
|
|
197
277
|
}
|
|
198
278
|
|
|
199
|
-
/* 一级标题(论文题目):黑体 三号 (
|
|
279
|
+
/* 一级标题(论文题目):黑体 三号 (22px),居中,段前后各 1 行 */
|
|
200
280
|
h1, body.theme-custom h1 {
|
|
201
|
-
font-size:
|
|
281
|
+
font-size: 22px;
|
|
202
282
|
text-align: center;
|
|
203
|
-
margin-top:
|
|
204
|
-
margin-bottom:
|
|
283
|
+
margin-top: 32px;
|
|
284
|
+
margin-bottom: 24px;
|
|
205
285
|
cursor: text;
|
|
206
286
|
}
|
|
207
287
|
|
|
208
|
-
/* 二级标题(一级节):黑体 四号 (
|
|
288
|
+
/* 二级标题(一级节):黑体 四号 (18px),左对齐,段前 1 行,段后 0.5 行 */
|
|
209
289
|
h2, body.theme-custom h2 {
|
|
210
|
-
font-size:
|
|
211
|
-
margin-top:
|
|
212
|
-
margin-bottom:
|
|
290
|
+
font-size: 18px;
|
|
291
|
+
margin-top: 26px;
|
|
292
|
+
margin-bottom: 14px;
|
|
213
293
|
cursor: text;
|
|
214
294
|
}
|
|
215
295
|
|
|
216
|
-
/* 三级标题(二级节):黑体 小四号 (
|
|
296
|
+
/* 三级标题(二级节):黑体 小四号 (16px),左对齐,段前 0.5 行,段后 0.5 行 */
|
|
217
297
|
h3, body.theme-custom h3 {
|
|
218
|
-
font-size:
|
|
219
|
-
margin-top:
|
|
220
|
-
margin-bottom:
|
|
298
|
+
font-size: 16px;
|
|
299
|
+
margin-top: 18px;
|
|
300
|
+
margin-bottom: 10px;
|
|
221
301
|
cursor: text;
|
|
222
302
|
}
|
|
223
303
|
|
|
224
|
-
/* 四级标题(三级节):黑体 小四号 (
|
|
304
|
+
/* 四级标题(三级节):黑体 小四号 (16px),左对齐,段前 0.5 行 */
|
|
225
305
|
h4, body.theme-custom h4 {
|
|
226
|
-
font-size:
|
|
227
|
-
margin-top:
|
|
228
|
-
margin-bottom:
|
|
306
|
+
font-size: 16px;
|
|
307
|
+
margin-top: 18px;
|
|
308
|
+
margin-bottom: 8px;
|
|
229
309
|
cursor: text;
|
|
230
310
|
}
|
|
231
311
|
|
|
232
312
|
/* 五级标题 */
|
|
233
313
|
h5, body.theme-custom h5 {
|
|
234
|
-
font-size:
|
|
235
|
-
margin-top:
|
|
236
|
-
margin-bottom:
|
|
314
|
+
font-size: 14px;
|
|
315
|
+
margin-top: 16px;
|
|
316
|
+
margin-bottom: 6px;
|
|
237
317
|
cursor: text;
|
|
238
318
|
}
|
|
239
319
|
|
|
240
|
-
/* 六级标题:黑体 五号
|
|
320
|
+
/* 六级标题:黑体 五号 14px */
|
|
241
321
|
h6, body.theme-custom h6 {
|
|
242
|
-
font-size:
|
|
322
|
+
font-size: 14px;
|
|
243
323
|
color: var(--gray-9);
|
|
244
|
-
margin-top:
|
|
245
|
-
margin-bottom:
|
|
324
|
+
margin-top: 14px;
|
|
325
|
+
margin-bottom: 6px;
|
|
246
326
|
cursor: text;
|
|
247
327
|
}
|
|
248
328
|
|
|
@@ -250,13 +330,13 @@ h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor,
|
|
|
250
330
|
h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor { text-decoration: none; }
|
|
251
331
|
|
|
252
332
|
/* ── 4. 内联元素 ── */
|
|
253
|
-
/* 正文:宋体 小四号 (
|
|
333
|
+
/* 正文:宋体 小四号 (16px),行距 1.5 倍,首行缩进 2 字符 */
|
|
254
334
|
body.theme-custom p, body.theme-custom #write > p {
|
|
255
335
|
margin: 0;
|
|
256
336
|
line-height: 1.5;
|
|
257
337
|
text-align: justify;
|
|
258
338
|
text-indent: 2em;
|
|
259
|
-
font-size:
|
|
339
|
+
font-size: 16px;
|
|
260
340
|
}
|
|
261
341
|
body.theme-custom p + p { margin-top: 0; }
|
|
262
342
|
|
|
@@ -284,18 +364,18 @@ del, s { color: var(--gray-7); }
|
|
|
284
364
|
|
|
285
365
|
/* ── 5. 引用块(左缩进对齐正文,段前段后 0.5 行) ── */
|
|
286
366
|
blockquote, body.theme-custom blockquote {
|
|
287
|
-
margin:
|
|
367
|
+
margin: 10px 0;
|
|
288
368
|
padding: 10px 16px 10px 20px;
|
|
289
369
|
border-left: 3px solid var(--gray-9);
|
|
290
370
|
background: var(--gray-1);
|
|
291
371
|
color: var(--gray-9);
|
|
292
372
|
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
|
|
293
|
-
font-size:
|
|
373
|
+
font-size: 14px;
|
|
294
374
|
}
|
|
295
|
-
blockquote p, body.theme-custom blockquote p { margin:
|
|
375
|
+
blockquote p, body.theme-custom blockquote p { margin: 4px 0; text-indent: 0; }
|
|
296
376
|
|
|
297
377
|
/* ── 6. 分割线 ── */
|
|
298
|
-
hr, body.theme-custom hr { border: none; border-top: 1px solid var(--gray-9); margin:
|
|
378
|
+
hr, body.theme-custom hr { border: none; border-top: 1px solid var(--gray-9); margin: 32px 0; height: 0; }
|
|
299
379
|
|
|
300
380
|
/* ── 7. 列表(GB/T 7713 学术论文规范) ── */
|
|
301
381
|
|
|
@@ -312,7 +392,7 @@ body.theme-custom #editor .ProseMirror > ul,
|
|
|
312
392
|
body.theme-custom #editor .ProseMirror > ol,
|
|
313
393
|
body.theme-custom #write > ul:first-of-type,
|
|
314
394
|
body.theme-custom #write > ol:first-of-type {
|
|
315
|
-
margin:
|
|
395
|
+
margin: 6px 0 6px 2em;
|
|
316
396
|
padding-left: 1.5em;
|
|
317
397
|
list-style: none;
|
|
318
398
|
counter-reset: ol-lv1 ul-lv1;
|
|
@@ -330,11 +410,11 @@ body.theme-custom ol ol {
|
|
|
330
410
|
body.theme-custom li {
|
|
331
411
|
line-height: 1.6;
|
|
332
412
|
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
|
|
333
|
-
font-size:
|
|
413
|
+
font-size: 16px;
|
|
334
414
|
font-weight: normal;
|
|
335
415
|
text-indent: 0;
|
|
336
416
|
list-style: none;
|
|
337
|
-
padding:
|
|
417
|
+
padding: 2px 0;
|
|
338
418
|
}
|
|
339
419
|
|
|
340
420
|
/* ::before 符号区域:统一 inline 模式,与文字同行基线 */
|
|
@@ -494,13 +574,13 @@ body.theme-custom code, body.theme-custom tt {
|
|
|
494
574
|
/* ── 9. 代码块 ── */
|
|
495
575
|
pre.md-fences {
|
|
496
576
|
font-family: "Courier New", "Consolas", "Source Code Pro", monospace;
|
|
497
|
-
font-size:
|
|
577
|
+
font-size: 14px;
|
|
498
578
|
line-height: 1.5;
|
|
499
579
|
background: var(--gray-2);
|
|
500
580
|
color: var(--gray-9);
|
|
501
581
|
padding: 14px 18px;
|
|
502
582
|
border-radius: 0;
|
|
503
|
-
margin:
|
|
583
|
+
margin: 16px 0;
|
|
504
584
|
overflow-x: auto;
|
|
505
585
|
border: 1px solid var(--gray-9);
|
|
506
586
|
}
|
|
@@ -508,13 +588,13 @@ pre.md-fences code { background: transparent; color: inherit; padding: 0; margin
|
|
|
508
588
|
|
|
509
589
|
body.theme-custom #editor .ProseMirror pre {
|
|
510
590
|
font-family: "Courier New", "Consolas", "Source Code Pro", monospace;
|
|
511
|
-
font-size:
|
|
591
|
+
font-size: 14px;
|
|
512
592
|
line-height: 1.5;
|
|
513
593
|
background: var(--gray-2) !important;
|
|
514
594
|
color: var(--gray-9) !important;
|
|
515
595
|
padding: 14px 18px;
|
|
516
596
|
border-radius: 0;
|
|
517
|
-
margin:
|
|
597
|
+
margin: 16px 0;
|
|
518
598
|
overflow-x: auto;
|
|
519
599
|
border: 1px solid var(--gray-9);
|
|
520
600
|
}
|
|
@@ -525,7 +605,7 @@ body.theme-custom #editor .ProseMirror pre code {
|
|
|
525
605
|
}
|
|
526
606
|
|
|
527
607
|
/* ── 10. 代码语法高亮(黑白打印友好) ── */
|
|
528
|
-
.cm-s-inner { font-family: "Courier New", "Consolas", "Source Code Pro", monospace; font-size:
|
|
608
|
+
.cm-s-inner { font-family: "Courier New", "Consolas", "Source Code Pro", monospace; font-size: 14px; line-height: 1.5; }
|
|
529
609
|
|
|
530
610
|
body.theme-custom .token.comment, body.theme-custom .token.prolog,
|
|
531
611
|
body.theme-custom .token.doctype, body.theme-custom .token.cdata,
|
|
@@ -569,8 +649,8 @@ body.theme-custom .token.regex { color: var(--gray-8); }
|
|
|
569
649
|
table, body.theme-custom table {
|
|
570
650
|
width: 100%;
|
|
571
651
|
border-collapse: collapse;
|
|
572
|
-
margin:
|
|
573
|
-
font-size:
|
|
652
|
+
margin: 18px auto;
|
|
653
|
+
font-size: 14px;
|
|
574
654
|
line-height: 1.5;
|
|
575
655
|
}
|
|
576
656
|
|
|
@@ -579,7 +659,7 @@ table th, body.theme-custom table th {
|
|
|
579
659
|
background: var(--table-header-bg);
|
|
580
660
|
font-weight: 700;
|
|
581
661
|
color: var(--gray-9);
|
|
582
|
-
padding:
|
|
662
|
+
padding: 8px 10px;
|
|
583
663
|
text-align: center;
|
|
584
664
|
text-indent: 0;
|
|
585
665
|
vertical-align: middle;
|
|
@@ -588,7 +668,7 @@ table th, body.theme-custom table th {
|
|
|
588
668
|
|
|
589
669
|
/* 数据单元格:宋体 五号 左对齐 无首行缩进 */
|
|
590
670
|
table td, body.theme-custom table td {
|
|
591
|
-
padding:
|
|
671
|
+
padding: 8px 10px;
|
|
592
672
|
text-align: left;
|
|
593
673
|
text-indent: 0;
|
|
594
674
|
vertical-align: top;
|
|
@@ -610,11 +690,11 @@ table td p, body.theme-custom table td p {
|
|
|
610
690
|
table ul, table ol,
|
|
611
691
|
body.theme-custom table ul,
|
|
612
692
|
body.theme-custom table ol {
|
|
613
|
-
margin:
|
|
693
|
+
margin: 2px 0;
|
|
614
694
|
padding-left: 1.5em;
|
|
615
695
|
}
|
|
616
696
|
table li, body.theme-custom table li {
|
|
617
|
-
margin:
|
|
697
|
+
margin: 2px 0;
|
|
618
698
|
padding-left: 0;
|
|
619
699
|
font-size: inherit;
|
|
620
700
|
}
|
|
@@ -632,15 +712,15 @@ table tr:hover td, body.theme-custom table tr:hover td {
|
|
|
632
712
|
/* 顶线 + 表头底线 + 底线,无竖线 */
|
|
633
713
|
|
|
634
714
|
body.theme-custom table {
|
|
635
|
-
border-top:
|
|
636
|
-
border-bottom:
|
|
715
|
+
border-top: 2px solid var(--gray-9);
|
|
716
|
+
border-bottom: 2px solid var(--gray-9);
|
|
637
717
|
border-left: none;
|
|
638
718
|
border-right: none;
|
|
639
719
|
}
|
|
640
720
|
|
|
641
721
|
body.theme-custom table th {
|
|
642
722
|
border: none;
|
|
643
|
-
border-bottom:
|
|
723
|
+
border-bottom: 1px solid var(--gray-9);
|
|
644
724
|
background: transparent; /* 三线表标准:表头透明或极浅 */
|
|
645
725
|
}
|
|
646
726
|
|
|
@@ -649,16 +729,18 @@ body.theme-custom table td {
|
|
|
649
729
|
border-bottom: none;
|
|
650
730
|
}
|
|
651
731
|
|
|
652
|
-
/* ── 12. 图片(图题:宋体 五号
|
|
732
|
+
/* ── 12. 图片(图题:宋体 五号 14px,居中,位于图下方) ── */
|
|
653
733
|
img, body.theme-custom img { max-width: 100%; }
|
|
654
|
-
p > img:only-child, body.theme-custom p > img:only-child { display: block; margin:
|
|
655
|
-
body.theme-custom figure { margin:
|
|
734
|
+
p > img:only-child, body.theme-custom p > img:only-child { display: block; margin: 16px auto; }
|
|
735
|
+
body.theme-custom figure { margin: 16px 0; text-align: center; }
|
|
736
|
+
body.theme-custom .md-image-src { margin: 16px auto; display: block; }
|
|
656
737
|
body.theme-custom figcaption {
|
|
657
738
|
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
|
|
658
|
-
font-size:
|
|
659
|
-
|
|
660
|
-
margin-top: 6pt;
|
|
739
|
+
font-size: 14px;
|
|
740
|
+
line-height: 1.5;
|
|
661
741
|
text-align: center;
|
|
742
|
+
color: var(--gray-9);
|
|
743
|
+
margin-top: 8px;
|
|
662
744
|
}
|
|
663
745
|
|
|
664
746
|
/* ── 13. 数学公式(纯黑白) ── */
|
|
@@ -667,7 +749,7 @@ body.theme-custom figcaption {
|
|
|
667
749
|
body.theme-custom .math-block {
|
|
668
750
|
background: var(--gray-0);
|
|
669
751
|
padding: 12px 0;
|
|
670
|
-
margin:
|
|
752
|
+
margin: 16px 0;
|
|
671
753
|
border-radius: 0;
|
|
672
754
|
border: none;
|
|
673
755
|
text-align: center;
|
|
@@ -690,13 +772,13 @@ body.theme-custom .math-inline .katex *,
|
|
|
690
772
|
|
|
691
773
|
.md-diagram-panel { margin: 1.5em 0; }
|
|
692
774
|
|
|
693
|
-
/* ── 14.0 图表备注(图题):宋体 五号
|
|
694
|
-
body.theme-custom .
|
|
775
|
+
/* ── 14.0 图表备注(图题):宋体 五号 14px,居中,GB/T 7713 ── */
|
|
776
|
+
body.theme-custom .md-filename {
|
|
695
777
|
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
|
|
696
|
-
font-size:
|
|
697
|
-
text-align: center;
|
|
778
|
+
font-size: 14px;
|
|
698
779
|
color: var(--gray-9);
|
|
699
|
-
|
|
780
|
+
text-align: center;
|
|
781
|
+
margin-top: 8px;
|
|
700
782
|
}
|
|
701
783
|
|
|
702
784
|
body.theme-custom .mermaid-block {
|
|
@@ -719,11 +801,11 @@ body.theme-custom .mermaid-preview { background: transparent; border: none; padd
|
|
|
719
801
|
.md-diagram-panel.md-mermaid svg,
|
|
720
802
|
body.theme-custom .mermaid-preview svg { max-width: 100%; height: auto; }
|
|
721
803
|
|
|
722
|
-
/* ── 14.1 全局字体:黑体 小五号
|
|
804
|
+
/* ── 14.1 全局字体:黑体 小五号 12px(GB/T 7713 图表字),独立于正文 ── */
|
|
723
805
|
body.theme-custom .mermaid-preview svg text,
|
|
724
806
|
body.theme-custom .mermaid-preview svg tspan {
|
|
725
807
|
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
|
|
726
|
-
font-size:
|
|
808
|
+
font-size: 12px !important;
|
|
727
809
|
fill: var(--mermaid-node-text) !important;
|
|
728
810
|
}
|
|
729
811
|
body.theme-custom .mermaid-preview svg foreignObject span,
|
|
@@ -732,12 +814,12 @@ body.theme-custom .mermaid-preview svg foreignObject div,
|
|
|
732
814
|
body.theme-custom .mermaid-preview svg .nodeLabel span,
|
|
733
815
|
body.theme-custom .mermaid-preview svg .edgeLabel span {
|
|
734
816
|
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
|
|
735
|
-
font-size:
|
|
817
|
+
font-size: 12px !important;
|
|
736
818
|
color: var(--mermaid-node-text) !important;
|
|
737
819
|
}
|
|
738
820
|
body.theme-custom .mermaid-preview svg .titleText,
|
|
739
821
|
body.theme-custom .mermaid-preview svg .pieTitleText {
|
|
740
|
-
font-size:
|
|
822
|
+
font-size: 12px !important;
|
|
741
823
|
fill: var(--mermaid-title-text) !important;
|
|
742
824
|
}
|
|
743
825
|
|
|
@@ -1105,7 +1187,7 @@ body.theme-custom .mermaid-source {
|
|
|
1105
1187
|
border: 1px solid var(--mermaid-node-stroke);
|
|
1106
1188
|
border-radius: 0;
|
|
1107
1189
|
padding: 12px;
|
|
1108
|
-
font-size:
|
|
1190
|
+
font-size: 14px;
|
|
1109
1191
|
font-family: "Courier New", "Consolas", monospace;
|
|
1110
1192
|
color: var(--text-color);
|
|
1111
1193
|
background: var(--surface-color);
|
|
@@ -1118,21 +1200,21 @@ body.theme-custom .mermaid-source:focus {
|
|
|
1118
1200
|
border-color: var(--mermaid-node-text);
|
|
1119
1201
|
}
|
|
1120
1202
|
|
|
1121
|
-
/* ── 15. 脚注(小五号
|
|
1203
|
+
/* ── 15. 脚注(小五号 12px) ── */
|
|
1122
1204
|
body.theme-custom .footnotes {
|
|
1123
1205
|
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
|
|
1124
|
-
font-size:
|
|
1206
|
+
font-size: 12px;
|
|
1125
1207
|
color: var(--gray-9);
|
|
1126
|
-
margin-top:
|
|
1208
|
+
margin-top: 32px;
|
|
1127
1209
|
border-top: 1px solid var(--gray-9);
|
|
1128
|
-
padding-top:
|
|
1210
|
+
padding-top: 16px;
|
|
1129
1211
|
}
|
|
1130
1212
|
|
|
1131
1213
|
/* ── 15.1 摘要(黑体 五号,"摘要:"加粗,内容宋体 五号) ── */
|
|
1132
1214
|
body.theme-custom p:has(strong):first-of-type,
|
|
1133
1215
|
body.theme-custom #write > p:first-child strong {
|
|
1134
1216
|
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
|
|
1135
|
-
font-size:
|
|
1217
|
+
font-size: 14px;
|
|
1136
1218
|
font-weight: 700;
|
|
1137
1219
|
}
|
|
1138
1220
|
|
|
@@ -1140,14 +1222,14 @@ body.theme-custom #write > p:first-child strong {
|
|
|
1140
1222
|
body.theme-custom .references,
|
|
1141
1223
|
body.theme-custom [class*="reference"] {
|
|
1142
1224
|
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
|
|
1143
|
-
font-size:
|
|
1225
|
+
font-size: 12px;
|
|
1144
1226
|
line-height: 1.5;
|
|
1145
1227
|
}
|
|
1146
1228
|
body.theme-custom .references li,
|
|
1147
1229
|
body.theme-custom [class*="reference"] li {
|
|
1148
1230
|
text-indent: -2em;
|
|
1149
1231
|
padding-left: 2em;
|
|
1150
|
-
margin-bottom:
|
|
1232
|
+
margin-bottom: 6px;
|
|
1151
1233
|
}
|
|
1152
1234
|
|
|
1153
1235
|
/* ── 16. 打印优化(GB/T 7713 页面设置,力求与屏幕显示一致) ── */
|
|
@@ -1159,7 +1241,7 @@ body.theme-custom [class*="reference"] li {
|
|
|
1159
1241
|
@bottom-center {
|
|
1160
1242
|
content: counter(page);
|
|
1161
1243
|
font-family: "SimSun", "Songti SC", serif;
|
|
1162
|
-
font-size:
|
|
1244
|
+
font-size: 12px;
|
|
1163
1245
|
color: var(--gray-9);
|
|
1164
1246
|
}
|
|
1165
1247
|
}
|
|
@@ -1167,7 +1249,7 @@ body.theme-custom [class*="reference"] li {
|
|
|
1167
1249
|
html, body {
|
|
1168
1250
|
background: var(--gray-0) !important;
|
|
1169
1251
|
color: var(--gray-9) !important;
|
|
1170
|
-
font-size:
|
|
1252
|
+
font-size: 20px !important; /* 基础字号:16px × 1.63 ≈ 12.25pt(PDF导出专用)*/
|
|
1171
1253
|
line-height: 1.5 !important;
|
|
1172
1254
|
-webkit-print-color-adjust: exact !important;
|
|
1173
1255
|
print-color-adjust: exact !important;
|
|
@@ -1189,16 +1271,28 @@ body.theme-custom [class*="reference"] li {
|
|
|
1189
1271
|
margin: 0 !important;
|
|
1190
1272
|
}
|
|
1191
1273
|
|
|
1192
|
-
/* ──
|
|
1274
|
+
/* ── 标题保持黑体,强制指定字号 ── */
|
|
1193
1275
|
h1, h2, h3, h4, h5, h6 {
|
|
1194
1276
|
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
|
|
1195
1277
|
color: var(--gray-9) !important;
|
|
1196
1278
|
}
|
|
1197
|
-
|
|
1198
|
-
/*
|
|
1279
|
+
/* 强制标题字号(PDF导出专用补偿值,屏幕显示不受影响) */
|
|
1280
|
+
h1 { font-size: 26px !important; } /* 三号:22px × 1.63 ≈ 16pt */
|
|
1281
|
+
h2 { font-size: 22px !important; } /* 四号:18px × 1.63 ≈ 13.5pt */
|
|
1282
|
+
h3 { font-size: 20px !important; } /* 小四号:16px × 1.63 ≈ 12.25pt */
|
|
1283
|
+
h4 { font-size: 20px !important; } /* 小四号:同上 */
|
|
1284
|
+
h5 { font-size: 18px !important; } /* 五号:14px × 1.63 ≈ 11pt */
|
|
1285
|
+
h6 { font-size: 18px !important; } /* 五号:同上 */
|
|
1286
|
+
|
|
1287
|
+
/* ── 正文保留宋体首行缩进,强制字号 ── */
|
|
1199
1288
|
p {
|
|
1200
1289
|
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", serif !important;
|
|
1201
1290
|
color: var(--gray-9) !important;
|
|
1291
|
+
font-size: 20px !important; /* 小四号:16px × 1.63 ≈ 12.25pt(PDF导出专用)*/
|
|
1292
|
+
text-indent: 2em !important; /* 首行缩进2字符 */
|
|
1293
|
+
line-height: 1.5 !important;
|
|
1294
|
+
text-align: justify !important;
|
|
1295
|
+
margin: 0 !important;
|
|
1202
1296
|
}
|
|
1203
1297
|
|
|
1204
1298
|
/* ── 链接 ── */
|
|
@@ -1213,7 +1307,7 @@ body.theme-custom [class*="reference"] li {
|
|
|
1213
1307
|
background: var(--gray-1) !important;
|
|
1214
1308
|
border-left: 3px solid var(--gray-9) !important;
|
|
1215
1309
|
color: var(--gray-9) !important;
|
|
1216
|
-
font-size:
|
|
1310
|
+
font-size: 18px !important; /* 五号:14px × 1.63 ≈ 11pt(PDF导出专用)*/
|
|
1217
1311
|
}
|
|
1218
1312
|
|
|
1219
1313
|
/* ── 内联代码(无边框,浅灰底) ── */
|
|
@@ -1224,6 +1318,7 @@ body.theme-custom [class*="reference"] li {
|
|
|
1224
1318
|
border-radius: 0 !important;
|
|
1225
1319
|
padding: 1px 6px !important;
|
|
1226
1320
|
font-family: "Courier New", "Consolas", monospace !important;
|
|
1321
|
+
font-size: 18px !important; /* 五号:14px × 1.63 ≈ 11pt(PDF导出专用)*/
|
|
1227
1322
|
}
|
|
1228
1323
|
|
|
1229
1324
|
/* ── 代码块(浅灰底,直角,无边框) ── */
|
|
@@ -1232,7 +1327,7 @@ body.theme-custom [class*="reference"] li {
|
|
|
1232
1327
|
color: var(--gray-9) !important;
|
|
1233
1328
|
border: none !important;
|
|
1234
1329
|
border-radius: 0 !important;
|
|
1235
|
-
font-size:
|
|
1330
|
+
font-size: 18px !important; /* 五号:14px × 1.63 ≈ 11pt(PDF导出专用)*/
|
|
1236
1331
|
line-height: 1.5 !important;
|
|
1237
1332
|
font-family: "Courier New", "Consolas", monospace !important;
|
|
1238
1333
|
}
|
|
@@ -1245,15 +1340,15 @@ body.theme-custom [class*="reference"] li {
|
|
|
1245
1340
|
/* ── 表格:三线表(顶线 + 表头底线 + 底线),无竖线 ── */
|
|
1246
1341
|
table {
|
|
1247
1342
|
border-collapse: collapse !important;
|
|
1248
|
-
border-top:
|
|
1249
|
-
border-bottom:
|
|
1343
|
+
border-top: 2px solid var(--gray-9) !important;
|
|
1344
|
+
border-bottom: 2px solid var(--gray-9) !important;
|
|
1250
1345
|
border-left: none !important;
|
|
1251
1346
|
border-right: none !important;
|
|
1252
|
-
font-size:
|
|
1347
|
+
font-size: 18px !important; /* 五号:14px × 1.63 ≈ 11pt(PDF导出专用)*/
|
|
1253
1348
|
}
|
|
1254
1349
|
table th {
|
|
1255
1350
|
border: none !important;
|
|
1256
|
-
border-bottom:
|
|
1351
|
+
border-bottom: 2px solid var(--gray-9) !important;
|
|
1257
1352
|
background: transparent !important; /* 三线表标准:表头透明 */
|
|
1258
1353
|
-webkit-print-color-adjust: exact !important;
|
|
1259
1354
|
print-color-adjust: exact !important;
|
|
@@ -1291,7 +1386,7 @@ body.theme-custom [class*="reference"] li {
|
|
|
1291
1386
|
}
|
|
1292
1387
|
body.theme-custom .mermaid-block + p {
|
|
1293
1388
|
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif !important;
|
|
1294
|
-
font-size:
|
|
1389
|
+
font-size: 18px !important; /* 五号:14px × 1.63 ≈ 11pt(PDF导出专用)*/
|
|
1295
1390
|
text-align: center !important;
|
|
1296
1391
|
color: var(--gray-9) !important;
|
|
1297
1392
|
}
|
|
@@ -1299,7 +1394,7 @@ body.theme-custom [class*="reference"] li {
|
|
|
1299
1394
|
/* ── 脚注与参考文献 ── */
|
|
1300
1395
|
.footnotes {
|
|
1301
1396
|
border-top: 1px solid var(--gray-9) !important;
|
|
1302
|
-
font-size:
|
|
1397
|
+
font-size: 14px !important; /* 小五号:9px × 1.63 ≈ 8.6pt(PDF导出专用)*/
|
|
1303
1398
|
}
|
|
1304
1399
|
|
|
1305
1400
|
h1 { page-break-before: avoid; }
|
|
@@ -1314,7 +1409,7 @@ body.theme-custom { scrollbar-width: auto; scrollbar-color: var(--gray-8); }
|
|
|
1314
1409
|
/* ── 18. 源码编辑模式 ── */
|
|
1315
1410
|
body.theme-custom #source-editor {
|
|
1316
1411
|
font-family: "Courier New", "Consolas", "Source Code Pro", monospace;
|
|
1317
|
-
font-size:
|
|
1412
|
+
font-size: 16px;
|
|
1318
1413
|
line-height: 1.5;
|
|
1319
1414
|
background: var(--gray-0);
|
|
1320
1415
|
color: var(--gray-9);
|