@bytechain.cn/colamd 1.5.0 → 1.5.1-beta.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/.trae/specs/optimize-theme-loading/checklist.md +20 -0
- package/.trae/specs/optimize-theme-loading/spec.md +103 -0
- package/.trae/specs/optimize-theme-loading/tasks.md +40 -0
- package/CHANGELOG.md +323 -0
- package/CLAUDE.md +56 -0
- package/README.md +422 -26
- package/README_CN.md +480 -28
- package/android/app/build/.npmkeep +0 -0
- package/android/app/build.gradle +76 -0
- package/android/app/capacitor.build.gradle +24 -0
- package/android/app/proguard-rules.pro +21 -0
- package/android/app/release.keystore +0 -0
- package/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
- package/android/app/src/main/AndroidManifest.xml +64 -0
- package/android/app/src/main/java/cn/bytechain/colamd/MainActivity.java +180 -0
- package/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- 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 +34 -0
- package/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- 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 +4 -0
- package/android/app/src/main/res/values/strings.xml +7 -0
- package/android/app/src/main/res/values/styles.xml +22 -0
- package/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/android/app/src/main/res/xml/network_security_config.xml +8 -0
- package/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
- package/android/build.gradle +29 -0
- package/android/capacitor.settings.gradle +21 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/android/gradle.properties +22 -0
- package/android/gradlew +248 -0
- package/android/gradlew.bat +92 -0
- package/android/settings.gradle +5 -0
- package/android/variables.gradle +16 -0
- package/bytechain.cn-colamd-1.5.1-beta.2.tgz +0 -0
- package/capacitor.config.js +29 -0
- package/capacitor.config.ts +30 -0
- package/demo.md +191 -484
- package/dist/main/index.js +77 -46
- package/dist/renderer/assets/{arc-tTbbM8LO.js → arc-CPdeInCG.js} +1 -1
- package/dist/renderer/assets/{architectureDiagram-3BPJPVTR-CEgYow6c.js → architectureDiagram-3BPJPVTR-BAbnaR9G.js} +4 -3
- package/dist/renderer/assets/{blockDiagram-GPEHLZMM-LHyVtPwW.js → blockDiagram-GPEHLZMM-CYSWjnJg.js} +5 -4
- package/dist/renderer/assets/{c4Diagram-AAUBKEIU-C1P1eJrf.js → c4Diagram-AAUBKEIU-Rb1tstnr.js} +3 -2
- package/dist/renderer/assets/{channel-upve91Tq.js → channel-DpG2A6fE.js} +1 -1
- package/dist/renderer/assets/{chunk-2J33WTMH-lag2vhq9.js → chunk-2J33WTMH-DFc0Jxy_.js} +1 -1
- package/dist/renderer/assets/{chunk-4BX2VUAB-BXJ8Ggh-.js → chunk-4BX2VUAB-BhRxDTNn.js} +1 -1
- package/dist/renderer/assets/{chunk-55IACEB6-CiBpxRa1.js → chunk-55IACEB6-DEgMVBk8.js} +1 -1
- package/dist/renderer/assets/{chunk-727SXJPM-ODeKQFXC.js → chunk-727SXJPM-bjBIfiz8.js} +5 -5
- package/dist/renderer/assets/{chunk-AQP2D5EJ-BK7xJolB.js → chunk-AQP2D5EJ-DwQMzTzD.js} +3 -3
- package/dist/renderer/assets/{chunk-FMBD7UC4-BxpCZPtz.js → chunk-FMBD7UC4-CkphwJzs.js} +1 -1
- package/dist/renderer/assets/{chunk-ND2GUHAM-CqqaU9Ue.js → chunk-ND2GUHAM-oU09z4y4.js} +1 -1
- package/dist/renderer/assets/{chunk-QZHKN3VN-Biq_K124.js → chunk-QZHKN3VN-rCbVuPBn.js} +1 -1
- package/dist/renderer/assets/{classDiagram-v2-Q7XG4LA2-Cq95X99o.js → classDiagram-4FO5ZUOK-DGS2faoM.js} +7 -6
- package/dist/renderer/assets/{classDiagram-4FO5ZUOK-Cq95X99o.js → classDiagram-v2-Q7XG4LA2-DGS2faoM.js} +7 -6
- package/dist/renderer/assets/{cose-bilkent-S5V4N54A-XasiD0bu.js → cose-bilkent-S5V4N54A-iqY6-EwA.js} +2 -1
- package/dist/renderer/assets/{dagre-BM42HDAG-Nq84Gfx4.js → dagre-BM42HDAG-5t3X5sDa.js} +4 -3
- package/dist/renderer/assets/{diagram-2AECGRRQ-DwuB1GWt.js → diagram-2AECGRRQ-DzHiYDPh.js} +4 -3
- package/dist/renderer/assets/{diagram-5GNKFQAL-C2tgeI1h.js → diagram-5GNKFQAL-BiNv6Keq.js} +5 -4
- package/dist/renderer/assets/{diagram-KO2AKTUF-D5KzjNBc.js → diagram-KO2AKTUF-ClzeDG6f.js} +4 -3
- package/dist/renderer/assets/{diagram-LMA3HP47-C12xHS1c.js → diagram-LMA3HP47-CGkw7wII.js} +4 -3
- package/dist/renderer/assets/{diagram-OG6HWLK6-CnxI9oEa.js → diagram-OG6HWLK6-Dl-Hyk1_.js} +5 -4
- package/dist/renderer/assets/{erDiagram-TEJ5UH35-D_uPaKwn.js → erDiagram-TEJ5UH35-BxUN79Qb.js} +5 -4
- package/dist/renderer/assets/{flowDiagram-I6XJVG4X-B6q_1-tE.js → flowDiagram-I6XJVG4X-CzFk-KNI.js} +7 -6
- package/dist/renderer/assets/{ganttDiagram-6RSMTGT7-CFo7ifF9.js → ganttDiagram-6RSMTGT7-C2xl6Igx.js} +3 -2
- package/dist/renderer/assets/{gitGraphDiagram-PVQCEYII-WSexHTnq.js → gitGraphDiagram-PVQCEYII-_fn7XCa7.js} +5 -4
- package/dist/renderer/assets/{graph-DyX_9f6d.js → graph-CDoHYrHm.js} +1 -1
- package/dist/renderer/assets/index-B4uDgADr.js +530 -0
- package/dist/renderer/assets/index-CBcVpA3d.js +30 -0
- package/dist/renderer/assets/index-CGj1spkU.js +27 -0
- package/dist/renderer/assets/{index-dyHEFYvY.css → index-CeFpoCKV.css} +443 -400
- package/dist/renderer/assets/index-D4CPFkph.js +9 -0
- package/dist/renderer/assets/{index-DW7LS8C1.js → index-DAlXyxzt.js} +1183 -346
- package/dist/renderer/assets/index-DxOzbfR-.js +110 -0
- package/dist/renderer/assets/index-Y89U1ptl.js +9 -0
- package/dist/renderer/assets/{infoDiagram-5YYISTIA-DaeJdLRq.js → infoDiagram-5YYISTIA-DL6XIxLz.js} +3 -2
- package/dist/renderer/assets/{ishikawaDiagram-YF4QCWOH-DDCZc35f.js → ishikawaDiagram-YF4QCWOH-BUZLjRo-.js} +2 -1
- package/dist/renderer/assets/{journeyDiagram-JHISSGLW-BEdmpAgl.js → journeyDiagram-JHISSGLW-C4rH_mQM.js} +5 -4
- package/dist/renderer/assets/{kanban-definition-UN3LZRKU-BEFtQcFb.js → kanban-definition-UN3LZRKU-DRbrBcWV.js} +3 -2
- package/dist/renderer/assets/{layout-CAJgQHdw.js → layout-DZl4n4qu.js} +2 -2
- package/dist/renderer/assets/{linear-B2ggJ8Am.js → linear-B0Krxg21.js} +1 -1
- package/dist/renderer/assets/{mindmap-definition-RKZ34NQL-DSxVgHB5.js → mindmap-definition-RKZ34NQL-DdmPsWrn.js} +4 -3
- package/dist/renderer/assets/{pieDiagram-4H26LBE5-CwYoJBuL.js → pieDiagram-4H26LBE5-BPZLqwG0.js} +5 -4
- package/dist/renderer/assets/preload-helper-tXtZnHb0.js +88 -0
- package/dist/renderer/assets/{quadrantDiagram-W4KKPZXB-CST9Fvg9.js → quadrantDiagram-W4KKPZXB-Dr-oWRk9.js} +3 -2
- package/dist/renderer/assets/{requirementDiagram-4Y6WPE33-DtrH52jS.js → requirementDiagram-4Y6WPE33-B6QZd0lo.js} +4 -3
- package/dist/renderer/assets/{sankeyDiagram-5OEKKPKP-ca1tPzJ_.js → sankeyDiagram-5OEKKPKP-Cyl9ojEt.js} +2 -1
- package/dist/renderer/assets/{sequenceDiagram-3UESZ5HK-Dfp1EJZ7.js → sequenceDiagram-3UESZ5HK-D48Yr9T6.js} +4 -3
- package/dist/renderer/assets/{stateDiagram-AJRCARHV-Bha2QoNB.js → stateDiagram-AJRCARHV-qyb8ETsa.js} +7 -6
- package/dist/renderer/assets/{stateDiagram-v2-BHNVJYJU-DWgFUYu1.js → stateDiagram-v2-BHNVJYJU-DmDOyyrJ.js} +5 -4
- package/dist/renderer/assets/{timeline-definition-PNZ67QCA-C3h_-OTj.js → timeline-definition-PNZ67QCA-C-KQxTi1.js} +3 -2
- package/dist/renderer/assets/{vennDiagram-CIIHVFJN-DFzjSrZi.js → vennDiagram-CIIHVFJN-BdaZlnH-.js} +2 -1
- package/dist/renderer/assets/{wardley-L42UT6IY-Cx-VbqoS.js → wardley-L42UT6IY-b-_GPpqL.js} +1 -1
- package/dist/renderer/assets/{wardleyDiagram-YWT4CUSO-S2D9XqX6.js → wardleyDiagram-YWT4CUSO-B2hBE-EE.js} +4 -3
- package/dist/renderer/assets/web-BKE0SH0E.js +36 -0
- package/dist/renderer/assets/web-CBsFp24u.js +564 -0
- package/dist/renderer/assets/web-Dc8YgoHP.js +24 -0
- package/dist/renderer/assets/web-TfDzToU7.js +58 -0
- package/dist/renderer/assets/{xychartDiagram-2RQKCTM6-Cfxigbts.js → xychartDiagram-2RQKCTM6-CSvswDTY.js} +3 -2
- package/dist/renderer/index.html +62 -3
- package/docs/academic-demo.md +566 -0
- package/docs/demo.html +748 -0
- package/docs/demo.md +546 -0
- package/docs/demo.pdf +0 -0
- package/docs/theme-paradigm.md +658 -0
- package/electron-builder.yml +7 -0
- package/electron.vite.config.js +31 -0
- package/electron.vite.config.ts +1 -1
- package/ios/App/App/AppDelegate.swift +49 -0
- package/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- 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 +32 -0
- package/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/ios/App/App/Info.plist +49 -0
- package/ios/App/App.xcodeproj/project.pbxproj +408 -0
- package/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/App/Podfile +28 -0
- package/package.json +23 -3
- package/resources/templates/slides/template-forest-ink.html +540 -0
- package/scripts/generate-icons.js +102 -0
- package/src/main/index.ts +87 -63
- package/src/preload/index.d.ts +51 -0
- package/src/preload/index.js +70 -0
- package/src/renderer/capacitor-api.ts +713 -0
- package/src/renderer/editor/editor.ts +87 -4
- package/src/renderer/editor/plugins/index.ts +24 -32
- package/src/renderer/editor/plugins/math-plugin.ts +1 -1
- package/src/renderer/editor/plugins/mermaid-plugin-custom.css +13 -398
- package/src/renderer/editor/plugins/mermaid-plugin.ts +62 -71
- package/src/renderer/editor/plugins/themes/base/dark.css +23 -0
- package/src/renderer/editor/plugins/themes/base/elegant.css +32 -0
- package/src/renderer/editor/plugins/themes/base/light.css +20 -0
- package/src/renderer/editor/plugins/themes/base/newsprint.css +27 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/academic.css +43 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/dark.css +20 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/elegant.css +24 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/light.css +21 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/newsprint.css +26 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/variables.css +592 -0
- package/src/renderer/editor/plugins/themes/foundation.css +143 -0
- package/src/renderer/editor/plugins/themes/theme-manager.ts +92 -0
- package/src/renderer/env.d.ts +4 -1
- package/src/renderer/index.html +59 -1
- package/src/renderer/main.ts +432 -57
- package/src/renderer/mobile.css +429 -0
- package/themes/README.md +3 -0
- package/themes/academic-paper.css +1321 -0
- package/themes/elegant.css +14 -7
- package/themes/forest-ink.css +664 -0
- package/themes/pixso-design.css +1261 -0
- package/themes/swiss-design.css +596 -0
- package/themes/template.css +498 -0
- package/tsconfig.main.json +1 -0
- package/tsconfig.main.tsbuildinfo +1 -0
- package/tsconfig.preload.json +1 -0
- package/tsconfig.preload.tsbuildinfo +1 -0
- package/tsconfig.renderer.json +1 -0
- package/tsconfig.renderer.tsbuildinfo +1 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/.trae/documents/fix-mermaid-colors-and-sankey.md +0 -50
- package/src/renderer/themes/theme-manager.ts +0 -40
- /package/src/renderer/{themes → editor/plugins/themes}/base.css +0 -0
|
@@ -0,0 +1,1321 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD 主题:Academic Paper (学术论文打印)
|
|
3
|
+
* 配色:纯白底 + 纯黑正文 + 归藏暖色系 Mermaid
|
|
4
|
+
* 格式:遵循中文学术论文排版规范(GB/T 7713)
|
|
5
|
+
* 兼容:ColaMD (body.theme-custom) / Typora
|
|
6
|
+
* 导入:Theme > Import Theme
|
|
7
|
+
* @template: light
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/* ── 1. 根变量 & 主题变量 ── */
|
|
11
|
+
:root {
|
|
12
|
+
--side-bar-bg-color: #f5f5f5;
|
|
13
|
+
--control-text-color: #333;
|
|
14
|
+
--active-file-bg-color: #e8e8e8;
|
|
15
|
+
--active-file-text-color: #000;
|
|
16
|
+
--active-file-border-color: #000;
|
|
17
|
+
|
|
18
|
+
/* ═══════════════════════════════════════════
|
|
19
|
+
印刷友好灰度色板(GB/T 7713 学术论文规范)
|
|
20
|
+
基于10级亮度感知,确保打印/屏幕一致性
|
|
21
|
+
═══════════════════════════════════════════ */
|
|
22
|
+
--gray-0: #ffffff; /* 纯白 - 页面背景 */
|
|
23
|
+
--gray-1: #fafafa; /* 极浅灰 - 次要表面 */
|
|
24
|
+
--gray-2: #f5f5f5; /* 浅灰 - 代码/区块背景 */
|
|
25
|
+
--gray-3: #eeeeee; /* 中浅灰 - 表头底色 */
|
|
26
|
+
--gray-4: #e0e0e0; /* 浅中灰 - 高亮标记 */
|
|
27
|
+
--gray-5: #cccccc; /* 中灰 - 边框/分割线 */
|
|
28
|
+
--gray-6: #999999; /* 中深灰 - 次要文字 */
|
|
29
|
+
--gray-7: #666666; /* 深灰 - 弱化文字 */
|
|
30
|
+
--gray-8: #333333; /* 近黑 - 强调边框 */
|
|
31
|
+
--gray-9: #000000; /* 纯黑 - 正文/标题 */
|
|
32
|
+
|
|
33
|
+
/* 核心语义变量(基于灰度色板) */
|
|
34
|
+
--bg-color: var(--gray-0);
|
|
35
|
+
--text-color: var(--gray-9);
|
|
36
|
+
--select-text-bg-color: rgba(0, 0, 0, 0.12);
|
|
37
|
+
--select-text-font-color: var(--gray-9);
|
|
38
|
+
--rawblock-edit-panel-bd: var(--gray-5);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
body.theme-custom {
|
|
42
|
+
/* ═══ 核心语义变量(GB/T 7713 印刷优化) ═══ */
|
|
43
|
+
--bg-color: var(--gray-0);
|
|
44
|
+
--text-color: var(--gray-9);
|
|
45
|
+
--heading-color: var(--gray-9);
|
|
46
|
+
--border-color: var(--gray-9);
|
|
47
|
+
|
|
48
|
+
/* 背景层次(从浅到深) */
|
|
49
|
+
--code-bg: var(--gray-2);
|
|
50
|
+
--code-color: var(--gray-9);
|
|
51
|
+
--code-block-bg: var(--gray-2);
|
|
52
|
+
--code-block-text: var(--gray-9);
|
|
53
|
+
--code-block-color: var(--gray-9);
|
|
54
|
+
--blockquote-bg: var(--gray-1);
|
|
55
|
+
--blockquote-border: var(--gray-9);
|
|
56
|
+
--surface-color: var(--gray-2);
|
|
57
|
+
--surface-alt: var(--gray-1);
|
|
58
|
+
|
|
59
|
+
/* 文字层次(从深到浅,按重要性降序) */
|
|
60
|
+
--link-color: var(--gray-9);
|
|
61
|
+
--accent-color: var(--gray-9);
|
|
62
|
+
--accent-dark: var(--gray-9);
|
|
63
|
+
--accent-light: var(--gray-4);
|
|
64
|
+
--text-muted: var(--gray-8);
|
|
65
|
+
--text-dim: var(--gray-7);
|
|
66
|
+
|
|
67
|
+
/* 交互状态 */
|
|
68
|
+
--selection-bg: rgba(0, 0, 0, 0.12);
|
|
69
|
+
|
|
70
|
+
/* 表格系统(三线表规范 GB/T 7713) */
|
|
71
|
+
--table-header-bg: transparent; /* 三线表:表头无底色或极浅 */
|
|
72
|
+
--table-stripe: rgba(0, 0, 0, 0.02); /* 长表格斑马纹(可选) */
|
|
73
|
+
|
|
74
|
+
/* 滚动条 */
|
|
75
|
+
--scrollbar-thumb: var(--gray-5);
|
|
76
|
+
--scrollbar-thumb-hover: var(--gray-6);
|
|
77
|
+
|
|
78
|
+
/* 分割线 */
|
|
79
|
+
--hr-color: var(--gray-9);
|
|
80
|
+
/* Mermaid 全局字体:黑体 小五号 9pt(GB/T 7713 图表字),独立于正文 */
|
|
81
|
+
--mermaid-font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
|
|
82
|
+
--mermaid-font-size: 9pt;
|
|
83
|
+
--mermaid-dark-mode: false;
|
|
84
|
+
/* ═══ Mermaid 图表系统(印刷友好灰度) ═══ */
|
|
85
|
+
/* 背景与边框 */
|
|
86
|
+
--mermaid-background: var(--gray-0);
|
|
87
|
+
--mermaid-border-color: var(--gray-5);
|
|
88
|
+
--mermaid-border-radius: 0;
|
|
89
|
+
--mermaid-padding: 20px;
|
|
90
|
+
|
|
91
|
+
/* 节点色块:莫兰迪浅灰(确保打印可辨) */
|
|
92
|
+
--mermaid-primary-color: var(--gray-3);
|
|
93
|
+
--mermaid-primary-border-color: var(--gray-8);
|
|
94
|
+
--mermaid-primary-text-color: var(--gray-9);
|
|
95
|
+
--mermaid-secondary-color: var(--gray-2);
|
|
96
|
+
--mermaid-secondary-border-color: var(--gray-7);
|
|
97
|
+
--mermaid-secondary-text-color: var(--gray-9);
|
|
98
|
+
--mermaid-tertiary-color: var(--gray-4);
|
|
99
|
+
--mermaid-tertiary-border-color: var(--gray-6);
|
|
100
|
+
--mermaid-tertiary-text-color: var(--gray-9);
|
|
101
|
+
--mermaid-node-fill: var(--gray-3);
|
|
102
|
+
--mermaid-node-bkg: var(--gray-2);
|
|
103
|
+
--mermaid-node-stroke: var(--gray-8);
|
|
104
|
+
--mermaid-node-stroke-width: 1px;
|
|
105
|
+
--mermaid-node-text: var(--gray-9);
|
|
106
|
+
|
|
107
|
+
/* 聚类 */
|
|
108
|
+
--mermaid-cluster-fill: var(--gray-1);
|
|
109
|
+
--mermaid-cluster-bkg: var(--gray-1);
|
|
110
|
+
--mermaid-cluster-stroke: var(--gray-7);
|
|
111
|
+
--mermaid-cluster-dasharray: none;
|
|
112
|
+
|
|
113
|
+
/* 边线/连线:深灰黑色便于打印 */
|
|
114
|
+
--mermaid-edge-stroke: var(--gray-8);
|
|
115
|
+
--mermaid-edge-stroke-width: 1px;
|
|
116
|
+
|
|
117
|
+
/* 标签 */
|
|
118
|
+
--mermaid-label-text: var(--gray-9);
|
|
119
|
+
--mermaid-label-text-color: var(--gray-9);
|
|
120
|
+
--mermaid-label-background: var(--gray-0);
|
|
121
|
+
--mermaid-label-offset-y: 0px;
|
|
122
|
+
|
|
123
|
+
/* 边标签 */
|
|
124
|
+
--mermaid-edge-label-text: var(--gray-9);
|
|
125
|
+
--mermaid-edge-label-bg: var(--gray-0);
|
|
126
|
+
--mermaid-edge-label-background: var(--gray-0);
|
|
127
|
+
|
|
128
|
+
/* 主色/对比色 */
|
|
129
|
+
--mermaid-main-bkg: var(--gray-3);
|
|
130
|
+
--mermaid-second-bkg: var(--gray-2);
|
|
131
|
+
--mermaid-main-contrast-color: var(--gray-9);
|
|
132
|
+
--mermaid-title-text: var(--gray-9);
|
|
133
|
+
--mermaid-axis-text: var(--gray-7);
|
|
134
|
+
--mermaid-highlight: var(--gray-8);
|
|
135
|
+
--mermaid-line-color: var(--gray-6);
|
|
136
|
+
|
|
137
|
+
/* 人物/角色 */
|
|
138
|
+
--mermaid-person-stroke: var(--gray-8);
|
|
139
|
+
--mermaid-person-bkg: var(--gray-2);
|
|
140
|
+
/* 莫兰迪灰色阶色板(Graph/Chart 多系列区分,基于灰度色板) */
|
|
141
|
+
--mermaid-cscale0: var(--gray-6); /* #999999 → gray-6 */
|
|
142
|
+
--mermaid-cscale1: var(--gray-7); /* #8C8E90 ≈ gray-7 */
|
|
143
|
+
--mermaid-cscale2: var(--gray-6); /* #B0B0B0 ≈ gray-6 */
|
|
144
|
+
--mermaid-cscale3: var(--gray-8); /* #787878 → gray-8 */
|
|
145
|
+
--mermaid-cscale4: var(--gray-6); /* #9E9E9E ≈ gray-6 */
|
|
146
|
+
--mermaid-cscale5: var(--gray-7); /* #949698 ≈ gray-7 */
|
|
147
|
+
--mermaid-cscale6: var(--gray-8); /* #6E6E6E → gray-8 */
|
|
148
|
+
--mermaid-cscale7: var(--gray-6); /* #A0A0A0 ≈ gray-6 */
|
|
149
|
+
--mermaid-cscale8: var(--gray-7); /* #848688 ≈ gray-7 */
|
|
150
|
+
--mermaid-cscale9: var(--gray-6); /* #AAAAAA ≈ gray-6 */
|
|
151
|
+
--mermaid-cscale10: var(--gray-8); /* #7A7A7C ≈ gray-8 */
|
|
152
|
+
--mermaid-cscale11: var(--gray-7); /* #929294 ≈ gray-7 */
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
pre { --select-text-bg-color: rgba(0, 0, 0, 0.12); --select-text-font-color: var(--gray-9); }
|
|
156
|
+
|
|
157
|
+
/* ── 2. 全局 ── */
|
|
158
|
+
html { font-size: 12pt; -webkit-font-smoothing: antialiased; }
|
|
159
|
+
|
|
160
|
+
body.theme-custom, html, body {
|
|
161
|
+
background-color: var(--gray-0);
|
|
162
|
+
color: var(--gray-9);
|
|
163
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
|
|
164
|
+
line-height: 1.5;
|
|
165
|
+
font-size: 12pt;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
body.theme-custom { -webkit-font-smoothing: antialiased; }
|
|
169
|
+
|
|
170
|
+
body.theme-custom #editor { max-width: 210mm; margin: 0 auto; padding: 25mm 25mm 25mm 30mm; }
|
|
171
|
+
#write { max-width: 210mm; margin: 0 auto; padding: 0; }
|
|
172
|
+
#write > ul:first-child, #write > ol:first-child { margin-top: 30px; }
|
|
173
|
+
|
|
174
|
+
@media only screen and (min-width: 1400px) { #write { max-width: 210mm; } }
|
|
175
|
+
@media only screen and (max-width: 768px) {
|
|
176
|
+
#write { padding: 15mm 12mm 15mm 12mm; }
|
|
177
|
+
body.theme-custom .mermaid-block,
|
|
178
|
+
body.theme-custom .mermaid-preview,
|
|
179
|
+
.md-diagram-panel.md-mermaid { padding: 12px; margin: 1em 0; }
|
|
180
|
+
body.theme-custom .mermaid-preview svg { max-width: 100% !important; height: auto !important; }
|
|
181
|
+
body.theme-custom .mermaid-preview svg text { font-size: 9pt !important; }
|
|
182
|
+
.md-diagram-panel.md-mermaid svg text { font-size: 9pt !important; }
|
|
183
|
+
body.theme-custom .mermaid-preview svg .titleText { font-size: 10.5pt !important; }
|
|
184
|
+
.md-diagram-panel.md-mermaid svg .titleText { font-size: 10.5pt !important; }
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* ── 3. 标题(GB/T 7713 学术论文规范) ── */
|
|
188
|
+
h1, h2, h3, h4, h5, h6,
|
|
189
|
+
body.theme-custom h1, body.theme-custom h2, body.theme-custom h3,
|
|
190
|
+
body.theme-custom h4, body.theme-custom h5, body.theme-custom h6 {
|
|
191
|
+
position: relative;
|
|
192
|
+
color: var(--gray-9);
|
|
193
|
+
font-weight: 700;
|
|
194
|
+
line-height: 1.35;
|
|
195
|
+
text-indent: 0;
|
|
196
|
+
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", "Arial", sans-serif;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* 一级标题(论文题目):黑体 三号 (16pt),居中,段前后各 1 行 */
|
|
200
|
+
h1, body.theme-custom h1 {
|
|
201
|
+
font-size: 16pt;
|
|
202
|
+
text-align: center;
|
|
203
|
+
margin-top: 24pt;
|
|
204
|
+
margin-bottom: 18pt;
|
|
205
|
+
cursor: text;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* 二级标题(一级节):黑体 四号 (14pt),左对齐,段前 1 行,段后 0.5 行 */
|
|
209
|
+
h2, body.theme-custom h2 {
|
|
210
|
+
font-size: 14pt;
|
|
211
|
+
margin-top: 20pt;
|
|
212
|
+
margin-bottom: 10pt;
|
|
213
|
+
cursor: text;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* 三级标题(二级节):黑体 小四号 (12pt),左对齐,段前 0.5 行,段后 0.5 行 */
|
|
217
|
+
h3, body.theme-custom h3 {
|
|
218
|
+
font-size: 12pt;
|
|
219
|
+
margin-top: 14pt;
|
|
220
|
+
margin-bottom: 7pt;
|
|
221
|
+
cursor: text;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* 四级标题(三级节):黑体 小四号 (12pt),左对齐,段前 0.5 行 */
|
|
225
|
+
h4, body.theme-custom h4 {
|
|
226
|
+
font-size: 12pt;
|
|
227
|
+
margin-top: 14pt;
|
|
228
|
+
margin-bottom: 6pt;
|
|
229
|
+
cursor: text;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* 五级标题 */
|
|
233
|
+
h5, body.theme-custom h5 {
|
|
234
|
+
font-size: 11pt;
|
|
235
|
+
margin-top: 12pt;
|
|
236
|
+
margin-bottom: 5pt;
|
|
237
|
+
cursor: text;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* 六级标题:黑体 五号 10.5pt */
|
|
241
|
+
h6, body.theme-custom h6 {
|
|
242
|
+
font-size: 10.5pt;
|
|
243
|
+
color: var(--gray-9);
|
|
244
|
+
margin-top: 10pt;
|
|
245
|
+
margin-bottom: 4pt;
|
|
246
|
+
cursor: text;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor,
|
|
250
|
+
h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor { text-decoration: none; }
|
|
251
|
+
|
|
252
|
+
/* ── 4. 内联元素 ── */
|
|
253
|
+
/* 正文:宋体 小四号 (12pt),行距 1.5 倍,首行缩进 2 字符 */
|
|
254
|
+
body.theme-custom p, body.theme-custom #write > p {
|
|
255
|
+
margin: 0;
|
|
256
|
+
line-height: 1.5;
|
|
257
|
+
text-align: justify;
|
|
258
|
+
text-indent: 2em;
|
|
259
|
+
font-size: 12pt;
|
|
260
|
+
}
|
|
261
|
+
body.theme-custom p + p { margin-top: 0; }
|
|
262
|
+
|
|
263
|
+
strong, body.theme-custom strong { color: var(--gray-9); font-weight: 700; }
|
|
264
|
+
em, body.theme-custom em { font-style: italic; color: var(--gray-9); }
|
|
265
|
+
em strong, strong em, body.theme-custom em strong, body.theme-custom strong em { color: var(--gray-9); font-weight: 700; }
|
|
266
|
+
|
|
267
|
+
a, body.theme-custom a { color: var(--gray-9); text-decoration: none; border-bottom: 1px solid var(--gray-9); }
|
|
268
|
+
a:hover, body.theme-custom a:hover { text-decoration: none; }
|
|
269
|
+
|
|
270
|
+
u, body.theme-custom u {
|
|
271
|
+
text-decoration: none;
|
|
272
|
+
border-bottom: 1px solid var(--gray-9);
|
|
273
|
+
padding-bottom: 1px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
mark, body.theme-custom mark {
|
|
277
|
+
background: var(--gray-4);
|
|
278
|
+
color: var(--gray-9);
|
|
279
|
+
padding: 1px 4px;
|
|
280
|
+
border-radius: 0;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
del, s { color: var(--gray-7); }
|
|
284
|
+
|
|
285
|
+
/* ── 5. 引用块(左缩进对齐正文,段前段后 0.5 行) ── */
|
|
286
|
+
blockquote, body.theme-custom blockquote {
|
|
287
|
+
margin: 8pt 0;
|
|
288
|
+
padding: 10px 16px 10px 20px;
|
|
289
|
+
border-left: 3px solid var(--gray-9);
|
|
290
|
+
background: var(--gray-1);
|
|
291
|
+
color: var(--gray-9);
|
|
292
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
|
|
293
|
+
font-size: 10.5pt;
|
|
294
|
+
}
|
|
295
|
+
blockquote p, body.theme-custom blockquote p { margin: 3pt 0; text-indent: 0; }
|
|
296
|
+
|
|
297
|
+
/* ── 6. 分割线 ── */
|
|
298
|
+
hr, body.theme-custom hr { border: none; border-top: 1px solid var(--gray-9); margin: 24pt 0; height: 0; }
|
|
299
|
+
|
|
300
|
+
/* ── 7. 列表(GB/T 7713 学术论文规范) ── */
|
|
301
|
+
|
|
302
|
+
/* ── 7.0 重置 ── */
|
|
303
|
+
body.theme-custom ul,
|
|
304
|
+
body.theme-custom ol,
|
|
305
|
+
body.theme-custom li {
|
|
306
|
+
margin: 0;
|
|
307
|
+
padding: 0;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* ── 7.1 容器 ── */
|
|
311
|
+
body.theme-custom #editor .ProseMirror > ul,
|
|
312
|
+
body.theme-custom #editor .ProseMirror > ol,
|
|
313
|
+
body.theme-custom #write > ul:first-of-type,
|
|
314
|
+
body.theme-custom #write > ol:first-of-type {
|
|
315
|
+
margin: 4pt 0 4pt 2em;
|
|
316
|
+
padding-left: 1.5em;
|
|
317
|
+
list-style: none;
|
|
318
|
+
counter-reset: ol-lv1 ul-lv1;
|
|
319
|
+
}
|
|
320
|
+
body.theme-custom ul ul,
|
|
321
|
+
body.theme-custom ul ol,
|
|
322
|
+
body.theme-custom ol ul,
|
|
323
|
+
body.theme-custom ol ol {
|
|
324
|
+
margin: 0;
|
|
325
|
+
padding-left: 1.5em;
|
|
326
|
+
list-style: none;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* ── 7.2 列表项 ── */
|
|
330
|
+
body.theme-custom li {
|
|
331
|
+
line-height: 1.6;
|
|
332
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
|
|
333
|
+
font-size: 12pt;
|
|
334
|
+
font-weight: normal;
|
|
335
|
+
text-indent: 0;
|
|
336
|
+
list-style: none;
|
|
337
|
+
padding: 1pt 0;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* ::before 符号区域:统一 inline 模式,与文字同行基线 */
|
|
341
|
+
body.theme-custom li::before {
|
|
342
|
+
content: "";
|
|
343
|
+
display: inline;
|
|
344
|
+
margin-right: 0.35em;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* ProseMirror li > p 内联化 */
|
|
348
|
+
body.theme-custom #editor .ProseMirror li > p {
|
|
349
|
+
display: inline;
|
|
350
|
+
margin: 0;
|
|
351
|
+
padding: 0;
|
|
352
|
+
text-indent: 0;
|
|
353
|
+
font-size: inherit;
|
|
354
|
+
font-weight: inherit;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* ── 7.3 有序列表编号体系 ── */
|
|
358
|
+
|
|
359
|
+
/* 一级有序:1. 2. 3. */
|
|
360
|
+
body.theme-custom ol > li {
|
|
361
|
+
counter-increment: ol-lv1;
|
|
362
|
+
}
|
|
363
|
+
body.theme-custom ol > li::before {
|
|
364
|
+
content: counter(ol-lv1) ".";
|
|
365
|
+
font-family: "SimSun", "Songti SC", Georgia, serif;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* 二级有序:(1) (2) (3) */
|
|
369
|
+
body.theme-custom ol > li > ol {
|
|
370
|
+
counter-reset: ol-lv2;
|
|
371
|
+
}
|
|
372
|
+
body.theme-custom ol > li > ol > li {
|
|
373
|
+
counter-increment: ol-lv2;
|
|
374
|
+
}
|
|
375
|
+
body.theme-custom ol > li > ol > li::before {
|
|
376
|
+
content: "(" counter(ol-lv2) ")";
|
|
377
|
+
font-family: "SimSun", "Songti SC", Georgia, serif;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* 三级有序:① ② ③ */
|
|
381
|
+
body.theme-custom ol > li > ol > li > ol {
|
|
382
|
+
counter-reset: ol-lv3;
|
|
383
|
+
}
|
|
384
|
+
body.theme-custom ol > li > ol > li > ol > li {
|
|
385
|
+
counter-increment: ol-lv3;
|
|
386
|
+
}
|
|
387
|
+
body.theme-custom ol > li > ol > li > ol > li::before {
|
|
388
|
+
content: counter(ol-lv3, cjk-ideographic) "";
|
|
389
|
+
font-family: "SimSun", "Songti SC", Georgia, serif;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* 四级+有序:i. ii. iii. */
|
|
393
|
+
body.theme-custom ol ol ol ol > li::before {
|
|
394
|
+
content: counter(list-item, lower-roman) ".";
|
|
395
|
+
font-family: "SimSun", "Songti SC", Georgia, serif;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/* ── 7.4 无序列表符号体系 ── */
|
|
399
|
+
|
|
400
|
+
/* 一级无序:■ 实心方块 */
|
|
401
|
+
body.theme-custom ul > li {
|
|
402
|
+
counter-increment: ul-lv1;
|
|
403
|
+
}
|
|
404
|
+
body.theme-custom ul > li::before {
|
|
405
|
+
content: "\25A0\00A0";
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* 二级无序:● 实心圆点 */
|
|
409
|
+
body.theme-custom ul > li > ul {
|
|
410
|
+
counter-reset: ul-lv2;
|
|
411
|
+
}
|
|
412
|
+
body.theme-custom ul > li > ul > li {
|
|
413
|
+
counter-increment: ul-lv2;
|
|
414
|
+
}
|
|
415
|
+
body.theme-custom ul > li > ul > li::before {
|
|
416
|
+
content: "\25CF\00A0";
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* 三级无序:○ 空心圆圈 */
|
|
420
|
+
body.theme-custom ul > li > ul > li > ul {
|
|
421
|
+
counter-reset: ul-lv3;
|
|
422
|
+
}
|
|
423
|
+
body.theme-custom ul > li > ul > li > ul > li {
|
|
424
|
+
counter-increment: ul-lv3;
|
|
425
|
+
}
|
|
426
|
+
body.theme-custom ul > li > ul > li > ul > li::before {
|
|
427
|
+
content: "\25CB\00A0";
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/* 四级+无序:◆ 菱形 */
|
|
431
|
+
body.theme-custom ul ul ul ul > li::before {
|
|
432
|
+
content: "\25C6\00A0";
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/* ── 7.5 混合嵌套(有序↔无序交叉) ── */
|
|
436
|
+
|
|
437
|
+
/* 无序 → 有序 */
|
|
438
|
+
body.theme-custom ul > li > ol {
|
|
439
|
+
counter-reset: ol-mix2;
|
|
440
|
+
}
|
|
441
|
+
body.theme-custom ul > li > ol > li {
|
|
442
|
+
counter-increment: ol-mix2;
|
|
443
|
+
}
|
|
444
|
+
body.theme-custom ul > li > ol > li::before {
|
|
445
|
+
content: "(" counter(ol-mix2) ")";
|
|
446
|
+
font-family: "SimSun", "Songti SC", Georgia, serif;
|
|
447
|
+
}
|
|
448
|
+
body.theme-custom ul > li > ol > li > ol {
|
|
449
|
+
counter-reset: ol-mix3;
|
|
450
|
+
}
|
|
451
|
+
body.theme-custom ul > li > ol > li > ol > li {
|
|
452
|
+
counter-increment: ol-mix3;
|
|
453
|
+
}
|
|
454
|
+
body.theme-custom ul > li > ol > li > ol > li::before {
|
|
455
|
+
content: counter(ol-mix3, lower-roman) ".";
|
|
456
|
+
font-family: "SimSun", "Songti SC", Georgia, serif;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/* 有序 → 无序 */
|
|
460
|
+
body.theme-custom ol > li > ul {
|
|
461
|
+
counter-reset: ul-mix2;
|
|
462
|
+
}
|
|
463
|
+
body.theme-custom ol > li > ul > li {
|
|
464
|
+
counter-increment: ul-mix2;
|
|
465
|
+
}
|
|
466
|
+
body.theme-custom ol > li > ul > li::before {
|
|
467
|
+
content: "\25CF\00A0";
|
|
468
|
+
}
|
|
469
|
+
body.theme-custom ol > li > ul > li > ul {
|
|
470
|
+
counter-reset: ul-mix3;
|
|
471
|
+
}
|
|
472
|
+
body.theme-custom ol > li > ul > li > ul > li {
|
|
473
|
+
counter-increment: ul-mix3;
|
|
474
|
+
}
|
|
475
|
+
body.theme-custom ol > li > ul > li > ul > li::before {
|
|
476
|
+
content: "\25CB\00A0";
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.md-task-list-item > input { margin-left: -1.3em; margin-top: 0.3em; }
|
|
480
|
+
|
|
481
|
+
/* ── 8. 内联代码 ── */
|
|
482
|
+
code, tt,
|
|
483
|
+
body.theme-custom code, body.theme-custom tt {
|
|
484
|
+
font-family: "Courier New", "Consolas", "Source Code Pro", monospace;
|
|
485
|
+
font-size: 0.88em;
|
|
486
|
+
padding: 1px 6px;
|
|
487
|
+
margin: 0 1px;
|
|
488
|
+
background: var(--gray-3);
|
|
489
|
+
border-radius: 0;
|
|
490
|
+
color: var(--gray-9);
|
|
491
|
+
border: none;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* ── 9. 代码块 ── */
|
|
495
|
+
pre.md-fences {
|
|
496
|
+
font-family: "Courier New", "Consolas", "Source Code Pro", monospace;
|
|
497
|
+
font-size: 10.5pt;
|
|
498
|
+
line-height: 1.5;
|
|
499
|
+
background: var(--gray-2);
|
|
500
|
+
color: var(--gray-9);
|
|
501
|
+
padding: 14px 18px;
|
|
502
|
+
border-radius: 0;
|
|
503
|
+
margin: 12pt 0;
|
|
504
|
+
overflow-x: auto;
|
|
505
|
+
border: 1px solid var(--gray-9);
|
|
506
|
+
}
|
|
507
|
+
pre.md-fences code { background: transparent; color: inherit; padding: 0; margin: 0; border-radius: 0; border: none; }
|
|
508
|
+
|
|
509
|
+
body.theme-custom #editor .ProseMirror pre {
|
|
510
|
+
font-family: "Courier New", "Consolas", "Source Code Pro", monospace;
|
|
511
|
+
font-size: 10.5pt;
|
|
512
|
+
line-height: 1.5;
|
|
513
|
+
background: var(--gray-2) !important;
|
|
514
|
+
color: var(--gray-9) !important;
|
|
515
|
+
padding: 14px 18px;
|
|
516
|
+
border-radius: 0;
|
|
517
|
+
margin: 12pt 0;
|
|
518
|
+
overflow-x: auto;
|
|
519
|
+
border: 1px solid var(--gray-9);
|
|
520
|
+
}
|
|
521
|
+
body.theme-custom #editor .ProseMirror pre code {
|
|
522
|
+
background: transparent !important;
|
|
523
|
+
color: var(--gray-9) !important;
|
|
524
|
+
padding: 0; margin: 0; border-radius: 0; border: none;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/* ── 10. 代码语法高亮(黑白打印友好) ── */
|
|
528
|
+
.cm-s-inner { font-family: "Courier New", "Consolas", "Source Code Pro", monospace; font-size: 10.5pt; line-height: 1.5; }
|
|
529
|
+
|
|
530
|
+
body.theme-custom .token.comment, body.theme-custom .token.prolog,
|
|
531
|
+
body.theme-custom .token.doctype, body.theme-custom .token.cdata,
|
|
532
|
+
.cm-s-inner .cm-comment, .cm-s-inner .cm-quote, .cm-s-inner .cm-hr { color: var(--gray-7); font-style: italic; }
|
|
533
|
+
|
|
534
|
+
body.theme-custom .token.punctuation, .cm-s-inner .cm-meta { color: var(--gray-8); }
|
|
535
|
+
|
|
536
|
+
body.theme-custom .token.keyword, body.theme-custom .token.important,
|
|
537
|
+
.cm-s-inner .cm-keyword { color: var(--gray-9); font-weight: 700; }
|
|
538
|
+
|
|
539
|
+
body.theme-custom .token.boolean, body.theme-custom .token.builtin,
|
|
540
|
+
body.theme-custom .token.tag, body.theme-custom .token.selector,
|
|
541
|
+
body.theme-custom .token.constant, body.theme-custom .token.deleted,
|
|
542
|
+
.cm-s-inner .cm-atom, .cm-s-inner .cm-builtin,
|
|
543
|
+
.cm-s-inner .cm-tag, .cm-s-inner .cm-error { color: var(--gray-9); font-weight: 600; }
|
|
544
|
+
|
|
545
|
+
body.theme-custom .token.string, body.theme-custom .token.attr-value,
|
|
546
|
+
body.theme-custom .token.symbol, body.theme-custom .token.inserted,
|
|
547
|
+
.cm-s-inner .cm-string { color: var(--gray-8); }
|
|
548
|
+
|
|
549
|
+
body.theme-custom .token.number, .cm-s-inner .cm-number { color: var(--gray-9); }
|
|
550
|
+
|
|
551
|
+
body.theme-custom .token.function, body.theme-custom .token.class-name,
|
|
552
|
+
body.theme-custom .token.variable, body.theme-custom .token.attr-name,
|
|
553
|
+
body.theme-custom .token.property, body.theme-custom .token.entity,
|
|
554
|
+
.cm-s-inner .cm-def, .cm-s-inner .cm-variable-2,
|
|
555
|
+
.cm-s-inner .cm-attribute, .cm-s-inner .cm-property,
|
|
556
|
+
.cm-s-inner .cm-header { color: var(--gray-9); }
|
|
557
|
+
|
|
558
|
+
.cm-s-inner .cm-header { font-weight: 700; }
|
|
559
|
+
body.theme-custom .token.url, .cm-s-inner .cm-link { color: var(--gray-9); text-decoration: underline; }
|
|
560
|
+
|
|
561
|
+
body.theme-custom .token.operator, .cm-s-inner .cm-operator { color: var(--gray-8); }
|
|
562
|
+
|
|
563
|
+
body.theme-custom .token.regex { color: var(--gray-8); }
|
|
564
|
+
.cm-s-inner .cm-variable { color: var(--gray-9); }
|
|
565
|
+
|
|
566
|
+
/* ── 11. 表格(GB/T 7713 三线表规范) ── */
|
|
567
|
+
|
|
568
|
+
/* 表格容器 */
|
|
569
|
+
table, body.theme-custom table {
|
|
570
|
+
width: 100%;
|
|
571
|
+
border-collapse: collapse;
|
|
572
|
+
margin: 14pt auto;
|
|
573
|
+
font-size: 10.5pt;
|
|
574
|
+
line-height: 1.5;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/* 表头单元格:黑体 五号 加粗 居中,浅灰底色(可选,三线表通常透明) */
|
|
578
|
+
table th, body.theme-custom table th {
|
|
579
|
+
background: var(--table-header-bg);
|
|
580
|
+
font-weight: 700;
|
|
581
|
+
color: var(--gray-9);
|
|
582
|
+
padding: 6pt 8pt;
|
|
583
|
+
text-align: center;
|
|
584
|
+
text-indent: 0;
|
|
585
|
+
vertical-align: middle;
|
|
586
|
+
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* 数据单元格:宋体 五号 左对齐 无首行缩进 */
|
|
590
|
+
table td, body.theme-custom table td {
|
|
591
|
+
padding: 6pt 8pt;
|
|
592
|
+
text-align: left;
|
|
593
|
+
text-indent: 0;
|
|
594
|
+
vertical-align: top;
|
|
595
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/* 表格内段落:取消首行缩进,紧凑行距 */
|
|
599
|
+
table p, body.theme-custom table p,
|
|
600
|
+
table td p, body.theme-custom table td p {
|
|
601
|
+
margin: 0;
|
|
602
|
+
padding: 0;
|
|
603
|
+
text-indent: 0;
|
|
604
|
+
text-align: left;
|
|
605
|
+
line-height: 1.4;
|
|
606
|
+
font-size: inherit;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/* 表格内列表:继承全局 inline 符号模式,紧凑排列 */
|
|
610
|
+
table ul, table ol,
|
|
611
|
+
body.theme-custom table ul,
|
|
612
|
+
body.theme-custom table ol {
|
|
613
|
+
margin: 2pt 0;
|
|
614
|
+
padding-left: 1.5em;
|
|
615
|
+
}
|
|
616
|
+
table li, body.theme-custom table li {
|
|
617
|
+
margin: 1pt 0;
|
|
618
|
+
padding-left: 0;
|
|
619
|
+
font-size: inherit;
|
|
620
|
+
}
|
|
621
|
+
table li::before, body.theme-custom table li::before {
|
|
622
|
+
display: inline;
|
|
623
|
+
margin-right: 0.35em;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/* 去掉 hover 效果 */
|
|
627
|
+
table tr:hover td, body.theme-custom table tr:hover td {
|
|
628
|
+
background: transparent;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/* ── 11.1 三线表样式(学术论文标准) ── */
|
|
632
|
+
/* 顶线 + 表头底线 + 底线,无竖线 */
|
|
633
|
+
|
|
634
|
+
body.theme-custom table {
|
|
635
|
+
border-top: 1.5pt solid var(--gray-9);
|
|
636
|
+
border-bottom: 1.5pt solid var(--gray-9);
|
|
637
|
+
border-left: none;
|
|
638
|
+
border-right: none;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
body.theme-custom table th {
|
|
642
|
+
border: none;
|
|
643
|
+
border-bottom: 0.75pt solid var(--gray-9);
|
|
644
|
+
background: transparent; /* 三线表标准:表头透明或极浅 */
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
body.theme-custom table td {
|
|
648
|
+
border: none;
|
|
649
|
+
border-bottom: none;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/* ── 12. 图片(图题:宋体 五号 10.5pt,居中,位于图下方) ── */
|
|
653
|
+
img, body.theme-custom img { max-width: 100%; }
|
|
654
|
+
p > img:only-child, body.theme-custom p > img:only-child { display: block; margin: 12pt auto; }
|
|
655
|
+
body.theme-custom figure { margin: 12pt 0; text-align: center; }
|
|
656
|
+
body.theme-custom figcaption {
|
|
657
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
|
|
658
|
+
font-size: 10.5pt;
|
|
659
|
+
color: var(--gray-9);
|
|
660
|
+
margin-top: 6pt;
|
|
661
|
+
text-align: center;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/* ── 13. 数学公式(纯黑白) ── */
|
|
665
|
+
|
|
666
|
+
/* ColaMD */
|
|
667
|
+
body.theme-custom .math-block {
|
|
668
|
+
background: var(--gray-0);
|
|
669
|
+
padding: 12px 0;
|
|
670
|
+
margin: 12pt 0;
|
|
671
|
+
border-radius: 0;
|
|
672
|
+
border: none;
|
|
673
|
+
text-align: center;
|
|
674
|
+
overflow-x: auto;
|
|
675
|
+
}
|
|
676
|
+
body.theme-custom .math-block .katex,
|
|
677
|
+
body.theme-custom .math-block .katex *,
|
|
678
|
+
body.theme-custom .math-block .MathJax,
|
|
679
|
+
body.theme-custom .math-block .MathJax *,
|
|
680
|
+
body.theme-custom .math-inline,
|
|
681
|
+
body.theme-custom .math-inline .katex,
|
|
682
|
+
body.theme-custom .math-inline .katex *,
|
|
683
|
+
.md-inline-math script,
|
|
684
|
+
.md-inline-math .MathJax {
|
|
685
|
+
color: var(--gray-9) !important;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/* ── 14. Mermaid 图表容器 ── */
|
|
689
|
+
/* 配色全部引用前置变量,修改变量即可统一控制所有图表 */
|
|
690
|
+
|
|
691
|
+
.md-diagram-panel { margin: 1.5em 0; }
|
|
692
|
+
|
|
693
|
+
/* ── 14.0 图表备注(图题):宋体 五号 10.5pt,居中,GB/T 7713 ── */
|
|
694
|
+
body.theme-custom .mermaid-block + p {
|
|
695
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
|
|
696
|
+
font-size: 10.5pt;
|
|
697
|
+
text-align: center;
|
|
698
|
+
color: var(--gray-9);
|
|
699
|
+
margin-top: 6pt;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
body.theme-custom .mermaid-block {
|
|
703
|
+
background: var(--mermaid-background);
|
|
704
|
+
border: 1px solid var(--mermaid-border-color);
|
|
705
|
+
border-radius: var(--mermaid-border-radius);
|
|
706
|
+
padding: var(--mermaid-padding);
|
|
707
|
+
margin: 1.5em 0;
|
|
708
|
+
overflow-x: auto;
|
|
709
|
+
}
|
|
710
|
+
body.theme-custom .mermaid-preview { background: transparent; border: none; padding: 0; margin: 0; }
|
|
711
|
+
.md-diagram-panel.md-mermaid {
|
|
712
|
+
background: var(--mermaid-background);
|
|
713
|
+
border: 1px solid var(--mermaid-border-color);
|
|
714
|
+
border-radius: var(--mermaid-border-radius);
|
|
715
|
+
padding: var(--mermaid-padding);
|
|
716
|
+
margin: 1.5em 0;
|
|
717
|
+
overflow-x: auto;
|
|
718
|
+
}
|
|
719
|
+
.md-diagram-panel.md-mermaid svg,
|
|
720
|
+
body.theme-custom .mermaid-preview svg { max-width: 100%; height: auto; }
|
|
721
|
+
|
|
722
|
+
/* ── 14.1 全局字体:黑体 小五号 9pt(GB/T 7713 图表字),独立于正文 ── */
|
|
723
|
+
body.theme-custom .mermaid-preview svg text,
|
|
724
|
+
body.theme-custom .mermaid-preview svg tspan {
|
|
725
|
+
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
|
|
726
|
+
font-size: 9pt !important;
|
|
727
|
+
fill: var(--mermaid-node-text) !important;
|
|
728
|
+
}
|
|
729
|
+
body.theme-custom .mermaid-preview svg foreignObject span,
|
|
730
|
+
body.theme-custom .mermaid-preview svg foreignObject p,
|
|
731
|
+
body.theme-custom .mermaid-preview svg foreignObject div,
|
|
732
|
+
body.theme-custom .mermaid-preview svg .nodeLabel span,
|
|
733
|
+
body.theme-custom .mermaid-preview svg .edgeLabel span {
|
|
734
|
+
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
|
|
735
|
+
font-size: 9pt !important;
|
|
736
|
+
color: var(--mermaid-node-text) !important;
|
|
737
|
+
}
|
|
738
|
+
body.theme-custom .mermaid-preview svg .titleText,
|
|
739
|
+
body.theme-custom .mermaid-preview svg .pieTitleText {
|
|
740
|
+
font-size: 9pt !important;
|
|
741
|
+
fill: var(--mermaid-title-text) !important;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/* ── 14.2 通用节点色块:浅灰填色 + 深灰边框 ── */
|
|
745
|
+
body.theme-custom .mermaid-preview svg .node rect,
|
|
746
|
+
body.theme-custom .mermaid-preview svg .node circle,
|
|
747
|
+
body.theme-custom .mermaid-preview svg .node ellipse,
|
|
748
|
+
body.theme-custom .mermaid-preview svg .node polygon,
|
|
749
|
+
body.theme-custom .mermaid-preview svg .node path {
|
|
750
|
+
fill: var(--mermaid-node-bkg) !important;
|
|
751
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
752
|
+
stroke-width: var(--mermaid-node-stroke-width) !important;
|
|
753
|
+
}
|
|
754
|
+
body.theme-custom .mermaid-preview svg .node.default rect,
|
|
755
|
+
body.theme-custom .mermaid-preview svg .node rect[fill] {
|
|
756
|
+
fill: var(--mermaid-node-bkg) !important;
|
|
757
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/* ── 14.3 连线/边线 ── */
|
|
761
|
+
body.theme-custom .mermaid-preview svg .edgePath .path {
|
|
762
|
+
stroke: var(--mermaid-edge-stroke) !important;
|
|
763
|
+
stroke-width: var(--mermaid-edge-stroke-width) !important;
|
|
764
|
+
}
|
|
765
|
+
body.theme-custom .mermaid-preview svg defs marker path {
|
|
766
|
+
fill: var(--mermaid-edge-stroke) !important;
|
|
767
|
+
stroke: var(--mermaid-edge-stroke) !important;
|
|
768
|
+
}
|
|
769
|
+
body.theme-custom .mermaid-preview svg .relation {
|
|
770
|
+
stroke: var(--mermaid-edge-stroke) !important;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/* ── 14.4 聚类/子图 ── */
|
|
774
|
+
body.theme-custom .mermaid-preview svg .cluster rect,
|
|
775
|
+
body.theme-custom .mermaid-preview svg .cluster path {
|
|
776
|
+
fill: var(--mermaid-cluster-fill) !important;
|
|
777
|
+
stroke: var(--mermaid-cluster-stroke) !important;
|
|
778
|
+
stroke-width: 1px !important;
|
|
779
|
+
}
|
|
780
|
+
body.theme-custom .mermaid-preview svg .node.alt rect {
|
|
781
|
+
fill: var(--mermaid-cluster-fill) !important;
|
|
782
|
+
stroke: var(--mermaid-cluster-stroke) !important;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/* ── 14.5 标签文字(仅颜色,无偏移——参照 guizang 模式) ── */
|
|
786
|
+
body.theme-custom .mermaid-preview svg .edgeLabel text,
|
|
787
|
+
body.theme-custom .mermaid-preview svg .label text,
|
|
788
|
+
body.theme-custom .mermaid-preview svg .nodeLabel text {
|
|
789
|
+
fill: var(--mermaid-node-text) !important;
|
|
790
|
+
}
|
|
791
|
+
body.theme-custom .mermaid-preview svg .nodeLabel span,
|
|
792
|
+
body.theme-custom .mermaid-preview svg .edgeLabel span {
|
|
793
|
+
color: var(--mermaid-node-text) !important;
|
|
794
|
+
}
|
|
795
|
+
body.theme-custom .mermaid-preview svg .edgeLabel rect {
|
|
796
|
+
fill: var(--mermaid-label-background) !important;
|
|
797
|
+
stroke: none !important;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
/* ── 14.6 流程图/Block 图 ── */
|
|
801
|
+
body.theme-custom .mermaid-preview svg .block rect,
|
|
802
|
+
body.theme-custom .mermaid-preview svg .block path {
|
|
803
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
804
|
+
fill: var(--mermaid-node-bkg) !important;
|
|
805
|
+
}
|
|
806
|
+
body.theme-custom .mermaid-preview svg .block text,
|
|
807
|
+
body.theme-custom .mermaid-preview svg .block .nodeLabel text,
|
|
808
|
+
body.theme-custom .mermaid-preview svg .block .nodeLabel span {
|
|
809
|
+
fill: var(--mermaid-node-text) !important;
|
|
810
|
+
color: var(--mermaid-node-text) !important;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
/* ── 14.7 时序图 (Sequence) ── */
|
|
814
|
+
body.theme-custom .mermaid-preview svg .actor rect,
|
|
815
|
+
body.theme-custom .mermaid-preview svg .actor path {
|
|
816
|
+
fill: var(--mermaid-person-bkg) !important;
|
|
817
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
818
|
+
}
|
|
819
|
+
body.theme-custom .mermaid-preview svg text.actor {
|
|
820
|
+
fill: var(--mermaid-node-text) !important;
|
|
821
|
+
}
|
|
822
|
+
body.theme-custom .mermaid-preview svg .actor-line {
|
|
823
|
+
stroke: var(--mermaid-line-color) !important;
|
|
824
|
+
}
|
|
825
|
+
body.theme-custom .mermaid-preview svg .messageLine0,
|
|
826
|
+
body.theme-custom .mermaid-preview svg .messageLine1 {
|
|
827
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
828
|
+
stroke-width: 1px !important;
|
|
829
|
+
}
|
|
830
|
+
body.theme-custom .mermaid-preview svg .messageText {
|
|
831
|
+
fill: var(--mermaid-node-text) !important;
|
|
832
|
+
}
|
|
833
|
+
body.theme-custom .mermaid-preview svg .loopText,
|
|
834
|
+
body.theme-custom .mermaid-preview svg .altText,
|
|
835
|
+
body.theme-custom .mermaid-preview svg .optText,
|
|
836
|
+
body.theme-custom .mermaid-preview svg .loopText tspan,
|
|
837
|
+
body.theme-custom .mermaid-preview svg .altText tspan,
|
|
838
|
+
body.theme-custom .mermaid-preview svg .optText tspan {
|
|
839
|
+
fill: var(--mermaid-axis-text) !important;
|
|
840
|
+
}
|
|
841
|
+
body.theme-custom .mermaid-preview svg .loopLine,
|
|
842
|
+
body.theme-custom .mermaid-preview svg .altLine,
|
|
843
|
+
body.theme-custom .mermaid-preview svg .optLine {
|
|
844
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
845
|
+
}
|
|
846
|
+
body.theme-custom .mermaid-preview svg .labelBox {
|
|
847
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
848
|
+
fill: var(--mermaid-label-background) !important;
|
|
849
|
+
}
|
|
850
|
+
body.theme-custom .mermaid-preview svg .labelText {
|
|
851
|
+
fill: var(--mermaid-node-text) !important;
|
|
852
|
+
}
|
|
853
|
+
body.theme-custom .mermaid-preview svg .note {
|
|
854
|
+
fill: var(--surface-color) !important;
|
|
855
|
+
stroke: var(--mermaid-line-color) !important;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/* ── 14.8 类图 (Class Diagram) ── */
|
|
859
|
+
body.theme-custom .mermaid-preview svg .classGroup rect,
|
|
860
|
+
body.theme-custom .mermaid-preview svg .classBox rect,
|
|
861
|
+
body.theme-custom .mermaid-preview svg .classBox path {
|
|
862
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
863
|
+
fill: var(--mermaid-node-bkg) !important;
|
|
864
|
+
}
|
|
865
|
+
body.theme-custom .mermaid-preview svg .classTitle text,
|
|
866
|
+
body.theme-custom .mermaid-preview svg .classTitle span {
|
|
867
|
+
fill: var(--mermaid-node-text) !important;
|
|
868
|
+
color: var(--mermaid-node-text) !important;
|
|
869
|
+
}
|
|
870
|
+
body.theme-custom .mermaid-preview svg .classText text,
|
|
871
|
+
body.theme-custom .mermaid-preview svg .classText span {
|
|
872
|
+
fill: var(--mermaid-node-text) !important;
|
|
873
|
+
color: var(--mermaid-node-text) !important;
|
|
874
|
+
}
|
|
875
|
+
body.theme-custom .mermaid-preview svg .divider {
|
|
876
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/* ── 14.9 状态图 (State Diagram) ── */
|
|
880
|
+
body.theme-custom .mermaid-preview svg .statediagram-state rect,
|
|
881
|
+
body.theme-custom .mermaid-preview svg .statediagram-state circle {
|
|
882
|
+
fill: var(--mermaid-node-bkg) !important;
|
|
883
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
884
|
+
stroke-width: 1px !important;
|
|
885
|
+
}
|
|
886
|
+
body.theme-custom .mermaid-preview svg .statediagram-cluster rect {
|
|
887
|
+
fill: var(--mermaid-cluster-fill) !important;
|
|
888
|
+
stroke: var(--mermaid-cluster-stroke) !important;
|
|
889
|
+
}
|
|
890
|
+
body.theme-custom .mermaid-preview svg .statediagram-state .nodeLabel text,
|
|
891
|
+
body.theme-custom .mermaid-preview svg .statediagram-state .nodeLabel span,
|
|
892
|
+
body.theme-custom .mermaid-preview svg .statediagram-cluster .outer-title text {
|
|
893
|
+
fill: var(--mermaid-node-text) !important;
|
|
894
|
+
color: var(--mermaid-node-text) !important;
|
|
895
|
+
}
|
|
896
|
+
body.theme-custom .mermaid-preview svg .transition {
|
|
897
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
898
|
+
}
|
|
899
|
+
body.theme-custom .mermaid-preview svg .edgeLabel .label text {
|
|
900
|
+
fill: var(--mermaid-node-text) !important;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/* ── 14.10 甘特图 (Gantt) ── */
|
|
904
|
+
body.theme-custom .mermaid-preview svg .task {
|
|
905
|
+
fill: var(--mermaid-person-bkg) !important;
|
|
906
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
907
|
+
stroke-width: 1px !important;
|
|
908
|
+
}
|
|
909
|
+
body.theme-custom .mermaid-preview svg .taskText,
|
|
910
|
+
body.theme-custom .mermaid-preview svg .taskTextOutsideRight,
|
|
911
|
+
body.theme-custom .mermaid-preview svg .taskTextOutsideLeft {
|
|
912
|
+
fill: var(--mermaid-node-text) !important;
|
|
913
|
+
}
|
|
914
|
+
body.theme-custom .mermaid-preview svg .section rect {
|
|
915
|
+
fill: var(--mermaid-tertiary-color) !important;
|
|
916
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
917
|
+
}
|
|
918
|
+
body.theme-custom .mermaid-preview svg .sectionText,
|
|
919
|
+
body.theme-custom .mermaid-preview svg .sectionTitle {
|
|
920
|
+
fill: var(--mermaid-node-text) !important;
|
|
921
|
+
}
|
|
922
|
+
body.theme-custom .mermaid-preview svg .today {
|
|
923
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
924
|
+
stroke-width: 2px !important;
|
|
925
|
+
}
|
|
926
|
+
body.theme-custom .mermaid-preview svg .grid .tick line,
|
|
927
|
+
body.theme-custom .mermaid-preview svg .grid .domain {
|
|
928
|
+
stroke: var(--mermaid-line-color) !important;
|
|
929
|
+
}
|
|
930
|
+
body.theme-custom .mermaid-preview svg .tick text {
|
|
931
|
+
fill: var(--mermaid-axis-text) !important;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/* ── 14.11 饼图 (Pie) ── */
|
|
935
|
+
body.theme-custom .mermaid-preview svg .pieCircle,
|
|
936
|
+
body.theme-custom .mermaid-preview svg .slice {
|
|
937
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
938
|
+
}
|
|
939
|
+
body.theme-custom .mermaid-preview svg .legend text {
|
|
940
|
+
fill: var(--mermaid-node-text) !important;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/* ── 14.12 ER 图 (Entity Relationship) ── */
|
|
944
|
+
body.theme-custom .mermaid-preview svg .er .entityBox rect,
|
|
945
|
+
body.theme-custom .mermaid-preview svg .er .entityBox path {
|
|
946
|
+
fill: var(--mermaid-node-bkg) !important;
|
|
947
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
948
|
+
}
|
|
949
|
+
body.theme-custom .mermaid-preview svg .er text,
|
|
950
|
+
body.theme-custom .mermaid-preview svg .er .relationshipLabel {
|
|
951
|
+
fill: var(--mermaid-node-text) !important;
|
|
952
|
+
}
|
|
953
|
+
body.theme-custom .mermaid-preview svg .er .relationshipLine {
|
|
954
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/* ── 14.13 Git 图 ── */
|
|
958
|
+
body.theme-custom .mermaid-preview svg .git .commit rect,
|
|
959
|
+
body.theme-custom .mermaid-preview svg .git .commit circle {
|
|
960
|
+
fill: var(--mermaid-cscale9) !important;
|
|
961
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
962
|
+
}
|
|
963
|
+
body.theme-custom .mermaid-preview svg .git text,
|
|
964
|
+
body.theme-custom .mermaid-preview svg .git .branchLabel text {
|
|
965
|
+
fill: var(--mermaid-node-text) !important;
|
|
966
|
+
}
|
|
967
|
+
body.theme-custom .mermaid-preview svg .git .tag rect,
|
|
968
|
+
body.theme-custom .mermaid-preview svg .git .tag circle {
|
|
969
|
+
fill: var(--mermaid-secondary-color) !important;
|
|
970
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
971
|
+
}
|
|
972
|
+
body.theme-custom .mermaid-preview svg .git .branch rect {
|
|
973
|
+
fill: var(--mermaid-tertiary-color) !important;
|
|
974
|
+
stroke: var(--mermaid-line-color) !important;
|
|
975
|
+
}
|
|
976
|
+
body.theme-custom .mermaid-preview svg .git .commit-line,
|
|
977
|
+
body.theme-custom .mermaid-preview svg .git .branch-line {
|
|
978
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/* ── 14.14 用户旅程图 (User Journey) ── */
|
|
982
|
+
body.theme-custom .mermaid-preview svg .journey .task rect {
|
|
983
|
+
fill: var(--mermaid-node-bkg) !important;
|
|
984
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
985
|
+
}
|
|
986
|
+
body.theme-custom .mermaid-preview svg .journey text {
|
|
987
|
+
fill: var(--mermaid-node-text) !important;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/* ── 14.15 时间线 (Timeline) ── */
|
|
991
|
+
body.theme-custom .mermaid-preview svg .timeline rect {
|
|
992
|
+
fill: var(--mermaid-node-bkg) !important;
|
|
993
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
994
|
+
}
|
|
995
|
+
body.theme-custom .mermaid-preview svg .timeline text {
|
|
996
|
+
fill: var(--mermaid-node-text) !important;
|
|
997
|
+
}
|
|
998
|
+
body.theme-custom .mermaid-preview svg .timeline .period rect {
|
|
999
|
+
fill: var(--mermaid-cluster-fill) !important;
|
|
1000
|
+
stroke: var(--mermaid-cluster-stroke) !important;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/* ── 14.16 思维导图 (Mindmap) ── */
|
|
1004
|
+
body.theme-custom .mermaid-preview svg .mindmap-node rect,
|
|
1005
|
+
body.theme-custom .mermaid-preview svg .mindmap-node circle,
|
|
1006
|
+
body.theme-custom .mermaid-preview svg .mindmap-node ellipse,
|
|
1007
|
+
body.theme-custom .mermaid-preview svg .mindmap-node polygon,
|
|
1008
|
+
body.theme-custom .mermaid-preview svg .mindmap-node path {
|
|
1009
|
+
fill: var(--mermaid-node-bkg) !important;
|
|
1010
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1011
|
+
}
|
|
1012
|
+
body.theme-custom .mermaid-preview svg .mindmap-node text,
|
|
1013
|
+
body.theme-custom .mermaid-preview svg .mindmap-node .nodeLabel text,
|
|
1014
|
+
body.theme-custom .mermaid-preview svg .mindmap-node .nodeLabel span {
|
|
1015
|
+
fill: var(--mermaid-node-text) !important;
|
|
1016
|
+
color: var(--mermaid-node-text) !important;
|
|
1017
|
+
}
|
|
1018
|
+
body.theme-custom .mermaid-preview svg .mindmap-edge {
|
|
1019
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/* ── 14.17 C4 架构图 ── */
|
|
1023
|
+
body.theme-custom .mermaid-preview svg .c4 .person rect,
|
|
1024
|
+
body.theme-custom .mermaid-preview svg .c4 .person path,
|
|
1025
|
+
body.theme-custom .mermaid-preview svg .c4 .system rect,
|
|
1026
|
+
body.theme-custom .mermaid-preview svg .c4 .system path,
|
|
1027
|
+
body.theme-custom .mermaid-preview svg .c4 .container rect,
|
|
1028
|
+
body.theme-custom .mermaid-preview svg .c4 .container path,
|
|
1029
|
+
body.theme-custom .mermaid-preview svg .c4 .boundary rect,
|
|
1030
|
+
body.theme-custom .mermaid-preview svg .c4 .boundary path {
|
|
1031
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1032
|
+
}
|
|
1033
|
+
body.theme-custom .mermaid-preview svg .c4 text,
|
|
1034
|
+
body.theme-custom .mermaid-preview svg .c4 span {
|
|
1035
|
+
fill: var(--mermaid-node-text) !important;
|
|
1036
|
+
color: var(--mermaid-node-text) !important;
|
|
1037
|
+
}
|
|
1038
|
+
body.theme-custom .mermaid-preview svg .person rect,
|
|
1039
|
+
body.theme-custom .mermaid-preview svg .person path {
|
|
1040
|
+
fill: var(--mermaid-person-bkg) !important;
|
|
1041
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1042
|
+
}
|
|
1043
|
+
body.theme-custom .mermaid-preview svg .person-man text {
|
|
1044
|
+
fill: var(--mermaid-node-text) !important;
|
|
1045
|
+
}
|
|
1046
|
+
body.theme-custom .mermaid-preview svg .person-man span {
|
|
1047
|
+
color: var(--mermaid-node-text) !important;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/* ── 14.18 XY Chart / 柱状图 ── */
|
|
1051
|
+
body.theme-custom .mermaid-preview svg .xychart .axis text {
|
|
1052
|
+
fill: var(--mermaid-axis-text) !important;
|
|
1053
|
+
}
|
|
1054
|
+
body.theme-custom .mermaid-preview svg .xychart .axis line,
|
|
1055
|
+
body.theme-custom .mermaid-preview svg .xychart .axis path {
|
|
1056
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1057
|
+
}
|
|
1058
|
+
body.theme-custom .mermaid-preview svg .xychart .plot rect,
|
|
1059
|
+
body.theme-custom .mermaid-preview svg .xychart .plot line {
|
|
1060
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1061
|
+
}
|
|
1062
|
+
body.theme-custom .mermaid-preview svg .xychart .titleText {
|
|
1063
|
+
fill: var(--mermaid-node-text) !important;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/* ── 14.19 四象限图 (Quadrant Chart) ── */
|
|
1067
|
+
body.theme-custom .mermaid-preview svg .quadrant rect {
|
|
1068
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1069
|
+
}
|
|
1070
|
+
body.theme-custom .mermaid-preview svg .quadrant text,
|
|
1071
|
+
body.theme-custom .mermaid-preview svg .quadrant .titleText {
|
|
1072
|
+
fill: var(--mermaid-node-text) !important;
|
|
1073
|
+
}
|
|
1074
|
+
body.theme-custom .mermaid-preview svg .quadrant .axis text {
|
|
1075
|
+
fill: var(--mermaid-axis-text) !important;
|
|
1076
|
+
}
|
|
1077
|
+
body.theme-custom .mermaid-preview svg .quadrant .axis line,
|
|
1078
|
+
body.theme-custom .mermaid-preview svg .quadrant .axis path {
|
|
1079
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1080
|
+
}
|
|
1081
|
+
body.theme-custom .mermaid-preview svg .quadrant .point {
|
|
1082
|
+
fill: var(--mermaid-node-stroke) !important;
|
|
1083
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/* ── 14.20 Sankey 图 ── */
|
|
1087
|
+
body.theme-custom .mermaid-preview svg .sankey .link {
|
|
1088
|
+
stroke: var(--mermaid-node-stroke) !important;
|
|
1089
|
+
}
|
|
1090
|
+
body.theme-custom .mermaid-preview svg .sankey text {
|
|
1091
|
+
fill: var(--mermaid-node-text) !important;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
/* ── 14.21 图表标题加粗(font-family/font-size 已在 14.1 统一定义) ── */
|
|
1095
|
+
body.theme-custom .mermaid-preview svg .pieTitleText,
|
|
1096
|
+
body.theme-custom .mermaid-preview svg .xychart .titleText,
|
|
1097
|
+
body.theme-custom .mermaid-preview svg .quadrant .titleText {
|
|
1098
|
+
font-weight: 700 !important;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/* ── 14.22 Mermaid 源码编辑器 ── */
|
|
1102
|
+
body.theme-custom .mermaid-source {
|
|
1103
|
+
width: 100%;
|
|
1104
|
+
min-height: 100px;
|
|
1105
|
+
border: 1px solid var(--mermaid-node-stroke);
|
|
1106
|
+
border-radius: 0;
|
|
1107
|
+
padding: 12px;
|
|
1108
|
+
font-size: 10.5pt;
|
|
1109
|
+
font-family: "Courier New", "Consolas", monospace;
|
|
1110
|
+
color: var(--text-color);
|
|
1111
|
+
background: var(--surface-color);
|
|
1112
|
+
outline: none;
|
|
1113
|
+
resize: vertical;
|
|
1114
|
+
line-height: 1.5;
|
|
1115
|
+
white-space: pre-wrap;
|
|
1116
|
+
}
|
|
1117
|
+
body.theme-custom .mermaid-source:focus {
|
|
1118
|
+
border-color: var(--mermaid-node-text);
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
/* ── 15. 脚注(小五号 9pt) ── */
|
|
1122
|
+
body.theme-custom .footnotes {
|
|
1123
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
|
|
1124
|
+
font-size: 9pt;
|
|
1125
|
+
color: var(--gray-9);
|
|
1126
|
+
margin-top: 24pt;
|
|
1127
|
+
border-top: 1px solid var(--gray-9);
|
|
1128
|
+
padding-top: 12pt;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
/* ── 15.1 摘要(黑体 五号,"摘要:"加粗,内容宋体 五号) ── */
|
|
1132
|
+
body.theme-custom p:has(strong):first-of-type,
|
|
1133
|
+
body.theme-custom #write > p:first-child strong {
|
|
1134
|
+
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
|
|
1135
|
+
font-size: 10.5pt;
|
|
1136
|
+
font-weight: 700;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
/* ── 15.2 关键词 / 15.3 参考文献(条目宋体 小五号,悬挂缩进) ── */
|
|
1140
|
+
body.theme-custom .references,
|
|
1141
|
+
body.theme-custom [class*="reference"] {
|
|
1142
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
|
|
1143
|
+
font-size: 9pt;
|
|
1144
|
+
line-height: 1.5;
|
|
1145
|
+
}
|
|
1146
|
+
body.theme-custom .references li,
|
|
1147
|
+
body.theme-custom [class*="reference"] li {
|
|
1148
|
+
text-indent: -2em;
|
|
1149
|
+
padding-left: 2em;
|
|
1150
|
+
margin-bottom: 4pt;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/* ── 16. 打印优化(GB/T 7713 页面设置,力求与屏幕显示一致) ── */
|
|
1154
|
+
@media print {
|
|
1155
|
+
@page {
|
|
1156
|
+
size: A4;
|
|
1157
|
+
margin: 25mm 25mm 25mm 30mm;
|
|
1158
|
+
|
|
1159
|
+
@bottom-center {
|
|
1160
|
+
content: counter(page);
|
|
1161
|
+
font-family: "SimSun", "Songti SC", serif;
|
|
1162
|
+
font-size: 9pt;
|
|
1163
|
+
color: var(--gray-9);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
html, body {
|
|
1168
|
+
background: var(--gray-0) !important;
|
|
1169
|
+
color: var(--gray-9) !important;
|
|
1170
|
+
font-size: 12pt !important;
|
|
1171
|
+
line-height: 1.5 !important;
|
|
1172
|
+
-webkit-print-color-adjust: exact !important;
|
|
1173
|
+
print-color-adjust: exact !important;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
#titlebar, #slides-btn, #agent-dot {
|
|
1177
|
+
display: none !important;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
#editor {
|
|
1181
|
+
height: auto !important;
|
|
1182
|
+
overflow: visible !important;
|
|
1183
|
+
padding: 0 !important;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
#write {
|
|
1187
|
+
max-width: none !important;
|
|
1188
|
+
padding: 0 !important;
|
|
1189
|
+
margin: 0 !important;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/* ── 标题保持黑体 ── */
|
|
1193
|
+
h1, h2, h3, h4, h5, h6 {
|
|
1194
|
+
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
|
|
1195
|
+
color: var(--gray-9) !important;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/* ── 正文保留宋体首行缩进 ── */
|
|
1199
|
+
p {
|
|
1200
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", serif !important;
|
|
1201
|
+
color: var(--gray-9) !important;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/* ── 链接 ── */
|
|
1205
|
+
a {
|
|
1206
|
+
color: var(--gray-9) !important;
|
|
1207
|
+
text-decoration: none !important;
|
|
1208
|
+
border-bottom: 1px solid var(--gray-9) !important;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
/* ── 引用块 ── */
|
|
1212
|
+
blockquote {
|
|
1213
|
+
background: var(--gray-1) !important;
|
|
1214
|
+
border-left: 3px solid var(--gray-9) !important;
|
|
1215
|
+
color: var(--gray-9) !important;
|
|
1216
|
+
font-size: 10.5pt !important;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/* ── 内联代码(无边框,浅灰底) ── */
|
|
1220
|
+
code {
|
|
1221
|
+
background: var(--gray-3) !important;
|
|
1222
|
+
color: var(--gray-9) !important;
|
|
1223
|
+
border: none !important;
|
|
1224
|
+
border-radius: 0 !important;
|
|
1225
|
+
padding: 1px 6px !important;
|
|
1226
|
+
font-family: "Courier New", "Consolas", monospace !important;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
/* ── 代码块(浅灰底,直角,无边框) ── */
|
|
1230
|
+
pre {
|
|
1231
|
+
background: var(--gray-2) !important;
|
|
1232
|
+
color: var(--gray-9) !important;
|
|
1233
|
+
border: none !important;
|
|
1234
|
+
border-radius: 0 !important;
|
|
1235
|
+
font-size: 10.5pt !important;
|
|
1236
|
+
line-height: 1.5 !important;
|
|
1237
|
+
font-family: "Courier New", "Consolas", monospace !important;
|
|
1238
|
+
}
|
|
1239
|
+
pre code {
|
|
1240
|
+
background: transparent !important;
|
|
1241
|
+
border: none !important;
|
|
1242
|
+
padding: 0 !important;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
/* ── 表格:三线表(顶线 + 表头底线 + 底线),无竖线 ── */
|
|
1246
|
+
table {
|
|
1247
|
+
border-collapse: collapse !important;
|
|
1248
|
+
border-top: 1.5pt solid var(--gray-9) !important;
|
|
1249
|
+
border-bottom: 1.5pt solid var(--gray-9) !important;
|
|
1250
|
+
border-left: none !important;
|
|
1251
|
+
border-right: none !important;
|
|
1252
|
+
font-size: 10.5pt !important;
|
|
1253
|
+
}
|
|
1254
|
+
table th {
|
|
1255
|
+
border: none !important;
|
|
1256
|
+
border-bottom: 0.75pt solid var(--gray-9) !important;
|
|
1257
|
+
background: transparent !important; /* 三线表标准:表头透明 */
|
|
1258
|
+
-webkit-print-color-adjust: exact !important;
|
|
1259
|
+
print-color-adjust: exact !important;
|
|
1260
|
+
font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
|
|
1261
|
+
font-weight: 700 !important;
|
|
1262
|
+
color: var(--gray-9) !important;
|
|
1263
|
+
}
|
|
1264
|
+
table td {
|
|
1265
|
+
border: none !important;
|
|
1266
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", serif !important;
|
|
1267
|
+
color: var(--gray-9) !important;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
/* ── 数学公式 ── */
|
|
1271
|
+
.math-inline, .math-block {
|
|
1272
|
+
color: var(--gray-9) !important;
|
|
1273
|
+
-webkit-print-color-adjust: exact !important;
|
|
1274
|
+
print-color-adjust: exact !important;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
/* ── Mermaid:保留屏幕配色,直角容器 ── */
|
|
1278
|
+
body.theme-custom .mermaid-block,
|
|
1279
|
+
body.theme-custom .mermaid-preview,
|
|
1280
|
+
.md-diagram-panel.md-mermaid {
|
|
1281
|
+
background: var(--gray-0) !important;
|
|
1282
|
+
border: 1px solid var(--gray-5) !important;
|
|
1283
|
+
border-radius: 0 !important;
|
|
1284
|
+
-webkit-print-color-adjust: exact !important;
|
|
1285
|
+
print-color-adjust: exact !important;
|
|
1286
|
+
}
|
|
1287
|
+
body.theme-custom .mermaid-preview svg,
|
|
1288
|
+
body.theme-custom .mermaid-preview svg * {
|
|
1289
|
+
-webkit-print-color-adjust: exact !important;
|
|
1290
|
+
print-color-adjust: exact !important;
|
|
1291
|
+
}
|
|
1292
|
+
body.theme-custom .mermaid-block + p {
|
|
1293
|
+
font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif !important;
|
|
1294
|
+
font-size: 10.5pt !important;
|
|
1295
|
+
text-align: center !important;
|
|
1296
|
+
color: var(--gray-9) !important;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/* ── 脚注与参考文献 ── */
|
|
1300
|
+
.footnotes {
|
|
1301
|
+
border-top: 1px solid var(--gray-9) !important;
|
|
1302
|
+
font-size: 9pt !important;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
h1 { page-break-before: avoid; }
|
|
1306
|
+
h2, h3, h4, h5, h6 { page-break-after: avoid; }
|
|
1307
|
+
table, figure, img { page-break-inside: avoid; }
|
|
1308
|
+
p { orphans: 3; widows: 3; }
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/* ── 17. 滚动条(默认浏览器样式,置于屏幕最右侧)── */
|
|
1312
|
+
body.theme-custom { scrollbar-width: auto; scrollbar-color: var(--gray-8); }
|
|
1313
|
+
|
|
1314
|
+
/* ── 18. 源码编辑模式 ── */
|
|
1315
|
+
body.theme-custom #source-editor {
|
|
1316
|
+
font-family: "Courier New", "Consolas", "Source Code Pro", monospace;
|
|
1317
|
+
font-size: 12pt;
|
|
1318
|
+
line-height: 1.5;
|
|
1319
|
+
background: var(--gray-0);
|
|
1320
|
+
color: var(--gray-9);
|
|
1321
|
+
}
|