@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,838 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Neo-Grid Bold(逐页版式复刻版)
|
|
3
|
+
* Editorial neo-brutalism — neon-lemon panels on putty-ecru, ink structure,
|
|
4
|
+
* Space Grotesk 700 uppercase + JetBrains Mono labels, zero radius/shadow.
|
|
5
|
+
*
|
|
6
|
+
* 来源:beautiful-html-templates/templates/neo-grid-bold/template.html(12 页)
|
|
7
|
+
* 色板(template.html :root):paper #F5F4EF(面板)/ bg #ECECE8(画布)/
|
|
8
|
+
* ink #0A0A0A / accent-lemon #E6FF3D / muted #8A8A85
|
|
9
|
+
* 字体:Space Grotesk 700(display/title/stat,大写 + 随字号加大的负字距)/
|
|
10
|
+
* Space Grotesk 400(正文混合大小写)/ JetBrains Mono 400 .08em 大写(label、页码)
|
|
11
|
+
* 造型:0 圆角、0 阴影、0 渐变(照片噪声除外),深度只靠色块相邻。
|
|
12
|
+
*
|
|
13
|
+
* paradigm 备案(与 biennale-yellow / pin-and-paper 同类,有意保留):
|
|
14
|
+
* CR-04 —— seed accent #E6FF3D 对画布 #EBEBE9 仅 1.1:1。模板明令“黄只做底/线,
|
|
15
|
+
* 永不做文字色”(design.md Don't)。故 --link-color 换柠檬加深档
|
|
16
|
+
* #5A6600(5.3:1),em/链接走加深档;荧光黄只出现在 mark 底、
|
|
17
|
+
* P06 标题 mark、P07 大引号(2px ink 描边)与面板填充,
|
|
18
|
+
* seed-accent 保留原色供底/线使用。
|
|
19
|
+
* 其余 SL-01/02/03/04、CR-01/02、NT-01/02/03、HR-01 均通过。
|
|
20
|
+
* 画布取模板 #ECECE8 去掉 1 阶黄调(#EBEBE9):HSL 饱和度 9.5%→4.8%,
|
|
21
|
+
* 肉眼不可辨;panel/panelAlt 一律 R=G>B(H 60°)以守 SL-03 同轴。
|
|
22
|
+
*
|
|
23
|
+
* 页面映射(模板 12 页 → ColaMD 版式;换算锚点 26px/em = 1080p 放映基准字号):
|
|
24
|
+
* P01 Cover → cover (h1 88px→3.38em;柠檬标题砖自绘)
|
|
25
|
+
* P02 Contents → agenda (页题 92px→3.54em;行题 36px、说明 20px)
|
|
26
|
+
* P03 Digits in numbers → kpi (页题 76px→2.92em;数字 96px→4.0em@li .92)
|
|
27
|
+
* P04 Key features → matrix (页题 88px→3.38em;卡题 30px→1.25em@li .92)
|
|
28
|
+
* P05 Market penetration→ figure (页题 84px;左墨蓝 pane + 条形图未复刻)
|
|
29
|
+
* P06 Section · Vision → section (整页 ink 底;题 132px→5.08em,导语 24px)
|
|
30
|
+
* P07 Client voice → quote (引文 38px→1.46em;大引号 96px 柠檬 + 墨描边)
|
|
31
|
+
* P08 Next steps → closing (题 124px→4.77em;三步卡 44px→2.20em@li .77)
|
|
32
|
+
* P09 Findings · Detail → matrix (与 P04 同版式,长文页不单列)
|
|
33
|
+
* P10 Retention curve → figure (与 P05 同形不单列;左柠檬 pane 未复刻)
|
|
34
|
+
* P11 Process → steps (页题 56px→2.15em;节点 26px→1.54em@li .65)
|
|
35
|
+
* P12 Comparison → figure (表格为主体:th ink 底 + 1.5px ink 线)
|
|
36
|
+
* timeline / two-col 无对应页,保持上游默认。
|
|
37
|
+
*
|
|
38
|
+
* 未复刻清单(绝对定位 / grid 面板装饰,行式 DOM 无挂点):
|
|
39
|
+
* 12×8 色块网格与 40px putty 画框;封面 QR 砖、双人像面板、3×2 目录卡;
|
|
40
|
+
* P03 左侧柠檬竖条与 stat-big 6 列 240px 巨数字;P05/P10 左色块 pane 与条形图/
|
|
41
|
+
* 折线图;P06 320px 章节序号 pane;P07 左人像 pane、柠檬署名 pane、ink blockmark;
|
|
42
|
+
* P08 柠檬头卡与 ink QR pane、第三张 ink 步卡;P09 三栏 pane 与栏头 2px 线;
|
|
43
|
+
* P11 横排六节点与周次时间轴;P12 药丸三态(yes / part / no)。
|
|
44
|
+
* 能近似者已近似:封面/收页标题自绘柠檬砖,quote 大引号,矩阵/步骤/收页卡自绘 paper 面。
|
|
45
|
+
*
|
|
46
|
+
* 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
|
|
47
|
+
*
|
|
48
|
+
* 两条硬规矩:
|
|
49
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
50
|
+
* 编辑器继承不到。
|
|
51
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
52
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
53
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
54
|
+
*
|
|
55
|
+
* ═══════════════════════════════════════════════════════════
|
|
56
|
+
* SECTION 1 — Design Tokens
|
|
57
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
58
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
59
|
+
|
|
60
|
+
:root {
|
|
61
|
+
|
|
62
|
+
/* ── 1.1 Seed Palette ──
|
|
63
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
64
|
+
画布 = 模板 40px putty 画框色 #ECECE8(去 1 阶黄调为 #EBEBE9,守 SL-01);
|
|
65
|
+
panel 取纸面与画布之间(SL-04 明度序),三层面板同守 H=60°(SL-03)。
|
|
66
|
+
paper #F5F4EF 比画布更亮,只能在卡片自绘处直接写字面色。 */
|
|
67
|
+
--seed-accent: #e6ff3d; /* accent-lemon:底/线/荧光笔,永不做文字色 */
|
|
68
|
+
--seed-accent-light: #efff8a;
|
|
69
|
+
--seed-accent-dark: #c9e000;
|
|
70
|
+
--seed-surface: #ebebe9; /* bg:画布(页面底色) */
|
|
71
|
+
--seed-panel: #e3e3de;
|
|
72
|
+
--seed-panel-alt: #cfcfca;
|
|
73
|
+
--seed-ink: #0a0a0a;
|
|
74
|
+
--seed-ink-muted: #4f4f4f; /* label opacity .7 over paper ≈ #4B4B4B */
|
|
75
|
+
--seed-ink-dim: #6b6b6b;
|
|
76
|
+
--seed-border: #a8a8a5;
|
|
77
|
+
--seed-border-strong: #0a0a0a; /* 模板:所有线一律 ink */
|
|
78
|
+
|
|
79
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
80
|
+
--bg-color: var(--seed-surface);
|
|
81
|
+
--text-color: var(--seed-ink);
|
|
82
|
+
--text-secondary: var(--seed-ink-muted);
|
|
83
|
+
--text-muted: var(--seed-ink-dim);
|
|
84
|
+
--border-color: var(--seed-border);
|
|
85
|
+
/* 柠檬加深档(H≈65°,5.3:1):模板从不用荧光黄做字,链接与 em 走这一档 */
|
|
86
|
+
--link-color: #5a6600;
|
|
87
|
+
|
|
88
|
+
--code-bg: var(--seed-panel);
|
|
89
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
90
|
+
--code-block-text: #0a0a0a;
|
|
91
|
+
|
|
92
|
+
--blockquote-border: var(--seed-ink); /* 模板:1.5px ink 细线 */
|
|
93
|
+
--blockquote-bg: #f5f4ef; /* paper 面板 */
|
|
94
|
+
--table-header-bg: var(--seed-ink); /* 模板表头 = ink 黑条 + paper 字 */
|
|
95
|
+
|
|
96
|
+
--selection-bg: rgba(230, 255, 61, 0.35);
|
|
97
|
+
--highlight-bg: var(--seed-accent); /* <mark> 荧光黄块 */
|
|
98
|
+
|
|
99
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
100
|
+
--font-body: "Space Grotesk", "Noto Sans SC", "Helvetica Neue", sans-serif;
|
|
101
|
+
--font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
102
|
+
--editor-font-size: 16px;
|
|
103
|
+
--editor-column-width: 860px;
|
|
104
|
+
|
|
105
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
106
|
+
图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。
|
|
107
|
+
模板图例乙系列是「荧光黄填充 + ink 描边」,Pele 只有单色描边,
|
|
108
|
+
故强调色取柠檬加深档保可读(黄描边在灰底上等于消失)。 */
|
|
109
|
+
--pele-bg: var(--code-block-bg);
|
|
110
|
+
--pele-fg: var(--code-block-text);
|
|
111
|
+
--pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
|
|
112
|
+
--pele-line: var(--code-block-text);
|
|
113
|
+
--pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
|
|
114
|
+
--pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
|
|
115
|
+
--pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
|
|
116
|
+
--pele-accent: var(--link-color);
|
|
117
|
+
--pele-radius: 0px; /* 模板:零圆角 */
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 neo-grid-bold 十二页逐页复刻)──
|
|
121
|
+
换算:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
122
|
+
模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点)。
|
|
123
|
+
字体体系:Space Grotesk 700 大写(display/title/stat)/
|
|
124
|
+
Space Grotesk 400 正文 / JetBrains Mono 400 .08em 大写 label。
|
|
125
|
+
行内元素先定 li 基准(= 行说明 px ÷26),行题/序号再除以 li 缩放补偿。 */
|
|
126
|
+
:root {
|
|
127
|
+
--slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
128
|
+
--slide-title-font: "Space Grotesk", "Noto Sans SC", "Helvetica Neue", sans-serif;
|
|
129
|
+
--slide-title-size: 3em; /* 内容页题 76–88px ÷26 = 2.92–3.38em,取 3em */
|
|
130
|
+
--slide-title-weight: 700;
|
|
131
|
+
--slide-subhead-weight: 700; /* 模板 subtitle 亦 700 */
|
|
132
|
+
--slide-title-tracking: -0.015em; /* .title -.015em */
|
|
133
|
+
--slide-title-line-height: 0.95; /* .title lh .95 */
|
|
134
|
+
--slide-cover-title-size: 3.38em; /* P01 h1 88px ÷26 */
|
|
135
|
+
--slide-cover-title-line-height: 0.95;
|
|
136
|
+
--slide-cover-title-tracking: -0.015em;
|
|
137
|
+
--slide-section-title-size: 5.08em; /* P06 h2 132px ÷26 */
|
|
138
|
+
--slide-closing-title-size: 4.77em; /* P08 h2 124px ÷26 */
|
|
139
|
+
--slide-lead-size: 0.85em; /* P05 导语 22px ÷26 */
|
|
140
|
+
--slide-kicker-size: clamp(11px, 0.74vw, 15px); /* label 14px @1920 */
|
|
141
|
+
--slide-kicker-tracking: 0.08em; /* .label .08em(模板下限) */
|
|
142
|
+
--slide-kicker-transform: uppercase;
|
|
143
|
+
--slide-chrome-opacity: 0.8; /* pagenum / copyright 实色偏 .85 */
|
|
144
|
+
--slide-chrome-transform: none; /* 页码「01 / 12」不大写 */
|
|
145
|
+
--slide-kpi-number-size: 4em; /* P03 stat 96px ÷26 ÷0.92(li) */
|
|
146
|
+
--slide-quote-size: 1.46em; /* P07 blockquote 38px ÷26 */
|
|
147
|
+
--slide-page-pad-x: 4vw; /* 40px 画框 + 36px 卡内距 ≈76px @1920 */
|
|
148
|
+
--slide-page-top-pad: 70px;
|
|
149
|
+
--slide-page-top-pad-print: 56px;
|
|
150
|
+
--slide-cover-text-align: left;
|
|
151
|
+
--slide-cover-lead-inline: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* ═══════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
155
|
+
body.presenting / body.slides-printing 作用域) ═══════════ */
|
|
156
|
+
|
|
157
|
+
/* 1.6.1 页标题声部对齐:Space Grotesk 700 大写、负字距、无文档式下划线。
|
|
158
|
+
编辑器规则带 id 权重会漏进放映,这里用同等 #editor 前缀重断言。 */
|
|
159
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
160
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
161
|
+
font-family: var(--slide-title-font);
|
|
162
|
+
font-size: var(--slide-title-size);
|
|
163
|
+
font-weight: 700;
|
|
164
|
+
line-height: 0.95;
|
|
165
|
+
letter-spacing: -0.015em;
|
|
166
|
+
text-transform: uppercase;
|
|
167
|
+
color: var(--text-color);
|
|
168
|
+
border-bottom: none;
|
|
169
|
+
padding-top: 0;
|
|
170
|
+
padding-bottom: 0;
|
|
171
|
+
margin-bottom: 0.42em;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* 模板正文一律顶格:把文档层的首行缩进在放映/导出里归零(文档层不受影响) */
|
|
175
|
+
body.presenting #editor .cm-content .cm-line,
|
|
176
|
+
body.slides-printing #editor .cm-content .cm-line {
|
|
177
|
+
text-indent: 0;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* 1.6.2 cover · P01:蓝本标题砖(底 5 列 × 底 3 行柠檬块)自绘,
|
|
181
|
+
88px 大写贴底左对齐;QR 砖 / 双人像面板 / blockmark 未复刻。 */
|
|
182
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content {
|
|
183
|
+
justify-content: flex-end; /* 标题砖贴底,不用 padding(上游 padding 带 !important) */
|
|
184
|
+
}
|
|
185
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
186
|
+
body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
|
|
187
|
+
display: block;
|
|
188
|
+
width: fit-content;
|
|
189
|
+
max-width: 8.5em; /* 5/12 栏宽 ≈720px @88px */
|
|
190
|
+
background: var(--seed-accent); /* 柠檬标题砖 */
|
|
191
|
+
color: var(--seed-ink);
|
|
192
|
+
padding: 0.16em 0.3em;
|
|
193
|
+
margin-bottom: 0.9em; /* title-block 距页底 80px */
|
|
194
|
+
font-size: var(--slide-cover-title-size);
|
|
195
|
+
line-height: 0.95;
|
|
196
|
+
letter-spacing: -0.015em;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* 1.6.3 agenda · P02(Contents):页题 92px;条目 = mono 序号 22px +
|
|
200
|
+
大写行题 36px + 说明 20px;模板条目是无描边 paper 卡(色块未复刻)。 */
|
|
201
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title,
|
|
202
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-page-title {
|
|
203
|
+
font-size: 3.54em; /* 92px ÷26 */
|
|
204
|
+
line-height: 0.95;
|
|
205
|
+
letter-spacing: -0.015em;
|
|
206
|
+
}
|
|
207
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
208
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
209
|
+
font-size: 0.77em; /* 说明 20px ÷26 */
|
|
210
|
+
line-height: 1.5;
|
|
211
|
+
margin: 0 0 1.1em;
|
|
212
|
+
padding: 0;
|
|
213
|
+
border-top: none;
|
|
214
|
+
list-style: none;
|
|
215
|
+
}
|
|
216
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
217
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
218
|
+
display: inline;
|
|
219
|
+
font-family: var(--slide-mono);
|
|
220
|
+
font-size: 1.1em; /* 序号 22px ÷26 ÷0.77 */
|
|
221
|
+
font-weight: 400;
|
|
222
|
+
letter-spacing: 0.08em;
|
|
223
|
+
color: var(--text-secondary);
|
|
224
|
+
margin-right: 0.5em;
|
|
225
|
+
}
|
|
226
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
|
|
227
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
|
|
228
|
+
display: block; /* 模板:序号在上、行题在中、说明在下 */
|
|
229
|
+
font-family: var(--slide-title-font);
|
|
230
|
+
font-size: 1.8em; /* 行题 36px ÷26 ÷0.77 */
|
|
231
|
+
font-weight: 700;
|
|
232
|
+
line-height: 1.05;
|
|
233
|
+
letter-spacing: -0.01em;
|
|
234
|
+
text-transform: uppercase;
|
|
235
|
+
color: var(--text-color);
|
|
236
|
+
margin-top: 0.25em;
|
|
237
|
+
margin-bottom: 0.15em;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* 1.6.4 kpi · P03(Digits in numbers):页题 76px + 荧光 mark;统计卡 =
|
|
241
|
+
paper 面板(自绘)+ 96px/0.9 大数字 + mono 24px 说明;240px 巨数字未单列。 */
|
|
242
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-page-title,
|
|
243
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-page-title {
|
|
244
|
+
font-size: 2.92em; /* 76px ÷26 */
|
|
245
|
+
line-height: 0.95;
|
|
246
|
+
letter-spacing: -0.015em;
|
|
247
|
+
}
|
|
248
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
|
|
249
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
|
|
250
|
+
width: 30%;
|
|
251
|
+
margin: 0 1.5% 1.6em 0;
|
|
252
|
+
padding: 0.9em 1.1em;
|
|
253
|
+
border-top: none;
|
|
254
|
+
border-radius: 0;
|
|
255
|
+
background: #f5f4ef; /* paper 面板(行级自绘) */
|
|
256
|
+
font-size: 0.92em; /* 说明 24px ÷26 */
|
|
257
|
+
line-height: 1.45;
|
|
258
|
+
vertical-align: top;
|
|
259
|
+
list-style: none;
|
|
260
|
+
}
|
|
261
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
|
|
262
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
|
|
263
|
+
display: block;
|
|
264
|
+
font-family: var(--slide-title-font);
|
|
265
|
+
font-size: var(--slide-kpi-number-size);
|
|
266
|
+
font-weight: 700;
|
|
267
|
+
line-height: 0.9; /* .stat-num lh .9 */
|
|
268
|
+
letter-spacing: -0.03em;
|
|
269
|
+
color: var(--text-color);
|
|
270
|
+
margin-bottom: 0.18em;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* 1.6.5 figure · P05/P10/P12:页题 76–84px(取 2.92em);图表/条形/折线是
|
|
274
|
+
grid pane 与绝对定位装饰,未复刻(图仍走上游 70% 居中)。P12 为表格主体:
|
|
275
|
+
th = ink 黑条 + paper 等宽 14px .12em,单元格 24px + 1.5px ink 分线。 */
|
|
276
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-title,
|
|
277
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-title {
|
|
278
|
+
font-size: 2.92em; /* 76px ÷26(P05 84px 同档) */
|
|
279
|
+
line-height: 0.95;
|
|
280
|
+
letter-spacing: -0.015em;
|
|
281
|
+
max-width: 14em;
|
|
282
|
+
}
|
|
283
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-lead,
|
|
284
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure.cm-md-page-lead {
|
|
285
|
+
font-size: 0.8em; /* P05 22px / P10 20px ÷26 */
|
|
286
|
+
line-height: 1.45;
|
|
287
|
+
max-width: 46ch;
|
|
288
|
+
}
|
|
289
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget table,
|
|
290
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget table {
|
|
291
|
+
border-collapse: collapse;
|
|
292
|
+
font-size: 0.92em; /* 单元格 24px ÷26 */
|
|
293
|
+
}
|
|
294
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th,
|
|
295
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th {
|
|
296
|
+
background: var(--seed-ink);
|
|
297
|
+
color: #f5f4ef;
|
|
298
|
+
font-family: var(--slide-mono);
|
|
299
|
+
font-size: 0.58em; /* 表头 14px */
|
|
300
|
+
font-weight: 400;
|
|
301
|
+
letter-spacing: 0.12em;
|
|
302
|
+
text-transform: uppercase;
|
|
303
|
+
border: 1.5px solid var(--seed-ink);
|
|
304
|
+
}
|
|
305
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td,
|
|
306
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td {
|
|
307
|
+
border: 1.5px solid var(--seed-ink);
|
|
308
|
+
line-height: 1.35;
|
|
309
|
+
}
|
|
310
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td .cm-md-strong,
|
|
311
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td .cm-md-strong {
|
|
312
|
+
text-transform: uppercase; /* 行标题 22px 大写 */
|
|
313
|
+
letter-spacing: -0.005em;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* 1.6.6 section · P06(Section · Vision)——整页 ink 底:模板该页
|
|
317
|
+
section.slide 的背景即 ink(不是 putty 画框),故须整条链上墨,
|
|
318
|
+
只挂 body 会被平台给 #editor 画的画布底反盖(蓝页显成黄页同病)。 */
|
|
319
|
+
body.presenting:has(#editor[data-slide-layout='section']),
|
|
320
|
+
body.slides-printing:has(.cm-md-slide-section) {
|
|
321
|
+
background: var(--seed-ink);
|
|
322
|
+
}
|
|
323
|
+
body.presenting #editor[data-slide-layout='section'],
|
|
324
|
+
body.slides-printing:has(.cm-md-slide-section) #editor,
|
|
325
|
+
body.presenting #editor[data-slide-layout='section'] .cm-editor,
|
|
326
|
+
body.presenting #editor[data-slide-layout='section'] .cm-scroller,
|
|
327
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content,
|
|
328
|
+
body.slides-printing:has(.cm-md-slide-section) .cm-editor,
|
|
329
|
+
body.slides-printing:has(.cm-md-slide-section) .cm-scroller,
|
|
330
|
+
body.slides-printing:has(.cm-md-slide-section) .cm-content {
|
|
331
|
+
background: var(--seed-ink);
|
|
332
|
+
}
|
|
333
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content,
|
|
334
|
+
body.slides-printing .cm-md-slide-section {
|
|
335
|
+
color: var(--bg-color); /* 墨底上的 paper 字 */
|
|
336
|
+
}
|
|
337
|
+
/* 章节题 132px / lh .9 / -.02em,右 pane 8 列宽 */
|
|
338
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
|
|
339
|
+
body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title {
|
|
340
|
+
font-size: var(--slide-section-title-size);
|
|
341
|
+
line-height: 0.9;
|
|
342
|
+
letter-spacing: -0.02em;
|
|
343
|
+
color: var(--bg-color);
|
|
344
|
+
max-width: 12ch;
|
|
345
|
+
}
|
|
346
|
+
/* 柠檬 mark:ink 字压荧光黄块(模板 h2 mark 的 0 8px 内距) */
|
|
347
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-highlight,
|
|
348
|
+
body.slides-printing .cm-md-slide-section .cm-md-highlight {
|
|
349
|
+
background: var(--seed-accent);
|
|
350
|
+
color: var(--seed-ink);
|
|
351
|
+
padding: 0 0.28em;
|
|
352
|
+
}
|
|
353
|
+
/* 墨底上的强调改用荧光黄:加深档橄榄(#5A6600)在 ink 上只有 3.1:1,
|
|
354
|
+
而柠檬对 ink 为 13:1 —— 这正是模板“黄只用于暗底文字”的唯一场合。 */
|
|
355
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-strong,
|
|
356
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-em,
|
|
357
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-listmark,
|
|
358
|
+
body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-strong,
|
|
359
|
+
body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-em,
|
|
360
|
+
body.slides-printing #editor .cm-content .cm-md-slide-section .cm-md-listmark {
|
|
361
|
+
color: var(--seed-accent);
|
|
362
|
+
}
|
|
363
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
|
|
364
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-lead {
|
|
365
|
+
font-size: 0.92em; /* 导语 24px ÷26 */
|
|
366
|
+
line-height: 1.45;
|
|
367
|
+
max-width: 48ch;
|
|
368
|
+
color: var(--bg-color);
|
|
369
|
+
opacity: 0.85;
|
|
370
|
+
}
|
|
371
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
372
|
+
body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
|
|
373
|
+
letter-spacing: 0.12em; /* .lab .12em */
|
|
374
|
+
color: var(--bg-color);
|
|
375
|
+
opacity: 0.7;
|
|
376
|
+
}
|
|
377
|
+
/* ink 页上幽灵页码(=var(--text-color) ink)同色隐形,与上游 section 一致隐藏 */
|
|
378
|
+
body.presenting:has(#editor[data-slide-layout='section']) .slide-ghost {
|
|
379
|
+
opacity: 0;
|
|
380
|
+
}
|
|
381
|
+
body.presenting:has(#editor[data-slide-layout='section']) .slide-chrome,
|
|
382
|
+
body.presenting:has(#editor[data-slide-layout='section']) .slide-foot {
|
|
383
|
+
color: var(--bg-color);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* 1.6.7 quote · P07(Client voice):引文 38px/500、正常体(模板不用斜体);
|
|
387
|
+
大引号 96px 柠檬填充 + 2px ink 描边(模板 .qmark 同款);
|
|
388
|
+
署名行 = mono 14px 大写 .08em + 30px 大写人名;人像/柠檬署名 pane 未复刻。 */
|
|
389
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
390
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
391
|
+
font-family: var(--slide-title-font);
|
|
392
|
+
font-size: var(--slide-quote-size);
|
|
393
|
+
font-style: normal;
|
|
394
|
+
font-weight: 500;
|
|
395
|
+
line-height: 1.28;
|
|
396
|
+
letter-spacing: -0.01em;
|
|
397
|
+
color: var(--text-color);
|
|
398
|
+
border-left: none;
|
|
399
|
+
padding-left: 0;
|
|
400
|
+
padding-right: 0;
|
|
401
|
+
max-width: 62%; /* 模板右 7 列 copy 面板 */
|
|
402
|
+
}
|
|
403
|
+
body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
404
|
+
body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
405
|
+
font-family: var(--slide-title-font);
|
|
406
|
+
font-size: 3.69em; /* 大引号 96px ÷26 */
|
|
407
|
+
font-style: normal;
|
|
408
|
+
font-weight: 700;
|
|
409
|
+
line-height: 0.7;
|
|
410
|
+
color: var(--seed-accent);
|
|
411
|
+
-webkit-text-stroke: 2px var(--seed-ink);
|
|
412
|
+
opacity: 1;
|
|
413
|
+
}
|
|
414
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
415
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
416
|
+
margin-top: 1.6em; /* CSS-03:纵向留白只走 margin */
|
|
417
|
+
font-family: var(--slide-mono);
|
|
418
|
+
font-size: 0.54em; /* 职务 14px ÷26 */
|
|
419
|
+
letter-spacing: 0.08em;
|
|
420
|
+
text-transform: uppercase;
|
|
421
|
+
color: var(--text-secondary);
|
|
422
|
+
}
|
|
423
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line .cm-md-strong,
|
|
424
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line .cm-md-strong {
|
|
425
|
+
display: block;
|
|
426
|
+
font-family: var(--slide-title-font);
|
|
427
|
+
font-size: 2.1em; /* 人名 30px ÷26 ÷0.54 */
|
|
428
|
+
font-weight: 700;
|
|
429
|
+
letter-spacing: -0.005em;
|
|
430
|
+
color: var(--text-color);
|
|
431
|
+
margin-top: 0.4em;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* 1.6.8 closing · P08(Next steps):124px 标题压柠檬头卡(自绘砖);
|
|
435
|
+
三步卡 = paper 面板 30% 宽,mono 16px 序号 + 44px 大写步名 + 20px 说明;
|
|
436
|
+
第三张 ink 变体与 QR pane 未复刻。上游收束页是 flex 竖列,会把卡片压成
|
|
437
|
+
单列 30% 宽,这里改回普通块流,三卡才能并排。 */
|
|
438
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content {
|
|
439
|
+
display: block;
|
|
440
|
+
}
|
|
441
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
|
|
442
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
|
|
443
|
+
display: block;
|
|
444
|
+
width: fit-content;
|
|
445
|
+
max-width: 9.5em; /* 8/12 栏宽 */
|
|
446
|
+
background: var(--seed-accent);
|
|
447
|
+
color: var(--seed-ink);
|
|
448
|
+
padding: 0.12em 0.28em;
|
|
449
|
+
font-size: var(--slide-closing-title-size);
|
|
450
|
+
line-height: 0.9;
|
|
451
|
+
letter-spacing: -0.02em;
|
|
452
|
+
}
|
|
453
|
+
body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
|
|
454
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
|
|
455
|
+
display: inline-block;
|
|
456
|
+
width: 30%;
|
|
457
|
+
margin: 1.2em 2.2% 0 0;
|
|
458
|
+
padding: 1.2em 1.3em;
|
|
459
|
+
vertical-align: top;
|
|
460
|
+
background: #f5f4ef; /* paper 步卡(行级自绘) */
|
|
461
|
+
border: none;
|
|
462
|
+
font-size: 0.77em; /* 说明 20px ÷26 */
|
|
463
|
+
line-height: 1.45;
|
|
464
|
+
color: var(--seed-ink);
|
|
465
|
+
list-style: none;
|
|
466
|
+
}
|
|
467
|
+
body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li::before,
|
|
468
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li::before {
|
|
469
|
+
content: none; /* 去掉上游 ▸ 前缀 */
|
|
470
|
+
}
|
|
471
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
|
|
472
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
|
|
473
|
+
display: block;
|
|
474
|
+
font-family: var(--slide-mono);
|
|
475
|
+
font-size: 0.8em; /* 序号 16px ÷26 ÷0.77 */
|
|
476
|
+
letter-spacing: 0.08em;
|
|
477
|
+
color: var(--text-secondary);
|
|
478
|
+
margin-bottom: 0.5em;
|
|
479
|
+
}
|
|
480
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
|
|
481
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
|
|
482
|
+
display: block;
|
|
483
|
+
font-family: var(--slide-title-font);
|
|
484
|
+
font-size: 2.2em; /* 步名 44px ÷26 ÷0.77 */
|
|
485
|
+
font-weight: 700;
|
|
486
|
+
line-height: 1;
|
|
487
|
+
letter-spacing: -0.01em;
|
|
488
|
+
text-transform: uppercase;
|
|
489
|
+
color: var(--text-color);
|
|
490
|
+
margin-bottom: 0.3em;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/* 1.6.9 steps · P11(Process):页题 56px + mono 15px 副题 46ch;
|
|
494
|
+
节点 = paper 面板(自绘):mono 15px .12em 序号 + 26px 大写节点名 + 17px 说明;
|
|
495
|
+
横排六节点与周次时间轴未复刻。 */
|
|
496
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-page-title,
|
|
497
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-title {
|
|
498
|
+
font-size: 2.15em; /* 56px ÷26 */
|
|
499
|
+
line-height: 1;
|
|
500
|
+
letter-spacing: -0.015em;
|
|
501
|
+
}
|
|
502
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-page-lead,
|
|
503
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-page-lead {
|
|
504
|
+
font-family: var(--slide-mono);
|
|
505
|
+
font-size: 0.58em; /* 副题 15px ÷26 */
|
|
506
|
+
letter-spacing: 0.08em;
|
|
507
|
+
text-transform: uppercase;
|
|
508
|
+
line-height: 1.55;
|
|
509
|
+
max-width: 46ch;
|
|
510
|
+
opacity: 0.75;
|
|
511
|
+
}
|
|
512
|
+
body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
|
|
513
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
|
|
514
|
+
display: block;
|
|
515
|
+
width: 100%;
|
|
516
|
+
margin: 0 0 0.9em;
|
|
517
|
+
padding: 1.1em 1.2em;
|
|
518
|
+
border-left: none;
|
|
519
|
+
border-bottom: none;
|
|
520
|
+
background: #f5f4ef; /* paper 节点卡(行级自绘) */
|
|
521
|
+
font-size: 0.65em; /* 说明 17px ÷26 */
|
|
522
|
+
line-height: 1.4;
|
|
523
|
+
list-style: none;
|
|
524
|
+
}
|
|
525
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
|
|
526
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
|
|
527
|
+
display: block;
|
|
528
|
+
font-family: var(--slide-mono);
|
|
529
|
+
font-size: 0.89em; /* 序号 15px ÷26 ÷0.65 */
|
|
530
|
+
letter-spacing: 0.12em;
|
|
531
|
+
color: var(--text-secondary);
|
|
532
|
+
margin-bottom: 0.6em;
|
|
533
|
+
}
|
|
534
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
|
|
535
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
|
|
536
|
+
display: block;
|
|
537
|
+
min-width: 0;
|
|
538
|
+
padding: 0;
|
|
539
|
+
border: none;
|
|
540
|
+
border-radius: 0;
|
|
541
|
+
background: transparent;
|
|
542
|
+
font-family: var(--slide-title-font);
|
|
543
|
+
font-size: 1.54em; /* 节点名 26px ÷26 ÷0.65 */
|
|
544
|
+
font-weight: 700;
|
|
545
|
+
line-height: 1.05;
|
|
546
|
+
letter-spacing: -0.005em;
|
|
547
|
+
text-transform: uppercase;
|
|
548
|
+
white-space: normal;
|
|
549
|
+
color: var(--text-color);
|
|
550
|
+
margin-bottom: 0.3em;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* 1.6.10 matrix · P04(Key features)/ P09(Findings):
|
|
554
|
+
页题 88px;三张 paper 卡(自绘,零圆角零描边),卡题 30px 大写 + 24px 说明。
|
|
555
|
+
P09 的 28px action title 与 18px 栏文同版式不单列。 */
|
|
556
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-page-title,
|
|
557
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-page-title {
|
|
558
|
+
font-size: 3.38em; /* 88px ÷26 */
|
|
559
|
+
line-height: 0.95;
|
|
560
|
+
letter-spacing: -0.015em;
|
|
561
|
+
}
|
|
562
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
563
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
564
|
+
display: inline-block;
|
|
565
|
+
width: 30%;
|
|
566
|
+
margin: 0 1.5% 1.5em 0;
|
|
567
|
+
padding: 1.1em 1.15em;
|
|
568
|
+
vertical-align: top;
|
|
569
|
+
background: #f5f4ef; /* paper 卡(行级自绘) */
|
|
570
|
+
border: none;
|
|
571
|
+
border-radius: 0;
|
|
572
|
+
font-size: 0.92em; /* 说明 24px ÷26 */
|
|
573
|
+
line-height: 1.4;
|
|
574
|
+
list-style: none;
|
|
575
|
+
}
|
|
576
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
|
|
577
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
|
|
578
|
+
display: block;
|
|
579
|
+
font-family: var(--slide-title-font);
|
|
580
|
+
font-size: 1.25em; /* 卡题 30px ÷26 ÷0.92 */
|
|
581
|
+
font-weight: 700;
|
|
582
|
+
line-height: 1.05;
|
|
583
|
+
letter-spacing: -0.005em;
|
|
584
|
+
text-transform: uppercase;
|
|
585
|
+
color: var(--text-color);
|
|
586
|
+
margin-bottom: 0.35em;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* 1.6.10b 隐藏版式内列表标记(模板三处卡都没有序号符号,序号另由 listmark 规则画) */
|
|
590
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
|
|
591
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
|
|
592
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
|
|
593
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
|
|
594
|
+
display: none;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* 1.6.11 chrome · 页码「01 / 12」与版权行:JetBrains Mono,.04em,不大写 */
|
|
598
|
+
body.presenting .slide-chrome,
|
|
599
|
+
body.slides-printing .slide-chrome {
|
|
600
|
+
font-family: var(--slide-mono);
|
|
601
|
+
font-size: clamp(12px, 0.9vw, 17px); /* pagenum 24px @1920 */
|
|
602
|
+
letter-spacing: 0.04em;
|
|
603
|
+
text-transform: none;
|
|
604
|
+
color: var(--text-color);
|
|
605
|
+
}
|
|
606
|
+
body.presenting .slide-foot,
|
|
607
|
+
body.slides-printing .slide-foot {
|
|
608
|
+
font-family: var(--slide-mono);
|
|
609
|
+
font-size: clamp(10px, 0.64vw, 12px); /* copyright 16px @1920 */
|
|
610
|
+
letter-spacing: 0.02em;
|
|
611
|
+
text-transform: none;
|
|
612
|
+
opacity: 0.85;
|
|
613
|
+
color: var(--text-color);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/* ═══════════════════════════════════════════════════════════
|
|
617
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
618
|
+
═══════════════════════════════════════════════════════════ */
|
|
619
|
+
|
|
620
|
+
#editor .cm-content {
|
|
621
|
+
font-family: var(--font-body);
|
|
622
|
+
line-height: 1.75;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/* ── 2.1 Headings(模板:display 一律 Space Grotesk 700 大写 + 负字距)── */
|
|
626
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
627
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
628
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
629
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
630
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
631
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
632
|
+
font-family: "Space Grotesk", "Noto Sans SC", "Helvetica Neue", sans-serif;
|
|
633
|
+
color: var(--text-color);
|
|
634
|
+
font-weight: 700;
|
|
635
|
+
line-height: 1.05;
|
|
636
|
+
letter-spacing: -0.015em;
|
|
637
|
+
text-transform: uppercase;
|
|
638
|
+
border-bottom: none;
|
|
639
|
+
}
|
|
640
|
+
#editor .cm-content .cm-md-atxheading1 { font-size: 2.6em; line-height: 0.95; letter-spacing: -0.02em; }
|
|
641
|
+
#editor .cm-content .cm-md-atxheading2 { font-size: 1.95em; }
|
|
642
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.5em; }
|
|
643
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.2em; letter-spacing: -0.005em; }
|
|
644
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.05em; letter-spacing: -0.005em; }
|
|
645
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
646
|
+
font-size: 0.9em;
|
|
647
|
+
font-family: var(--font-mono);
|
|
648
|
+
font-weight: 400;
|
|
649
|
+
letter-spacing: 0.08em; /* 模板 mono label */
|
|
650
|
+
color: var(--text-secondary);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/* ── 2.2 Inline(加粗永远正文色;em = 柠檬色切换但换加深档保可读)── */
|
|
654
|
+
#editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 700; }
|
|
655
|
+
#editor .cm-content .cm-md-em { font-style: normal; color: var(--link-color); }
|
|
656
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
657
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); color: var(--seed-ink); }
|
|
658
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
659
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
660
|
+
|
|
661
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
662
|
+
font-family: var(--font-mono);
|
|
663
|
+
background: var(--code-bg);
|
|
664
|
+
color: var(--text-color);
|
|
665
|
+
border-radius: 0;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
#editor .cm-content .cm-md-marker,
|
|
669
|
+
#editor .cm-content .cm-md-quotemark,
|
|
670
|
+
#editor .cm-content .cm-md-listmark {
|
|
671
|
+
color: var(--text-muted);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
675
|
+
引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
|
|
676
|
+
否则引用里的代码行会盖住代码块底色。 */
|
|
677
|
+
#editor .cm-content .cm-md-blockquote {
|
|
678
|
+
color: var(--text-secondary);
|
|
679
|
+
border-left: 1.5px solid var(--blockquote-border); /* 模板:ink 细线 */
|
|
680
|
+
padding-left: 16px;
|
|
681
|
+
padding-right: 16px;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
#editor .cm-content .cm-md-codeblock {
|
|
685
|
+
background: var(--code-block-bg);
|
|
686
|
+
color: var(--code-block-text);
|
|
687
|
+
padding-left: 16px;
|
|
688
|
+
padding-right: 16px;
|
|
689
|
+
}
|
|
690
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
691
|
+
border-top-left-radius: 0;
|
|
692
|
+
border-top-right-radius: 0;
|
|
693
|
+
}
|
|
694
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
695
|
+
border-bottom-left-radius: 0;
|
|
696
|
+
border-bottom-right-radius: 0;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/* ── 2.4 Table / Rule(模板:ink 表头黑条 + 1.5px ink 分线,零圆角)── */
|
|
700
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
701
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
702
|
+
border-color: var(--seed-ink);
|
|
703
|
+
}
|
|
704
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
705
|
+
background: var(--table-header-bg);
|
|
706
|
+
color: #f5f4ef;
|
|
707
|
+
font-family: var(--font-mono);
|
|
708
|
+
font-size: 0.78em;
|
|
709
|
+
font-weight: 400;
|
|
710
|
+
letter-spacing: 0.12em;
|
|
711
|
+
text-transform: uppercase;
|
|
712
|
+
border-bottom: 1.5px solid var(--seed-ink);
|
|
713
|
+
}
|
|
714
|
+
#editor .cm-content .cm-md-hr { border-top: 2px solid var(--seed-ink); }
|
|
715
|
+
|
|
716
|
+
/* ── 2.5 中文首行缩进 ──
|
|
717
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
718
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
719
|
+
|
|
720
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
721
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
722
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
723
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
724
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
725
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
726
|
+
#editor .cm-content .cm-md-blockquote,
|
|
727
|
+
#editor .cm-content .cm-md-codeblock,
|
|
728
|
+
#editor .cm-content .cm-md-hr,
|
|
729
|
+
#editor .cm-content .cm-md-mermaid,
|
|
730
|
+
#editor .cm-content .cm-md-li-0,
|
|
731
|
+
#editor .cm-content .cm-md-li-1,
|
|
732
|
+
#editor .cm-content .cm-md-li-2,
|
|
733
|
+
#editor .cm-content .cm-md-li-3,
|
|
734
|
+
#editor .cm-content .cm-md-li-4,
|
|
735
|
+
#editor .cm-content .cm-md-li-5,
|
|
736
|
+
#editor .cm-content .cm-md-li-6 {
|
|
737
|
+
text-indent: 0;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/* ═══════════════════════════════════════════════════════════
|
|
741
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
742
|
+
HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
|
|
743
|
+
═══════════════════════════════════════════════════════════ */
|
|
744
|
+
|
|
745
|
+
.colamd-document {
|
|
746
|
+
font-family: var(--font-body);
|
|
747
|
+
font-size: 16px;
|
|
748
|
+
line-height: 1.75;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.colamd-document h1,
|
|
752
|
+
.colamd-document h2,
|
|
753
|
+
.colamd-document h3,
|
|
754
|
+
.colamd-document h4,
|
|
755
|
+
.colamd-document h5,
|
|
756
|
+
.colamd-document h6 {
|
|
757
|
+
font-family: "Space Grotesk", "Noto Sans SC", "Helvetica Neue", sans-serif;
|
|
758
|
+
color: var(--text-color);
|
|
759
|
+
font-weight: 700;
|
|
760
|
+
line-height: 1.05;
|
|
761
|
+
letter-spacing: -0.015em;
|
|
762
|
+
text-transform: uppercase;
|
|
763
|
+
margin: 1.4em 0 0.5em;
|
|
764
|
+
}
|
|
765
|
+
.colamd-document h1 { font-size: 2.6em; line-height: 0.95; letter-spacing: -0.02em; margin-top: 0.4em; }
|
|
766
|
+
.colamd-document h2 { font-size: 1.95em; }
|
|
767
|
+
.colamd-document h3 { font-size: 1.5em; }
|
|
768
|
+
.colamd-document h4 { font-size: 1.2em; letter-spacing: -0.005em; }
|
|
769
|
+
.colamd-document h5 { font-size: 1.05em; letter-spacing: -0.005em; }
|
|
770
|
+
.colamd-document h6 {
|
|
771
|
+
font-size: 0.9em;
|
|
772
|
+
font-family: var(--font-mono);
|
|
773
|
+
font-weight: 400;
|
|
774
|
+
letter-spacing: 0.08em;
|
|
775
|
+
color: var(--text-secondary);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.colamd-document strong { color: var(--text-color); font-weight: 700; }
|
|
779
|
+
.colamd-document em { font-style: normal; color: var(--link-color); }
|
|
780
|
+
.colamd-document code {
|
|
781
|
+
background: var(--code-bg);
|
|
782
|
+
color: var(--text-color);
|
|
783
|
+
font-family: var(--font-mono);
|
|
784
|
+
border-radius: 0;
|
|
785
|
+
}
|
|
786
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
787
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: 0; }
|
|
788
|
+
.colamd-document pre { background: var(--code-block-bg); border-radius: 0; }
|
|
789
|
+
.colamd-document pre code { color: var(--code-block-text); }
|
|
790
|
+
.colamd-document blockquote {
|
|
791
|
+
background: var(--blockquote-bg);
|
|
792
|
+
color: var(--text-secondary);
|
|
793
|
+
border-left: 1.5px solid var(--blockquote-border);
|
|
794
|
+
padding: 0.4em 1.2em;
|
|
795
|
+
}
|
|
796
|
+
.colamd-document mark {
|
|
797
|
+
background: var(--highlight-bg);
|
|
798
|
+
color: var(--seed-ink);
|
|
799
|
+
padding: 0 0.15em;
|
|
800
|
+
}
|
|
801
|
+
.colamd-document th,
|
|
802
|
+
.colamd-document td {
|
|
803
|
+
border: 1.5px solid var(--seed-ink);
|
|
804
|
+
padding: 10px 14px;
|
|
805
|
+
}
|
|
806
|
+
.colamd-document th {
|
|
807
|
+
background: var(--table-header-bg);
|
|
808
|
+
color: #f5f4ef;
|
|
809
|
+
font-family: var(--font-mono);
|
|
810
|
+
font-size: 0.78em;
|
|
811
|
+
font-weight: 400;
|
|
812
|
+
letter-spacing: 0.12em;
|
|
813
|
+
text-transform: uppercase;
|
|
814
|
+
}
|
|
815
|
+
.colamd-document hr { border-top: 2px solid var(--seed-ink); }
|
|
816
|
+
|
|
817
|
+
.colamd-document p { text-indent: 2em; }
|
|
818
|
+
.colamd-document li p,
|
|
819
|
+
.colamd-document td p,
|
|
820
|
+
.colamd-document th p,
|
|
821
|
+
.colamd-document blockquote p {
|
|
822
|
+
text-indent: 0;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/* ═══════════════════════════════════════════════════════════
|
|
826
|
+
SECTION 4 — Print
|
|
827
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
828
|
+
═══════════════════════════════════════════════════════════ */
|
|
829
|
+
|
|
830
|
+
@media print {
|
|
831
|
+
html,
|
|
832
|
+
body {
|
|
833
|
+
background: var(--bg-color);
|
|
834
|
+
color: var(--text-color);
|
|
835
|
+
-webkit-print-color-adjust: exact;
|
|
836
|
+
print-color-adjust: exact;
|
|
837
|
+
}
|
|
838
|
+
}
|