@bytechain.cn/colamd-themes 0.6.0 → 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 +22 -4
- package/package.json +1 -1
- package/skills/colamd-themes/SKILL.md +86 -1
- 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/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/vellum.css +723 -0
|
@@ -0,0 +1,741 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Blue Professional(克莱因蓝商务 · 手工精修版)
|
|
3
|
+
* 来源:D:\workspace\git\beautiful-html-templates\templates\blue-professional\
|
|
4
|
+
* template.html + design.md(奶油纸底 #fdfae7 + 唯一钴蓝强调 #1e2bfa +
|
|
5
|
+
* Space Grotesk/Inter 双字体 + 4% 钴染色软卡片,咨询汇报级克制体系)
|
|
6
|
+
* colors: bg #fdfae7 / primary #1e2bfa / text #111111
|
|
7
|
+
* text-muted #6b6b6b / text-light #9a9a9a
|
|
8
|
+
* accent-light rgba(30,43,250,.08) / border rgba(30,43,250,.2)
|
|
9
|
+
* card-bg rgba(30,43,250,.04) / positive #059669 / negative #dc2626
|
|
10
|
+
* fonts: Space Grotesk 300-700(标题+数值+chrome)/ Inter 300-600(正文)
|
|
11
|
+
* paradigm 备案(模板刻意身份,与 biennale-yellow 黄纸同类,有意保留):
|
|
12
|
+
* SL-01 —— 底色 #fdfae7 奶油纸 HSL S 84.6%(L≈95% 高明度暖调),模板
|
|
13
|
+
* 铁律 "warm cream canvas, never pure white, never gray",
|
|
14
|
+
* 偏色即身份,不中性化。
|
|
15
|
+
* SL-02 —— 表面色 panel #f4f1e0(S 47.6%)/ panelAlt #e9e6d6(S 30.2%)
|
|
16
|
+
* 为 4% cobalt 染色卡与降档纸面,同属奶油暖调家族;文字一律
|
|
17
|
+
* ink #111(对奶油 ≈18:1)与 muted 灰阶,不受底色影响。
|
|
18
|
+
* NT-03 —— 边框 #b7bbd9 饱和度 30.9% 钴蓝调(模板铁律 "borders are
|
|
19
|
+
* never opaque cobalt, always cobalt-at-20%",已按 NT-02 加深
|
|
20
|
+
* 保明度差 ≥0.08);蓝调细线即单强调色纪律的身份载体。
|
|
21
|
+
* strong/数值用 cobalt 文字 —— 模板身份 "every numerical callout is
|
|
22
|
+
* cobalt"(#1e2bfa 对奶油底 7.15:1,过 CR-02,非不可见强调)。
|
|
23
|
+
* 十页映射总表(模板页 → ColaMD 版式):
|
|
24
|
+
* cover←P1 agenda←P2 kpi←P3 matrix←P4 two-col←P5
|
|
25
|
+
* figure←P6 quote←P7 steps←P8 closing←P10
|
|
26
|
+
* (P9 detail 与 P4 stat 网格同形不单列;section/timeline 无对应页保持
|
|
27
|
+
* 上游默认。cover 斜切面板/点阵、quote 装饰圆、closing 同心圆、CTA 药丸、
|
|
28
|
+
* 进度条均为绝对定位或无挂点元素——行式 DOM 未复刻,逐条见 1.6 注释。
|
|
29
|
+
* 全十页同一奶油底(模板铁律 "constant ground"),无换底页,
|
|
30
|
+
* 不做页面级背景覆写。)
|
|
31
|
+
*
|
|
32
|
+
* 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
|
|
33
|
+
* SECTION 1.5 为幻灯片 --slide-* 令牌)
|
|
34
|
+
*
|
|
35
|
+
* 两条硬规矩:
|
|
36
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
37
|
+
* 编辑器继承不到。
|
|
38
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
39
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
40
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
41
|
+
*
|
|
42
|
+
* ═══════════════════════════════════════════════════════════
|
|
43
|
+
* SECTION 1 — Design Tokens
|
|
44
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
45
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
46
|
+
|
|
47
|
+
:root {
|
|
48
|
+
|
|
49
|
+
/* ── 1.1 Seed Palette ──
|
|
50
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
51
|
+
panel/panel-alt = 模板 card-bg 4% cobalt 叠奶油的实色近似(SL-04
|
|
52
|
+
亮色范式 surface > panel > panel-alt 明度递减);border = cobalt 20%
|
|
53
|
+
叠奶油的实色近似(NT-03 备案:淡钴蓝调边框是模板身份)。 */
|
|
54
|
+
--seed-accent: #1e2bfa; /* primary 钴蓝 */
|
|
55
|
+
--seed-accent-light: #5b64ff; /* 提亮一档(模板 accent-medium 家族) */
|
|
56
|
+
--seed-accent-dark: #141db3; /* 加深一档 */
|
|
57
|
+
--seed-surface: #fdfae7; /* bg 奶油纸 */
|
|
58
|
+
--seed-panel: #f4f1e0; /* card-bg 4% cobalt 叠奶油近似 */
|
|
59
|
+
--seed-panel-alt: #e9e6d6; /* 再降一档(代码块/表头) */
|
|
60
|
+
--seed-ink: #111111; /* text 近黑 */
|
|
61
|
+
--seed-ink-muted: #6b6b6b; /* text-muted 正文灰 */
|
|
62
|
+
--seed-ink-dim: #9a9a9a; /* text-light 三级灰 */
|
|
63
|
+
--seed-border: #b7bbd9; /* cobalt 深调边框(NT-02 可见性修正:
|
|
64
|
+
对 panel 明度差 ≥0.08;仍保持钴蓝调身份) */
|
|
65
|
+
--seed-border-strong: #1e2bfa; /* accent-line/强轨 = 纯钴蓝 */
|
|
66
|
+
|
|
67
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
68
|
+
--bg-color: var(--seed-surface);
|
|
69
|
+
--text-color: var(--seed-ink);
|
|
70
|
+
--text-secondary: var(--seed-ink-muted);
|
|
71
|
+
--text-muted: var(--seed-ink-dim);
|
|
72
|
+
--border-color: var(--seed-border);
|
|
73
|
+
/* 模板唯一强调色直接做链接/强调文字(7.15:1 过 CR-02) */
|
|
74
|
+
--link-color: var(--seed-accent);
|
|
75
|
+
|
|
76
|
+
--code-bg: var(--seed-panel);
|
|
77
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
78
|
+
--code-block-text: #111111;
|
|
79
|
+
|
|
80
|
+
--blockquote-border: var(--seed-border-strong); /* split-highlight 4px 钴蓝左轨 */
|
|
81
|
+
--blockquote-bg: var(--seed-panel); /* accent-light 8% tint 近似 */
|
|
82
|
+
--table-header-bg: var(--seed-panel-alt);
|
|
83
|
+
|
|
84
|
+
--selection-bg: rgba(30, 43, 250, 0.18);
|
|
85
|
+
--highlight-bg: rgba(30, 43, 250, 0.08); /* accent-light 荧光 */
|
|
86
|
+
|
|
87
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
88
|
+
--font-body: "Inter", "Noto Sans SC", sans-serif;
|
|
89
|
+
--font-mono: "Space Grotesk", "Noto Sans SC", sans-serif; /* 模板数值/chrome 全 SG,无 mono face */
|
|
90
|
+
--editor-font-size: 16px;
|
|
91
|
+
--editor-column-width: 820px;
|
|
92
|
+
|
|
93
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
94
|
+
图直接画在代码块底色上;accent 用钴蓝呼应模板 bar-fill。 */
|
|
95
|
+
--pele-bg: var(--code-block-bg);
|
|
96
|
+
--pele-fg: var(--code-block-text);
|
|
97
|
+
--pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
|
|
98
|
+
--pele-line: var(--code-block-text);
|
|
99
|
+
--pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
|
|
100
|
+
--pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
|
|
101
|
+
--pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
|
|
102
|
+
--pele-accent: var(--seed-accent); /* bar-fill 纯钴蓝 */
|
|
103
|
+
--pele-radius: 6px; /* radii.bar */
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 blue-professional 十页逐页复刻)──
|
|
107
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
108
|
+
模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点,vw>max 时取 max)。
|
|
109
|
+
字体体系:Space Grotesk(标题 600/数值 700/chrome 500,-0.02em)+
|
|
110
|
+
Inter 400 正文;模板无 mono face,--slide-mono 亦走 SG。页面对照:
|
|
111
|
+
cover←P1 agenda←P2 kpi←P3 matrix←P4 two-col←P5 figure←P6
|
|
112
|
+
quote←P7 steps←P8 closing←P10(P9 detail 与 P4 同形不单列;
|
|
113
|
+
section/timeline 无对应页,字号令牌取保守值并保持上游版式默认。
|
|
114
|
+
cover 斜切面板/点阵、quote 装饰圆、closing 同心圆、CTA 药丸、进度条
|
|
115
|
+
为绝对定位/无挂点元素——未复刻。accent-line 60×4 以标题 ::before
|
|
116
|
+
近似;全十页同一奶油底,无换底页,无层叠链问题。 */
|
|
117
|
+
:root {
|
|
118
|
+
--slide-mono: "Space Grotesk", "Noto Sans SC", sans-serif;
|
|
119
|
+
--slide-title-font: "Space Grotesk", "Noto Sans SC", sans-serif;
|
|
120
|
+
--slide-title-size: 1.6em; /* 内容页题 h2 41.6px ÷26(P3-P9 同档) */
|
|
121
|
+
--slide-title-weight: 600; /* 模板 h2 600(h1 700 / h3 500 阶梯) */
|
|
122
|
+
--slide-subhead-weight: 600;
|
|
123
|
+
--slide-title-tracking: -0.02em; /* 模板 h1-h3 -.02em */
|
|
124
|
+
--slide-title-line-height: 1.1;
|
|
125
|
+
--slide-cover-title-size: 2.58em; /* P1 h1 67.2px ÷26 */
|
|
126
|
+
--slide-cover-title-line-height: 1.05;
|
|
127
|
+
--slide-cover-title-tracking: -0.02em;
|
|
128
|
+
--slide-section-title-size: 2.2em; /* 无对应页:h1/h2 之间保守值 */
|
|
129
|
+
--slide-closing-title-size: 2.58em; /* P10 h1 同 cover 67.2px ÷26 */
|
|
130
|
+
--slide-lead-size: 0.77em; /* P1 subtitle 20px ÷26 */
|
|
131
|
+
--slide-kicker-size: clamp(13px, 0.83vw, 16px); /* h4 eyebrow 16px @1920 */
|
|
132
|
+
--slide-kicker-tracking: 0.08em; /* 模板 eyebrow .08em */
|
|
133
|
+
--slide-kicker-transform: uppercase;
|
|
134
|
+
--slide-chrome-opacity: 1; /* counter 实色 text-muted */
|
|
135
|
+
--slide-chrome-transform: none; /* counter 不大写 */
|
|
136
|
+
--slide-kpi-number-size: 3.35em; /* P3 metric-value 48px ÷26 ÷0.55(li 缩放) */
|
|
137
|
+
--slide-quote-size: 1.48em; /* P7 blockquote 38.4px ÷26 */
|
|
138
|
+
--slide-page-pad-x: 4vw; /* 模板 slide padding 4vw */
|
|
139
|
+
--slide-page-top-pad: 56px; /* 顶 3.5vw(67px) − chrome 安全区 */
|
|
140
|
+
--slide-page-top-pad-print: 48px;
|
|
141
|
+
--slide-cover-text-align: left; /* P1 左对齐(padding-left 8vw) */
|
|
142
|
+
--slide-cover-lead-inline: auto;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
146
|
+
body.presenting / body.slides-printing 作用域) ═══════════════ */
|
|
147
|
+
|
|
148
|
+
/* 1.6.1 页标题声部对齐:Space Grotesk 600 近黑;压掉文档式 h1/h2 的
|
|
149
|
+
border-bottom(编辑器规则带 id 权重会漏进放映) */
|
|
150
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
151
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
152
|
+
font-family: var(--slide-title-font);
|
|
153
|
+
font-size: var(--slide-title-size);
|
|
154
|
+
font-weight: 600;
|
|
155
|
+
line-height: 1.1;
|
|
156
|
+
letter-spacing: -0.02em;
|
|
157
|
+
color: var(--text-color);
|
|
158
|
+
border-bottom: none;
|
|
159
|
+
padding-bottom: 0;
|
|
160
|
+
margin-bottom: 0.55em;
|
|
161
|
+
}
|
|
162
|
+
/* 眉标 kicker = 模板 h4 eyebrow:钴蓝 600 大写 .08em(文字可读 7.15:1) */
|
|
163
|
+
body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
164
|
+
body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
|
|
165
|
+
color: var(--seed-accent);
|
|
166
|
+
opacity: 1;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* 1.6.2 cover · P1:accent-line 60×4 短线(::before 近似,有 kicker 时让位)
|
|
170
|
+
+ 67.2px 左对齐标题 + subtitle 20px + meta 12.8px;斜切面板/点阵未复刻 */
|
|
171
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content,
|
|
172
|
+
body.slides-printing .cm-md-slide-cover .cm-md-page-title ~ * {
|
|
173
|
+
justify-content: center;
|
|
174
|
+
}
|
|
175
|
+
body.presenting #editor .cm-content .cm-md-slide-cover .cm-md-page-title,
|
|
176
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title {
|
|
177
|
+
font-size: var(--slide-cover-title-size);
|
|
178
|
+
font-weight: 700;
|
|
179
|
+
line-height: 1.05;
|
|
180
|
+
max-width: 88%;
|
|
181
|
+
}
|
|
182
|
+
body.presenting #editor .cm-content .cm-md-slide-cover .cm-md-page-title:not([data-slide-kicker])::before,
|
|
183
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title:not([data-slide-kicker])::before {
|
|
184
|
+
content: '';
|
|
185
|
+
display: block;
|
|
186
|
+
width: 60px;
|
|
187
|
+
height: 4px;
|
|
188
|
+
background: var(--seed-accent);
|
|
189
|
+
border-radius: 2px;
|
|
190
|
+
margin-bottom: 1.5rem;
|
|
191
|
+
}
|
|
192
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
|
|
193
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
|
|
194
|
+
font-size: var(--slide-lead-size);
|
|
195
|
+
line-height: 1.6;
|
|
196
|
+
max-width: 62%;
|
|
197
|
+
color: var(--text-secondary);
|
|
198
|
+
}
|
|
199
|
+
/* meta 行(导语后第二段):SG 12.8px text-light .05em */
|
|
200
|
+
body.presenting #editor .cm-content .cm-md-slide-cover .cm-md-page-lead + .cm-line,
|
|
201
|
+
body.slides-printing #editor .cm-content .cm-md-slide-cover .cm-md-page-lead + .cm-line {
|
|
202
|
+
font-family: var(--slide-title-font);
|
|
203
|
+
font-size: 0.49em; /* .meta 12.8px ÷26 */
|
|
204
|
+
letter-spacing: 0.05em;
|
|
205
|
+
color: var(--text-muted);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* 1.6.3 agenda · P2:页题下 accent-line(::after 近似);行式条目 = 底边
|
|
209
|
+
1px 钴蓝 20% 线 + SG 700 cobalt 序号 28.8px + SG 600 章名 19.2px + 文 15.2px;
|
|
210
|
+
hover 卡底/hover 态未复刻 */
|
|
211
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title::after,
|
|
212
|
+
body.slides-printing .cm-md-slide-agenda.cm-md-page-title::after {
|
|
213
|
+
content: '';
|
|
214
|
+
display: block;
|
|
215
|
+
width: 60px;
|
|
216
|
+
height: 4px;
|
|
217
|
+
background: var(--seed-accent);
|
|
218
|
+
border-radius: 2px;
|
|
219
|
+
margin-top: 1.4rem;
|
|
220
|
+
}
|
|
221
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
222
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
223
|
+
font-size: 0.58em; /* .agenda-item p 15.2px ÷26 */
|
|
224
|
+
background: transparent;
|
|
225
|
+
border-radius: 0;
|
|
226
|
+
border-bottom: 1px solid var(--seed-border); /* cobalt 20% 底线 */
|
|
227
|
+
padding: 0.9em 0 0.85em;
|
|
228
|
+
margin: 0;
|
|
229
|
+
}
|
|
230
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
231
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
232
|
+
font-family: var(--slide-title-font);
|
|
233
|
+
font-weight: 700;
|
|
234
|
+
font-size: 1.91em; /* .agenda-num 28.8px ÷26 ÷0.58 */
|
|
235
|
+
line-height: 1;
|
|
236
|
+
color: var(--seed-accent);
|
|
237
|
+
margin-right: 0.4em;
|
|
238
|
+
}
|
|
239
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
|
|
240
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
|
|
241
|
+
font-family: var(--slide-title-font);
|
|
242
|
+
font-size: 1.27em; /* .agenda-item h3 19.2px ÷26 ÷0.58 */
|
|
243
|
+
font-weight: 600;
|
|
244
|
+
letter-spacing: -0.02em;
|
|
245
|
+
color: var(--text-color);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* 1.6.4 kpi · P3(metrics):页题默认声部;三列 metric-card 重画 = 4% cobalt
|
|
249
|
+
染色 + 1.5px cobalt 20% 边 + 14px 圆角;裸数字 48px SG 700 cobalt */
|
|
250
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
|
|
251
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
|
|
252
|
+
font-size: 0.55em; /* .metric-desc 14.4px ÷26 */
|
|
253
|
+
display: inline-block;
|
|
254
|
+
width: 31%;
|
|
255
|
+
vertical-align: top;
|
|
256
|
+
background: var(--seed-panel); /* card-bg 4% cobalt 近似 */
|
|
257
|
+
border: 1.5px solid var(--seed-border); /* cobalt 20% */
|
|
258
|
+
border-radius: 14px; /* radii.card-lg */
|
|
259
|
+
box-shadow: none;
|
|
260
|
+
padding: 1.35em 1.4em;
|
|
261
|
+
margin: 0 1.8% 1.2em 0;
|
|
262
|
+
line-height: 1.5;
|
|
263
|
+
}
|
|
264
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
|
|
265
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
|
|
266
|
+
font-size: var(--slide-kpi-number-size);
|
|
267
|
+
font-weight: 700;
|
|
268
|
+
line-height: 1;
|
|
269
|
+
letter-spacing: -0.02em;
|
|
270
|
+
color: var(--seed-accent); /* metric-value 纯钴蓝 */
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* 1.6.5 matrix · P4(dashboard 六 stat 格):stat-cell 重画 = 1px cobalt 20%
|
|
274
|
+
边 + 4% 染色 + 12px 圆角;SG 700 cobalt 数字 33.6px + 名称 15.2px;
|
|
275
|
+
P9 detail 六卡网格同形不单列;context 顶线(stat-context)无行级挂点 */
|
|
276
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
277
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
278
|
+
font-size: 0.58em; /* .stat-name 15.2px ÷26 */
|
|
279
|
+
display: inline-block;
|
|
280
|
+
width: 31%;
|
|
281
|
+
vertical-align: top;
|
|
282
|
+
background: var(--seed-panel);
|
|
283
|
+
border: 1px solid var(--seed-border);
|
|
284
|
+
border-radius: 12px; /* radii.card-md */
|
|
285
|
+
box-shadow: none;
|
|
286
|
+
padding: 1.3em 1.4em;
|
|
287
|
+
margin: 0 1.8% 1.2em 0;
|
|
288
|
+
line-height: 1.45;
|
|
289
|
+
}
|
|
290
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
|
|
291
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
|
|
292
|
+
font-size: 2.22em; /* .stat-num 33.6px ÷26 ÷0.58 */
|
|
293
|
+
font-weight: 700;
|
|
294
|
+
line-height: 1;
|
|
295
|
+
color: var(--seed-accent);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* 1.6.6 two-col · P5(split):左 insight 清单 = 「01」SG 600 cobalt 计数
|
|
299
|
+
12.5px + Inter 文 16px;右栏 pull-quote = split-highlight(8% tint +
|
|
300
|
+
4px 钴蓝左轨 + 12px 圆角 + cite 大写行);右栏 2px 分隔线无挂点未复刻 */
|
|
301
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-li,
|
|
302
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-li {
|
|
303
|
+
font-size: 0.62em; /* .insight-list li 16px ÷26 */
|
|
304
|
+
background: transparent;
|
|
305
|
+
border: none;
|
|
306
|
+
border-radius: 0;
|
|
307
|
+
box-shadow: none;
|
|
308
|
+
padding: 0 0 0.55em 2.2em;
|
|
309
|
+
margin: 0 0 0.9em;
|
|
310
|
+
}
|
|
311
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-listmark,
|
|
312
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-listmark {
|
|
313
|
+
font-family: var(--slide-title-font);
|
|
314
|
+
font-weight: 600;
|
|
315
|
+
font-size: 0.78em; /* .insight-num 12.5px ÷26 ÷0.62 */
|
|
316
|
+
letter-spacing: 0.05em;
|
|
317
|
+
color: var(--seed-accent);
|
|
318
|
+
}
|
|
319
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-strong,
|
|
320
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-strong {
|
|
321
|
+
font-family: var(--slide-title-font);
|
|
322
|
+
font-weight: 600;
|
|
323
|
+
color: var(--text-color);
|
|
324
|
+
}
|
|
325
|
+
/* split-highlight 引用面板:整块画底色(相邻行只 margin,CSS-03 安全) */
|
|
326
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-blockquote,
|
|
327
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-blockquote {
|
|
328
|
+
font-family: var(--slide-title-font);
|
|
329
|
+
font-size: 0.92em; /* .split-highlight 24px ÷26 */
|
|
330
|
+
font-weight: 500;
|
|
331
|
+
line-height: 1.4;
|
|
332
|
+
color: var(--text-color);
|
|
333
|
+
background: var(--blockquote-bg); /* accent-light 8% 近似 */
|
|
334
|
+
border-left: 4px solid var(--seed-border-strong);
|
|
335
|
+
border-radius: 12px;
|
|
336
|
+
padding-left: 1.4em;
|
|
337
|
+
padding-right: 1.4em;
|
|
338
|
+
margin-top: 0.9em;
|
|
339
|
+
}
|
|
340
|
+
/* cite 署名行:blockquote 后一行 = 大写 .04em SG 500 */
|
|
341
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-blockquote + .cm-line,
|
|
342
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-blockquote + .cm-line {
|
|
343
|
+
font-family: var(--slide-title-font);
|
|
344
|
+
font-size: 0.48em; /* cite 12.5px ÷26 */
|
|
345
|
+
font-weight: 500;
|
|
346
|
+
letter-spacing: 0.04em;
|
|
347
|
+
text-transform: uppercase;
|
|
348
|
+
color: var(--text-secondary);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* 1.6.7 figure · P6(bars 条形排行):bar-track/fill 为双层嵌套 div,行式
|
|
352
|
+
DOM 无挂点——条形图未复刻,图表主体走上游 figure 默认;页题默认声部;
|
|
353
|
+
Pele 图表以 --pele-accent 钴蓝呼应模板 bar-fill。保持上游默认并注明 */
|
|
354
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
|
|
355
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-title {
|
|
356
|
+
margin-bottom: 0.7em;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* 1.6.8 quote · P7:居中舞台 + 巨引号 ::before 近似 quote-mark 128px
|
|
360
|
+
(cobalt 15%)+ SG 500 金句 38.4px + 署名行;装饰圆未复刻 */
|
|
361
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content,
|
|
362
|
+
body.slides-printing .cm-md-slide-quote .cm-md-page-title ~ * {
|
|
363
|
+
justify-content: center;
|
|
364
|
+
text-align: center;
|
|
365
|
+
}
|
|
366
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-line,
|
|
367
|
+
body.slides-printing:has(.cm-md-slide-quote) .cm-content .cm-line {
|
|
368
|
+
text-indent: 0; /* 居中页去首行缩进 */
|
|
369
|
+
}
|
|
370
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
371
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
372
|
+
font-family: var(--slide-title-font);
|
|
373
|
+
font-size: var(--slide-quote-size);
|
|
374
|
+
font-weight: 500;
|
|
375
|
+
line-height: 1.35;
|
|
376
|
+
color: var(--text-color);
|
|
377
|
+
background: transparent;
|
|
378
|
+
border-left: none;
|
|
379
|
+
border-radius: 0;
|
|
380
|
+
padding-left: 0;
|
|
381
|
+
padding-right: 0;
|
|
382
|
+
margin: 0 auto;
|
|
383
|
+
max-width: 65%;
|
|
384
|
+
}
|
|
385
|
+
body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
386
|
+
body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
387
|
+
font-family: var(--slide-title-font);
|
|
388
|
+
font-size: 4.92em; /* .quote-mark 128px ÷26 */
|
|
389
|
+
font-weight: 700;
|
|
390
|
+
line-height: 0.5;
|
|
391
|
+
color: var(--seed-accent);
|
|
392
|
+
opacity: 0.15;
|
|
393
|
+
}
|
|
394
|
+
/* 署名行(quote-source):顶距走 margin(CSS-03),strong 回近黑 */
|
|
395
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
396
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
397
|
+
margin-top: 1.6em;
|
|
398
|
+
font-size: 0.62em; /* .quote-source 16px ÷26 */
|
|
399
|
+
color: var(--text-secondary);
|
|
400
|
+
}
|
|
401
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line .cm-md-strong,
|
|
402
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line .cm-md-strong {
|
|
403
|
+
font-weight: 600;
|
|
404
|
+
color: var(--text-color);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* 1.6.9 steps · P8(timeline-track 四步流程):四列居中卡;step-circle
|
|
408
|
+
56px 钴蓝圆 + cream 数字(listmark 自绘圆);SG 600 步名 18.4px +
|
|
409
|
+
文 14.4px;圆圈透明度阶梯(1.0→0.85→0.7→0.55)按序号衰减在行式 DOM
|
|
410
|
+
无挂点——未复刻 */
|
|
411
|
+
body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
|
|
412
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
|
|
413
|
+
font-size: 0.55em; /* .step-desc 14.4px ÷26 */
|
|
414
|
+
display: inline-block;
|
|
415
|
+
width: 23%;
|
|
416
|
+
vertical-align: top;
|
|
417
|
+
text-align: center;
|
|
418
|
+
background: transparent;
|
|
419
|
+
border: none;
|
|
420
|
+
box-shadow: none;
|
|
421
|
+
border-radius: 0;
|
|
422
|
+
padding: 0 0.5em;
|
|
423
|
+
margin: 0 1.5% 1.4em 0;
|
|
424
|
+
line-height: 1.5;
|
|
425
|
+
}
|
|
426
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
|
|
427
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
|
|
428
|
+
display: inline-block;
|
|
429
|
+
width: 2.69em; /* .step-circle 56px ÷20.8px */
|
|
430
|
+
height: 2.69em;
|
|
431
|
+
line-height: 2.69em;
|
|
432
|
+
border-radius: 50%;
|
|
433
|
+
background: var(--seed-accent);
|
|
434
|
+
font-family: var(--slide-title-font);
|
|
435
|
+
font-weight: 700;
|
|
436
|
+
font-size: 1.45em; /* 圆内数字 20.8px ÷26 ÷0.55 */
|
|
437
|
+
text-align: center;
|
|
438
|
+
color: var(--bg-color);
|
|
439
|
+
margin-right: 0;
|
|
440
|
+
}
|
|
441
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
|
|
442
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
|
|
443
|
+
display: block;
|
|
444
|
+
margin-top: 0.9em;
|
|
445
|
+
font-family: var(--slide-title-font);
|
|
446
|
+
font-size: 1.29em; /* .step-title 18.4px ÷26 ÷0.55 */
|
|
447
|
+
font-weight: 600;
|
|
448
|
+
line-height: 1.2;
|
|
449
|
+
color: var(--text-color);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* 1.6.10 closing · P10:居中舞台 + accent-line(::before 近似)+ 67.2px
|
|
453
|
+
700 标题 + closing-sub 20.8px;CTA 药丸按钮无对应元素(未复刻,行动
|
|
454
|
+
清单条目走上游默认);contact 行 13.6px text-light */
|
|
455
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content,
|
|
456
|
+
body.slides-printing .cm-md-slide-closing .cm-md-page-title ~ * {
|
|
457
|
+
justify-content: center;
|
|
458
|
+
text-align: center;
|
|
459
|
+
}
|
|
460
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-line,
|
|
461
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-content .cm-line {
|
|
462
|
+
text-indent: 0;
|
|
463
|
+
}
|
|
464
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
|
|
465
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title {
|
|
466
|
+
font-size: var(--slide-closing-title-size);
|
|
467
|
+
font-weight: 700;
|
|
468
|
+
line-height: 1.05;
|
|
469
|
+
}
|
|
470
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title:not([data-slide-kicker])::before,
|
|
471
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title:not([data-slide-kicker])::before {
|
|
472
|
+
content: '';
|
|
473
|
+
display: block;
|
|
474
|
+
width: 60px;
|
|
475
|
+
height: 4px;
|
|
476
|
+
background: var(--seed-accent);
|
|
477
|
+
border-radius: 2px;
|
|
478
|
+
margin: 0 auto 1.5rem;
|
|
479
|
+
}
|
|
480
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
|
|
481
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
|
|
482
|
+
font-size: 0.8em; /* .closing-sub 20.8px ÷26 */
|
|
483
|
+
line-height: 1.6;
|
|
484
|
+
max-width: 70%;
|
|
485
|
+
margin: 0 auto;
|
|
486
|
+
color: var(--text-secondary);
|
|
487
|
+
}
|
|
488
|
+
/* contact 行(导语后第二段) */
|
|
489
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-lead + .cm-line,
|
|
490
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-page-lead + .cm-line {
|
|
491
|
+
font-size: 0.52em; /* .closing-contact 13.6px ÷26 */
|
|
492
|
+
color: var(--text-muted);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/* 1.6.11 chrome · counter:SG 500 12.8px .05em 左下,不大写;foot 同族;
|
|
496
|
+
progress-bar/nav-btn 为固定定位装饰未复刻 */
|
|
497
|
+
body.presenting .slide-chrome,
|
|
498
|
+
body.slides-printing .slide-chrome {
|
|
499
|
+
font-family: var(--slide-title-font);
|
|
500
|
+
font-weight: 500;
|
|
501
|
+
font-size: clamp(11px, 0.67vw, 13px);
|
|
502
|
+
letter-spacing: 0.05em;
|
|
503
|
+
text-transform: none;
|
|
504
|
+
color: var(--text-secondary);
|
|
505
|
+
}
|
|
506
|
+
body.presenting .slide-foot,
|
|
507
|
+
body.slides-printing .slide-foot {
|
|
508
|
+
font-family: var(--slide-title-font);
|
|
509
|
+
font-size: clamp(10px, 0.6vw, 12px);
|
|
510
|
+
letter-spacing: 0.05em;
|
|
511
|
+
text-transform: none;
|
|
512
|
+
opacity: 0.6;
|
|
513
|
+
color: var(--text-secondary);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* ═══════════════════════════════════════════════════════════
|
|
517
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
518
|
+
═══════════════════════════════════════════════════════════ */
|
|
519
|
+
|
|
520
|
+
#editor .cm-content {
|
|
521
|
+
font-family: var(--font-body);
|
|
522
|
+
line-height: 1.6; /* 模板 body 1.6 */
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/* ── 2.1 Headings(修复生成版阶梯倒挂 h2 1.125 < h3 1.25)──
|
|
526
|
+
模板字重阶梯 h1 700 / h2 600 / h3 500;标题一律近黑无下划线
|
|
527
|
+
(accent-line 是独立 60×4 短线,非标题边框) */
|
|
528
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
529
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
530
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
531
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
532
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
533
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
534
|
+
font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
|
|
535
|
+
color: var(--text-color);
|
|
536
|
+
line-height: 1.2;
|
|
537
|
+
letter-spacing: -0.02em;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
#editor .cm-content .cm-md-atxheading1 {
|
|
541
|
+
font-size: 2.6em;
|
|
542
|
+
font-weight: 700;
|
|
543
|
+
line-height: 1.05;
|
|
544
|
+
}
|
|
545
|
+
#editor .cm-content .cm-md-atxheading2 {
|
|
546
|
+
font-size: 1.85em;
|
|
547
|
+
font-weight: 600;
|
|
548
|
+
line-height: 1.1;
|
|
549
|
+
}
|
|
550
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.45em; font-weight: 500; }
|
|
551
|
+
#editor .cm-content .cm-md-atxheading4 {
|
|
552
|
+
font-size: 1.2em;
|
|
553
|
+
font-weight: 600;
|
|
554
|
+
letter-spacing: 0.08em; /* 模板 h4 = cobalt 大写眉标 */
|
|
555
|
+
text-transform: uppercase;
|
|
556
|
+
color: var(--seed-accent);
|
|
557
|
+
}
|
|
558
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.08em; font-weight: 500; }
|
|
559
|
+
#editor .cm-content .cm-md-atxheading6 { font-size: 1em; font-weight: 500; }
|
|
560
|
+
|
|
561
|
+
/* ── 2.2 Inline(strong/数值走 cobalt——模板身份,7.15:1 过 CR-02)── */
|
|
562
|
+
#editor .cm-content .cm-md-strong { color: var(--seed-accent); font-weight: 600; }
|
|
563
|
+
#editor .cm-content .cm-md-em { font-style: italic; }
|
|
564
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
565
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
566
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
567
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
568
|
+
|
|
569
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
570
|
+
font-family: var(--font-mono);
|
|
571
|
+
background: var(--code-bg);
|
|
572
|
+
color: var(--text-color);
|
|
573
|
+
border-radius: 6px; /* radii.bar */
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
#editor .cm-content .cm-md-marker,
|
|
577
|
+
#editor .cm-content .cm-md-quotemark,
|
|
578
|
+
#editor .cm-content .cm-md-listmark {
|
|
579
|
+
color: var(--text-muted);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
583
|
+
引用面板 = split-highlight:4px 钴蓝左轨(模板铁律),纵向留白走 margin */
|
|
584
|
+
#editor .cm-content .cm-md-blockquote {
|
|
585
|
+
color: var(--text-secondary);
|
|
586
|
+
border-left: 4px solid var(--blockquote-border);
|
|
587
|
+
padding-left: 16px;
|
|
588
|
+
padding-right: 16px;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
#editor .cm-content .cm-md-codeblock {
|
|
592
|
+
background: var(--code-block-bg);
|
|
593
|
+
color: var(--code-block-text);
|
|
594
|
+
padding-left: 16px;
|
|
595
|
+
padding-right: 16px;
|
|
596
|
+
}
|
|
597
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
598
|
+
border-top-left-radius: 10px; /* radii.card-sm */
|
|
599
|
+
border-top-right-radius: 10px;
|
|
600
|
+
}
|
|
601
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
602
|
+
border-bottom-left-radius: 10px;
|
|
603
|
+
border-bottom-right-radius: 10px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/* ── 2.4 Table / Rule(模板无表格;th 眉标化对齐 eyebrow 体系)── */
|
|
607
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
608
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
609
|
+
padding: 10px 14px;
|
|
610
|
+
border-color: var(--border-color); /* cobalt 20% 细线 */
|
|
611
|
+
}
|
|
612
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
613
|
+
background: var(--table-header-bg);
|
|
614
|
+
color: var(--seed-accent);
|
|
615
|
+
font-family: var(--slide-title-font);
|
|
616
|
+
font-size: 0.78em;
|
|
617
|
+
font-weight: 600;
|
|
618
|
+
letter-spacing: 0.08em;
|
|
619
|
+
text-transform: uppercase;
|
|
620
|
+
border-bottom: 1.5px solid var(--seed-border-strong);
|
|
621
|
+
}
|
|
622
|
+
#editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
|
|
623
|
+
|
|
624
|
+
/* ── 2.5 中文首行缩进 ──
|
|
625
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
626
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
627
|
+
|
|
628
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
629
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
630
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
631
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
632
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
633
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
634
|
+
#editor .cm-content .cm-md-blockquote,
|
|
635
|
+
#editor .cm-content .cm-md-codeblock,
|
|
636
|
+
#editor .cm-content .cm-md-hr,
|
|
637
|
+
#editor .cm-content .cm-md-mermaid,
|
|
638
|
+
#editor .cm-content .cm-md-li-0,
|
|
639
|
+
#editor .cm-content .cm-md-li-1,
|
|
640
|
+
#editor .cm-content .cm-md-li-2,
|
|
641
|
+
#editor .cm-content .cm-md-li-3,
|
|
642
|
+
#editor .cm-content .cm-md-li-4,
|
|
643
|
+
#editor .cm-content .cm-md-li-5,
|
|
644
|
+
#editor .cm-content .cm-md-li-6 {
|
|
645
|
+
text-indent: 0;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/* ═══════════════════════════════════════════════════════════
|
|
649
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
650
|
+
HTML/PDF 导出不走编辑器 DOM;这段与 SECTION 2 镜像同步。
|
|
651
|
+
═══════════════════════════════════════════════════════════ */
|
|
652
|
+
|
|
653
|
+
.colamd-document {
|
|
654
|
+
font-family: var(--font-body);
|
|
655
|
+
font-size: 16px;
|
|
656
|
+
line-height: 1.6;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.colamd-document h1,
|
|
660
|
+
.colamd-document h2,
|
|
661
|
+
.colamd-document h3,
|
|
662
|
+
.colamd-document h4,
|
|
663
|
+
.colamd-document h5,
|
|
664
|
+
.colamd-document h6 {
|
|
665
|
+
font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
|
|
666
|
+
color: var(--text-color);
|
|
667
|
+
line-height: 1.2;
|
|
668
|
+
letter-spacing: -0.02em;
|
|
669
|
+
margin: 1.5em 0 0.5em;
|
|
670
|
+
}
|
|
671
|
+
.colamd-document h1 { font-size: 2.6em; font-weight: 700; line-height: 1.05; margin-top: 0.4em; }
|
|
672
|
+
.colamd-document h2 { font-size: 1.85em; font-weight: 600; line-height: 1.1; }
|
|
673
|
+
.colamd-document h3 { font-size: 1.45em; font-weight: 500; }
|
|
674
|
+
.colamd-document h4 {
|
|
675
|
+
font-size: 1.2em;
|
|
676
|
+
font-weight: 600;
|
|
677
|
+
letter-spacing: 0.08em;
|
|
678
|
+
text-transform: uppercase;
|
|
679
|
+
color: var(--seed-accent);
|
|
680
|
+
}
|
|
681
|
+
.colamd-document h5 { font-size: 1.08em; font-weight: 500; }
|
|
682
|
+
.colamd-document h6 { font-size: 1em; font-weight: 500; }
|
|
683
|
+
|
|
684
|
+
.colamd-document strong { color: var(--seed-accent); font-weight: 600; }
|
|
685
|
+
.colamd-document code {
|
|
686
|
+
background: var(--code-bg);
|
|
687
|
+
color: var(--text-color);
|
|
688
|
+
font-family: var(--font-mono);
|
|
689
|
+
border-radius: 6px;
|
|
690
|
+
}
|
|
691
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
692
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
|
|
693
|
+
.colamd-document pre { background: var(--code-block-bg); border-radius: 10px; }
|
|
694
|
+
.colamd-document pre code { color: var(--code-block-text); background: none; border-radius: 0; }
|
|
695
|
+
.colamd-document blockquote {
|
|
696
|
+
background: var(--blockquote-bg);
|
|
697
|
+
color: var(--text-secondary);
|
|
698
|
+
border-left: 4px solid var(--blockquote-border);
|
|
699
|
+
border-radius: 12px;
|
|
700
|
+
padding: 0.9em 1.4em;
|
|
701
|
+
}
|
|
702
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
703
|
+
.colamd-document th,
|
|
704
|
+
.colamd-document td {
|
|
705
|
+
border-color: var(--border-color);
|
|
706
|
+
padding: 10px 14px;
|
|
707
|
+
}
|
|
708
|
+
.colamd-document th {
|
|
709
|
+
background: var(--table-header-bg);
|
|
710
|
+
color: var(--seed-accent);
|
|
711
|
+
font-family: var(--slide-title-font);
|
|
712
|
+
font-size: 0.78em;
|
|
713
|
+
font-weight: 600;
|
|
714
|
+
letter-spacing: 0.08em;
|
|
715
|
+
text-transform: uppercase;
|
|
716
|
+
border-bottom: 1.5px solid var(--seed-border-strong);
|
|
717
|
+
}
|
|
718
|
+
.colamd-document hr { border-top-color: var(--border-color); }
|
|
719
|
+
|
|
720
|
+
.colamd-document p { text-indent: 2em; }
|
|
721
|
+
.colamd-document li p,
|
|
722
|
+
.colamd-document td p,
|
|
723
|
+
.colamd-document th p,
|
|
724
|
+
.colamd-document blockquote p {
|
|
725
|
+
text-indent: 0;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/* ═══════════════════════════════════════════════════════════
|
|
729
|
+
SECTION 4 — Print
|
|
730
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
731
|
+
═══════════════════════════════════════════════════════════ */
|
|
732
|
+
|
|
733
|
+
@media print {
|
|
734
|
+
html,
|
|
735
|
+
body {
|
|
736
|
+
background: var(--bg-color);
|
|
737
|
+
color: var(--text-color);
|
|
738
|
+
-webkit-print-color-adjust: exact;
|
|
739
|
+
print-color-adjust: exact;
|
|
740
|
+
}
|
|
741
|
+
}
|