@bytechain.cn/colamd 1.5.0
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/.github/workflows/release.yml +66 -0
- package/.trae/documents/fix-mermaid-colors-and-sankey.md +50 -0
- package/CLAUDE.md +87 -0
- package/LICENSE +21 -0
- package/README.md +540 -0
- package/README_CN.md +543 -0
- package/demo.md +486 -0
- package/dist/main/index.js +735 -0
- package/dist/preload/index.js +71 -0
- package/dist/renderer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/renderer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/renderer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/renderer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/renderer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/renderer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/renderer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/renderer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/renderer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/renderer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/renderer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/renderer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/renderer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/renderer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/renderer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/renderer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/renderer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/renderer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/renderer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/renderer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/renderer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/renderer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/renderer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/renderer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/renderer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/renderer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/renderer/assets/arc-tTbbM8LO.js +131 -0
- package/dist/renderer/assets/architectureDiagram-3BPJPVTR-CEgYow6c.js +8720 -0
- package/dist/renderer/assets/blockDiagram-GPEHLZMM-LHyVtPwW.js +3825 -0
- package/dist/renderer/assets/c4Diagram-AAUBKEIU-C1P1eJrf.js +2482 -0
- package/dist/renderer/assets/channel-upve91Tq.js +7 -0
- package/dist/renderer/assets/chunk-2J33WTMH-lag2vhq9.js +24 -0
- package/dist/renderer/assets/chunk-4BX2VUAB-BXJ8Ggh-.js +16 -0
- package/dist/renderer/assets/chunk-55IACEB6-CiBpxRa1.js +13 -0
- package/dist/renderer/assets/chunk-727SXJPM-ODeKQFXC.js +2016 -0
- package/dist/renderer/assets/chunk-AQP2D5EJ-BK7xJolB.js +1953 -0
- package/dist/renderer/assets/chunk-FMBD7UC4-BxpCZPtz.js +19 -0
- package/dist/renderer/assets/chunk-ND2GUHAM-CqqaU9Ue.js +116 -0
- package/dist/renderer/assets/chunk-QZHKN3VN-Biq_K124.js +19 -0
- package/dist/renderer/assets/classDiagram-4FO5ZUOK-Cq95X99o.js +23 -0
- package/dist/renderer/assets/classDiagram-v2-Q7XG4LA2-Cq95X99o.js +23 -0
- package/dist/renderer/assets/cose-bilkent-S5V4N54A-XasiD0bu.js +4942 -0
- package/dist/renderer/assets/cytoscape.esm-CpHeHM5e.js +30269 -0
- package/dist/renderer/assets/dagre-BM42HDAG-Nq84Gfx4.js +705 -0
- package/dist/renderer/assets/defaultLocale-B2RvLBDe.js +206 -0
- package/dist/renderer/assets/diagram-2AECGRRQ-DwuB1GWt.js +301 -0
- package/dist/renderer/assets/diagram-5GNKFQAL-C2tgeI1h.js +169 -0
- package/dist/renderer/assets/diagram-KO2AKTUF-D5KzjNBc.js +632 -0
- package/dist/renderer/assets/diagram-LMA3HP47-C12xHS1c.js +212 -0
- package/dist/renderer/assets/diagram-OG6HWLK6-CnxI9oEa.js +851 -0
- package/dist/renderer/assets/erDiagram-TEJ5UH35-D_uPaKwn.js +1227 -0
- package/dist/renderer/assets/flowDiagram-I6XJVG4X-B6q_1-tE.js +2332 -0
- package/dist/renderer/assets/ganttDiagram-6RSMTGT7-CFo7ifF9.js +3720 -0
- package/dist/renderer/assets/gitGraphDiagram-PVQCEYII-WSexHTnq.js +1373 -0
- package/dist/renderer/assets/graph-DyX_9f6d.js +1988 -0
- package/dist/renderer/assets/index-DW7LS8C1.js +72292 -0
- package/dist/renderer/assets/index-dyHEFYvY.css +2184 -0
- package/dist/renderer/assets/infoDiagram-5YYISTIA-DaeJdLRq.js +31 -0
- package/dist/renderer/assets/init-ZxktEp_H.js +16 -0
- package/dist/renderer/assets/ishikawaDiagram-YF4QCWOH-DDCZc35f.js +967 -0
- package/dist/renderer/assets/journeyDiagram-JHISSGLW-BEdmpAgl.js +1255 -0
- package/dist/renderer/assets/kanban-definition-UN3LZRKU-BEFtQcFb.js +1052 -0
- package/dist/renderer/assets/layout-CAJgQHdw.js +2610 -0
- package/dist/renderer/assets/linear-B2ggJ8Am.js +340 -0
- package/dist/renderer/assets/mindmap-definition-RKZ34NQL-DSxVgHB5.js +1180 -0
- package/dist/renderer/assets/ordinal-DSZU4PqD.js +76 -0
- package/dist/renderer/assets/pieDiagram-4H26LBE5-CwYoJBuL.js +246 -0
- package/dist/renderer/assets/quadrantDiagram-W4KKPZXB-CST9Fvg9.js +1344 -0
- package/dist/renderer/assets/requirementDiagram-4Y6WPE33-DtrH52jS.js +1204 -0
- package/dist/renderer/assets/sankeyDiagram-5OEKKPKP-ca1tPzJ_.js +1274 -0
- package/dist/renderer/assets/sequenceDiagram-3UESZ5HK-Dfp1EJZ7.js +4514 -0
- package/dist/renderer/assets/stateDiagram-AJRCARHV-Bha2QoNB.js +450 -0
- package/dist/renderer/assets/stateDiagram-v2-BHNVJYJU-DWgFUYu1.js +21 -0
- package/dist/renderer/assets/timeline-definition-PNZ67QCA-C3h_-OTj.js +1596 -0
- package/dist/renderer/assets/vennDiagram-CIIHVFJN-DFzjSrZi.js +2486 -0
- package/dist/renderer/assets/wardley-L42UT6IY-Cx-VbqoS.js +30699 -0
- package/dist/renderer/assets/wardleyDiagram-YWT4CUSO-S2D9XqX6.js +975 -0
- package/dist/renderer/assets/xychartDiagram-2RQKCTM6-Cfxigbts.js +1932 -0
- package/dist/renderer/index.html +19 -0
- package/docs/agent-diff-view.md +48 -0
- package/electron-builder.yml +57 -0
- package/electron.vite.config.ts +30 -0
- package/package.json +40 -0
- package/resources/entitlements.mac.plist +12 -0
- package/resources/icon.icns +0 -0
- package/resources/icon.png +0 -0
- package/resources/icon.svg +23 -0
- package/resources/templates/slides/icon.png +0 -0
- package/resources/templates/slides/slides-template.md +74 -0
- package/resources/templates/slides/template.html +535 -0
- package/scripts/afterPack.js +13 -0
- package/src/main/index.ts +881 -0
- package/src/preload/index.ts +110 -0
- package/src/renderer/editor/editor.ts +204 -0
- package/src/renderer/editor/html-view.ts +15 -0
- package/src/renderer/editor/plugins/index.ts +76 -0
- package/src/renderer/editor/plugins/math-plugin.ts +297 -0
- package/src/renderer/editor/plugins/mermaid-plugin-custom.css +431 -0
- package/src/renderer/editor/plugins/mermaid-plugin-dark.css +428 -0
- package/src/renderer/editor/plugins/mermaid-plugin-elegant.css +443 -0
- package/src/renderer/editor/plugins/mermaid-plugin-newsprint.css +208 -0
- package/src/renderer/editor/plugins/mermaid-plugin.css +111 -0
- package/src/renderer/editor/plugins/mermaid-plugin.ts +679 -0
- package/src/renderer/env.d.ts +7 -0
- package/src/renderer/index.html +18 -0
- package/src/renderer/main.ts +303 -0
- package/src/renderer/themes/base.css +509 -0
- package/src/renderer/themes/theme-manager.ts +40 -0
- package/themes/README.md +280 -0
- package/themes/elegant.css +664 -0
- package/themes/guizang.css +732 -0
- package/tsconfig.json +14 -0
- package/tsconfig.main.json +11 -0
- package/tsconfig.preload.json +11 -0
- package/tsconfig.renderer.json +12 -0
|
@@ -0,0 +1,732 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
归藏 (Guizang) Theme for ColaMD
|
|
3
|
+
万物莫不归藏于其中
|
|
4
|
+
|
|
5
|
+
Mermaid 渲染采用 theme: 'base' 策略,
|
|
6
|
+
所有颜色由 CSS 变量驱动,不引入 Mermaid 默认调色板。
|
|
7
|
+
|
|
8
|
+
Install: place in ~/.colamd/themes/ or use
|
|
9
|
+
Theme > Import Theme in ColaMD.
|
|
10
|
+
============================================ */
|
|
11
|
+
|
|
12
|
+
body.theme-custom {
|
|
13
|
+
/* ── 基础主题变量 ── */
|
|
14
|
+
--bg-color: #f5f0e8;
|
|
15
|
+
--text-color: #2b2520;
|
|
16
|
+
--text-muted: #7a7068;
|
|
17
|
+
--border-color: #d4cfc6;
|
|
18
|
+
--link-color: #8b4513;
|
|
19
|
+
--code-bg: #e8e0d4;
|
|
20
|
+
--code-block-bg: #2b2520;
|
|
21
|
+
--code-block-text: #d8d0c4;
|
|
22
|
+
--blockquote-border: #8b4513;
|
|
23
|
+
--blockquote-bg: #ede8df;
|
|
24
|
+
--table-header-bg: #ede8df;
|
|
25
|
+
--selection-bg: rgba(139, 69, 19, 0.18);
|
|
26
|
+
|
|
27
|
+
/* ── Mermaid 字体 ── */
|
|
28
|
+
--mermaid-font-family: "LXGW WenKai", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
|
|
29
|
+
--mermaid-font-size: 12px;
|
|
30
|
+
|
|
31
|
+
/* ── Mermaid 主题变量 ── */
|
|
32
|
+
--mermaid-background: #f0ebe3;
|
|
33
|
+
--mermaid-primary-color: #ede8df;
|
|
34
|
+
--mermaid-primary-border-color: #b0a89f;
|
|
35
|
+
--mermaid-primary-text-color: #2b2520;
|
|
36
|
+
--mermaid-secondary-color: #e8e0d4;
|
|
37
|
+
--mermaid-secondary-border-color: #c4bbb0;
|
|
38
|
+
--mermaid-secondary-text-color: #2b2520;
|
|
39
|
+
|
|
40
|
+
--mermaid-tertiary-color: #f5f0e8;
|
|
41
|
+
--mermaid-tertiary-border-color: #d4cfc6;
|
|
42
|
+
--mermaid-tertiary-text-color: #2b2520;
|
|
43
|
+
--mermaid-line-color: #8a7b6a;
|
|
44
|
+
--mermaid-text-color: #2b2520;
|
|
45
|
+
--mermaid-main-bkg: #ede8df;
|
|
46
|
+
--mermaid-second-bkg: #e8e0d4;
|
|
47
|
+
--mermaid-main-contrast-color: #2b2520;
|
|
48
|
+
--mermaid-label-background: #f0ebe3;
|
|
49
|
+
--mermaid-label-text-color: #2b2520;
|
|
50
|
+
--mermaid-node-bkg: #ede8df;
|
|
51
|
+
--mermaid-node-border: #b0a89f;
|
|
52
|
+
--mermaid-cluster-bkg: #e8e0d4;
|
|
53
|
+
--mermaid-cluster-border: #b0a89f;
|
|
54
|
+
--mermaid-default-link-color: #8a7b6a;
|
|
55
|
+
--mermaid-edge-label-background: #f0ebe3;
|
|
56
|
+
--mermaid-arrowhead-color: #8a7b6a;
|
|
57
|
+
--mermaid-person-border: #b0a89f;
|
|
58
|
+
--mermaid-person-bkg: #ede8df;
|
|
59
|
+
|
|
60
|
+
/* ── Mermaid 色阶 (cScale0-11) ── */
|
|
61
|
+
--mermaid-cscale0: #8b6b4a;
|
|
62
|
+
--mermaid-cscale1: #5a8a7a;
|
|
63
|
+
--mermaid-cscale2: #b8963a;
|
|
64
|
+
--mermaid-cscale3: #6b5a4a;
|
|
65
|
+
--mermaid-cscale4: #4a7a6b;
|
|
66
|
+
--mermaid-cscale5: #8a6b3c;
|
|
67
|
+
--mermaid-cscale6: #5a6b8a;
|
|
68
|
+
--mermaid-cscale7: #7a6b5a;
|
|
69
|
+
--mermaid-cscale8: #6b8a5a;
|
|
70
|
+
--mermaid-cscale9: #9a7a5a;
|
|
71
|
+
--mermaid-cscale10: #5a7a8a;
|
|
72
|
+
--mermaid-cscale11: #8a5a6b;
|
|
73
|
+
|
|
74
|
+
/* ── Mermaid C4 架构图 ── */
|
|
75
|
+
--mermaid-c4-person-bg: #8b4513;
|
|
76
|
+
--mermaid-c4-person-border: #6b350f;
|
|
77
|
+
--mermaid-c4-ext-person-bg: #7a6b5a;
|
|
78
|
+
--mermaid-c4-ext-person-border: #6a5b4a;
|
|
79
|
+
--mermaid-c4-system-bg: #5a8a7a;
|
|
80
|
+
--mermaid-c4-system-border: #4a7a6b;
|
|
81
|
+
--mermaid-c4-ext-system-bg: #8a6b3c;
|
|
82
|
+
--mermaid-c4-ext-system-border: #7a5b2c;
|
|
83
|
+
--mermaid-c4-container-bg: #6b5a4a;
|
|
84
|
+
--mermaid-c4-container-border: #5a4a3a;
|
|
85
|
+
--mermaid-c4-ext-container-bg: #9a8a7a;
|
|
86
|
+
--mermaid-c4-ext-container-border: #8a7a6a;
|
|
87
|
+
--mermaid-c4-component-bg: #4a7a6b;
|
|
88
|
+
--mermaid-c4-component-border: #3a6a5b;
|
|
89
|
+
--mermaid-c4-ext-component-bg: #8a7a6a;
|
|
90
|
+
--mermaid-c4-ext-component-border: #7a6a5a;
|
|
91
|
+
|
|
92
|
+
/* ── KaTeX 数学公式 ── */
|
|
93
|
+
--katex-color: #3d3530;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ════════════════════════════════════════════
|
|
97
|
+
编辑器排版
|
|
98
|
+
════════════════════════════════════════════ */
|
|
99
|
+
|
|
100
|
+
body.theme-custom,
|
|
101
|
+
body.theme-custom html {
|
|
102
|
+
background-color: #f5f0e8;
|
|
103
|
+
color: #2b2520;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
body.theme-custom #editor .ProseMirror {
|
|
107
|
+
font-family: "LXGW WenKai", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
|
|
108
|
+
line-height: 1.9;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
body.theme-custom #editor .ProseMirror h1,
|
|
112
|
+
body.theme-custom #editor .ProseMirror h2,
|
|
113
|
+
body.theme-custom #editor .ProseMirror h3,
|
|
114
|
+
body.theme-custom #editor .ProseMirror h4,
|
|
115
|
+
body.theme-custom #editor .ProseMirror h5,
|
|
116
|
+
body.theme-custom #editor .ProseMirror h6 {
|
|
117
|
+
color: #1a1815;
|
|
118
|
+
font-weight: 700;
|
|
119
|
+
line-height: 1.4;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
body.theme-custom #editor .ProseMirror h1 {
|
|
123
|
+
font-size: 1.8em;
|
|
124
|
+
border-bottom: 1px solid #d4cfc6;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
body.theme-custom #editor .ProseMirror h2 {
|
|
128
|
+
font-size: 1.5em;
|
|
129
|
+
border-bottom: 1px solid #d4cfc6;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
body.theme-custom #editor .ProseMirror h3 {
|
|
133
|
+
font-size: 1.25em;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
body.theme-custom #editor .ProseMirror h4 {
|
|
137
|
+
font-size: 1.1em;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
body.theme-custom #editor .ProseMirror h5 {
|
|
141
|
+
font-size: 1em;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
body.theme-custom #editor .ProseMirror h6 {
|
|
145
|
+
font-size: 0.95em;
|
|
146
|
+
color: #7a7068;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
body.theme-custom #editor .ProseMirror strong {
|
|
150
|
+
color: #8b4513;
|
|
151
|
+
font-weight: 700;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
body.theme-custom #editor .ProseMirror em {
|
|
155
|
+
color: #4a4238;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
body.theme-custom #editor .ProseMirror a {
|
|
159
|
+
color: #8b4513;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
body.theme-custom #editor .ProseMirror code {
|
|
163
|
+
background: #e8e0d4;
|
|
164
|
+
color: #8b4513;
|
|
165
|
+
font-family: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, monospace;
|
|
166
|
+
font-size: 0.9em;
|
|
167
|
+
padding: 2px 6px;
|
|
168
|
+
border-radius: 3px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
body.theme-custom #editor .ProseMirror pre {
|
|
172
|
+
background: #2b2520;
|
|
173
|
+
color: #d8d0c4;
|
|
174
|
+
font-family: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, monospace;
|
|
175
|
+
font-size: 0.88em;
|
|
176
|
+
line-height: 1.6;
|
|
177
|
+
padding: 18px 22px;
|
|
178
|
+
border-radius: 6px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
body.theme-custom #editor .ProseMirror pre code {
|
|
182
|
+
background: transparent;
|
|
183
|
+
color: inherit;
|
|
184
|
+
padding: 0;
|
|
185
|
+
font-size: 0.88em;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
body.theme-custom #editor .ProseMirror blockquote {
|
|
189
|
+
border-left: 4px solid #8b4513;
|
|
190
|
+
background: #ede8df;
|
|
191
|
+
padding: 15px 20px 15px 25px;
|
|
192
|
+
color: #5a5048;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
body.theme-custom #editor .ProseMirror table th {
|
|
196
|
+
background: #ede8df;
|
|
197
|
+
border-bottom: 2px solid #8b4513;
|
|
198
|
+
color: #1a1815;
|
|
199
|
+
font-weight: 700;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
body.theme-custom #editor .ProseMirror table td {
|
|
203
|
+
border-left: none;
|
|
204
|
+
border-right: none;
|
|
205
|
+
border-bottom: 1px solid #d4cfc6;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
body.theme-custom #editor .ProseMirror table tr:hover td {
|
|
209
|
+
background: rgba(139, 69, 19, 0.04);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
body.theme-custom #editor .ProseMirror hr {
|
|
213
|
+
border-top: 1px solid #d4cfc6;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
body.theme-custom #editor .ProseMirror ::selection {
|
|
217
|
+
background: rgba(139, 69, 19, 0.18);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* ════════════════════════════════════════════
|
|
221
|
+
KaTeX 数学公式
|
|
222
|
+
════════════════════════════════════════════ */
|
|
223
|
+
|
|
224
|
+
body.theme-custom .math-inline {
|
|
225
|
+
color: #2b2520;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
body.theme-custom .math-block {
|
|
229
|
+
background: #ede8df;
|
|
230
|
+
color: #2b2520;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
body.theme-custom .katex {
|
|
234
|
+
color: #3d3530;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
body.theme-custom .katex .mord,
|
|
238
|
+
body.theme-custom .katex .mbin,
|
|
239
|
+
body.theme-custom .katex .mrel,
|
|
240
|
+
body.theme-custom .katex .mopen,
|
|
241
|
+
body.theme-custom .katex .mclose,
|
|
242
|
+
body.theme-custom .katex .mpunct,
|
|
243
|
+
body.theme-custom .katex .minner {
|
|
244
|
+
color: #3d3530;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
body.theme-custom .math-block::-webkit-scrollbar-thumb {
|
|
248
|
+
background: #b0a89f;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* ════════════════════════════════════════════
|
|
252
|
+
Mermaid 图表 - 容器
|
|
253
|
+
════════════════════════════════════════════ */
|
|
254
|
+
|
|
255
|
+
body.theme-custom .mermaid-block {
|
|
256
|
+
background: #f0ebe3;
|
|
257
|
+
border: 1px solid #d4cfc6;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* ════════════════════════════════════════════
|
|
261
|
+
Mermaid 图表 - 通用节点 & 连线
|
|
262
|
+
════════════════════════════════════════════ */
|
|
263
|
+
|
|
264
|
+
body.theme-custom .mermaid-preview svg .node rect,
|
|
265
|
+
body.theme-custom .mermaid-preview svg .node circle,
|
|
266
|
+
body.theme-custom .mermaid-preview svg .node ellipse,
|
|
267
|
+
body.theme-custom .mermaid-preview svg .node polygon,
|
|
268
|
+
body.theme-custom .mermaid-preview svg .node path {
|
|
269
|
+
stroke: #b0a89f;
|
|
270
|
+
fill: #ede8df !important;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
body.theme-custom .mermaid-preview svg .edgePath .path {
|
|
274
|
+
stroke: #8a7b6a;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
body.theme-custom .mermaid-preview svg .cluster rect,
|
|
278
|
+
body.theme-custom .mermaid-preview svg .cluster path {
|
|
279
|
+
stroke: #c4bbb0;
|
|
280
|
+
fill: #e8e0d4 !important;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
body.theme-custom .mermaid-preview svg defs marker path {
|
|
284
|
+
fill: #8a7b6a;
|
|
285
|
+
stroke: #8a7b6a;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* ── 硬编码色值覆盖 (Mermaid 默认 bi染色) ── */
|
|
289
|
+
|
|
290
|
+
body.theme-custom .mermaid-preview svg rect[stroke="#444444"],
|
|
291
|
+
body.theme-custom .mermaid-preview svg rect[stroke="#000000"] {
|
|
292
|
+
stroke: #b0a89f !important;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
body.theme-custom .mermaid-preview svg path[stroke="#444444"],
|
|
296
|
+
body.theme-custom .mermaid-preview svg path[stroke="#000000"] {
|
|
297
|
+
stroke: #b0a89f !important;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
body.theme-custom .mermaid-preview svg line[stroke="#444444"],
|
|
301
|
+
body.theme-custom .mermaid-preview svg line[stroke="#000000"] {
|
|
302
|
+
stroke: #b0a89f !important;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* ════════════════════════════════════════════
|
|
306
|
+
Mermaid 图表 - 标签 & 文本
|
|
307
|
+
════════════════════════════════════════════ */
|
|
308
|
+
|
|
309
|
+
body.theme-custom .mermaid-preview svg text {
|
|
310
|
+
fill: #2b2520;
|
|
311
|
+
font-family: "LXGW WenKai", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
body.theme-custom .mermaid-preview svg .edgeLabel text,
|
|
315
|
+
body.theme-custom .mermaid-preview svg .label text,
|
|
316
|
+
body.theme-custom .mermaid-preview svg .nodeLabel text {
|
|
317
|
+
fill: #2b2520 !important;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
body.theme-custom .mermaid-preview svg .nodeLabel span,
|
|
321
|
+
body.theme-custom .mermaid-preview svg .edgeLabel span,
|
|
322
|
+
body.theme-custom .mermaid-preview svg foreignObject span {
|
|
323
|
+
font-family: "LXGW WenKai", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
|
|
324
|
+
color: #2b2520 !important;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
body.theme-custom .mermaid-preview svg .edgeLabel rect {
|
|
328
|
+
fill: #4f4d4b !important;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* ════════════════════════════════════════════
|
|
332
|
+
Mermaid - 状态图 (State Diagram)
|
|
333
|
+
════════════════════════════════════════════ */
|
|
334
|
+
|
|
335
|
+
body.theme-custom .mermaid-preview svg .statediagram-state rect,
|
|
336
|
+
body.theme-custom .mermaid-preview svg .statediagram-state circle {
|
|
337
|
+
stroke: #b0a89f;
|
|
338
|
+
fill: #ede8df !important;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
body.theme-custom .mermaid-preview svg .statediagram-cluster rect {
|
|
342
|
+
stroke: #c4bbb0;
|
|
343
|
+
fill: #e8e0d4 !important;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
body.theme-custom .mermaid-preview svg .statediagram-state .nodeLabel text,
|
|
347
|
+
body.theme-custom .mermaid-preview svg .statediagram-state .nodeLabel span,
|
|
348
|
+
body.theme-custom .mermaid-preview svg .statediagram-cluster .outer-title text {
|
|
349
|
+
fill: #2b2520 !important;
|
|
350
|
+
color: #2b2520 !important;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
body.theme-custom .mermaid-preview svg .transition {
|
|
354
|
+
stroke: #8a7b6a;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
body.theme-custom .mermaid-preview svg .edgeLabel .label text {
|
|
358
|
+
fill: #2b2520 !important;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* ════════════════════════════════════════════
|
|
362
|
+
Mermaid - 饼图 (Pie Chart)
|
|
363
|
+
════════════════════════════════════════════ */
|
|
364
|
+
|
|
365
|
+
body.theme-custom .mermaid-preview svg .pieCircle {
|
|
366
|
+
stroke: #b0a89f;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
body.theme-custom .mermaid-preview svg .slice {
|
|
370
|
+
stroke: #b0a89f;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
body.theme-custom .mermaid-preview svg .pieTitleText {
|
|
374
|
+
fill: #2b2520 !important;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
body.theme-custom .mermaid-preview svg .legend text {
|
|
378
|
+
fill: #2b2520 !important;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/* ════════════════════════════════════════════
|
|
382
|
+
Mermaid - 四象限图 (Quadrant Chart)
|
|
383
|
+
════════════════════════════════════════════ */
|
|
384
|
+
|
|
385
|
+
body.theme-custom .mermaid-preview svg .quadrant rect {
|
|
386
|
+
stroke: #b0a89f;
|
|
387
|
+
fill: #f5f0e8 !important;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
body.theme-custom .mermaid-preview svg .quadrant text,
|
|
391
|
+
body.theme-custom .mermaid-preview svg .quadrant .titleText {
|
|
392
|
+
fill: #2b2520 !important;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
body.theme-custom .mermaid-preview svg .quadrant .axis text {
|
|
396
|
+
fill: #7a7068 !important;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
body.theme-custom .mermaid-preview svg .quadrant .axis line,
|
|
400
|
+
body.theme-custom .mermaid-preview svg .quadrant .axis path {
|
|
401
|
+
stroke: #8a7b6a;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
body.theme-custom .mermaid-preview svg .quadrant .point {
|
|
405
|
+
fill: #8b4513;
|
|
406
|
+
stroke: #b0a89f;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* ════════════════════════════════════════════
|
|
410
|
+
Mermaid - XY Chart / 柱状图
|
|
411
|
+
════════════════════════════════════════════ */
|
|
412
|
+
|
|
413
|
+
body.theme-custom .mermaid-preview svg .xychart .axis text {
|
|
414
|
+
fill: #7a7068 !important;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
body.theme-custom .mermaid-preview svg .xychart .axis line,
|
|
418
|
+
body.theme-custom .mermaid-preview svg .xychart .axis path {
|
|
419
|
+
stroke: #8a7b6a;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
body.theme-custom .mermaid-preview svg .xychart .plot rect {
|
|
423
|
+
stroke: #b0a89f;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
body.theme-custom .mermaid-preview svg .xychart .plot line {
|
|
427
|
+
stroke: #8a7b6a;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
body.theme-custom .mermaid-preview svg .xychart .titleText {
|
|
431
|
+
fill: #2b2520 !important;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* ════════════════════════════════════════════
|
|
435
|
+
Mermaid - Sankey 图
|
|
436
|
+
════════════════════════════════════════════ */
|
|
437
|
+
|
|
438
|
+
body.theme-custom .mermaid-preview svg .sankey .link {
|
|
439
|
+
stroke: #8a7b6a;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
body.theme-custom .mermaid-preview svg .sankey text {
|
|
443
|
+
fill: #2b2520 !important;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* ════════════════════════════════════════════
|
|
447
|
+
Mermaid - 时序图 (Sequence Diagram)
|
|
448
|
+
════════════════════════════════════════════ */
|
|
449
|
+
|
|
450
|
+
body.theme-custom .mermaid-preview svg .actor rect,
|
|
451
|
+
body.theme-custom .mermaid-preview svg .actor path {
|
|
452
|
+
stroke: #b0a89f;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
body.theme-custom .mermaid-preview svg text.actor {
|
|
456
|
+
fill: #2b2520 !important;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
body.theme-custom .mermaid-preview svg .messageLine0,
|
|
460
|
+
body.theme-custom .mermaid-preview svg .messageLine1 {
|
|
461
|
+
stroke: #8a7b6a !important;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
body.theme-custom .mermaid-preview svg .messageText {
|
|
465
|
+
fill: #2b2520 !important;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
body.theme-custom .mermaid-preview svg .loopText,
|
|
469
|
+
body.theme-custom .mermaid-preview svg .altText,
|
|
470
|
+
body.theme-custom .mermaid-preview svg .optText {
|
|
471
|
+
fill: #7a7068 !important;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
body.theme-custom .mermaid-preview svg .loopLine,
|
|
475
|
+
body.theme-custom .mermaid-preview svg .altLine,
|
|
476
|
+
body.theme-custom .mermaid-preview svg .optLine {
|
|
477
|
+
stroke: #8a7b6a !important;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
body.theme-custom .mermaid-preview svg .labelBox {
|
|
481
|
+
stroke: #b0a89f;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
body.theme-custom .mermaid-preview svg .labelText,
|
|
485
|
+
body.theme-custom .mermaid-preview svg .loopText tspan,
|
|
486
|
+
body.theme-custom .mermaid-preview svg .altText tspan,
|
|
487
|
+
body.theme-custom .mermaid-preview svg .optText tspan {
|
|
488
|
+
fill: #2b2520 !important;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/* ════════════════════════════════════════════
|
|
492
|
+
Mermaid - 类图 (Class Diagram)
|
|
493
|
+
════════════════════════════════════════════ */
|
|
494
|
+
|
|
495
|
+
body.theme-custom .mermaid-preview svg .classBox rect,
|
|
496
|
+
body.theme-custom .mermaid-preview svg .classBox path {
|
|
497
|
+
stroke: #b0a89f;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
body.theme-custom .mermaid-preview svg .classTitle text,
|
|
501
|
+
body.theme-custom .mermaid-preview svg .classTitle span {
|
|
502
|
+
fill: #2b2520 !important;
|
|
503
|
+
color: #2b2520 !important;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
body.theme-custom .mermaid-preview svg .classText text,
|
|
507
|
+
body.theme-custom .mermaid-preview svg .classText span {
|
|
508
|
+
fill: #7a7068 !important;
|
|
509
|
+
color: #7a7068 !important;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
body.theme-custom .mermaid-preview svg .divider {
|
|
513
|
+
stroke: #b0a89f;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
body.theme-custom .mermaid-preview svg .relation {
|
|
517
|
+
stroke: #8a7b6a;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/* ════════════════════════════════════════════
|
|
521
|
+
Mermaid - 甘特图 (Gantt Chart)
|
|
522
|
+
════════════════════════════════════════════ */
|
|
523
|
+
|
|
524
|
+
body.theme-custom .mermaid-preview svg .task {
|
|
525
|
+
stroke: #b0a89f;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
body.theme-custom .mermaid-preview svg .taskText,
|
|
529
|
+
body.theme-custom .mermaid-preview svg .taskTextOutsideRight,
|
|
530
|
+
body.theme-custom .mermaid-preview svg .taskTextOutsideLeft {
|
|
531
|
+
fill: #2b2520 !important;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
body.theme-custom .mermaid-preview svg .section rect {
|
|
535
|
+
stroke: #b0a89f;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
body.theme-custom .mermaid-preview svg .sectionText,
|
|
539
|
+
body.theme-custom .mermaid-preview svg .sectionTitle {
|
|
540
|
+
fill: #2b2520 !important;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
body.theme-custom .mermaid-preview svg .today {
|
|
544
|
+
stroke: #8b4513 !important;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
body.theme-custom .mermaid-preview svg .grid .tick line {
|
|
548
|
+
stroke: #8a7b6a;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
body.theme-custom .mermaid-preview svg .grid .domain {
|
|
552
|
+
stroke: #8a7b6a;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
body.theme-custom .mermaid-preview svg .tick text {
|
|
556
|
+
fill: #7a7068;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/* ════════════════════════════════════════════
|
|
560
|
+
Mermaid - 思维导图 (Mind Map)
|
|
561
|
+
════════════════════════════════════════════ */
|
|
562
|
+
|
|
563
|
+
body.theme-custom .mermaid-preview svg .mindmap-node rect,
|
|
564
|
+
body.theme-custom .mermaid-preview svg .mindmap-node circle,
|
|
565
|
+
body.theme-custom .mermaid-preview svg .mindmap-node ellipse,
|
|
566
|
+
body.theme-custom .mermaid-preview svg .mindmap-node polygon,
|
|
567
|
+
body.theme-custom .mermaid-preview svg .mindmap-node path {
|
|
568
|
+
stroke: #b0a89f;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
body.theme-custom .mermaid-preview svg .mindmap-node text,
|
|
572
|
+
body.theme-custom .mermaid-preview svg .mindmap-node .nodeLabel text,
|
|
573
|
+
body.theme-custom .mermaid-preview svg .mindmap-node .nodeLabel span {
|
|
574
|
+
fill: #2b2520 !important;
|
|
575
|
+
color: #2b2520 !important;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
body.theme-custom .mermaid-preview svg .mindmap-edge {
|
|
579
|
+
stroke: #8a7b6a;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/* ════════════════════════════════════════════
|
|
583
|
+
Mermaid - Block 图
|
|
584
|
+
════════════════════════════════════════════ */
|
|
585
|
+
|
|
586
|
+
body.theme-custom .mermaid-preview svg .block rect,
|
|
587
|
+
body.theme-custom .mermaid-preview svg .block path {
|
|
588
|
+
stroke: #b0a89f;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
body.theme-custom .mermaid-preview svg .block text,
|
|
592
|
+
body.theme-custom .mermaid-preview svg .block .nodeLabel text,
|
|
593
|
+
body.theme-custom .mermaid-preview svg .block .nodeLabel span {
|
|
594
|
+
fill: #2b2520 !important;
|
|
595
|
+
color: #2b2520 !important;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/* ════════════════════════════════════════════
|
|
599
|
+
Mermaid - ER 图
|
|
600
|
+
════════════════════════════════════════════ */
|
|
601
|
+
|
|
602
|
+
body.theme-custom .mermaid-preview svg .er .entityBox rect,
|
|
603
|
+
body.theme-custom .mermaid-preview svg .er .entityBox path {
|
|
604
|
+
stroke: #b0a89f;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
body.theme-custom .mermaid-preview svg .er text,
|
|
608
|
+
body.theme-custom .mermaid-preview svg .er .relationshipLabel {
|
|
609
|
+
fill: #2b2520 !important;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
body.theme-custom .mermaid-preview svg .er .relationshipLine {
|
|
613
|
+
stroke: #8a7b6a;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/* ════════════════════════════════════════════
|
|
617
|
+
Mermaid - Git 图
|
|
618
|
+
════════════════════════════════════════════ */
|
|
619
|
+
|
|
620
|
+
body.theme-custom .mermaid-preview svg .git .commit rect,
|
|
621
|
+
body.theme-custom .mermaid-preview svg .git .commit circle {
|
|
622
|
+
stroke: #b0a89f;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
body.theme-custom .mermaid-preview svg .git text,
|
|
626
|
+
body.theme-custom .mermaid-preview svg .git .branchLabel text {
|
|
627
|
+
fill: #2b2520 !important;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/* ════════════════════════════════════════════
|
|
631
|
+
Mermaid - 用户旅程图 (Journey)
|
|
632
|
+
════════════════════════════════════════════ */
|
|
633
|
+
|
|
634
|
+
body.theme-custom .mermaid-preview svg .journey .task rect {
|
|
635
|
+
stroke: #b0a89f;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
body.theme-custom .mermaid-preview svg .journey text {
|
|
639
|
+
fill: #2b2520 !important;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/* ════════════════════════════════════════════
|
|
643
|
+
Mermaid - 时间线 (Timeline)
|
|
644
|
+
════════════════════════════════════════════ */
|
|
645
|
+
|
|
646
|
+
body.theme-custom .mermaid-preview svg .timeline rect {
|
|
647
|
+
stroke: #b0a89f;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
body.theme-custom .mermaid-preview svg .timeline text {
|
|
651
|
+
fill: #2b2520 !important;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/* ════════════════════════════════════════════
|
|
655
|
+
Mermaid - C4 架构图
|
|
656
|
+
════════════════════════════════════════════ */
|
|
657
|
+
|
|
658
|
+
body.theme-custom .mermaid-preview svg .c4 .person rect,
|
|
659
|
+
body.theme-custom .mermaid-preview svg .c4 .person path,
|
|
660
|
+
body.theme-custom .mermaid-preview svg .c4 .system rect,
|
|
661
|
+
body.theme-custom .mermaid-preview svg .c4 .system path,
|
|
662
|
+
body.theme-custom .mermaid-preview svg .c4 .container rect,
|
|
663
|
+
body.theme-custom .mermaid-preview svg .c4 .container path,
|
|
664
|
+
body.theme-custom .mermaid-preview svg .c4 .boundary rect,
|
|
665
|
+
body.theme-custom .mermaid-preview svg .c4 .boundary path {
|
|
666
|
+
stroke: #b0a89f;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
body.theme-custom .mermaid-preview svg .c4 text,
|
|
670
|
+
body.theme-custom .mermaid-preview svg .c4 span {
|
|
671
|
+
fill: #2b2520 !important;
|
|
672
|
+
color: #2b2520 !important;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/* ════════════════════════════════════════════
|
|
676
|
+
Mermaid - 人物节点
|
|
677
|
+
════════════════════════════════════════════ */
|
|
678
|
+
|
|
679
|
+
body.theme-custom .mermaid-preview svg .person rect,
|
|
680
|
+
body.theme-custom .mermaid-preview svg .person path {
|
|
681
|
+
stroke: #3d3530;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
body.theme-custom .mermaid-preview svg .person-man text {
|
|
685
|
+
fill: #ffffff !important;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
body.theme-custom .mermaid-preview svg .person-man span {
|
|
689
|
+
color: #ffffff !important;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/* ════════════════════════════════════════════
|
|
693
|
+
滚动条 & 选区
|
|
694
|
+
════════════════════════════════════════════ */
|
|
695
|
+
|
|
696
|
+
body.theme-custom ::-webkit-scrollbar-thumb {
|
|
697
|
+
background: #c4bbb0;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
body.theme-custom ::-webkit-scrollbar-thumb:hover {
|
|
701
|
+
background: #b0a89f;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
body.theme-custom ::selection {
|
|
705
|
+
background: rgba(139, 69, 19, 0.18);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
body.theme-custom #source-editor {
|
|
709
|
+
background: #f5f0e8;
|
|
710
|
+
color: #2b2520;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/* ════════════════════════════════════════════
|
|
714
|
+
打印样式
|
|
715
|
+
════════════════════════════════════════════ */
|
|
716
|
+
|
|
717
|
+
@media print {
|
|
718
|
+
body.theme-custom,
|
|
719
|
+
body.theme-custom html {
|
|
720
|
+
background: #fff;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
body.theme-custom #editor .ProseMirror pre {
|
|
724
|
+
background: #f5f0e8;
|
|
725
|
+
color: #2b2520;
|
|
726
|
+
border: 1px solid #d4cfc6;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
body.theme-custom #editor .ProseMirror table th {
|
|
730
|
+
background: #f5f0e8;
|
|
731
|
+
}
|
|
732
|
+
}
|