@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,796 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Editorial Forest(林间编辑部 · 手工精修版)
|
|
3
|
+
* Serif-led editorial system: deep forest green + dusty rose pink on oat-cream paper,
|
|
4
|
+
* Source Serif 4 weight 500 with optical-size axis, JetBrains Mono editorial chrome.
|
|
5
|
+
* 来源:D:\workspace\git\beautiful-html-templates\templates\editorial-forest\
|
|
6
|
+
* template.html + design.md + template.json(8 页 1920×1080)
|
|
7
|
+
* colors: green #2e4a2a / green-deep #243a21 / green-lite #3a5a36
|
|
8
|
+
* pink #e89cb1 / pink-deep #d27e96 / cream #efe7d4 / cream-2 #e6dcc4 / ink #1a1a17
|
|
9
|
+
* fonts: Source Serif 4(display 500 / body 400,opsz 轴)/ JetBrains Mono 500 大写
|
|
10
|
+
* paradigm 备案(编辑部身份,与 biennale-yellow 同类,有意保留):
|
|
11
|
+
* SL-01/SL-02 —— 暖奶油纸系刻意带暖调(surface s45.8% / panel s40.5% /
|
|
12
|
+
* panel-alt s32.7%),模板身份即"oat-cream paper"暖纸;
|
|
13
|
+
* CR-04 —— pink #e89cb1 对 cream 对比 1.8:1,但 pink 只做底色/色块/KPI 大数字
|
|
14
|
+
* (≥3:1 大字),从不做小文字色;链接走加深玫瑰 #9d4a63 保 4.7:1;
|
|
15
|
+
* NT-03 —— 边框/分隔线取模板 2px green 线体系(绿调刻意),td 细线为 green 35%;
|
|
16
|
+
* 标题色 —— cream 页标题一律 green(模板 headline-on-cream 身份),正文 ink。
|
|
17
|
+
* 版式复刻见 SECTION 1.5/1.6(八页逐页对照与换算式均在其注释中)。
|
|
18
|
+
*
|
|
19
|
+
* 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
|
|
20
|
+
* SECTION 1.5 为幻灯片 --slide-* 令牌,SECTION 1.6 全部 SLIDE-02 作用域)
|
|
21
|
+
*
|
|
22
|
+
* 两条硬规矩:
|
|
23
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
24
|
+
* 编辑器继承不到。
|
|
25
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
26
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
27
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
28
|
+
*
|
|
29
|
+
* ═══════════════════════════════════════════════════════════
|
|
30
|
+
* SECTION 1 — Design Tokens
|
|
31
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
32
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
33
|
+
|
|
34
|
+
:root {
|
|
35
|
+
|
|
36
|
+
/* ── 1.1 Seed Palette ──
|
|
37
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
38
|
+
明度排序(SL-04 亮色范式):surface > panel > panel-alt 递减;
|
|
39
|
+
muted/dim 同轴暖灰(ink #1a1a17 的色相,NT-01)。
|
|
40
|
+
green 系不占 seed 位(正文 ink 优先):green #2e4a2a 以 --seed-border-strong
|
|
41
|
+
承担「分隔线/标题」身份,green-deep #243a21 / green-lite #3a5a36 以字面值
|
|
42
|
+
出现在 SECTION 1.6(pink 页文字 / 备用填充)。 */
|
|
43
|
+
--seed-accent: #e89cb1; /* pink —— 底色/色块/KPI 大数字,不做小文字(CR-04 备案) */
|
|
44
|
+
--seed-accent-light: #f0b6c6;
|
|
45
|
+
--seed-accent-dark: #d27e96; /* pink-deep */
|
|
46
|
+
--seed-surface: #efe7d4; /* cream —— 燕麦纸 */
|
|
47
|
+
--seed-panel: #e6dcc4; /* cream-2 —— 卡片/表头托 */
|
|
48
|
+
--seed-panel-alt: #dcd2ba; /* 再深一档奶油(代码块底) */
|
|
49
|
+
--seed-ink: #1a1a17; /* ink —— 暖近黑正文 */
|
|
50
|
+
--seed-ink-muted: #55554e; /* 次要文字(对 cream ≥6:1) */
|
|
51
|
+
--seed-ink-dim: #6a6a60; /* 辅助文字(对 cream ≥4.5:1) */
|
|
52
|
+
--seed-border: #a5ab99; /* cream 上可见的绿灰发丝线(NT-02) */
|
|
53
|
+
--seed-border-strong: #2e4a2a; /* green —— 模板 2px 分隔线 + cream 页标题身份 */
|
|
54
|
+
|
|
55
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
56
|
+
--bg-color: var(--seed-surface);
|
|
57
|
+
--text-color: var(--seed-ink);
|
|
58
|
+
--text-secondary: var(--seed-ink-muted);
|
|
59
|
+
--text-muted: var(--seed-ink-dim);
|
|
60
|
+
--border-color: var(--seed-border);
|
|
61
|
+
/* pink-deep 在 cream 上仍只有 2.1:1 → 加深至 #9d4a63(4.7:1,CR-04);
|
|
62
|
+
模板粉身份由 --seed-accent 的底/块/大数字承担 */
|
|
63
|
+
--link-color: #9d4a63;
|
|
64
|
+
|
|
65
|
+
--code-bg: var(--seed-panel);
|
|
66
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
67
|
+
--code-block-text: #1a1a17;
|
|
68
|
+
|
|
69
|
+
--blockquote-border: var(--seed-border-strong); /* 模板:2px green 线体系 */
|
|
70
|
+
--blockquote-bg: var(--seed-panel);
|
|
71
|
+
--table-header-bg: var(--seed-panel); /* cream-2 表头 */
|
|
72
|
+
|
|
73
|
+
--selection-bg: rgba(232, 156, 177, 0.30);
|
|
74
|
+
--highlight-bg: rgba(232, 156, 177, 0.45); /* 粉荧光笔 */
|
|
75
|
+
|
|
76
|
+
/* ── 1.3 Typography & Metrics(活变量)──
|
|
77
|
+
CJK 配对(design.md Strategy C):display 走 LXGW WenKai、正文走 Noto Serif SC */
|
|
78
|
+
--font-body: "Source Serif 4", "Source Serif Pro", "Noto Serif SC", Georgia, serif;
|
|
79
|
+
--font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
80
|
+
--editor-font-size: 18px;
|
|
81
|
+
--editor-column-width: 820px;
|
|
82
|
+
|
|
83
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
84
|
+
图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导;
|
|
85
|
+
accent = pink(模板 bar-chart 粉条身份)。 */
|
|
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: 6px; /* 模板 topic-tile 圆角 */
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 editorial-forest 八页逐页复刻)──
|
|
98
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
99
|
+
模板 1920 画布 px ÷ 26 = em(clamp 字号取 1920×1080 实际落点)。字体体系:
|
|
100
|
+
Source Serif 4 500(display,tracking -0.02em,lh 0.92-1.02)/
|
|
101
|
+
JetBrains Mono 500 大写 0.14-0.18em(chrome/label 身份)。页面对照:
|
|
102
|
+
cover←P01(green底) agenda←P02 quote←P03(pink底 statement)
|
|
103
|
+
two-col←P04 figure←P05(green底 chart) steps←P06 kpi←P07(green底 stats)
|
|
104
|
+
closing←P08(green底 summary)
|
|
105
|
+
(section/timeline/matrix 无对应页,保持上游默认;P4 页题 96px 与全局档同、
|
|
106
|
+
P5 84px / P7 80px 版式内覆写)
|
|
107
|
+
未复刻(行式 DOM 无挂点,绝对定位/grid 布局装饰):
|
|
108
|
+
P01 圆形 monogram + footline 双列;P02 五卡填充轮换(green/pink/green-lite/
|
|
109
|
+
cream 四色按格轮换,行式无 nth 稳定挂点 → 统一 t-cream 款);P03 attrib
|
|
110
|
+
双列;P04 左绿图卡 + meta-dl 三列;P05 柱状图/legend/网格线(以 Pele 图卡
|
|
111
|
+
近似);P06 marker 行 + 三种填充轮换(统一默认 cream 款);P07 kpi-row
|
|
112
|
+
2px pink 顶线(近似为列上边线)+ 110px unit 后缀。圆角 6/8px 随卡片复刻。 */
|
|
113
|
+
:root {
|
|
114
|
+
--slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
115
|
+
--slide-title-font: "Source Serif 4", "Source Serif Pro", "LXGW WenKai TC", "Noto Serif SC", Georgia, serif;
|
|
116
|
+
--slide-title-size: 3.69em; /* 内容页题 96px ÷26(P2/P4/P6 同档) */
|
|
117
|
+
--slide-title-weight: 500; /* SS4 display 声部 = 500(非 700) */
|
|
118
|
+
--slide-subhead-weight: 500;
|
|
119
|
+
--slide-title-tracking: -0.02em;
|
|
120
|
+
--slide-title-line-height: 0.96;
|
|
121
|
+
--slide-cover-title-size: 8.46em; /* P1 h1 220px ÷26 */
|
|
122
|
+
--slide-cover-title-line-height: 0.92;
|
|
123
|
+
--slide-cover-title-tracking: -0.02em;
|
|
124
|
+
--slide-section-title-size: 3.69em; /* 无对应页,与内容页题同档 */
|
|
125
|
+
--slide-closing-title-size: 8.46em; /* P8 h2 220px ÷26 */
|
|
126
|
+
--slide-lead-size: 1.15em; /* 模板 body 30px ÷26 */
|
|
127
|
+
--slide-kicker-size: clamp(13px, 1.35vw, 26px); /* label 26px @1920 */
|
|
128
|
+
--slide-kicker-tracking: 0.18em; /* 模板 label .18em */
|
|
129
|
+
--slide-kicker-transform: uppercase;
|
|
130
|
+
--slide-chrome-opacity: 0.9; /* chrome 全色 accent,不靠透明度 */
|
|
131
|
+
--slide-chrome-transform: uppercase;
|
|
132
|
+
--slide-kpi-number-size: 7.33em; /* P7 big 220 ÷26 ÷1.15(li 缩放) */
|
|
133
|
+
--slide-quote-size: 5.38em; /* P3 blockquote 140px ÷26 */
|
|
134
|
+
--slide-page-pad-x: 6.25vw; /* 模板页边距 120px @1920 */
|
|
135
|
+
--slide-page-top-pad: 70px; /* 正文顶 96px − chrome 安全区 */
|
|
136
|
+
--slide-page-top-pad-print: 60px;
|
|
137
|
+
--slide-cover-text-align: left; /* P1 标题左对齐(顶部区) */
|
|
138
|
+
--slide-cover-lead-inline: auto;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
142
|
+
body.presenting / body.slides-printing 作用域) ═══════════════ */
|
|
143
|
+
|
|
144
|
+
/* 1.6.1 页标题声部对齐:SS4 500 green(cream 页 headline 身份);并压掉文档式
|
|
145
|
+
h1/h2 的 border-bottom(编辑器规则带 id 权重会漏进放映) */
|
|
146
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
147
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
148
|
+
font-family: var(--slide-title-font);
|
|
149
|
+
font-size: var(--slide-title-size);
|
|
150
|
+
font-weight: 500;
|
|
151
|
+
line-height: 0.96;
|
|
152
|
+
letter-spacing: -0.02em;
|
|
153
|
+
color: var(--seed-border-strong);
|
|
154
|
+
border-bottom: none;
|
|
155
|
+
padding-bottom: 0;
|
|
156
|
+
margin-bottom: 0.45em;
|
|
157
|
+
}
|
|
158
|
+
/* kicker(label 眉标)色 = region accent:cream 页 green */
|
|
159
|
+
body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
160
|
+
body.slides-printing .cm-md-page-title[data-slide-kicker]::before {
|
|
161
|
+
color: var(--seed-border-strong);
|
|
162
|
+
opacity: 1;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* 1.6.2 换底页公共层叠链:green 底 ×4(P1/P5/P7/P8)+ pink 底 ×1(P3)。
|
|
166
|
+
底色必须打满整条层叠链——body / #editor / .cm-editor / .cm-scroller /
|
|
167
|
+
.cm-content 五层(漏层会被原 cream 底反盖);打印域 body.slides-printing:has(...) */
|
|
168
|
+
body.presenting:has(#editor[data-slide-layout='cover']),
|
|
169
|
+
body.presenting:has(#editor[data-slide-layout='figure']),
|
|
170
|
+
body.presenting:has(#editor[data-slide-layout='kpi']),
|
|
171
|
+
body.presenting:has(#editor[data-slide-layout='closing']),
|
|
172
|
+
body.slides-printing:has(.cm-md-slide-cover),
|
|
173
|
+
body.slides-printing:has(.cm-md-slide-figure),
|
|
174
|
+
body.slides-printing:has(.cm-md-slide-kpi),
|
|
175
|
+
body.slides-printing:has(.cm-md-slide-closing) {
|
|
176
|
+
background: #2e4a2a;
|
|
177
|
+
}
|
|
178
|
+
body.presenting:has(#editor[data-slide-layout='quote']),
|
|
179
|
+
body.slides-printing:has(.cm-md-slide-quote) {
|
|
180
|
+
background: #e89cb1;
|
|
181
|
+
}
|
|
182
|
+
body.presenting #editor[data-slide-layout='cover'],
|
|
183
|
+
body.presenting #editor[data-slide-layout='figure'],
|
|
184
|
+
body.presenting #editor[data-slide-layout='kpi'],
|
|
185
|
+
body.presenting #editor[data-slide-layout='closing'],
|
|
186
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-editor,
|
|
187
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-editor,
|
|
188
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-editor,
|
|
189
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-editor,
|
|
190
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-scroller,
|
|
191
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-scroller,
|
|
192
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-scroller,
|
|
193
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-scroller,
|
|
194
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content,
|
|
195
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content,
|
|
196
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content,
|
|
197
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content,
|
|
198
|
+
body.slides-printing:has(.cm-md-slide-cover) #editor,
|
|
199
|
+
body.slides-printing:has(.cm-md-slide-figure) #editor,
|
|
200
|
+
body.slides-printing:has(.cm-md-slide-kpi) #editor,
|
|
201
|
+
body.slides-printing:has(.cm-md-slide-closing) #editor,
|
|
202
|
+
body.slides-printing:has(.cm-md-slide-cover) .cm-editor,
|
|
203
|
+
body.slides-printing:has(.cm-md-slide-figure) .cm-editor,
|
|
204
|
+
body.slides-printing:has(.cm-md-slide-kpi) .cm-editor,
|
|
205
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-editor,
|
|
206
|
+
body.slides-printing:has(.cm-md-slide-cover) .cm-scroller,
|
|
207
|
+
body.slides-printing:has(.cm-md-slide-figure) .cm-scroller,
|
|
208
|
+
body.slides-printing:has(.cm-md-slide-kpi) .cm-scroller,
|
|
209
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-scroller,
|
|
210
|
+
body.slides-printing:has(.cm-md-slide-cover) .cm-content,
|
|
211
|
+
body.slides-printing:has(.cm-md-slide-figure) .cm-content,
|
|
212
|
+
body.slides-printing:has(.cm-md-slide-kpi) .cm-content,
|
|
213
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-content {
|
|
214
|
+
background: #2e4a2a;
|
|
215
|
+
}
|
|
216
|
+
body.presenting #editor[data-slide-layout='quote'],
|
|
217
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-editor,
|
|
218
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-scroller,
|
|
219
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content,
|
|
220
|
+
body.slides-printing:has(.cm-md-slide-quote) #editor,
|
|
221
|
+
body.slides-printing:has(.cm-md-slide-quote) .cm-editor,
|
|
222
|
+
body.slides-printing:has(.cm-md-slide-quote) .cm-scroller,
|
|
223
|
+
body.slides-printing:has(.cm-md-slide-quote) .cm-content {
|
|
224
|
+
background: #e89cb1;
|
|
225
|
+
}
|
|
226
|
+
/* 换底页正文色:green 页 cream(=var(--bg-color)),cover pink,quote green-deep */
|
|
227
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content,
|
|
228
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content,
|
|
229
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content,
|
|
230
|
+
body.slides-printing .cm-md-slide-figure .cm-md-page-title ~ *,
|
|
231
|
+
body.slides-printing .cm-md-slide-kpi .cm-md-page-title ~ *,
|
|
232
|
+
body.slides-printing .cm-md-slide-closing .cm-md-page-title ~ * {
|
|
233
|
+
color: var(--bg-color);
|
|
234
|
+
}
|
|
235
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content,
|
|
236
|
+
body.slides-printing .cm-md-slide-cover .cm-md-page-title ~ * {
|
|
237
|
+
color: var(--seed-accent);
|
|
238
|
+
}
|
|
239
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content,
|
|
240
|
+
body.slides-printing .cm-md-slide-quote .cm-md-page-title ~ * {
|
|
241
|
+
color: #243a21;
|
|
242
|
+
}
|
|
243
|
+
/* 换底页 ghost 页码(=ink)与底同族隐形 → 隐藏(与上游 section/closing 一致) */
|
|
244
|
+
body.presenting:has(#editor[data-slide-layout='cover']) .slide-ghost,
|
|
245
|
+
body.presenting:has(#editor[data-slide-layout='figure']) .slide-ghost,
|
|
246
|
+
body.presenting:has(#editor[data-slide-layout='kpi']) .slide-ghost,
|
|
247
|
+
body.presenting:has(#editor[data-slide-layout='closing']) .slide-ghost,
|
|
248
|
+
body.presenting:has(#editor[data-slide-layout='quote']) .slide-ghost,
|
|
249
|
+
body.slides-printing:has(.cm-md-slide-cover) .slide-ghost,
|
|
250
|
+
body.slides-printing:has(.cm-md-slide-figure) .slide-ghost,
|
|
251
|
+
body.slides-printing:has(.cm-md-slide-kpi) .slide-ghost,
|
|
252
|
+
body.slides-printing:has(.cm-md-slide-closing) .slide-ghost,
|
|
253
|
+
body.slides-printing:has(.cm-md-slide-quote) .slide-ghost {
|
|
254
|
+
opacity: 0;
|
|
255
|
+
}
|
|
256
|
+
/* 换底页表格 td 换页面文字色(green 页=cream 纸面色;pink 页=green-deep),
|
|
257
|
+
th 自带 cream-2 底不受影响 */
|
|
258
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-md-table-widget td,
|
|
259
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-md-table-widget td,
|
|
260
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-md-table-widget td,
|
|
261
|
+
body.slides-printing:has(.cm-md-slide-figure) .cm-md-table-widget td,
|
|
262
|
+
body.slides-printing:has(.cm-md-slide-kpi) .cm-md-table-widget td,
|
|
263
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-md-table-widget td {
|
|
264
|
+
color: var(--bg-color);
|
|
265
|
+
}
|
|
266
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-md-table-widget td,
|
|
267
|
+
body.slides-printing:has(.cm-md-slide-quote) .cm-md-table-widget td {
|
|
268
|
+
color: #243a21;
|
|
269
|
+
}
|
|
270
|
+
/* 换底页 chrome/foot 色:green 页 pink(模板 footline 身份),pink 页 green-deep */
|
|
271
|
+
body.presenting [data-slide-layout='cover'] .slide-chrome,
|
|
272
|
+
body.presenting [data-slide-layout='figure'] .slide-chrome,
|
|
273
|
+
body.presenting [data-slide-layout='kpi'] .slide-chrome,
|
|
274
|
+
body.presenting [data-slide-layout='closing'] .slide-chrome,
|
|
275
|
+
body.presenting [data-slide-layout='cover'] .slide-foot,
|
|
276
|
+
body.presenting [data-slide-layout='figure'] .slide-foot,
|
|
277
|
+
body.presenting [data-slide-layout='kpi'] .slide-foot,
|
|
278
|
+
body.presenting [data-slide-layout='closing'] .slide-foot,
|
|
279
|
+
body.slides-printing [data-slide-layout='cover'] .slide-chrome,
|
|
280
|
+
body.slides-printing [data-slide-layout='figure'] .slide-chrome,
|
|
281
|
+
body.slides-printing [data-slide-layout='kpi'] .slide-chrome,
|
|
282
|
+
body.slides-printing [data-slide-layout='closing'] .slide-chrome,
|
|
283
|
+
body.slides-printing [data-slide-layout='cover'] .slide-foot,
|
|
284
|
+
body.slides-printing [data-slide-layout='figure'] .slide-foot,
|
|
285
|
+
body.slides-printing [data-slide-layout='kpi'] .slide-foot,
|
|
286
|
+
body.slides-printing [data-slide-layout='closing'] .slide-foot {
|
|
287
|
+
color: var(--seed-accent);
|
|
288
|
+
}
|
|
289
|
+
body.presenting [data-slide-layout='quote'] .slide-chrome,
|
|
290
|
+
body.presenting [data-slide-layout='quote'] .slide-foot,
|
|
291
|
+
body.slides-printing [data-slide-layout='quote'] .slide-chrome,
|
|
292
|
+
body.slides-printing [data-slide-layout='quote'] .slide-foot {
|
|
293
|
+
color: #243a21;
|
|
294
|
+
}
|
|
295
|
+
/* 换底页 kicker 色覆写 */
|
|
296
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
297
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
298
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
299
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
300
|
+
body.slides-printing .cm-md-slide-cover .cm-md-page-title[data-slide-kicker]::before,
|
|
301
|
+
body.slides-printing .cm-md-slide-figure .cm-md-page-title[data-slide-kicker]::before,
|
|
302
|
+
body.slides-printing .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before,
|
|
303
|
+
body.slides-printing .cm-md-slide-closing .cm-md-page-title[data-slide-kicker]::before {
|
|
304
|
+
color: var(--seed-accent);
|
|
305
|
+
}
|
|
306
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
307
|
+
body.slides-printing .cm-md-slide-quote .cm-md-page-title[data-slide-kicker]::before {
|
|
308
|
+
color: #243a21;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/* 1.6.3 cover · P1:green 底 pink 字;h1 220px 顶部左对齐(topbar 之下);
|
|
312
|
+
页边距 140px → 7.3vw;巨标题三行硬换行以 max-width 10ch 近似 */
|
|
313
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
314
|
+
body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
|
|
315
|
+
font-size: var(--slide-cover-title-size);
|
|
316
|
+
line-height: 0.92;
|
|
317
|
+
letter-spacing: -0.02em;
|
|
318
|
+
color: var(--seed-accent);
|
|
319
|
+
max-width: 10ch;
|
|
320
|
+
}
|
|
321
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content {
|
|
322
|
+
padding-left: 7.3vw;
|
|
323
|
+
padding-right: 7.3vw;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* 1.6.4 agenda · P2:页题 96px green(全局档);行式条目卡化 = t-cream 款
|
|
327
|
+
(cream-2 底 + 2px green 边 + 6px 圆角);li 基准 = topic p 26px ÷26 = 1em;
|
|
328
|
+
num mono 26px = 1em、行题 h3 56px ÷26 = 2.15em;三列 544px+24px gap @1680 */
|
|
329
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
330
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
331
|
+
display: inline-block;
|
|
332
|
+
width: 32.35%;
|
|
333
|
+
margin: 0 1.43% 0.9em 0;
|
|
334
|
+
vertical-align: top;
|
|
335
|
+
background: var(--seed-panel);
|
|
336
|
+
border: 2px solid var(--seed-border-strong);
|
|
337
|
+
border-radius: 6px;
|
|
338
|
+
box-shadow: none;
|
|
339
|
+
padding: 1.54em 1.54em 1.38em; /* 40px/40px/36px ÷26 */
|
|
340
|
+
list-style: none;
|
|
341
|
+
}
|
|
342
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
343
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
344
|
+
font-family: var(--slide-mono);
|
|
345
|
+
font-weight: 500;
|
|
346
|
+
font-size: 1em; /* .num 26px ÷26 ÷1 */
|
|
347
|
+
letter-spacing: 0.14em;
|
|
348
|
+
text-transform: uppercase;
|
|
349
|
+
color: var(--seed-border-strong);
|
|
350
|
+
}
|
|
351
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
|
|
352
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
|
|
353
|
+
font-family: var(--slide-title-font);
|
|
354
|
+
font-size: 2.15em; /* h3 56px ÷26 ÷1 */
|
|
355
|
+
font-weight: 500;
|
|
356
|
+
line-height: 0.98;
|
|
357
|
+
letter-spacing: -0.01em;
|
|
358
|
+
color: var(--seed-border-strong);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* 1.6.5 quote · P3(pink 底 statement):金句 140px green-deep lh 1.02;
|
|
362
|
+
署名行 = .name serif 44px 600 非大写;attrib 双列布局无挂点(未复刻);
|
|
363
|
+
页边距 160px → 8.3vw、顶 130px − chrome */
|
|
364
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title,
|
|
365
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-page-title {
|
|
366
|
+
font-size: var(--slide-quote-size);
|
|
367
|
+
line-height: 1.02;
|
|
368
|
+
color: #243a21;
|
|
369
|
+
max-width: none;
|
|
370
|
+
}
|
|
371
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
372
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
373
|
+
font-size: 5.38em; /* blockquote 140px ÷26 */
|
|
374
|
+
font-weight: 500;
|
|
375
|
+
line-height: 1.02;
|
|
376
|
+
letter-spacing: -0.02em;
|
|
377
|
+
color: #243a21;
|
|
378
|
+
background: transparent;
|
|
379
|
+
border-left: none;
|
|
380
|
+
padding-left: 0;
|
|
381
|
+
padding-right: 0;
|
|
382
|
+
max-width: 11.1em; /* 1560px ÷140 */
|
|
383
|
+
}
|
|
384
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
385
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
386
|
+
margin-top: 1.36em; /* .attrib 60px ÷44(CSS-03:留白只走 margin) */
|
|
387
|
+
font-family: var(--slide-title-font);
|
|
388
|
+
font-size: 1.69em; /* .name 44px ÷26 */
|
|
389
|
+
font-weight: 600;
|
|
390
|
+
letter-spacing: 0;
|
|
391
|
+
text-transform: none;
|
|
392
|
+
color: #243a21;
|
|
393
|
+
}
|
|
394
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content {
|
|
395
|
+
padding-left: 8.3vw;
|
|
396
|
+
padding-right: 8.3vw;
|
|
397
|
+
padding-top: 90px;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* 1.6.6 two-col · P4(cream 底左图右文):页题 96px green(全局档);
|
|
401
|
+
正文 30px ÷26 = 1.15em;左绿图卡/meta-dl 三列为 grid 布局无挂点(未复刻),
|
|
402
|
+
双栏 pane 切分以文流近似 */
|
|
403
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
|
|
404
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
|
|
405
|
+
font-size: 1.15em;
|
|
406
|
+
line-height: 1.38;
|
|
407
|
+
color: var(--text-color);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* 1.6.7 figure · P5(green 底 chart):页题 84px ÷26 = 3.23em cream;
|
|
411
|
+
kicker pink(1.6.2 已覆写);Pele 图卡 = cream 底 + 2px green 边 + 6px 圆角
|
|
412
|
+
(模板 col-img 图卡语言;图表本体以 Pele 近似,柱形/legend/grid-lines 未复刻) */
|
|
413
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
|
|
414
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title {
|
|
415
|
+
font-size: 3.23em;
|
|
416
|
+
line-height: 1.0;
|
|
417
|
+
color: var(--bg-color);
|
|
418
|
+
}
|
|
419
|
+
body.presenting #editor .cm-content svg.pele,
|
|
420
|
+
body.slides-printing #editor .cm-content svg.pele {
|
|
421
|
+
background: var(--seed-surface);
|
|
422
|
+
border: 2px solid var(--seed-border-strong);
|
|
423
|
+
border-radius: 6px;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* 1.6.8 steps · P6(cream 底 framework):页题 96px(全局档);四列步进卡 =
|
|
427
|
+
默认款(cream 底 + 2.5px green 边 + 8px 圆角);li 基准 = step p 26px ÷26 = 1em;
|
|
428
|
+
num mono 26px = 1em、步骤名 68px ÷26 = 2.62em;四列 399px+28px gap @1680;
|
|
429
|
+
marker 行/填充轮换未复刻 */
|
|
430
|
+
body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
|
|
431
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-title {
|
|
432
|
+
font-size: var(--slide-title-size);
|
|
433
|
+
}
|
|
434
|
+
body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
|
|
435
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
|
|
436
|
+
display: inline-block;
|
|
437
|
+
width: 23.7%;
|
|
438
|
+
margin: 0 1.67% 1em 0;
|
|
439
|
+
vertical-align: top;
|
|
440
|
+
background: var(--seed-surface);
|
|
441
|
+
border: 2.5px solid var(--seed-border-strong);
|
|
442
|
+
border-radius: 8px;
|
|
443
|
+
box-shadow: none;
|
|
444
|
+
padding: 1.54em 1.23em 1.23em; /* 40px/32px/32px ÷26 */
|
|
445
|
+
min-height: 18em; /* .step min-height 470px ÷26 */
|
|
446
|
+
list-style: none;
|
|
447
|
+
}
|
|
448
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
|
|
449
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
|
|
450
|
+
font-family: var(--slide-mono);
|
|
451
|
+
font-weight: 500;
|
|
452
|
+
font-size: 1em; /* .num 26px ÷26 ÷1 */
|
|
453
|
+
letter-spacing: 0.16em;
|
|
454
|
+
text-transform: uppercase;
|
|
455
|
+
color: var(--seed-border-strong);
|
|
456
|
+
}
|
|
457
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
|
|
458
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
|
|
459
|
+
font-family: var(--slide-title-font);
|
|
460
|
+
font-size: 2.62em; /* h3 68px ÷26 ÷1 */
|
|
461
|
+
font-weight: 500;
|
|
462
|
+
line-height: 0.96;
|
|
463
|
+
letter-spacing: -0.01em;
|
|
464
|
+
color: var(--seed-border-strong);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/* 1.6.9 kpi · P7(green 底 stats):页题 80px ÷26 = 3.08em cream;裸排无卡
|
|
468
|
+
(模板 kpi 即裸数字),kpi-row 2px pink 顶线近似为列上边线;li 基准 =
|
|
469
|
+
desc 30px ÷26 = 1.15em;tag mono 24px = 24÷26÷1.15 = 0.80em pink;
|
|
470
|
+
大数字 220px = 220÷26÷1.15 = 7.33em pink(unit 110px 后缀未复刻) */
|
|
471
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
|
|
472
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title {
|
|
473
|
+
font-size: 3.08em;
|
|
474
|
+
line-height: 0.98;
|
|
475
|
+
color: var(--bg-color);
|
|
476
|
+
}
|
|
477
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
|
|
478
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
|
|
479
|
+
display: inline-block;
|
|
480
|
+
width: 30.95%;
|
|
481
|
+
margin: 0 3.57% 1em 0; /* 三列 + 60px gap @1680 */
|
|
482
|
+
vertical-align: top;
|
|
483
|
+
background: transparent;
|
|
484
|
+
border: none;
|
|
485
|
+
border-top: 2px solid var(--seed-accent); /* .kpi-row 顶线近似 */
|
|
486
|
+
border-radius: 0;
|
|
487
|
+
box-shadow: none;
|
|
488
|
+
padding: 1.87em 0 0; /* 56px ÷30 */
|
|
489
|
+
font-size: 1.15em; /* .desc 30px ÷26 */
|
|
490
|
+
}
|
|
491
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
|
|
492
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
|
|
493
|
+
font-family: var(--slide-mono);
|
|
494
|
+
font-weight: 500;
|
|
495
|
+
font-size: 0.8em; /* .tag 24px ÷26 ÷1.15 */
|
|
496
|
+
letter-spacing: 0.16em;
|
|
497
|
+
text-transform: uppercase;
|
|
498
|
+
color: var(--seed-accent);
|
|
499
|
+
}
|
|
500
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
|
|
501
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
|
|
502
|
+
font-size: var(--slide-kpi-number-size);
|
|
503
|
+
font-weight: 500;
|
|
504
|
+
line-height: 0.92;
|
|
505
|
+
letter-spacing: -0.03em;
|
|
506
|
+
color: var(--seed-accent);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/* 1.6.10 closing · P8(green 底 summary):标题 220px pink lh 0.94 顶部左对齐;
|
|
510
|
+
三列清单 = grid-cols(2px pink 顶线 + h4 mono 26px pink 大写 + p 32px cream);
|
|
511
|
+
li 基准 = p 32px ÷26 = 1.23em;h4 = 26÷26÷1.23 = 0.81em;三列 520px+60px gap */
|
|
512
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
|
|
513
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
|
|
514
|
+
font-size: var(--slide-closing-title-size);
|
|
515
|
+
line-height: 0.94;
|
|
516
|
+
letter-spacing: -0.02em;
|
|
517
|
+
color: var(--seed-accent);
|
|
518
|
+
max-width: 12ch;
|
|
519
|
+
}
|
|
520
|
+
body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
|
|
521
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
|
|
522
|
+
display: inline-block;
|
|
523
|
+
width: 30.95%;
|
|
524
|
+
margin: 1.9em 3.57% 0 0;
|
|
525
|
+
vertical-align: top;
|
|
526
|
+
background: transparent;
|
|
527
|
+
border: none;
|
|
528
|
+
border-top: 2px solid var(--seed-accent); /* .grid-cols 顶线 */
|
|
529
|
+
border-radius: 0;
|
|
530
|
+
box-shadow: none;
|
|
531
|
+
padding: 1.13em 0 0; /* 36px ÷32 */
|
|
532
|
+
font-size: 1.23em; /* p 32px ÷26 */
|
|
533
|
+
line-height: 1.32;
|
|
534
|
+
list-style: none;
|
|
535
|
+
}
|
|
536
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
|
|
537
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
|
|
538
|
+
display: none; /* grid-cols 无序号(h4 One/Two/Three 由行题承担) */
|
|
539
|
+
}
|
|
540
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
|
|
541
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
|
|
542
|
+
font-family: var(--slide-mono);
|
|
543
|
+
font-size: 0.81em; /* h4 26px ÷26 ÷1.23 */
|
|
544
|
+
font-weight: 500;
|
|
545
|
+
letter-spacing: 0.16em;
|
|
546
|
+
text-transform: uppercase;
|
|
547
|
+
color: var(--seed-accent);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/* 1.6.11 chrome · topbar/footline:JetBrains Mono 500 大写;label 26px .18em /
|
|
551
|
+
footline 28px .12em;cream 页色 green(模板 label-on-cream 身份) */
|
|
552
|
+
body.presenting .slide-chrome,
|
|
553
|
+
body.slides-printing .slide-chrome {
|
|
554
|
+
font-family: var(--slide-mono);
|
|
555
|
+
font-size: clamp(13px, 1.35vw, 26px); /* label 26px @1920 */
|
|
556
|
+
font-weight: 500;
|
|
557
|
+
letter-spacing: 0.18em;
|
|
558
|
+
text-transform: uppercase;
|
|
559
|
+
color: var(--seed-border-strong);
|
|
560
|
+
}
|
|
561
|
+
body.presenting .slide-foot,
|
|
562
|
+
body.slides-printing .slide-foot {
|
|
563
|
+
font-family: var(--slide-mono);
|
|
564
|
+
font-size: clamp(14px, 1.46vw, 28px); /* footline 28px @1920 */
|
|
565
|
+
font-weight: 500;
|
|
566
|
+
letter-spacing: 0.12em;
|
|
567
|
+
text-transform: uppercase;
|
|
568
|
+
opacity: 0.9;
|
|
569
|
+
color: var(--seed-border-strong);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/* ═══════════════════════════════════════════════════════════
|
|
573
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
574
|
+
═══════════════════════════════════════════════════════════ */
|
|
575
|
+
|
|
576
|
+
#editor .cm-content {
|
|
577
|
+
font-family: var(--font-body);
|
|
578
|
+
line-height: 1.6; /* CJK 建议 1.5-1.6 */
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/* ── 2.1 Headings(SS4 500 + LXGW 文楷 display 声部;cream 页标题身份 = green)── */
|
|
582
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
583
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
584
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
585
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
586
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
587
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
588
|
+
font-family: "Source Serif 4", "Source Serif Pro", "LXGW WenKai TC", "Noto Serif SC", Georgia, serif;
|
|
589
|
+
color: var(--seed-border-strong);
|
|
590
|
+
font-weight: 500; /* 模板 display 全 500(非 700),body 400 */
|
|
591
|
+
line-height: 1.1;
|
|
592
|
+
letter-spacing: -0.02em;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
#editor .cm-content .cm-md-atxheading1 {
|
|
596
|
+
font-size: 2.9em;
|
|
597
|
+
line-height: 1.05;
|
|
598
|
+
}
|
|
599
|
+
#editor .cm-content .cm-md-atxheading2 {
|
|
600
|
+
font-size: 2.15em;
|
|
601
|
+
line-height: 1.0;
|
|
602
|
+
}
|
|
603
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.65em; }
|
|
604
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.3em; }
|
|
605
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.12em; }
|
|
606
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
607
|
+
font-size: 1em;
|
|
608
|
+
font-family: var(--font-mono);
|
|
609
|
+
font-weight: 500;
|
|
610
|
+
letter-spacing: 0.18em; /* 模板 label 眉标声部 */
|
|
611
|
+
text-transform: uppercase;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/* ── 2.2 Inline ──
|
|
615
|
+
strong 用正文色(模板强调走字号/色块,不用 accent 文字色,CR-04) */
|
|
616
|
+
#editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
|
|
617
|
+
#editor .cm-content .cm-md-em { font-style: italic; }
|
|
618
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
619
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
620
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
621
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
622
|
+
|
|
623
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
624
|
+
font-family: var(--font-mono);
|
|
625
|
+
background: var(--code-bg);
|
|
626
|
+
color: var(--text-color);
|
|
627
|
+
border-radius: 3px; /* 最小圆角档(legend swatch 2px 系) */
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
#editor .cm-content .cm-md-marker,
|
|
631
|
+
#editor .cm-content .cm-md-quotemark,
|
|
632
|
+
#editor .cm-content .cm-md-listmark {
|
|
633
|
+
color: var(--text-muted);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
637
|
+
引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
|
|
638
|
+
否则引用里的代码行会盖住代码块底色。 */
|
|
639
|
+
#editor .cm-content .cm-md-blockquote {
|
|
640
|
+
color: var(--text-secondary);
|
|
641
|
+
border-left: 2px solid var(--blockquote-border); /* 模板 2px 线体系 */
|
|
642
|
+
padding-left: 16px;
|
|
643
|
+
padding-right: 16px;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
#editor .cm-content .cm-md-codeblock {
|
|
647
|
+
background: var(--code-block-bg);
|
|
648
|
+
color: var(--code-block-text);
|
|
649
|
+
padding-left: 16px;
|
|
650
|
+
padding-right: 16px;
|
|
651
|
+
}
|
|
652
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
653
|
+
border-top-left-radius: 6px;
|
|
654
|
+
border-top-right-radius: 6px;
|
|
655
|
+
}
|
|
656
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
657
|
+
border-bottom-left-radius: 6px;
|
|
658
|
+
border-bottom-right-radius: 6px;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/* ── 2.4 Table / Rule(模板:2px green 分隔线体系,th = mono label 声部)── */
|
|
662
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
663
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
664
|
+
padding: 10px 14px;
|
|
665
|
+
border-color: rgba(46, 74, 42, 0.35); /* green 35% 细线(NT-03 备案) */
|
|
666
|
+
}
|
|
667
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
668
|
+
background: var(--table-header-bg);
|
|
669
|
+
color: var(--seed-border-strong);
|
|
670
|
+
font-family: var(--font-mono);
|
|
671
|
+
font-size: 0.78em;
|
|
672
|
+
font-weight: 500;
|
|
673
|
+
letter-spacing: 0.14em;
|
|
674
|
+
text-transform: uppercase;
|
|
675
|
+
border-bottom: 2px solid var(--seed-border-strong);
|
|
676
|
+
}
|
|
677
|
+
#editor .cm-content .cm-md-hr { border-top: 2px solid var(--seed-border-strong); }
|
|
678
|
+
|
|
679
|
+
/* ── 2.5 中文首行缩进 ──
|
|
680
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
681
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
682
|
+
|
|
683
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
684
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
685
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
686
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
687
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
688
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
689
|
+
#editor .cm-content .cm-md-blockquote,
|
|
690
|
+
#editor .cm-content .cm-md-codeblock,
|
|
691
|
+
#editor .cm-content .cm-md-hr,
|
|
692
|
+
#editor .cm-content .cm-md-mermaid,
|
|
693
|
+
#editor .cm-content .cm-md-li-0,
|
|
694
|
+
#editor .cm-content .cm-md-li-1,
|
|
695
|
+
#editor .cm-content .cm-md-li-2,
|
|
696
|
+
#editor .cm-content .cm-md-li-3,
|
|
697
|
+
#editor .cm-content .cm-md-li-4,
|
|
698
|
+
#editor .cm-content .cm-md-li-5,
|
|
699
|
+
#editor .cm-content .cm-md-li-6 {
|
|
700
|
+
text-indent: 0;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/* ═══════════════════════════════════════════════════════════
|
|
704
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
705
|
+
HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
|
|
706
|
+
═══════════════════════════════════════════════════════════ */
|
|
707
|
+
|
|
708
|
+
.colamd-document {
|
|
709
|
+
font-family: var(--font-body);
|
|
710
|
+
font-size: 18px;
|
|
711
|
+
line-height: 1.6;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.colamd-document h1,
|
|
715
|
+
.colamd-document h2,
|
|
716
|
+
.colamd-document h3,
|
|
717
|
+
.colamd-document h4,
|
|
718
|
+
.colamd-document h5,
|
|
719
|
+
.colamd-document h6 {
|
|
720
|
+
font-family: "Source Serif 4", "Source Serif Pro", "LXGW WenKai TC", "Noto Serif SC", Georgia, serif;
|
|
721
|
+
color: var(--seed-border-strong);
|
|
722
|
+
font-weight: 500;
|
|
723
|
+
line-height: 1.1;
|
|
724
|
+
letter-spacing: -0.02em;
|
|
725
|
+
margin: 1.5em 0 0.5em;
|
|
726
|
+
}
|
|
727
|
+
.colamd-document h1 { font-size: 2.9em; line-height: 1.05; margin-top: 0.4em; }
|
|
728
|
+
.colamd-document h2 { font-size: 2.15em; line-height: 1.0; }
|
|
729
|
+
.colamd-document h3 { font-size: 1.65em; }
|
|
730
|
+
.colamd-document h4 { font-size: 1.3em; }
|
|
731
|
+
.colamd-document h5 { font-size: 1.12em; }
|
|
732
|
+
.colamd-document h6 {
|
|
733
|
+
font-size: 1em;
|
|
734
|
+
font-family: var(--font-mono);
|
|
735
|
+
font-weight: 500;
|
|
736
|
+
letter-spacing: 0.18em;
|
|
737
|
+
text-transform: uppercase;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.colamd-document strong { color: var(--text-color); font-weight: 600; }
|
|
741
|
+
.colamd-document code {
|
|
742
|
+
background: var(--code-bg);
|
|
743
|
+
color: var(--text-color);
|
|
744
|
+
font-family: var(--font-mono);
|
|
745
|
+
border-radius: 3px;
|
|
746
|
+
}
|
|
747
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
748
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
|
|
749
|
+
.colamd-document pre { background: var(--code-block-bg); }
|
|
750
|
+
.colamd-document pre code { color: var(--code-block-text); }
|
|
751
|
+
.colamd-document blockquote {
|
|
752
|
+
background: var(--blockquote-bg);
|
|
753
|
+
color: var(--text-secondary);
|
|
754
|
+
border-left: 2px solid var(--blockquote-border);
|
|
755
|
+
padding: 0.5em 1.2em;
|
|
756
|
+
}
|
|
757
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
758
|
+
.colamd-document th,
|
|
759
|
+
.colamd-document td {
|
|
760
|
+
border-color: rgba(46, 74, 42, 0.35);
|
|
761
|
+
padding: 10px 14px;
|
|
762
|
+
}
|
|
763
|
+
.colamd-document th {
|
|
764
|
+
background: var(--table-header-bg);
|
|
765
|
+
color: var(--seed-border-strong);
|
|
766
|
+
font-family: var(--font-mono);
|
|
767
|
+
font-size: 0.78em;
|
|
768
|
+
font-weight: 500;
|
|
769
|
+
letter-spacing: 0.14em;
|
|
770
|
+
text-transform: uppercase;
|
|
771
|
+
border-bottom: 2px solid var(--seed-border-strong);
|
|
772
|
+
}
|
|
773
|
+
.colamd-document hr { border-top: 2px solid var(--seed-border-strong); }
|
|
774
|
+
|
|
775
|
+
.colamd-document p { text-indent: 2em; }
|
|
776
|
+
.colamd-document li p,
|
|
777
|
+
.colamd-document td p,
|
|
778
|
+
.colamd-document th p,
|
|
779
|
+
.colamd-document blockquote p {
|
|
780
|
+
text-indent: 0;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
/* ═══════════════════════════════════════════════════════════
|
|
784
|
+
SECTION 4 — Print
|
|
785
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
786
|
+
═══════════════════════════════════════════════════════════ */
|
|
787
|
+
|
|
788
|
+
@media print {
|
|
789
|
+
html,
|
|
790
|
+
body {
|
|
791
|
+
background: var(--bg-color);
|
|
792
|
+
color: var(--text-color);
|
|
793
|
+
-webkit-print-color-adjust: exact;
|
|
794
|
+
print-color-adjust: exact;
|
|
795
|
+
}
|
|
796
|
+
}
|