@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,767 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Studio(工作室黄黑 · 手工精修版 / 逐页版式复刻)
|
|
3
|
+
* Black canvas with electric-yellow type; high-voltage design studio aesthetic.
|
|
4
|
+
* 来源:beautiful-html-templates/templates/studio(template.html + design.md + template.json)
|
|
5
|
+
* 色板(template :root):near-black #1C1C1C / near-black-alt #242422 /
|
|
6
|
+
* acid-yellow #F5D200 / acid-yellow-alt #F0CC00 / border-dark #2E2E2C
|
|
7
|
+
* 字体:Barlow 900(display/h1/h2/quote/stat,全大写、负字距)/ Barlow 400-500
|
|
8
|
+
* (body/lead)/ IBM Plex Mono 500(chrome、计数、封面三列 metadata)
|
|
9
|
+
* paradigm 备案:无豁免项。模板身份(黄黑二元)由 accent/ink 同色承担——
|
|
10
|
+
* accent #F5D200 与 surface #1C1C1C 对比 11.4:1(CR-04 达标),黄纸页文字
|
|
11
|
+
* 切 #1C1C1C(11.4:1),muted 用模板 opacity 变体(--c-fg-2 58% → #9A860C,
|
|
12
|
+
* 4.7:1 CR-02 达标)。panel/panel-alt 取中性近黑 #242424/#2C2C2C(模板
|
|
13
|
+
* #242422 的暖偏去掉 2 点蓝差以满足 SL-03 同色相轴与 SL-02 饱和度)。
|
|
14
|
+
*
|
|
15
|
+
* 版式映射(模板 12 页 → ColaMD 版式):
|
|
16
|
+
* P1 cover 深 → cover (整页 = IMAGE PLACEHOLDER 填充 #242422)
|
|
17
|
+
* P2 chapter 黄 → section (章节/声明共用;底色取墨黑默认,见 1.6.3 注)
|
|
18
|
+
* P3 statement 深 → section
|
|
19
|
+
* P4 split 黄 → two-col
|
|
20
|
+
* P5 stats 黄 → kpi
|
|
21
|
+
* P6 list 深 → agenda
|
|
22
|
+
* P7 quote 深 → quote
|
|
23
|
+
* P8 compare 黄 → two-col (与 P4 同形,不单列)
|
|
24
|
+
* P9 chapter 深 → section
|
|
25
|
+
* P10 statement 黄 → section
|
|
26
|
+
* P11 chart 深 → figure
|
|
27
|
+
* P12 end 黄 → closing
|
|
28
|
+
* timeline / steps / matrix 无对应页 → 保持上游默认(未改写)。
|
|
29
|
+
*
|
|
30
|
+
* 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
|
|
31
|
+
*
|
|
32
|
+
* 两条硬规矩:
|
|
33
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
34
|
+
* 编辑器继承不到。
|
|
35
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
36
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
37
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
38
|
+
*
|
|
39
|
+
* ═══════════════════════════════════════════════════════════
|
|
40
|
+
* SECTION 1 — Design Tokens
|
|
41
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
42
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
43
|
+
|
|
44
|
+
:root {
|
|
45
|
+
|
|
46
|
+
/* ── 1.1 Seed Palette ──
|
|
47
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
48
|
+
来源(template.html :root):--c-bg #1C1C1C / --c-bg-alt #242422 /
|
|
49
|
+
--c-bg-light #F5D200 / --c-accent #F5D200 / --c-border #2E2E2C
|
|
50
|
+
模板约定:黄=暗面上的字色,也是黄页的底色;没有第三色,muted 一律是
|
|
51
|
+
同色降透明度(黄 58%/32%,近黑 62%/35%)。 */
|
|
52
|
+
--seed-accent: #f5d200;
|
|
53
|
+
--seed-accent-light: #f0cc00; /* --c-bg-light-alt */
|
|
54
|
+
--seed-accent-dark: #c9ab00; /* 加深档供底/线用,非文字色 */
|
|
55
|
+
--seed-surface: #1c1c1c; /* near-black */
|
|
56
|
+
--seed-panel: #242424; /* near-black-alt(暖偏归零保 SL-03) */
|
|
57
|
+
--seed-panel-alt: #2c2c2c; /* 代码块面,明度续升(SL-04) */
|
|
58
|
+
--seed-ink: #f5d200; /* 暗面字色 = 黄 */
|
|
59
|
+
--seed-ink-muted: #9a860c; /* 模板 --c-fg-2:黄 58% over #1C1C1C */
|
|
60
|
+
--seed-ink-dim: #615613; /* 模板 --c-fg-3:黄 32% over #1C1C1C */
|
|
61
|
+
--seed-border: #3c3c3a; /* 模板 #2E2E2C 提亮一档保 NT-02 可见 */
|
|
62
|
+
--seed-border-strong: #f5d200;
|
|
63
|
+
|
|
64
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
65
|
+
--bg-color: var(--seed-surface);
|
|
66
|
+
--text-color: var(--seed-ink);
|
|
67
|
+
--text-secondary: var(--seed-ink-muted);
|
|
68
|
+
--text-muted: var(--seed-ink-dim);
|
|
69
|
+
--border-color: var(--seed-border);
|
|
70
|
+
--link-color: var(--seed-accent); /* 黄字落近黑 11.4:1(CR-04) */
|
|
71
|
+
|
|
72
|
+
--code-bg: var(--seed-panel);
|
|
73
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
74
|
+
--code-block-text: #f5d200; /* 模板无第三色:代码仍是黄 */
|
|
75
|
+
|
|
76
|
+
--blockquote-border: var(--seed-border); /* 模板引用无边框(见 2.3) */
|
|
77
|
+
--blockquote-bg: var(--seed-panel);
|
|
78
|
+
--table-header-bg: var(--seed-panel);
|
|
79
|
+
|
|
80
|
+
--selection-bg: rgba(245, 210, 0, 0.25);
|
|
81
|
+
--highlight-bg: rgba(245, 210, 0, 0.22);
|
|
82
|
+
|
|
83
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
84
|
+
--font-body: "Barlow", "Noto Sans SC", sans-serif;
|
|
85
|
+
--font-mono: "IBM Plex Mono", "Noto Sans Mono CJK SC", monospace;
|
|
86
|
+
--editor-font-size: 16px;
|
|
87
|
+
--editor-column-width: 820px;
|
|
88
|
+
|
|
89
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
90
|
+
图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
|
|
91
|
+
--pele-bg: var(--code-block-bg);
|
|
92
|
+
--pele-fg: var(--code-block-text);
|
|
93
|
+
--pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
|
|
94
|
+
--pele-line: var(--code-block-text);
|
|
95
|
+
--pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
|
|
96
|
+
--pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
|
|
97
|
+
--pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
|
|
98
|
+
--pele-accent: var(--link-color);
|
|
99
|
+
--pele-radius: 0px; /* 模板:strict rectangle,零圆角 */
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 studio 12 页逐页复刻)──
|
|
103
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
104
|
+
模板 1920 画布 px ÷ 26 = em(vw 全部取 1920×1080 实际落点):
|
|
105
|
+
display 12vw=230px→8.86 h1 7.5vw=144→5.54 h2 4.8vw=92→3.54
|
|
106
|
+
h3 2.8vw=53.8→2.07 stat 5.5vw=105.6→4.06 quote 3.8vw=73→2.81
|
|
107
|
+
lead 1.6vw=30.7→1.18 body 1.15vw=22→0.85 caption .85vw=16.3→0.63
|
|
108
|
+
label .72vw=13.8→0.53
|
|
109
|
+
列表行内元素先定 li 基准再除缩放补偿:
|
|
110
|
+
kpi li=body 0.85 → stat-value 105.6÷26÷0.85 = 4.78em(见 1.6.5)。
|
|
111
|
+
页边距 5vw/5vh(96/54px@1920);顶部安全区扣掉 chrome(54+14+21.6≈90px)。
|
|
112
|
+
页面对照见文件头映射总表;无对应页的 timeline/steps/matrix 保持上游默认。 */
|
|
113
|
+
:root {
|
|
114
|
+
--slide-mono: "IBM Plex Mono", "Noto Sans Mono CJK SC", monospace;
|
|
115
|
+
--slide-title-font: "Barlow", "Noto Sans SC", sans-serif;
|
|
116
|
+
--slide-title-size: 3.54em; /* 内容页 h2 92px ÷26 */
|
|
117
|
+
--slide-title-weight: 900; /* 模板:headline 一律 900 */
|
|
118
|
+
--slide-subhead-weight: 700;
|
|
119
|
+
--slide-title-tracking: -0.01em; /* h2 -0.01em */
|
|
120
|
+
--slide-title-line-height: 0.95; /* h2 lh .95 */
|
|
121
|
+
--slide-cover-title-size: 8.86em; /* P1 display 230px ÷26 */
|
|
122
|
+
--slide-cover-title-line-height: 0.9; /* display lh .9 */
|
|
123
|
+
--slide-cover-title-tracking: -0.02em;
|
|
124
|
+
--slide-section-title-size: 5.54em; /* P2/P3 h1 144px ÷26 */
|
|
125
|
+
--slide-closing-title-size: 8.86em; /* P12 复用 sz-display 230px */
|
|
126
|
+
--slide-lead-size: 1.18em; /* lead 30.7px ÷26 */
|
|
127
|
+
--slide-kicker-size: clamp(11px, 0.72vw, 14px); /* .label 0.72vw=13.8px */
|
|
128
|
+
--slide-kicker-tracking: 0.06em; /* mono label .06em */
|
|
129
|
+
--slide-kicker-transform: uppercase;
|
|
130
|
+
--slide-chrome-opacity: 0.58; /* chrome 用 --c-fg-2(黄 58%) */
|
|
131
|
+
--slide-chrome-transform: none;
|
|
132
|
+
--slide-kpi-number-size: 4.78em; /* stat 105.6px ÷26 ÷0.85(li) */
|
|
133
|
+
--slide-quote-size: 2.81em; /* quote-text 73px ÷26 */
|
|
134
|
+
--slide-page-pad-x: 5vw; /* pad-x 96px@1920 */
|
|
135
|
+
--slide-page-top-pad: 90px; /* pad-y 54 + chrome 栏高 */
|
|
136
|
+
--slide-page-top-pad-print: 70px;
|
|
137
|
+
--slide-cover-text-align: left;
|
|
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 页标题声部对齐:Barlow 900 大写;压掉文档式 h1/h2 的 border-bottom
|
|
145
|
+
与 2em 缩进(编辑器规则带 id 权重会漏进放映)。眉标统一 mono 小字 */
|
|
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: var(--slide-title-weight);
|
|
151
|
+
line-height: var(--slide-title-line-height);
|
|
152
|
+
letter-spacing: var(--slide-title-tracking);
|
|
153
|
+
text-transform: uppercase;
|
|
154
|
+
color: var(--text-color);
|
|
155
|
+
border-bottom: none;
|
|
156
|
+
padding-bottom: 0;
|
|
157
|
+
margin-bottom: 0.5em;
|
|
158
|
+
}
|
|
159
|
+
body.presenting #editor .cm-content .cm-md-page-lead,
|
|
160
|
+
body.slides-printing #editor .cm-content .cm-md-page-lead {
|
|
161
|
+
font-size: var(--slide-lead-size);
|
|
162
|
+
font-weight: 500;
|
|
163
|
+
line-height: 1.45;
|
|
164
|
+
color: var(--text-secondary);
|
|
165
|
+
max-width: 90%;
|
|
166
|
+
}
|
|
167
|
+
body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
168
|
+
body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
|
|
169
|
+
font-family: var(--slide-mono);
|
|
170
|
+
font-size: var(--slide-kicker-size);
|
|
171
|
+
font-weight: 500;
|
|
172
|
+
letter-spacing: var(--slide-kicker-tracking);
|
|
173
|
+
text-transform: var(--slide-kicker-transform);
|
|
174
|
+
color: inherit;
|
|
175
|
+
opacity: 0.62; /* 模板 label 色 = 字色 58-62% */
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* 1.6.2 cover · P1:整页 = 封面图占位填充 #242422(图本身未复刻,行式 DOM
|
|
179
|
+
无背景图挂点);display 230px 左上,三列 mono metadata 落底部 */
|
|
180
|
+
/* 封面色属"换底色页":整条层叠链上色(body/#editor/.cm-editor/.cm-scroller/.cm-content) */
|
|
181
|
+
body.presenting:has(#editor[data-slide-layout='cover']),
|
|
182
|
+
body.slides-printing:has(.cm-md-slide-cover) {
|
|
183
|
+
background: var(--seed-panel);
|
|
184
|
+
}
|
|
185
|
+
body.presenting #editor[data-slide-layout='cover'],
|
|
186
|
+
body.slides-printing:has(.cm-md-slide-cover) #editor,
|
|
187
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-editor,
|
|
188
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-scroller,
|
|
189
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content,
|
|
190
|
+
body.slides-printing:has(.cm-md-slide-cover) .cm-editor,
|
|
191
|
+
body.slides-printing:has(.cm-md-slide-cover) .cm-scroller,
|
|
192
|
+
body.slides-printing:has(.cm-md-slide-cover) .cm-content {
|
|
193
|
+
background: var(--seed-panel);
|
|
194
|
+
}
|
|
195
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content {
|
|
196
|
+
justify-content: flex-start;
|
|
197
|
+
align-items: flex-start;
|
|
198
|
+
text-align: left;
|
|
199
|
+
padding-top: 5vh; /* .cover-type 上留白 = pad-y */
|
|
200
|
+
}
|
|
201
|
+
body.presenting #editor .cm-content .cm-md-slide-cover .cm-md-page-title,
|
|
202
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title {
|
|
203
|
+
font-size: var(--slide-cover-title-size);
|
|
204
|
+
line-height: var(--slide-cover-title-line-height);
|
|
205
|
+
letter-spacing: var(--slide-cover-title-tracking);
|
|
206
|
+
max-width: 90%;
|
|
207
|
+
color: var(--seed-ink);
|
|
208
|
+
}
|
|
209
|
+
/* 模板封面无导语,只有三列 mono 页脚:导语槽位改画 cover-meta 声部 */
|
|
210
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
|
|
211
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
|
|
212
|
+
font-family: var(--slide-mono);
|
|
213
|
+
font-size: 0.63em; /* cover-meta 16.3px ÷26 */
|
|
214
|
+
font-weight: 400;
|
|
215
|
+
line-height: 1.6;
|
|
216
|
+
letter-spacing: 0.06em;
|
|
217
|
+
color: rgba(245, 210, 0, 0.58); /* --c-fg-2 */
|
|
218
|
+
border-top: 1px solid rgba(245, 210, 0, 0.25); /* cover-meta 顶线 */
|
|
219
|
+
padding-top: 0.9em;
|
|
220
|
+
max-width: 100%;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* 1.6.3 section · P2/P3/P9/P10(chapter + statement,模板均无 chrome):
|
|
224
|
+
h1 144px 底对齐,章节页 chapter-num 转 kicker;statement 无眉标 */
|
|
225
|
+
/* 底色说明:模板 chapter 黄/黑交替(P2 黄、P9 黑),statement 黑/黄交替
|
|
226
|
+
(P3 黑、P10 黄)。版式名无法按页交替,按 design.md 默认档——
|
|
227
|
+
statement 走墨黑(文档默认底,不覆写);黄纸章节由 closing/two-col/kpi
|
|
228
|
+
黄页承担,P2/P10 的黄底不复刻,仅复刻字号/声部/对齐。 */
|
|
229
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content {
|
|
230
|
+
justify-content: flex-end;
|
|
231
|
+
padding-bottom: 7.5vh; /* padding-bottom 1.5×pad-y */
|
|
232
|
+
}
|
|
233
|
+
body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
|
|
234
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-title {
|
|
235
|
+
font-size: var(--slide-section-title-size);
|
|
236
|
+
line-height: 0.92; /* h1 lh .92 */
|
|
237
|
+
letter-spacing: -0.02em;
|
|
238
|
+
max-width: 90%; /* inline max-width:90% */
|
|
239
|
+
}
|
|
240
|
+
body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before,
|
|
241
|
+
body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
|
|
242
|
+
display: block; /* chapter-num 独立一行 */
|
|
243
|
+
margin-bottom: 2.74em; /* 3.5vh≈38px ÷ 14px kicker */
|
|
244
|
+
letter-spacing: 0.22em; /* chapter-num .22em */
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* 1.6.4 agenda · P6(list,深):左标题 92px + lead 30.7px + 右列 5 条
|
|
248
|
+
lead 级条文(em-dash 黄列表号);两栏 2fr/3fr 网格无挂点——单列近似 */
|
|
249
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title,
|
|
250
|
+
body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
|
|
251
|
+
max-width: 80%;
|
|
252
|
+
}
|
|
253
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-lead,
|
|
254
|
+
body.slides-printing .cm-md-slide-agenda.cm-md-page-lead {
|
|
255
|
+
font-size: 1.18em; /* lead 30.7px ÷26 */
|
|
256
|
+
font-weight: 400; /* inline font-weight:400 */
|
|
257
|
+
color: var(--text-secondary);
|
|
258
|
+
max-width: 90%;
|
|
259
|
+
}
|
|
260
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
261
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
262
|
+
font-size: 1.18em; /* 条款 30.7px ÷26 */
|
|
263
|
+
font-weight: 500;
|
|
264
|
+
line-height: 1.5;
|
|
265
|
+
margin: 0 0 0.35em; /* gap 1vh≈10.8px ÷30.7 */
|
|
266
|
+
color: var(--text-color);
|
|
267
|
+
}
|
|
268
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
269
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
270
|
+
color: var(--seed-accent); /* em-dash 黄(模板唯一 bullet) */
|
|
271
|
+
margin-right: 0.5em;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* 1.6.5 kpi · P5(stats,黄纸):页题 92px + 三格 stat 卡——2px 近黑顶线、
|
|
275
|
+
近黑 5.5vw 巨数字、22px 标签;mono stat-note 无挂点(未复刻) */
|
|
276
|
+
/* 黄页整条层叠链 + 打印域整页上色(P5 原页面底色 = #F5D200) */
|
|
277
|
+
body.presenting:has(#editor[data-slide-layout='kpi']),
|
|
278
|
+
body.slides-printing:has(.cm-md-slide-kpi) {
|
|
279
|
+
background: var(--seed-accent);
|
|
280
|
+
}
|
|
281
|
+
body.presenting #editor[data-slide-layout='kpi'],
|
|
282
|
+
body.slides-printing:has(.cm-md-slide-kpi) #editor,
|
|
283
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-editor,
|
|
284
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-scroller,
|
|
285
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content,
|
|
286
|
+
body.slides-printing:has(.cm-md-slide-kpi) .cm-editor,
|
|
287
|
+
body.slides-printing:has(.cm-md-slide-kpi) .cm-scroller,
|
|
288
|
+
body.slides-printing:has(.cm-md-slide-kpi) .cm-content {
|
|
289
|
+
background: var(--seed-accent);
|
|
290
|
+
}
|
|
291
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content,
|
|
292
|
+
body.slides-printing .cm-md-slide-kpi {
|
|
293
|
+
color: var(--seed-surface); /* 黄页字色 = near-black */
|
|
294
|
+
}
|
|
295
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-page-title,
|
|
296
|
+
body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
|
|
297
|
+
color: var(--seed-surface);
|
|
298
|
+
}
|
|
299
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-page-lead,
|
|
300
|
+
body.slides-printing .cm-md-slide-kpi.cm-md-page-lead {
|
|
301
|
+
color: rgba(28, 28, 28, 0.62); /* --c-fg-light-2 */
|
|
302
|
+
}
|
|
303
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
|
|
304
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
|
|
305
|
+
display: inline-block;
|
|
306
|
+
width: 32%; /* stats-grid repeat(3,1fr) */
|
|
307
|
+
vertical-align: top;
|
|
308
|
+
margin: 0 1.2% 3vh 0;
|
|
309
|
+
border-top: 2px solid var(--seed-surface); /* stat-card 2px 顶线 */
|
|
310
|
+
padding-top: 0.98em; /* gap-md 2vh≈21.6px ÷22px */
|
|
311
|
+
font-size: 0.85em; /* stat-label 22px ÷26 */
|
|
312
|
+
font-weight: 500;
|
|
313
|
+
line-height: 1.4;
|
|
314
|
+
color: var(--seed-surface);
|
|
315
|
+
}
|
|
316
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
|
|
317
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
|
|
318
|
+
display: none; /* 模板 stat 卡无项目符号 */
|
|
319
|
+
}
|
|
320
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
|
|
321
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
|
|
322
|
+
display: block;
|
|
323
|
+
font-size: var(--slide-kpi-number-size);
|
|
324
|
+
font-weight: 900;
|
|
325
|
+
line-height: 0.9; /* stat-value lh .9 */
|
|
326
|
+
letter-spacing: -0.03em;
|
|
327
|
+
text-transform: uppercase;
|
|
328
|
+
color: var(--seed-surface);
|
|
329
|
+
margin-bottom: 0.25em;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/* 1.6.6 quote · P7(深):3.8vw 巨句(无引号、全大写、max-width 82%)+
|
|
333
|
+
mono 署名;模板 chromeless,引号饰(::before)压掉 */
|
|
334
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content {
|
|
335
|
+
justify-content: center;
|
|
336
|
+
text-align: left;
|
|
337
|
+
}
|
|
338
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
339
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
340
|
+
font-size: var(--slide-quote-size);
|
|
341
|
+
font-weight: 900;
|
|
342
|
+
line-height: 1.05;
|
|
343
|
+
letter-spacing: -0.02em;
|
|
344
|
+
text-transform: uppercase;
|
|
345
|
+
color: var(--seed-ink);
|
|
346
|
+
background: transparent;
|
|
347
|
+
border-left: none;
|
|
348
|
+
padding-left: 0;
|
|
349
|
+
padding-right: 0;
|
|
350
|
+
max-width: 82%;
|
|
351
|
+
margin-bottom: 1.45em; /* 3.5vh≈38px ÷26(只走 margin) */
|
|
352
|
+
}
|
|
353
|
+
body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
354
|
+
body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
355
|
+
content: none; /* 模板:raw type,无引号饰 */
|
|
356
|
+
}
|
|
357
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
358
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
359
|
+
font-family: var(--slide-mono);
|
|
360
|
+
font-size: 0.53em; /* label 13.8px ÷26 */
|
|
361
|
+
font-weight: 500;
|
|
362
|
+
letter-spacing: 0.1em;
|
|
363
|
+
text-transform: uppercase;
|
|
364
|
+
color: var(--seed-ink);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/* 1.6.7 figure · P11(chart,深):页题 92px + mono 图注;
|
|
368
|
+
30vh 条形图/2px 基线为对象框装饰,行式 DOM 无挂点——未复刻 */
|
|
369
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-title,
|
|
370
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-title {
|
|
371
|
+
max-width: 70%; /* chart-header 左题右注 */
|
|
372
|
+
}
|
|
373
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-lead,
|
|
374
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
|
|
375
|
+
font-family: var(--slide-mono);
|
|
376
|
+
font-size: 0.63em; /* chart-source caption 16.3px ÷26 */
|
|
377
|
+
font-weight: 400;
|
|
378
|
+
letter-spacing: 0.08em;
|
|
379
|
+
text-transform: uppercase;
|
|
380
|
+
color: var(--text-muted);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* 1.6.8 closing · P12(end,黄纸):display 230px 巨问句 + 两列联系方式
|
|
384
|
+
(body 22px,--c-fg-light-2)+ 三列 mono 页脚(1px 近黑 .18 顶线) */
|
|
385
|
+
body.presenting:has(#editor[data-slide-layout='closing']),
|
|
386
|
+
body.slides-printing:has(.cm-md-slide-closing) {
|
|
387
|
+
background: var(--seed-accent);
|
|
388
|
+
}
|
|
389
|
+
body.presenting #editor[data-slide-layout='closing'],
|
|
390
|
+
body.slides-printing:has(.cm-md-slide-closing) #editor,
|
|
391
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-editor,
|
|
392
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-scroller,
|
|
393
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content,
|
|
394
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-editor,
|
|
395
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-scroller,
|
|
396
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-content {
|
|
397
|
+
background: var(--seed-accent);
|
|
398
|
+
}
|
|
399
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content,
|
|
400
|
+
body.slides-printing .cm-md-slide-closing {
|
|
401
|
+
color: var(--seed-surface);
|
|
402
|
+
}
|
|
403
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
|
|
404
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title {
|
|
405
|
+
font-size: var(--slide-closing-title-size);
|
|
406
|
+
line-height: 0.9;
|
|
407
|
+
letter-spacing: -0.02em;
|
|
408
|
+
color: var(--seed-surface);
|
|
409
|
+
max-width: 85%;
|
|
410
|
+
}
|
|
411
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-lead,
|
|
412
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
|
|
413
|
+
font-size: 0.85em; /* body 22px ÷26 */
|
|
414
|
+
font-weight: 400;
|
|
415
|
+
color: rgba(28, 28, 28, 0.62);
|
|
416
|
+
max-width: 47%; /* grid 1fr 1fr 两列 */
|
|
417
|
+
}
|
|
418
|
+
body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
|
|
419
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
|
|
420
|
+
display: inline-block;
|
|
421
|
+
width: 31%; /* cover-footer 三列 */
|
|
422
|
+
vertical-align: top;
|
|
423
|
+
margin: 3.5vh 1.2% 0 0;
|
|
424
|
+
border-top: 1px solid rgba(28, 28, 28, 0.18); /* --c-border-light */
|
|
425
|
+
padding-top: 0.75em;
|
|
426
|
+
font-family: var(--slide-mono);
|
|
427
|
+
font-size: 0.63em; /* cover-footer 16.3px ÷26 */
|
|
428
|
+
line-height: 1.6;
|
|
429
|
+
letter-spacing: 0.06em;
|
|
430
|
+
color: rgba(28, 28, 28, 0.62);
|
|
431
|
+
}
|
|
432
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
|
|
433
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
|
|
434
|
+
display: none; /* cover-footer 无序号 */
|
|
435
|
+
}
|
|
436
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
|
|
437
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
|
|
438
|
+
font-weight: 500;
|
|
439
|
+
color: var(--seed-surface);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/* 1.6.9 two-col · P4/P8(split + compare,黄纸):页题 92px;面板题
|
|
443
|
+
h2/h3 53.8px(Barlow 700);正文 30.7px / 条文 22px 走 --c-fg-light-2;
|
|
444
|
+
2px 竖分隔线与右栏 IMAGE PLACEHOLDER 无挂点——未复刻 */
|
|
445
|
+
body.presenting:has(#editor[data-slide-layout='two-col']),
|
|
446
|
+
body.slides-printing:has(.cm-md-slide-two-col) {
|
|
447
|
+
background: var(--seed-accent);
|
|
448
|
+
}
|
|
449
|
+
body.presenting #editor[data-slide-layout='two-col'],
|
|
450
|
+
body.slides-printing:has(.cm-md-slide-two-col) #editor,
|
|
451
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-editor,
|
|
452
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-scroller,
|
|
453
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content,
|
|
454
|
+
body.slides-printing:has(.cm-md-slide-two-col) .cm-editor,
|
|
455
|
+
body.slides-printing:has(.cm-md-slide-two-col) .cm-scroller,
|
|
456
|
+
body.slides-printing:has(.cm-md-slide-two-col) .cm-content {
|
|
457
|
+
background: var(--seed-accent);
|
|
458
|
+
}
|
|
459
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content,
|
|
460
|
+
body.slides-printing .cm-md-slide-two-col {
|
|
461
|
+
color: var(--seed-surface);
|
|
462
|
+
}
|
|
463
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-page-title,
|
|
464
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-title {
|
|
465
|
+
color: var(--seed-surface);
|
|
466
|
+
}
|
|
467
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-atxheading2,
|
|
468
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-atxheading2 {
|
|
469
|
+
color: var(--seed-surface);
|
|
470
|
+
}
|
|
471
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-atxheading3,
|
|
472
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-atxheading3 {
|
|
473
|
+
font-size: 2.07em; /* h3 53.8px ÷26 */
|
|
474
|
+
font-weight: 700;
|
|
475
|
+
line-height: 1.1;
|
|
476
|
+
color: var(--seed-surface);
|
|
477
|
+
}
|
|
478
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-page-lead,
|
|
479
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
|
|
480
|
+
font-size: 1.18em; /* lead 30.7px ÷26 */
|
|
481
|
+
font-weight: 400;
|
|
482
|
+
color: rgba(28, 28, 28, 0.62);
|
|
483
|
+
max-width: 90%;
|
|
484
|
+
}
|
|
485
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-li,
|
|
486
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-li {
|
|
487
|
+
font-size: 0.85em; /* bullet 22px ÷26 */
|
|
488
|
+
font-weight: 400;
|
|
489
|
+
line-height: 1.5;
|
|
490
|
+
color: var(--seed-surface);
|
|
491
|
+
}
|
|
492
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-listmark,
|
|
493
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-listmark {
|
|
494
|
+
color: var(--seed-surface); /* light 页 em-dash = near-black */
|
|
495
|
+
margin-right: 0.5em;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/* 1.6.10 换底页共病:幽灵页码 = var(--text-color),模板全 12 页均无此装饰 →
|
|
499
|
+
整页隐藏;表格 td 换纸面色(th 自带底色不受影响) */
|
|
500
|
+
body.presenting .slide-ghost,
|
|
501
|
+
body.slides-printing .slide-ghost {
|
|
502
|
+
opacity: 0; /* 模板无 ghost 页码 */
|
|
503
|
+
}
|
|
504
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-md-table-widget td,
|
|
505
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-md-table-widget td,
|
|
506
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-md-table-widget td,
|
|
507
|
+
body.slides-printing:has(.cm-md-slide-kpi) .cm-md-table-widget td,
|
|
508
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-md-table-widget td,
|
|
509
|
+
body.slides-printing:has(.cm-md-slide-two-col) .cm-md-table-widget td {
|
|
510
|
+
color: var(--seed-surface);
|
|
511
|
+
}
|
|
512
|
+
/* 模板:cover/chapter/statement/quote/end 五类页不带 chrome/foot → 整组隐藏 */
|
|
513
|
+
body.presenting [data-slide-layout='cover'] .slide-chrome,
|
|
514
|
+
body.presenting [data-slide-layout='cover'] .slide-foot,
|
|
515
|
+
body.presenting [data-slide-layout='section'] .slide-chrome,
|
|
516
|
+
body.presenting [data-slide-layout='section'] .slide-foot,
|
|
517
|
+
body.presenting [data-slide-layout='quote'] .slide-chrome,
|
|
518
|
+
body.presenting [data-slide-layout='quote'] .slide-foot,
|
|
519
|
+
body.presenting [data-slide-layout='closing'] .slide-chrome,
|
|
520
|
+
body.presenting [data-slide-layout='closing'] .slide-foot {
|
|
521
|
+
opacity: 0;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* 1.6.11 chrome · 标准页(P4/P5/P6/P8/P11)顶栏/底栏:mono label 13.8px
|
|
525
|
+
.06em 不大写;黄页转近黑(--c-fg-light-2 档) */
|
|
526
|
+
body.presenting .slide-chrome,
|
|
527
|
+
body.slides-printing .slide-chrome {
|
|
528
|
+
font-family: var(--slide-mono);
|
|
529
|
+
font-size: clamp(11px, 0.72vw, 14px);
|
|
530
|
+
letter-spacing: 0.06em;
|
|
531
|
+
text-transform: none;
|
|
532
|
+
color: var(--text-secondary);
|
|
533
|
+
}
|
|
534
|
+
body.presenting .slide-foot,
|
|
535
|
+
body.slides-printing .slide-foot {
|
|
536
|
+
font-family: var(--slide-mono);
|
|
537
|
+
font-size: clamp(11px, 0.72vw, 14px);
|
|
538
|
+
letter-spacing: 0.06em;
|
|
539
|
+
text-transform: none;
|
|
540
|
+
color: var(--text-secondary);
|
|
541
|
+
}
|
|
542
|
+
body.presenting [data-slide-layout='kpi'] .slide-chrome,
|
|
543
|
+
body.presenting [data-slide-layout='kpi'] .slide-foot,
|
|
544
|
+
body.presenting [data-slide-layout='two-col'] .slide-chrome,
|
|
545
|
+
body.presenting [data-slide-layout='two-col'] .slide-foot {
|
|
546
|
+
color: rgba(28, 28, 28, 0.62); /* 黄页 chrome = --c-fg-light-2 */
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/* ═══════════════════════════════════════════════════════════
|
|
550
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
551
|
+
═══════════════════════════════════════════════════════════ */
|
|
552
|
+
|
|
553
|
+
#editor .cm-content {
|
|
554
|
+
font-family: var(--font-body);
|
|
555
|
+
line-height: 1.75;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/* ── 2.1 Headings(模板:Barlow 900 全大写、负字距、lh .9-.95)── */
|
|
559
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
560
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
561
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
562
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
563
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
564
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
565
|
+
font-family: "Barlow", "Noto Sans SC", sans-serif;
|
|
566
|
+
color: var(--text-color);
|
|
567
|
+
font-weight: 900; /* 模板 headline 一律 900(非生成版 700) */
|
|
568
|
+
line-height: 0.95;
|
|
569
|
+
letter-spacing: -0.01em;
|
|
570
|
+
text-transform: uppercase;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
#editor .cm-content .cm-md-atxheading1 {
|
|
574
|
+
font-size: 2.6em;
|
|
575
|
+
line-height: 0.92;
|
|
576
|
+
letter-spacing: -0.02em;
|
|
577
|
+
padding-bottom: 0.25em;
|
|
578
|
+
border-bottom: 1px solid var(--border-color);
|
|
579
|
+
}
|
|
580
|
+
#editor .cm-content .cm-md-atxheading2 {
|
|
581
|
+
font-size: 1.7em;
|
|
582
|
+
padding-bottom: 0.2em;
|
|
583
|
+
border-bottom: 1px solid var(--border-color);
|
|
584
|
+
}
|
|
585
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.25em; font-weight: 700; line-height: 1.1; }
|
|
586
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.1em; font-weight: 700; line-height: 1.15; }
|
|
587
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1em; font-weight: 700; line-height: 1.2; }
|
|
588
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
589
|
+
font-size: 0.9em;
|
|
590
|
+
font-weight: 500;
|
|
591
|
+
letter-spacing: 0.06em; /* 模板 mono label 声部 */
|
|
592
|
+
font-family: var(--font-mono);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/* ── 2.2 Inline(强调只靠字重,不改色——模板无第三色)── */
|
|
596
|
+
#editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 700; }
|
|
597
|
+
#editor .cm-content .cm-md-em { font-style: italic; }
|
|
598
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
599
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
600
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
601
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
602
|
+
|
|
603
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
604
|
+
font-family: var(--font-mono);
|
|
605
|
+
background: var(--code-bg);
|
|
606
|
+
color: var(--seed-accent);
|
|
607
|
+
border-radius: 0; /* 模板:零圆角 */
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
#editor .cm-content .cm-md-marker,
|
|
611
|
+
#editor .cm-content .cm-md-quotemark,
|
|
612
|
+
#editor .cm-content .cm-md-listmark {
|
|
613
|
+
color: var(--text-muted);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
617
|
+
引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
|
|
618
|
+
否则引用里的代码行会盖住代码块底色。模板引用 = 裸大字、无边框 → 去掉左边线。 */
|
|
619
|
+
#editor .cm-content .cm-md-blockquote {
|
|
620
|
+
color: var(--text-secondary);
|
|
621
|
+
border-left: none;
|
|
622
|
+
padding-left: 16px;
|
|
623
|
+
padding-right: 16px;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
#editor .cm-content .cm-md-codeblock {
|
|
627
|
+
background: var(--code-block-bg);
|
|
628
|
+
color: var(--code-block-text);
|
|
629
|
+
padding-left: 16px;
|
|
630
|
+
padding-right: 16px;
|
|
631
|
+
}
|
|
632
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
633
|
+
border-top-left-radius: 0;
|
|
634
|
+
border-top-right-radius: 0;
|
|
635
|
+
}
|
|
636
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
637
|
+
border-bottom-left-radius: 0;
|
|
638
|
+
border-bottom-right-radius: 0;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/* ── 2.4 Table / Rule(模板:1px 发丝线 + 2px 强调底线)── */
|
|
642
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
643
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
644
|
+
padding: 10px 14px;
|
|
645
|
+
border-color: var(--border-color);
|
|
646
|
+
}
|
|
647
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
648
|
+
background: var(--table-header-bg);
|
|
649
|
+
color: var(--text-color);
|
|
650
|
+
font-weight: 700;
|
|
651
|
+
border-bottom: 2px solid var(--seed-accent); /* 模板 2px anchor 线 */
|
|
652
|
+
}
|
|
653
|
+
#editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
|
|
654
|
+
|
|
655
|
+
/* ── 2.5 中文首行缩进 ──
|
|
656
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
657
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
658
|
+
|
|
659
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
660
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
661
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
662
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
663
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
664
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
665
|
+
#editor .cm-content .cm-md-blockquote,
|
|
666
|
+
#editor .cm-content .cm-md-codeblock,
|
|
667
|
+
#editor .cm-content .cm-md-hr,
|
|
668
|
+
#editor .cm-content .cm-md-mermaid,
|
|
669
|
+
#editor .cm-content .cm-md-li-0,
|
|
670
|
+
#editor .cm-content .cm-md-li-1,
|
|
671
|
+
#editor .cm-content .cm-md-li-2,
|
|
672
|
+
#editor .cm-content .cm-md-li-3,
|
|
673
|
+
#editor .cm-content .cm-md-li-4,
|
|
674
|
+
#editor .cm-content .cm-md-li-5,
|
|
675
|
+
#editor .cm-content .cm-md-li-6 {
|
|
676
|
+
text-indent: 0;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/* ═══════════════════════════════════════════════════════════
|
|
680
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
681
|
+
HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
|
|
682
|
+
═══════════════════════════════════════════════════════════ */
|
|
683
|
+
|
|
684
|
+
.colamd-document {
|
|
685
|
+
font-family: var(--font-body);
|
|
686
|
+
font-size: 16px;
|
|
687
|
+
line-height: 1.75;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.colamd-document h1,
|
|
691
|
+
.colamd-document h2,
|
|
692
|
+
.colamd-document h3,
|
|
693
|
+
.colamd-document h4,
|
|
694
|
+
.colamd-document h5,
|
|
695
|
+
.colamd-document h6 {
|
|
696
|
+
font-family: "Barlow", "Noto Sans SC", sans-serif;
|
|
697
|
+
color: var(--text-color);
|
|
698
|
+
font-weight: 900;
|
|
699
|
+
line-height: 0.95;
|
|
700
|
+
letter-spacing: -0.01em;
|
|
701
|
+
text-transform: uppercase;
|
|
702
|
+
margin: 1.4em 0 0.45em;
|
|
703
|
+
}
|
|
704
|
+
.colamd-document h1 { font-size: 2.6em; line-height: 0.92; letter-spacing: -0.02em; margin-top: 0.4em; }
|
|
705
|
+
.colamd-document h2 { font-size: 1.7em; }
|
|
706
|
+
.colamd-document h3 { font-size: 1.25em; font-weight: 700; line-height: 1.1; }
|
|
707
|
+
.colamd-document h4 { font-size: 1.1em; font-weight: 700; line-height: 1.15; }
|
|
708
|
+
.colamd-document h5 { font-size: 1em; font-weight: 700; line-height: 1.2; }
|
|
709
|
+
.colamd-document h6 {
|
|
710
|
+
font-size: 0.9em;
|
|
711
|
+
font-weight: 500;
|
|
712
|
+
letter-spacing: 0.06em;
|
|
713
|
+
font-family: var(--font-mono);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.colamd-document strong { color: var(--text-color); font-weight: 700; }
|
|
717
|
+
.colamd-document code {
|
|
718
|
+
background: var(--code-bg);
|
|
719
|
+
color: var(--seed-accent);
|
|
720
|
+
font-family: var(--font-mono);
|
|
721
|
+
border-radius: 0;
|
|
722
|
+
}
|
|
723
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
724
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
|
|
725
|
+
.colamd-document pre { background: var(--code-block-bg); }
|
|
726
|
+
.colamd-document pre code { color: var(--code-block-text); }
|
|
727
|
+
.colamd-document blockquote {
|
|
728
|
+
background: transparent; /* 模板引用 = 裸大字,无面板 */
|
|
729
|
+
color: var(--text-color);
|
|
730
|
+
border-left: none;
|
|
731
|
+
padding: 0;
|
|
732
|
+
}
|
|
733
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
734
|
+
.colamd-document th,
|
|
735
|
+
.colamd-document td {
|
|
736
|
+
border-color: var(--border-color);
|
|
737
|
+
padding: 10px 14px;
|
|
738
|
+
}
|
|
739
|
+
.colamd-document th {
|
|
740
|
+
background: var(--table-header-bg);
|
|
741
|
+
font-weight: 700;
|
|
742
|
+
border-bottom: 2px solid var(--seed-accent);
|
|
743
|
+
}
|
|
744
|
+
.colamd-document hr { border-top-color: var(--border-color); }
|
|
745
|
+
|
|
746
|
+
.colamd-document p { text-indent: 2em; }
|
|
747
|
+
.colamd-document li p,
|
|
748
|
+
.colamd-document td p,
|
|
749
|
+
.colamd-document th p,
|
|
750
|
+
.colamd-document blockquote p {
|
|
751
|
+
text-indent: 0;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/* ═══════════════════════════════════════════════════════════
|
|
755
|
+
SECTION 4 — Print
|
|
756
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
757
|
+
═══════════════════════════════════════════════════════════ */
|
|
758
|
+
|
|
759
|
+
@media print {
|
|
760
|
+
html,
|
|
761
|
+
body {
|
|
762
|
+
background: var(--bg-color);
|
|
763
|
+
color: var(--text-color);
|
|
764
|
+
-webkit-print-color-adjust: exact;
|
|
765
|
+
print-color-adjust: exact;
|
|
766
|
+
}
|
|
767
|
+
}
|