@bytechain.cn/colamd-themes 0.5.9 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -19
- package/dist/cli.js +70 -6
- package/dist/cli.js.map +1 -1
- package/dist/compat.d.ts +23 -3
- package/dist/compat.js +71 -12
- package/dist/compat.js.map +1 -1
- package/dist/dsh-plugin.js +1 -1
- package/dist/generator.d.ts +1 -1
- package/dist/generator.js +5 -2
- package/dist/generator.js.map +1 -1
- package/dist/models.d.ts +7 -1
- package/dist/models.js +1 -1
- package/dist/models.js.map +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +21 -3
- package/dist/renderer.js.map +1 -1
- package/dist/slides-markdown.d.ts +45 -0
- package/dist/slides-markdown.js +515 -0
- package/dist/slides-markdown.js.map +1 -0
- package/dist/slides.d.ts +36 -0
- package/dist/slides.js +149 -0
- package/dist/slides.js.map +1 -0
- package/dist/templates/theme-template.hbs +11 -0
- package/dist/validators.d.ts +2 -2
- package/dist/validators.js +71 -4
- package/dist/validators.js.map +1 -1
- package/package.json +3 -2
- package/skills/build-skills.sh +224 -217
- package/skills/colamd-themes/SKILL.md +178 -6
- package/themes/8-bit-orbit.css +817 -0
- package/themes/README.md +69 -0
- package/themes/biennale-yellow.css +577 -0
- package/themes/block-frame.css +774 -0
- package/themes/blue-professional.css +741 -0
- package/themes/bold-poster.css +794 -0
- package/themes/broadside.css +837 -0
- package/themes/capsule.css +767 -0
- package/themes/cartesian.css +584 -0
- package/themes/cobalt-grid.css +632 -0
- package/themes/coral.css +699 -0
- package/themes/creative-mode.css +642 -0
- package/themes/daisy-days.css +1052 -0
- package/themes/editorial-forest.css +796 -0
- package/themes/editorial-tri-tone.css +811 -0
- package/themes/emerald-editorial.css +683 -0
- package/themes/grove.css +623 -0
- package/themes/indigo-deck.css +336 -0
- package/themes/indigo-porcelain-light.css +335 -0
- package/themes/long-table.css +782 -0
- package/themes/mat.css +848 -0
- package/themes/monochrome.css +782 -0
- package/themes/neo-grid-bold.css +838 -0
- package/themes/peoples-platform.css +843 -0
- package/themes/pin-and-paper.css +700 -0
- package/themes/pink-script-dark.css +648 -0
- package/themes/pink-script.css +290 -0
- package/themes/playful.css +774 -0
- package/themes/raw-grid.css +814 -0
- package/themes/retro-windows.css +767 -0
- package/themes/retro-zine.css +814 -0
- package/themes/sakura-chroma.css +775 -0
- package/themes/scatterbrain.css +726 -0
- package/themes/signal.css +872 -0
- package/themes/soft-editorial.css +788 -0
- package/themes/stencil-tablet.css +922 -0
- package/themes/studio.css +767 -0
- package/themes/swiss-lemon-dark.css +529 -0
- package/themes/swiss-lemon-light.css +375 -0
- package/themes/vellum.css +723 -0
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Vellum(午夜蓝场域 · 暖黄斜体衬线 · 手工精修版)
|
|
3
|
+
* 来源:D:\workspace\git\beautiful-html-templates\templates\vellum\
|
|
4
|
+
* template.html + design.md + template.json
|
|
5
|
+
* colors: navy #2A3870(每页场域)/ navy-alt #343F80 / navy-deep #1F2858 /
|
|
6
|
+
* navy-mid #34407A / yellow #E8D85C(正文主色)/ yellow-62% / yellow-32% /
|
|
7
|
+
* emphasis #F5E168(<em> 与强调小字)/ teal #3A7878(巨引号与标签)
|
|
8
|
+
* fonts: Cormorant Garamond italic(display 全档 400;h3 500)/ DM Sans(正文)/
|
|
9
|
+
* Courier Prime(chrome、pin-note、序号、统计标签)
|
|
10
|
+
* 身份:单一午夜蓝场域 + 暖黄斜体衬线,无反转、无第二底色;teal 只做巨引号/
|
|
11
|
+
* kicker/序号/别针注。零动效、零圆角、零阴影,发丝线一律 1px。
|
|
12
|
+
* paradigm 备案(模板刻意身份,与 biennale-yellow / pin-and-paper 同类,有意保留):
|
|
13
|
+
* SL-01 —— 底色 #2A3870 饱和度 45.5% > 5%,模板身份即"午夜蓝场域";
|
|
14
|
+
* SL-02 —— panel #3D486E 28.7% / panelAlt #4A5480 26.7% > 10%,同为蓝场域降档;
|
|
15
|
+
* NT-03 —— 边框 #5C648C 饱和度 20.7%,为蓝调(模板发丝线 = 20% 黄 over 蓝,
|
|
16
|
+
* 非中性灰)。
|
|
17
|
+
* CR-04 已修:种子 accent 取可读 teal #8FC2C2(对底色 5.3:1);模板原 teal #3A7878
|
|
18
|
+
* 只留 --seed-accent-dark 供巨引号等大图形;小字 teal 一律走可读档。
|
|
19
|
+
* 页面映射(9 页):
|
|
20
|
+
* cover←P1 / section←P2+P3(同为居中短标题+说明,P3 不单列)/ kpi←P4 /
|
|
21
|
+
* agenda←P5 / quote←P6 / two-col←P7(双 pane 分色以 50% 渐变近似)/
|
|
22
|
+
* figure←P8(柱状图为绝对定位装饰,保持上游默认)/ closing←P9
|
|
23
|
+
* pin-annotation→slide-foot(模板每页左下的 mono 别针注,映射到底部 chrome)。
|
|
24
|
+
* 版式复刻见 SECTION 1.5/1.6(换算与逐页对照写在注释里)。
|
|
25
|
+
*
|
|
26
|
+
* 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
|
|
27
|
+
*
|
|
28
|
+
* 两条硬规矩:
|
|
29
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
30
|
+
* 编辑器继承不到。
|
|
31
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
32
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
33
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
34
|
+
*
|
|
35
|
+
* ═══════════════════════════════════════════════════════════
|
|
36
|
+
* SECTION 1 — Design Tokens
|
|
37
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
38
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
39
|
+
|
|
40
|
+
:root {
|
|
41
|
+
|
|
42
|
+
/* ── 1.1 Seed Palette ──
|
|
43
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
44
|
+
深色范式明度序:surface(0.302) < panel(0.335) < panelAlt(0.396);
|
|
45
|
+
文字三档取模板 100% / 62% / 32% 黄,按可读性回填为实色(NT-01 同黄轴)。 */
|
|
46
|
+
--seed-accent: #8fc2c2; /* 可读 teal(CR-04:对 navy 5.3:1) */
|
|
47
|
+
--seed-accent-light: #b8dcdc;
|
|
48
|
+
--seed-accent-dark: #3a7878; /* 模板原 teal,仅巨引号等大图形 */
|
|
49
|
+
--seed-surface: #2a3870; /* navy —— 每页场域 */
|
|
50
|
+
--seed-panel: #3d486e; /* navy 提亮一档 */
|
|
51
|
+
--seed-panel-alt: #4a5480; /* template navy-alt 邻域,代码块底 */
|
|
52
|
+
--seed-ink: #e8d85c; /* yellow —— 正文主色 */
|
|
53
|
+
--seed-ink-muted: #c3b978; /* yellow 62% 回填实色(次要文字) */
|
|
54
|
+
--seed-ink-dim: #9a9474; /* yellow 32% 回填实色(三级文字) */
|
|
55
|
+
--seed-border: #5c648c; /* 20% 黄 over navy 的提亮版发丝线 */
|
|
56
|
+
--seed-border-strong: #e8d85c; /* 全黄结构线(模板 1px 细线体系) */
|
|
57
|
+
--seed-emphasis: #f5e168; /* 模板 emphasis-yellow:<em> 与强调小字 */
|
|
58
|
+
|
|
59
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
60
|
+
--bg-color: var(--seed-surface);
|
|
61
|
+
--text-color: var(--seed-ink);
|
|
62
|
+
--text-secondary: var(--seed-ink-muted);
|
|
63
|
+
--text-muted: var(--seed-ink-dim);
|
|
64
|
+
--border-color: var(--seed-border);
|
|
65
|
+
--link-color: var(--seed-accent); /* 链接走可读 teal(CR-04) */
|
|
66
|
+
|
|
67
|
+
--code-bg: var(--seed-panel);
|
|
68
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
69
|
+
--code-block-text: var(--seed-ink); /* 代码也用暖黄,不用生成版的纯白 */
|
|
70
|
+
|
|
71
|
+
--blockquote-border: var(--seed-border-strong); /* 模板:1px 全黄细线 */
|
|
72
|
+
--blockquote-bg: var(--seed-panel);
|
|
73
|
+
--table-header-bg: var(--seed-panel);
|
|
74
|
+
|
|
75
|
+
--selection-bg: rgba(232, 216, 92, 0.20);
|
|
76
|
+
--highlight-bg: rgba(232, 216, 92, 0.30);
|
|
77
|
+
|
|
78
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
79
|
+
--font-body: "DM Sans", "Noto Sans SC", sans-serif;
|
|
80
|
+
--font-mono: "Courier Prime", "Noto Sans Mono CJK SC", monospace;
|
|
81
|
+
--editor-font-size: 16px;
|
|
82
|
+
--editor-column-width: 820px;
|
|
83
|
+
|
|
84
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
85
|
+
图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
|
|
86
|
+
--pele-bg: var(--code-block-bg);
|
|
87
|
+
--pele-fg: var(--code-block-text);
|
|
88
|
+
--pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
|
|
89
|
+
--pele-line: var(--code-block-text);
|
|
90
|
+
--pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
|
|
91
|
+
--pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
|
|
92
|
+
--pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
|
|
93
|
+
--pele-accent: var(--seed-accent);
|
|
94
|
+
--pele-radius: 0px; /* 模板:全部直角 */
|
|
95
|
+
|
|
96
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 vellum 九页逐页复刻)──
|
|
97
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
98
|
+
模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点)。
|
|
99
|
+
模板 Type Scale:display 11vw=211.2px / h1 7vw=134.4px / h2 4vw=76.8px /
|
|
100
|
+
h3 2.4vw=46.08px / stat 5.5vw=105.6px / quote 3.2vw=61.44px /
|
|
101
|
+
lead 1.5vw=28.8px / body 1.05vw=20.16px / caption 0.85vw=16.32px /
|
|
102
|
+
label 0.72vw=13.82px / pin-note 1.15vw=22.08px。
|
|
103
|
+
页面:cover←P1 / section←P2+P3 / kpi←P4 / agenda←P5 / quote←P6 /
|
|
104
|
+
two-col←P7 / figure←P8(无图表挂点,上游默认)/ closing←P9。
|
|
105
|
+
未复刻:pin-annotation 绝对定位多行栈(映射为 slide-foot 单行)、
|
|
106
|
+
compare 双 pane 真实切分(以 50% 渐变近似)、chart 柱状图(绝对定位
|
|
107
|
+
div,无行级挂点)、quote-mark 的绝对居中(以引用行 ::before 近似)、
|
|
108
|
+
28px teal 短规则(无对应行内元素)。 */
|
|
109
|
+
--slide-mono: "Courier Prime", "Noto Sans Mono CJK SC", monospace;
|
|
110
|
+
--slide-title-font: "Cormorant Garamond", "Noto Serif SC", serif;
|
|
111
|
+
--slide-title-size: 2.95em; /* 内容页题 h2 76.8px ÷26 */
|
|
112
|
+
--slide-title-weight: 400; /* Cormorant display 仅 400,模板即常规体 */
|
|
113
|
+
--slide-subhead-weight: 500; /* 模板 h3 500 */
|
|
114
|
+
--slide-title-tracking: -0.01em; /* 模板 display/h1/h2 -.01em */
|
|
115
|
+
--slide-title-line-height: 1.05; /* 模板 h2 1.05 */
|
|
116
|
+
--slide-cover-title-size: 8.12em; /* P1 display 211.2px ÷26 */
|
|
117
|
+
--slide-cover-title-line-height: 0.92; /* 模板 display .92 */
|
|
118
|
+
--slide-cover-title-tracking: -0.01em;
|
|
119
|
+
--slide-section-title-size: 5.17em; /* P2 h1 134.4px ÷26 */
|
|
120
|
+
--slide-closing-title-size: 5.17em; /* P9 h1 134.4px ÷26 */
|
|
121
|
+
--slide-lead-size: 1.11em; /* 模板 lead 28.8px ÷26 */
|
|
122
|
+
--slide-kicker-size: clamp(11px, 0.72vw, 14px); /* label 13.82px @1920 */
|
|
123
|
+
--slide-kicker-tracking: 0.1em; /* 模板 kicker .1em(不大写) */
|
|
124
|
+
--slide-kicker-transform: none;
|
|
125
|
+
--slide-chrome-opacity: 0.9;
|
|
126
|
+
--slide-chrome-transform: none; /* 模板标签不大写 */
|
|
127
|
+
--slide-kpi-number-size: 6.45em; /* P4 105.6px ÷26 ÷0.63(li 缩放) */
|
|
128
|
+
--slide-quote-size: 2.36em; /* P6 61.44px ÷26 */
|
|
129
|
+
--slide-page-pad-x: 6vw; /* 模板 pad-x 6vw = 115px @1920 */
|
|
130
|
+
--slide-page-top-pad: 120px; /* 模板内容顶 ≈134px − chrome 安全区 */
|
|
131
|
+
--slide-page-top-pad-print: 104px;
|
|
132
|
+
--slide-cover-text-align: center; /* 模板封面居中悬浮 */
|
|
133
|
+
--slide-cover-lead-inline: auto;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
137
|
+
body.presenting / body.slides-printing 作用域) ═══════════════ */
|
|
138
|
+
|
|
139
|
+
/* 1.6.1 页标题声部对齐:Cormorant 斜体 400 暖黄;压掉文档式 h1/h2 下划线与
|
|
140
|
+
700 字重(编辑器规则带 id 权重会漏进放映)。kicker 走 Courier teal .1em。 */
|
|
141
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
142
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
143
|
+
font-family: var(--slide-title-font);
|
|
144
|
+
font-size: var(--slide-title-size);
|
|
145
|
+
font-style: italic;
|
|
146
|
+
font-weight: 400;
|
|
147
|
+
line-height: var(--slide-title-line-height);
|
|
148
|
+
letter-spacing: var(--slide-title-tracking);
|
|
149
|
+
color: var(--text-color);
|
|
150
|
+
border-bottom: none;
|
|
151
|
+
padding-bottom: 0;
|
|
152
|
+
margin-bottom: 0.45em;
|
|
153
|
+
}
|
|
154
|
+
body.presenting .cm-md-page-title[data-slide-kicker]::before,
|
|
155
|
+
body.slides-printing .cm-md-page-title[data-slide-kicker]::before {
|
|
156
|
+
font-family: var(--slide-mono);
|
|
157
|
+
font-size: var(--slide-kicker-size);
|
|
158
|
+
font-weight: 500;
|
|
159
|
+
letter-spacing: var(--slide-kicker-tracking);
|
|
160
|
+
text-transform: none;
|
|
161
|
+
color: var(--seed-accent); /* 模板 kicker 为 teal(小字用可读档) */
|
|
162
|
+
opacity: 1;
|
|
163
|
+
margin-bottom: 2.2em; /* 模板 gap-md 32.4px @ kicker 字号 */
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* 1.6.2 cover · P1:午夜蓝满场,kicker + 211px 斜体巨题 + 居中导语。
|
|
167
|
+
色块/光晕装饰模板本页没有,不做假底。 */
|
|
168
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content {
|
|
169
|
+
text-align: center;
|
|
170
|
+
}
|
|
171
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
172
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title {
|
|
173
|
+
font-size: var(--slide-cover-title-size);
|
|
174
|
+
line-height: var(--slide-cover-title-line-height);
|
|
175
|
+
letter-spacing: var(--slide-cover-title-tracking);
|
|
176
|
+
max-width: 70%;
|
|
177
|
+
margin-left: auto;
|
|
178
|
+
margin-right: auto;
|
|
179
|
+
}
|
|
180
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
|
|
181
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
|
|
182
|
+
font-size: var(--slide-lead-size);
|
|
183
|
+
line-height: 1.6;
|
|
184
|
+
color: var(--text-secondary);
|
|
185
|
+
max-width: 70%;
|
|
186
|
+
margin-left: auto;
|
|
187
|
+
margin-right: auto;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* 1.6.3 section · P2/P3:居中的短标题 134px(P2 h1 档)+ 62% 宽导语。
|
|
191
|
+
P3 的 h2 76.8px 与 P2 同形,不单列;标题统一取 P2 的 h1 声部。 */
|
|
192
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content {
|
|
193
|
+
text-align: center;
|
|
194
|
+
}
|
|
195
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
|
|
196
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-title {
|
|
197
|
+
font-size: var(--slide-section-title-size);
|
|
198
|
+
line-height: 0.95;
|
|
199
|
+
letter-spacing: -0.01em;
|
|
200
|
+
max-width: 62%;
|
|
201
|
+
margin-left: auto;
|
|
202
|
+
margin-right: auto;
|
|
203
|
+
}
|
|
204
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
|
|
205
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-lead {
|
|
206
|
+
font-size: var(--slide-lead-size);
|
|
207
|
+
line-height: 1.6;
|
|
208
|
+
color: var(--text-secondary);
|
|
209
|
+
max-width: 62%;
|
|
210
|
+
margin-left: auto;
|
|
211
|
+
margin-right: auto;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* 1.6.4 agenda · P5(four rules):60% 宽居中列,序号 = Courier teal 13.8px,
|
|
215
|
+
行文 = DM Sans lead 28.8px;模板无分隔线,去掉上游 border-top。
|
|
216
|
+
序号换算式:13.82 ÷ 26 ÷ 1.11(li 缩放) = 0.48em。 */
|
|
217
|
+
body.presenting #editor[data-slide-layout='agenda'] .cm-content {
|
|
218
|
+
text-align: center;
|
|
219
|
+
}
|
|
220
|
+
body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title,
|
|
221
|
+
body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
|
|
222
|
+
font-size: var(--slide-title-size);
|
|
223
|
+
max-width: none;
|
|
224
|
+
margin-bottom: 1.2em;
|
|
225
|
+
}
|
|
226
|
+
body.presenting .cm-md-slide-agenda.cm-md-li,
|
|
227
|
+
body.slides-printing .cm-md-slide-agenda.cm-md-li {
|
|
228
|
+
width: 60%;
|
|
229
|
+
margin: 0 auto 1.1em;
|
|
230
|
+
padding: 0;
|
|
231
|
+
border-top: none;
|
|
232
|
+
border-bottom: none;
|
|
233
|
+
font-size: 1.11em; /* .sz-lead 28.8px ÷26 */
|
|
234
|
+
line-height: 1.5;
|
|
235
|
+
text-align: left;
|
|
236
|
+
}
|
|
237
|
+
body.presenting .cm-md-slide-agenda .cm-md-listmark,
|
|
238
|
+
body.slides-printing .cm-md-slide-agenda .cm-md-listmark {
|
|
239
|
+
display: inline-block;
|
|
240
|
+
width: 2em;
|
|
241
|
+
margin-right: 0.5em;
|
|
242
|
+
font-family: var(--slide-mono);
|
|
243
|
+
font-size: 0.48em; /* 13.82px ÷26 ÷1.11 */
|
|
244
|
+
font-weight: 400;
|
|
245
|
+
letter-spacing: 0.06em;
|
|
246
|
+
color: var(--seed-accent);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* 1.6.5 kpi · P4(three findings):标题居中 76.8px;三列裸排统计,
|
|
250
|
+
每列右侧 1px 20% 黄发丝线(模板 .pin-stat border-right),
|
|
251
|
+
大数字 = 斜体 Cormorant 105.6px,标签 = Courier 16.3px / 62% 黄。
|
|
252
|
+
数字换算式:105.6 ÷ 26 ÷ 0.63(li 缩放) = 6.45em。 */
|
|
253
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content {
|
|
254
|
+
text-align: center;
|
|
255
|
+
}
|
|
256
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
|
|
257
|
+
body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
|
|
258
|
+
font-size: var(--slide-title-size);
|
|
259
|
+
max-width: none;
|
|
260
|
+
margin-bottom: 1.5em;
|
|
261
|
+
}
|
|
262
|
+
body.presenting .cm-md-slide-kpi.cm-md-li,
|
|
263
|
+
body.slides-printing .cm-md-slide-kpi.cm-md-li {
|
|
264
|
+
display: inline-block;
|
|
265
|
+
width: 31%;
|
|
266
|
+
margin: 0 0 1.4em;
|
|
267
|
+
padding: 1.2em 0.8em;
|
|
268
|
+
border-top: none;
|
|
269
|
+
border-right: 1px solid rgba(232, 216, 92, 0.20);
|
|
270
|
+
border-radius: 0;
|
|
271
|
+
background: transparent;
|
|
272
|
+
box-shadow: none;
|
|
273
|
+
vertical-align: top;
|
|
274
|
+
text-align: center;
|
|
275
|
+
list-style: none;
|
|
276
|
+
font-family: var(--slide-mono);
|
|
277
|
+
font-size: 0.63em; /* .sz-caption 16.32px ÷26 */
|
|
278
|
+
line-height: 1.55;
|
|
279
|
+
color: var(--text-secondary);
|
|
280
|
+
}
|
|
281
|
+
body.presenting .cm-md-slide-kpi .cm-md-strong,
|
|
282
|
+
body.slides-printing .cm-md-slide-kpi .cm-md-strong {
|
|
283
|
+
display: block;
|
|
284
|
+
font-family: var(--slide-title-font);
|
|
285
|
+
font-style: italic;
|
|
286
|
+
font-weight: 400;
|
|
287
|
+
font-size: var(--slide-kpi-number-size);
|
|
288
|
+
line-height: 1; /* 模板 stat-value line-height 1 */
|
|
289
|
+
letter-spacing: -0.02em;
|
|
290
|
+
color: var(--text-color);
|
|
291
|
+
margin-bottom: 0.25em;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* 1.6.6 quote · P6(the big quote):居中金句 61.44px 斜体;
|
|
295
|
+
巨引号以引用行 ::before 近似 134.4px 模板 teal;署名行 = Courier 13.8px 居中。
|
|
296
|
+
模板 .quote-mark 为独立绝对居中元素,行式 DOM 无挂点,故近似到 ::before。 */
|
|
297
|
+
body.presenting .cm-md-slide-quote.cm-md-blockquote,
|
|
298
|
+
body.slides-printing .cm-md-slide-quote.cm-md-blockquote {
|
|
299
|
+
font-family: var(--slide-title-font);
|
|
300
|
+
font-style: italic;
|
|
301
|
+
font-weight: 400;
|
|
302
|
+
font-size: var(--slide-quote-size);
|
|
303
|
+
line-height: 1.25; /* 模板 quote-text 1.25 */
|
|
304
|
+
letter-spacing: 0;
|
|
305
|
+
color: var(--text-color);
|
|
306
|
+
text-align: center;
|
|
307
|
+
background: transparent;
|
|
308
|
+
border-left: none;
|
|
309
|
+
padding-left: 0;
|
|
310
|
+
padding-right: 0;
|
|
311
|
+
max-width: 70%;
|
|
312
|
+
margin-left: auto;
|
|
313
|
+
margin-right: auto;
|
|
314
|
+
}
|
|
315
|
+
body.presenting .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
316
|
+
body.slides-printing .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
317
|
+
font-size: 5.17em; /* quote-mark 134.4px ÷26 */
|
|
318
|
+
line-height: 0.6; /* 模板 .6 */
|
|
319
|
+
color: var(--seed-accent-dark); /* 模板巨引号原 teal */
|
|
320
|
+
margin-bottom: 0.5em; /* 模板 gap-md */
|
|
321
|
+
}
|
|
322
|
+
body.presenting .cm-md-slide-quote.cm-md-blockquote + .cm-line,
|
|
323
|
+
body.slides-printing .cm-md-slide-quote.cm-md-blockquote + .cm-line {
|
|
324
|
+
margin-top: 1.2em;
|
|
325
|
+
font-family: var(--slide-mono);
|
|
326
|
+
font-weight: 400;
|
|
327
|
+
font-size: 0.53em; /* label 13.82px ÷26 */
|
|
328
|
+
letter-spacing: 0.06em;
|
|
329
|
+
text-transform: none;
|
|
330
|
+
text-align: center;
|
|
331
|
+
color: var(--text-secondary);
|
|
332
|
+
border-top: none;
|
|
333
|
+
}
|
|
334
|
+
body.presenting .cm-md-slide-quote .cm-md-strong,
|
|
335
|
+
body.slides-printing .cm-md-slide-quote .cm-md-strong {
|
|
336
|
+
color: var(--seed-emphasis); /* 署名名 = 模板 .label.accent */
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/* 1.6.7 two-col · P7(before / after):模板左右两块近色 navy pane,
|
|
340
|
+
行式 DOM 无法真分栏上色——用 50% 渐变近似整页切分,并在中缝画 1px
|
|
341
|
+
20% 黄细线(模板 .compare-panel.right border-left)。底色打满整条层叠链:
|
|
342
|
+
body / #editor / .cm-editor / .cm-scroller / .cm-content 五层;打印域
|
|
343
|
+
body.slides-printing:has(.cm-md-slide-two-col)。面板标题 = h3 46.08px 斜体 500。 */
|
|
344
|
+
body.presenting:has(#editor[data-slide-layout='two-col']),
|
|
345
|
+
body.slides-printing:has(.cm-md-slide-two-col) {
|
|
346
|
+
background: linear-gradient(to right, #1f2858 0 50%, #34407a 50% 100%);
|
|
347
|
+
}
|
|
348
|
+
body.presenting #editor[data-slide-layout='two-col'],
|
|
349
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-editor,
|
|
350
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-scroller,
|
|
351
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content,
|
|
352
|
+
body.slides-printing:has(.cm-md-slide-two-col) #editor,
|
|
353
|
+
body.slides-printing:has(.cm-md-slide-two-col) .cm-editor,
|
|
354
|
+
body.slides-printing:has(.cm-md-slide-two-col) .cm-scroller,
|
|
355
|
+
body.slides-printing:has(.cm-md-slide-two-col) .cm-content {
|
|
356
|
+
background: linear-gradient(to right, #1f2858 0 50%, #34407a 50% 100%);
|
|
357
|
+
}
|
|
358
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content {
|
|
359
|
+
column-rule-color: rgba(232, 216, 92, 0.18);
|
|
360
|
+
}
|
|
361
|
+
/* 换底页上的表格不要沿用外层纸面:td 保持透明,透出本页 navy 分色 */
|
|
362
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-md-table-widget td,
|
|
363
|
+
body.slides-printing:has(.cm-md-slide-two-col) .cm-md-table-widget td {
|
|
364
|
+
background: transparent;
|
|
365
|
+
color: var(--text-color);
|
|
366
|
+
}
|
|
367
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title,
|
|
368
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-title,
|
|
369
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-atxheading2,
|
|
370
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-atxheading2 {
|
|
371
|
+
font-size: 1.77em; /* h3 46.08px ÷26 */
|
|
372
|
+
font-weight: 500;
|
|
373
|
+
font-style: italic;
|
|
374
|
+
line-height: 1.15;
|
|
375
|
+
letter-spacing: -0.01em;
|
|
376
|
+
max-width: none;
|
|
377
|
+
margin-bottom: 0.5em;
|
|
378
|
+
}
|
|
379
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
|
|
380
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
|
|
381
|
+
font-size: 1.11em; /* lead 28.8px ÷26 */
|
|
382
|
+
line-height: 1.6;
|
|
383
|
+
color: var(--text-secondary);
|
|
384
|
+
max-width: none;
|
|
385
|
+
}
|
|
386
|
+
body.presenting .cm-md-slide-two-col.cm-md-li,
|
|
387
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-li {
|
|
388
|
+
margin: 0 0 0.9em;
|
|
389
|
+
padding: 0;
|
|
390
|
+
border: none;
|
|
391
|
+
font-size: 0.78em; /* body 20.16px ÷26 */
|
|
392
|
+
line-height: 1.5;
|
|
393
|
+
}
|
|
394
|
+
body.presenting .cm-md-slide-two-col .cm-md-listmark,
|
|
395
|
+
body.slides-printing .cm-md-slide-two-col .cm-md-listmark {
|
|
396
|
+
display: inline-block;
|
|
397
|
+
width: 2em;
|
|
398
|
+
margin-right: 0.5em;
|
|
399
|
+
font-family: var(--slide-mono);
|
|
400
|
+
font-size: 0.68em; /* 13.82px ÷26 ÷0.78 */
|
|
401
|
+
letter-spacing: 0.06em;
|
|
402
|
+
color: var(--seed-accent);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* 1.6.8 figure · P8(chart):模板柱状图/基线均为绝对定位 div,行式 DOM 无挂点
|
|
406
|
+
——有意未复刻,figure 的图卡排版保持上游默认;这里只对齐页标题 76.8px 与
|
|
407
|
+
导语 28.8px 的声部。 */
|
|
408
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
|
|
409
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-title {
|
|
410
|
+
font-size: var(--slide-title-size);
|
|
411
|
+
max-width: none;
|
|
412
|
+
}
|
|
413
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
|
|
414
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
|
|
415
|
+
font-size: var(--slide-lead-size);
|
|
416
|
+
line-height: 1.6;
|
|
417
|
+
color: var(--text-secondary);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* 1.6.9 closing · P9(end notes):居中收束,h1 134px + 56ch 导语;
|
|
421
|
+
模板本页无清单,若有列表保持上游形态(不另画)。 */
|
|
422
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content {
|
|
423
|
+
text-align: center;
|
|
424
|
+
}
|
|
425
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
|
|
426
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title {
|
|
427
|
+
font-size: var(--slide-closing-title-size);
|
|
428
|
+
line-height: 0.95;
|
|
429
|
+
letter-spacing: -0.01em;
|
|
430
|
+
max-width: 60%;
|
|
431
|
+
margin-left: auto;
|
|
432
|
+
margin-right: auto;
|
|
433
|
+
margin-bottom: 0.6em;
|
|
434
|
+
}
|
|
435
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
|
|
436
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
|
|
437
|
+
font-size: var(--slide-lead-size);
|
|
438
|
+
line-height: 1.6;
|
|
439
|
+
color: var(--text-secondary);
|
|
440
|
+
max-width: 56ch;
|
|
441
|
+
margin-left: auto;
|
|
442
|
+
margin-right: auto;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* 1.6.10 chrome · 顶栏 = 模板 chrome-bar(Courier 13.8px / .1em / 黄字 +
|
|
446
|
+
20% 黄发丝线);底栏 = pin-annotation(Courier 22px / .01em / teal);
|
|
447
|
+
模板无幽灵巨页码,压掉上游 .slide-ghost。 */
|
|
448
|
+
body.presenting .slide-chrome,
|
|
449
|
+
body.slides-printing .slide-chrome {
|
|
450
|
+
padding-top: 6vh; /* 模板 pad-y 6vh */
|
|
451
|
+
font-family: var(--slide-mono);
|
|
452
|
+
font-size: clamp(11px, 0.72vw, 14px);
|
|
453
|
+
font-weight: 400;
|
|
454
|
+
letter-spacing: 0.1em;
|
|
455
|
+
text-transform: none;
|
|
456
|
+
color: var(--text-color);
|
|
457
|
+
}
|
|
458
|
+
body.presenting .slide-chrome-left::after,
|
|
459
|
+
body.slides-printing .slide-chrome-left::after {
|
|
460
|
+
background: rgba(232, 216, 92, 0.20);
|
|
461
|
+
opacity: 1;
|
|
462
|
+
}
|
|
463
|
+
body.presenting .slide-foot,
|
|
464
|
+
body.slides-printing .slide-foot {
|
|
465
|
+
padding-bottom: 5.4vh; /* 模板 pin-annotation bottom ≈ 0.9 × 6vh */
|
|
466
|
+
font-family: var(--slide-mono);
|
|
467
|
+
font-size: clamp(14px, 1.15vw, 22px); /* pin-note 22.08px @1920 */
|
|
468
|
+
font-weight: 500;
|
|
469
|
+
letter-spacing: 0.01em;
|
|
470
|
+
text-transform: none;
|
|
471
|
+
color: var(--seed-accent); /* 模板 pin-note 为 teal */
|
|
472
|
+
opacity: 1;
|
|
473
|
+
}
|
|
474
|
+
body.presenting .slide-foot-brand,
|
|
475
|
+
body.slides-printing .slide-foot-brand {
|
|
476
|
+
font-family: var(--slide-mono);
|
|
477
|
+
font-size: inherit;
|
|
478
|
+
font-weight: 500;
|
|
479
|
+
letter-spacing: 0.01em;
|
|
480
|
+
text-transform: none;
|
|
481
|
+
}
|
|
482
|
+
body.presenting .slide-ghost,
|
|
483
|
+
body.slides-printing .slide-ghost {
|
|
484
|
+
opacity: 0; /* 模板无幽灵页码,压掉 */
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/* ═══════════════════════════════════════════════════════════
|
|
488
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
489
|
+
═══════════════════════════════════════════════════════════ */
|
|
490
|
+
|
|
491
|
+
#editor .cm-content {
|
|
492
|
+
font-family: var(--font-body);
|
|
493
|
+
line-height: 1.75;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/* ── 2.1 Headings(Cormorant 斜体;display 仅 400,h3 500)── */
|
|
497
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
498
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
499
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
500
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
501
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
502
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
503
|
+
font-family: "Cormorant Garamond", "Noto Serif SC", serif;
|
|
504
|
+
color: var(--text-color);
|
|
505
|
+
font-style: italic;
|
|
506
|
+
font-weight: 400;
|
|
507
|
+
line-height: 1.15;
|
|
508
|
+
letter-spacing: -0.01em;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
#editor .cm-content .cm-md-atxheading1 {
|
|
512
|
+
font-size: 2.7em;
|
|
513
|
+
line-height: 0.95;
|
|
514
|
+
}
|
|
515
|
+
#editor .cm-content .cm-md-atxheading2 {
|
|
516
|
+
font-size: 2.05em;
|
|
517
|
+
line-height: 1.05;
|
|
518
|
+
}
|
|
519
|
+
#editor .cm-content .cm-md-atxheading3 {
|
|
520
|
+
font-size: 1.55em;
|
|
521
|
+
font-weight: 500;
|
|
522
|
+
}
|
|
523
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.28em; }
|
|
524
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.12em; }
|
|
525
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
526
|
+
font-family: var(--font-mono);
|
|
527
|
+
font-style: normal;
|
|
528
|
+
font-weight: 400;
|
|
529
|
+
font-size: 0.82em;
|
|
530
|
+
letter-spacing: 0.06em;
|
|
531
|
+
color: var(--text-secondary);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/* ── 2.2 Inline ──
|
|
535
|
+
模板:正文不靠加粗,强调 = 斜体切直立体 600 + emphasis-yellow。 */
|
|
536
|
+
#editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
|
|
537
|
+
#editor .cm-content .cm-md-em {
|
|
538
|
+
font-style: normal;
|
|
539
|
+
font-weight: 600;
|
|
540
|
+
color: var(--seed-emphasis);
|
|
541
|
+
}
|
|
542
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
543
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
544
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
545
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
546
|
+
|
|
547
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
548
|
+
font-family: var(--font-mono);
|
|
549
|
+
background: var(--code-bg);
|
|
550
|
+
color: var(--text-color);
|
|
551
|
+
border-radius: 0;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
#editor .cm-content .cm-md-marker,
|
|
555
|
+
#editor .cm-content .cm-md-quotemark,
|
|
556
|
+
#editor .cm-content .cm-md-listmark {
|
|
557
|
+
color: var(--text-muted);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
561
|
+
引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
|
|
562
|
+
否则引用里的代码行会盖住代码块底色。模板:1px 细线、零圆角。 */
|
|
563
|
+
#editor .cm-content .cm-md-blockquote {
|
|
564
|
+
color: var(--text-secondary);
|
|
565
|
+
border-left: 1px solid var(--blockquote-border);
|
|
566
|
+
padding-left: 16px;
|
|
567
|
+
padding-right: 16px;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
#editor .cm-content .cm-md-codeblock {
|
|
571
|
+
background: var(--code-block-bg);
|
|
572
|
+
color: var(--code-block-text);
|
|
573
|
+
padding-left: 16px;
|
|
574
|
+
padding-right: 16px;
|
|
575
|
+
}
|
|
576
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
577
|
+
border-top-left-radius: 0;
|
|
578
|
+
border-top-right-radius: 0;
|
|
579
|
+
}
|
|
580
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
581
|
+
border-bottom-left-radius: 0;
|
|
582
|
+
border-bottom-right-radius: 0;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/* ── 2.4 Table / Rule(模板:1px 发丝线,表头 = Courier 标签)── */
|
|
586
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
587
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
588
|
+
border-color: var(--border-color);
|
|
589
|
+
}
|
|
590
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
591
|
+
background: var(--table-header-bg);
|
|
592
|
+
color: var(--text-color);
|
|
593
|
+
font-family: var(--font-mono);
|
|
594
|
+
font-size: 0.82em;
|
|
595
|
+
font-weight: 400;
|
|
596
|
+
letter-spacing: 0.06em;
|
|
597
|
+
border-bottom: 1px solid var(--border-color);
|
|
598
|
+
}
|
|
599
|
+
#editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
|
|
600
|
+
|
|
601
|
+
/* ── 2.5 中文首行缩进 ──
|
|
602
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
603
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
604
|
+
|
|
605
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
606
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
607
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
608
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
609
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
610
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
611
|
+
#editor .cm-content .cm-md-blockquote,
|
|
612
|
+
#editor .cm-content .cm-md-codeblock,
|
|
613
|
+
#editor .cm-content .cm-md-hr,
|
|
614
|
+
#editor .cm-content .cm-md-mermaid,
|
|
615
|
+
#editor .cm-content .cm-md-li-0,
|
|
616
|
+
#editor .cm-content .cm-md-li-1,
|
|
617
|
+
#editor .cm-content .cm-md-li-2,
|
|
618
|
+
#editor .cm-content .cm-md-li-3,
|
|
619
|
+
#editor .cm-content .cm-md-li-4,
|
|
620
|
+
#editor .cm-content .cm-md-li-5,
|
|
621
|
+
#editor .cm-content .cm-md-li-6 {
|
|
622
|
+
text-indent: 0;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/* ═══════════════════════════════════════════════════════════
|
|
626
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
627
|
+
HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
|
|
628
|
+
═══════════════════════════════════════════════════════════ */
|
|
629
|
+
|
|
630
|
+
.colamd-document {
|
|
631
|
+
font-family: var(--font-body);
|
|
632
|
+
font-size: 16px;
|
|
633
|
+
line-height: 1.75;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.colamd-document h1,
|
|
637
|
+
.colamd-document h2,
|
|
638
|
+
.colamd-document h3,
|
|
639
|
+
.colamd-document h4,
|
|
640
|
+
.colamd-document h5,
|
|
641
|
+
.colamd-document h6 {
|
|
642
|
+
font-family: "Cormorant Garamond", "Noto Serif SC", serif;
|
|
643
|
+
color: var(--text-color);
|
|
644
|
+
font-style: italic;
|
|
645
|
+
font-weight: 400;
|
|
646
|
+
line-height: 1.15;
|
|
647
|
+
letter-spacing: -0.01em;
|
|
648
|
+
margin: 1.4em 0 0.5em;
|
|
649
|
+
}
|
|
650
|
+
.colamd-document h1 { font-size: 2.7em; line-height: 0.95; margin-top: 0.4em; }
|
|
651
|
+
.colamd-document h2 { font-size: 2.05em; line-height: 1.05; }
|
|
652
|
+
.colamd-document h3 { font-size: 1.55em; font-weight: 500; }
|
|
653
|
+
.colamd-document h4 { font-size: 1.28em; }
|
|
654
|
+
.colamd-document h5 { font-size: 1.12em; }
|
|
655
|
+
.colamd-document h6 {
|
|
656
|
+
font-family: var(--font-mono);
|
|
657
|
+
font-style: normal;
|
|
658
|
+
font-weight: 400;
|
|
659
|
+
font-size: 0.82em;
|
|
660
|
+
letter-spacing: 0.06em;
|
|
661
|
+
color: var(--text-secondary);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.colamd-document strong { color: var(--text-color); font-weight: 600; }
|
|
665
|
+
.colamd-document em {
|
|
666
|
+
font-style: normal;
|
|
667
|
+
font-weight: 600;
|
|
668
|
+
color: var(--seed-emphasis);
|
|
669
|
+
}
|
|
670
|
+
.colamd-document code {
|
|
671
|
+
background: var(--code-bg);
|
|
672
|
+
color: var(--text-color);
|
|
673
|
+
font-family: var(--font-mono);
|
|
674
|
+
border-radius: 0;
|
|
675
|
+
}
|
|
676
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
677
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
|
|
678
|
+
.colamd-document pre { background: var(--code-block-bg); }
|
|
679
|
+
.colamd-document pre code { color: var(--code-block-text); }
|
|
680
|
+
.colamd-document blockquote {
|
|
681
|
+
background: var(--blockquote-bg);
|
|
682
|
+
color: var(--text-secondary);
|
|
683
|
+
border-left: 1px solid var(--blockquote-border);
|
|
684
|
+
padding: 0.5em 1.2em;
|
|
685
|
+
}
|
|
686
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
687
|
+
.colamd-document th,
|
|
688
|
+
.colamd-document td {
|
|
689
|
+
border-color: var(--border-color);
|
|
690
|
+
}
|
|
691
|
+
.colamd-document th {
|
|
692
|
+
background: var(--table-header-bg);
|
|
693
|
+
color: var(--text-color);
|
|
694
|
+
font-family: var(--font-mono);
|
|
695
|
+
font-size: 0.82em;
|
|
696
|
+
font-weight: 400;
|
|
697
|
+
letter-spacing: 0.06em;
|
|
698
|
+
border-bottom: 1px solid var(--border-color);
|
|
699
|
+
}
|
|
700
|
+
.colamd-document hr { border-top-color: var(--border-color); }
|
|
701
|
+
|
|
702
|
+
.colamd-document p { text-indent: 2em; }
|
|
703
|
+
.colamd-document li p,
|
|
704
|
+
.colamd-document td p,
|
|
705
|
+
.colamd-document th p,
|
|
706
|
+
.colamd-document blockquote p {
|
|
707
|
+
text-indent: 0;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/* ═══════════════════════════════════════════════════════════
|
|
711
|
+
SECTION 4 — Print
|
|
712
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
713
|
+
═══════════════════════════════════════════════════════════ */
|
|
714
|
+
|
|
715
|
+
@media print {
|
|
716
|
+
html,
|
|
717
|
+
body {
|
|
718
|
+
background: var(--bg-color);
|
|
719
|
+
color: var(--text-color);
|
|
720
|
+
-webkit-print-color-adjust: exact;
|
|
721
|
+
print-color-adjust: exact;
|
|
722
|
+
}
|
|
723
|
+
}
|