@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,700 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Pin & Paper(别针与纸 · 黄纸蓝墨手写拼贴)
|
|
3
|
+
* 来源:D:\workspace\git\beautiful-html-templates\templates\pin-and-paper\
|
|
4
|
+
* template.html + design.md(黄色便签纸 + 别针插画 + 墨蓝手写体 Caveat)
|
|
5
|
+
* colors: paper #EFE56A / paper-2 #F5ECA0 / paper-3 #E8D85A / cream #F8F1D6
|
|
6
|
+
* kraft #C9A66B / ink #1F3A8A / ink-soft #2D4FB8 / ink-line #3457C4
|
|
7
|
+
* red #C2342B(别针红)/ olive #6B7A2E / orange #D8702A
|
|
8
|
+
* fonts: Caveat(手写标题)/ Space Grotesk(正文)/ DM Mono(标签与代码)
|
|
9
|
+
* 0.6.1 整理:seed 色板按模板真实色重推(accent 改别针红并加深保对比度,
|
|
10
|
+
* 链接用 ink-line 蓝),双 :root 合并,h1 爆字号修复为可读阶梯,
|
|
11
|
+
* selection/highlight 改蓝墨水渍/kraft 胶带。
|
|
12
|
+
* paradigm 备案(模板刻意气质,与 8-bit-orbit 同理):
|
|
13
|
+
* 黄纸 #EFE56A 高饱和 → SL-01/SL-02 为 ERRORS 但属主题身份,不中性化;
|
|
14
|
+
* kraft 边框 NT-03 警告同理。CR-04/SL-04/SL-03/NT-01 已修正过线。
|
|
15
|
+
*
|
|
16
|
+
* 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
|
|
17
|
+
* SECTION 1.5 为幻灯片 --slide-* 令牌)
|
|
18
|
+
*
|
|
19
|
+
* 两条硬规矩:
|
|
20
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
21
|
+
* 编辑器继承不到。
|
|
22
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
23
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
24
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
25
|
+
*
|
|
26
|
+
* ═══════════════════════════════════════════════════════════
|
|
27
|
+
* SECTION 1 — Design Tokens
|
|
28
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
29
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
30
|
+
|
|
31
|
+
:root {
|
|
32
|
+
|
|
33
|
+
/* ── 1.1 Seed Palette ──
|
|
34
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
35
|
+
明度排序(SL-04 亮色范式):surface < panel < panelAlt;
|
|
36
|
+
muted/visible 边框全部对 yellow 纸面保 4.5:1(CR-02/NT-02)。 */
|
|
37
|
+
--seed-accent: #9E2A22; /* 别针红加深版(黄纸上 7.2:1,CR-04 过线) */
|
|
38
|
+
--seed-accent-light: #C2342B; /* 模板原红 red */
|
|
39
|
+
--seed-accent-dark: #7C1F19;
|
|
40
|
+
--seed-surface: #EFE56A; /* paper —— 黄便签纸 */
|
|
41
|
+
--seed-panel: #E0D96C; /* 纸面降档一阶(SL-04:亮色范式 surface>panel>panelAlt) */
|
|
42
|
+
--seed-panel-alt: #D0CB6F;
|
|
43
|
+
--seed-ink: #1F3A8A; /* ink —— 墨蓝正文(H≈225 轴) */
|
|
44
|
+
--seed-ink-muted: #2D4FB8; /* ink-soft 次要文字(H≈225) */
|
|
45
|
+
--seed-ink-dim: #586AA0; /* 蓝灰辅助文字(H≈225,NT-01 同轴) */
|
|
46
|
+
--seed-border: #9C8348; /* 深牛皮发丝线(对黄纸/降档纸面均可见,NT-02) */
|
|
47
|
+
--seed-border-strong: #9E2A22; /* 别针红强调边框 */
|
|
48
|
+
|
|
49
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
50
|
+
--bg-color: var(--seed-surface);
|
|
51
|
+
--text-color: var(--seed-ink);
|
|
52
|
+
--text-secondary: var(--seed-ink-muted);
|
|
53
|
+
--text-muted: var(--seed-ink-dim);
|
|
54
|
+
--border-color: var(--seed-border);
|
|
55
|
+
--link-color: #3457C4; /* ink-line 蓝链接(黄纸上比红更易读) */
|
|
56
|
+
|
|
57
|
+
--code-bg: rgba(201, 166, 107, 0.22); /* kraft 22% 行内代码托 */
|
|
58
|
+
--code-block-bg: var(--seed-panel-alt); /* cream 代码块 */
|
|
59
|
+
--code-block-text: #1F3A8A; /* ink 蓝代码 */
|
|
60
|
+
|
|
61
|
+
--blockquote-border: var(--seed-accent); /* 别针红左轨 */
|
|
62
|
+
--blockquote-bg: var(--seed-panel); /* paper-2 */
|
|
63
|
+
--table-header-bg: var(--seed-panel); /* paper-2 表头 */
|
|
64
|
+
|
|
65
|
+
--selection-bg: rgba(31, 58, 138, 0.18); /* 蓝墨水渍选区 */
|
|
66
|
+
--highlight-bg: rgba(201, 166, 107, 0.45); /* kraft 胶带高亮 */
|
|
67
|
+
|
|
68
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
69
|
+
--font-body: "Space Grotesk", "Noto Sans SC", sans-serif;
|
|
70
|
+
--font-mono: "DM Mono", "Noto Sans Mono CJK SC", monospace;
|
|
71
|
+
--editor-font-size: 18px;
|
|
72
|
+
--editor-column-width: 820px;
|
|
73
|
+
|
|
74
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
75
|
+
图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
|
|
76
|
+
--pele-bg: var(--code-block-bg);
|
|
77
|
+
--pele-fg: var(--code-block-text);
|
|
78
|
+
--pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
|
|
79
|
+
--pele-line: var(--code-block-text);
|
|
80
|
+
--pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
|
|
81
|
+
--pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
|
|
82
|
+
--pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
|
|
83
|
+
--pele-accent: var(--seed-accent);
|
|
84
|
+
--pele-radius: 6px;
|
|
85
|
+
|
|
86
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 pin-and-paper 十一页逐页复刻)──
|
|
87
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
88
|
+
模板 1920 画布 px ÷ 26 = em。标题字体 = Space Grotesk 700(模板 h1-h3
|
|
89
|
+
全部 SG;Caveat 只用于手写批注/序号/引号)。页面对照:
|
|
90
|
+
cover←P01 agenda←P02 section←P04(ink) figure←P06(ink)
|
|
91
|
+
steps←P07 matrix←P03 kpi←P09 quote←P10 closing←P11(黄纸页)
|
|
92
|
+
(P05 三列公告 / P08 对照表格与 matrix/figure 共享形态,不单列;
|
|
93
|
+
timeline/two-col 无对应页,保持上游默认。纸张噪点纹理未复刻——
|
|
94
|
+
放映容器无稳定叠加层挂点) */
|
|
95
|
+
--slide-mono: "DM Mono", "Noto Sans Mono CJK SC", monospace;
|
|
96
|
+
--slide-title-font: "Space Grotesk", "Noto Sans SC", sans-serif;
|
|
97
|
+
--slide-title-size: 3.4em; /* 内容页题 88px 中位 ÷26 */
|
|
98
|
+
--slide-title-weight: 700;
|
|
99
|
+
--slide-subhead-weight: 600;
|
|
100
|
+
--slide-title-tracking: -0.035em; /* 模板 h2 -.035em */
|
|
101
|
+
--slide-title-line-height: 1.05;
|
|
102
|
+
--slide-cover-title-size: 7.5em; /* P01 h1 196px ÷26 */
|
|
103
|
+
--slide-cover-title-line-height: 1.08;
|
|
104
|
+
--slide-cover-title-tracking: -0.04em;
|
|
105
|
+
--slide-section-title-size: 6.5em; /* P04 h2 168px ÷26 */
|
|
106
|
+
--slide-closing-title-size: 5em; /* P11 h2 130px ÷26 */
|
|
107
|
+
--slide-lead-size: 0.85em; /* 模板 sub 19-22px ÷26 */
|
|
108
|
+
--slide-kicker-size: clamp(14px, 0.94vw, 18px); /* P01 super 18px @1920 */
|
|
109
|
+
--slide-kicker-tracking: 0.22em; /* 模板 super/marker .2-.22em */
|
|
110
|
+
--slide-kicker-transform: uppercase;
|
|
111
|
+
--slide-chrome-opacity: 0.9; /* runner 全色 ink;透明度留给淡出 */
|
|
112
|
+
--slide-chrome-transform: uppercase;
|
|
113
|
+
--slide-kpi-number-size: 8.8em; /* P09 big 168px ÷26 ÷0.73(li 缩放) */
|
|
114
|
+
--slide-quote-size: 1.92em; /* P10 blockquote 50px ÷26 */
|
|
115
|
+
--slide-page-pad-x: 3.4vw; /* 模板页边距 64px @1920 */
|
|
116
|
+
--slide-page-top-pad: 104px; /* 正文顶 110px − chrome 安全区 */
|
|
117
|
+
--slide-page-top-pad-print: 90px;
|
|
118
|
+
--slide-cover-text-align: left; /* P01 标题左对齐(垂直居中) */
|
|
119
|
+
--slide-cover-lead-inline: auto;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
123
|
+
body.presenting / body.slides-printing 作用域) ═══════════════ */
|
|
124
|
+
|
|
125
|
+
/* 1.6.1 页标题声部对齐:Space Grotesk 700 墨蓝(压过文档式标题权重,
|
|
126
|
+
否则 Caveat 手写体规则会在放映时越权) */
|
|
127
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
128
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
129
|
+
font-family: var(--slide-title-font);
|
|
130
|
+
font-size: var(--slide-title-size);
|
|
131
|
+
font-weight: 700;
|
|
132
|
+
line-height: 1.05;
|
|
133
|
+
letter-spacing: var(--slide-title-tracking);
|
|
134
|
+
color: var(--text-color);
|
|
135
|
+
border-bottom: none;
|
|
136
|
+
padding-bottom: 0;
|
|
137
|
+
margin-bottom: 0.5em;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* 1.6.2 cover · P01:黄纸居中舞台 + 196px 墨蓝标题 + mono super */
|
|
141
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
142
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title {
|
|
143
|
+
font-size: var(--slide-cover-title-size);
|
|
144
|
+
line-height: 1.08;
|
|
145
|
+
letter-spacing: -0.04em;
|
|
146
|
+
color: var(--text-color);
|
|
147
|
+
max-width: 14ch;
|
|
148
|
+
}
|
|
149
|
+
body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
150
|
+
body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
|
|
151
|
+
color: var(--text-color);
|
|
152
|
+
opacity: 0.85;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* 1.6.3 agenda · P02:页题 96px 左上;行式条目 = 虚线底线(.row),
|
|
156
|
+
mono 序号 22px、SG 600 章名 44px、meta mono 15px */
|
|
157
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title,
|
|
158
|
+
body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
|
|
159
|
+
font-size: 3.7em; /* 96px ÷26 */
|
|
160
|
+
}
|
|
161
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
162
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
163
|
+
font-size: 0.62em;
|
|
164
|
+
margin: 0;
|
|
165
|
+
padding: 1.35em 0;
|
|
166
|
+
border-top: none;
|
|
167
|
+
border-bottom: 1.5px dashed rgba(31, 58, 138, 0.45);
|
|
168
|
+
}
|
|
169
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
170
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
171
|
+
font-family: var(--slide-mono);
|
|
172
|
+
font-weight: 500;
|
|
173
|
+
font-size: 1.77em; /* 22px ÷26 ÷0.62 */
|
|
174
|
+
letter-spacing: 0.14em;
|
|
175
|
+
color: var(--text-color);
|
|
176
|
+
}
|
|
177
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
|
|
178
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
|
|
179
|
+
font-family: var(--slide-title-font);
|
|
180
|
+
font-size: 2.73em; /* 44px ÷26 ÷0.62 */
|
|
181
|
+
font-weight: 600;
|
|
182
|
+
letter-spacing: -0.02em;
|
|
183
|
+
color: var(--text-color);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* 1.6.4 section · P04(ink 墨蓝底):整页换墨蓝,黄纸标题 168px 底部对齐,
|
|
187
|
+
mono marker/kicker 黄纸 .22em,导语切 Caveat 手写(.scribble 36px) */
|
|
188
|
+
/* ink 页整页换墨蓝(P04/P06 原页面底色即 ink):底色必须打满整条层叠链——
|
|
189
|
+
body / #editor / .cm-editor / .cm-scroller 一律上墨蓝。上一版只挂 body 并把
|
|
190
|
+
内层透明,但漏了 #editor:平台给 #editor 画的黄纸底把 body 盖住,蓝页显成黄页 */
|
|
191
|
+
body.presenting:has(#editor[data-slide-layout='section']),
|
|
192
|
+
body.slides-printing:has(.cm-md-slide-section) {
|
|
193
|
+
background: var(--seed-ink);
|
|
194
|
+
}
|
|
195
|
+
body.presenting #editor[data-slide-layout='section'],
|
|
196
|
+
body.slides-printing:has(.cm-md-slide-section) #editor,
|
|
197
|
+
body.presenting #editor[data-slide-layout='section'] .cm-editor,
|
|
198
|
+
body.presenting #editor[data-slide-layout='section'] .cm-scroller,
|
|
199
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content,
|
|
200
|
+
body.slides-printing:has(.cm-md-slide-section) .cm-editor,
|
|
201
|
+
body.slides-printing:has(.cm-md-slide-section) .cm-scroller,
|
|
202
|
+
body.slides-printing:has(.cm-md-slide-section) .cm-content {
|
|
203
|
+
background: var(--seed-ink);
|
|
204
|
+
}
|
|
205
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content,
|
|
206
|
+
body.slides-printing .cm-md-slide-section .cm-md-page-title ~ * { color: var(--bg-color); }
|
|
207
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content {
|
|
208
|
+
justify-content: flex-end;
|
|
209
|
+
padding-bottom: 130px;
|
|
210
|
+
}
|
|
211
|
+
body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
|
|
212
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-title {
|
|
213
|
+
font-size: var(--slide-section-title-size);
|
|
214
|
+
color: var(--bg-color);
|
|
215
|
+
max-width: 12ch;
|
|
216
|
+
}
|
|
217
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
218
|
+
body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
|
|
219
|
+
color: var(--bg-color);
|
|
220
|
+
opacity: 0.8;
|
|
221
|
+
}
|
|
222
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
|
|
223
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-lead {
|
|
224
|
+
font-family: "Caveat", "Noto Sans SC", sans-serif;
|
|
225
|
+
font-size: 1.4em; /* .scribble 36px ÷26 */
|
|
226
|
+
color: var(--bg-color);
|
|
227
|
+
opacity: 0.9;
|
|
228
|
+
max-width: none;
|
|
229
|
+
}
|
|
230
|
+
body.presenting [data-slide-layout='section'] .slide-chrome,
|
|
231
|
+
body.slides-printing [data-slide-layout='section'] .slide-chrome,
|
|
232
|
+
body.presenting [data-slide-layout='section'] .slide-foot,
|
|
233
|
+
body.slides-printing [data-slide-layout='section'] .slide-foot {
|
|
234
|
+
color: var(--bg-color);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* 1.6.5 figure · P06(ink 墨蓝底):黄纸标题 110px 左栏声部;
|
|
238
|
+
Pele 图表托奶油底 + 墨蓝描边圆角框(.right 图卡) */
|
|
239
|
+
/* ink 整页背景(同 1.6.4 的整链处理) */
|
|
240
|
+
body.presenting:has(#editor[data-slide-layout='figure']),
|
|
241
|
+
body.slides-printing:has(.cm-md-slide-figure) {
|
|
242
|
+
background: var(--seed-ink);
|
|
243
|
+
}
|
|
244
|
+
body.presenting #editor[data-slide-layout='figure'],
|
|
245
|
+
body.slides-printing:has(.cm-md-slide-figure) #editor,
|
|
246
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-editor,
|
|
247
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-scroller,
|
|
248
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content,
|
|
249
|
+
body.slides-printing:has(.cm-md-slide-figure) .cm-editor,
|
|
250
|
+
body.slides-printing:has(.cm-md-slide-figure) .cm-scroller,
|
|
251
|
+
body.slides-printing:has(.cm-md-slide-figure) .cm-content {
|
|
252
|
+
background: var(--seed-ink);
|
|
253
|
+
}
|
|
254
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content,
|
|
255
|
+
body.slides-printing .cm-md-slide-figure .cm-md-page-title ~ * { color: var(--bg-color); }
|
|
256
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-title,
|
|
257
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-title {
|
|
258
|
+
font-size: 4.2em; /* 110px ÷26 */
|
|
259
|
+
color: var(--bg-color);
|
|
260
|
+
max-width: 14ch;
|
|
261
|
+
}
|
|
262
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
|
|
263
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
|
|
264
|
+
font-size: 0.81em; /* .left p 21px ÷26 */
|
|
265
|
+
color: var(--bg-color);
|
|
266
|
+
opacity: 0.85;
|
|
267
|
+
}
|
|
268
|
+
body.presenting #editor .cm-content svg.pele,
|
|
269
|
+
body.slides-printing #editor .cm-content svg.pele {
|
|
270
|
+
background: #F8F1D6;
|
|
271
|
+
border: 1.5px solid var(--seed-ink);
|
|
272
|
+
border-radius: 4px;
|
|
273
|
+
}
|
|
274
|
+
body.presenting [data-slide-layout='figure'] .slide-chrome,
|
|
275
|
+
body.slides-printing [data-slide-layout='figure'] .slide-chrome,
|
|
276
|
+
body.presenting [data-slide-layout='figure'] .slide-foot,
|
|
277
|
+
body.slides-printing [data-slide-layout='figure'] .slide-foot {
|
|
278
|
+
color: var(--bg-color);
|
|
279
|
+
}
|
|
280
|
+
/* 幽灵页码 = var(--text-color) 墨蓝,落在 ink 页上同色隐形(与标题同病)——
|
|
281
|
+
与上游 section/closing 的处理一致,figure 也整页隐藏 */
|
|
282
|
+
body.presenting:has(#editor[data-slide-layout='figure']) .slide-ghost {
|
|
283
|
+
opacity: 0;
|
|
284
|
+
}
|
|
285
|
+
/* figure 版式约定「表格为主体」:ink 页上单元格正文换黄纸色,
|
|
286
|
+
否则墨蓝 td 文字同样被墨蓝底吃掉(th 自带奶油底不受影响) */
|
|
287
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-md-table-widget td,
|
|
288
|
+
body.slides-printing:has(.cm-md-slide-figure) .cm-md-table-widget td {
|
|
289
|
+
color: var(--bg-color);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* 1.6.6 steps · P07:页题 88px + 副题;五列别针奶油卡(.node)——
|
|
293
|
+
墨蓝描边 + 错位实体阴影,Caveat 序号 70px、SG 700 步骤名 28px、文 18px */
|
|
294
|
+
body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
|
|
295
|
+
body.slides-printing .cm-md-slide-steps.cm-md-page-title {
|
|
296
|
+
font-size: 3.4em; /* 88px ÷26 */
|
|
297
|
+
}
|
|
298
|
+
body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
|
|
299
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
|
|
300
|
+
display: inline-block;
|
|
301
|
+
width: 17.6%; /* 五列 + 22px gap @1920 */
|
|
302
|
+
margin: 0 1.7% 1.2em 0;
|
|
303
|
+
vertical-align: top;
|
|
304
|
+
background: #F8F1D6;
|
|
305
|
+
border: 1.5px solid var(--seed-ink);
|
|
306
|
+
border-radius: 4px;
|
|
307
|
+
box-shadow: 4px 5px 0 0 var(--seed-ink);
|
|
308
|
+
border-top: 1.5px solid var(--seed-ink);
|
|
309
|
+
padding: 1.2em 0.85em 1em;
|
|
310
|
+
font-size: 0.7em; /* .node p 18px ÷26 */
|
|
311
|
+
list-style: none;
|
|
312
|
+
}
|
|
313
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
|
|
314
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
|
|
315
|
+
display: inline;
|
|
316
|
+
font-family: "Caveat", "Noto Sans SC", sans-serif;
|
|
317
|
+
font-weight: 700;
|
|
318
|
+
font-size: 3.85em; /* 70px ÷26 ÷0.7 */
|
|
319
|
+
line-height: 0.9;
|
|
320
|
+
color: var(--seed-ink);
|
|
321
|
+
margin-right: 0.3em;
|
|
322
|
+
}
|
|
323
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
|
|
324
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
|
|
325
|
+
display: block;
|
|
326
|
+
border: none;
|
|
327
|
+
border-radius: 0;
|
|
328
|
+
background: transparent;
|
|
329
|
+
padding: 0;
|
|
330
|
+
min-width: 0;
|
|
331
|
+
font-family: var(--slide-title-font);
|
|
332
|
+
font-size: 1.54em; /* 28px ÷26 ÷0.7 */
|
|
333
|
+
font-weight: 700;
|
|
334
|
+
letter-spacing: -0.015em;
|
|
335
|
+
color: var(--seed-ink);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* 1.6.7 matrix · P03(notecards):页题 84px;三列奶油便签卡——
|
|
339
|
+
墨蓝框 + 5px 6px 错位阴影;卡名 SG 700 38px、文 20px、num mono 16px */
|
|
340
|
+
body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title,
|
|
341
|
+
body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
|
|
342
|
+
font-size: 3.2em; /* 84px ÷26 */
|
|
343
|
+
}
|
|
344
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
345
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
346
|
+
width: 30.7%; /* 三列 + 32px gap @1920 */
|
|
347
|
+
margin: 0 1.7% 1.2em 0;
|
|
348
|
+
background: #F8F1D6;
|
|
349
|
+
border: 1.5px solid var(--seed-ink);
|
|
350
|
+
border-radius: 4px;
|
|
351
|
+
box-shadow: 5px 6px 0 0 var(--seed-ink);
|
|
352
|
+
padding: 1.4em 1.1em 1.1em;
|
|
353
|
+
font-size: 0.77em; /* .card p 20px ÷26 */
|
|
354
|
+
vertical-align: top;
|
|
355
|
+
}
|
|
356
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
|
|
357
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
|
|
358
|
+
font-family: var(--slide-mono);
|
|
359
|
+
font-weight: 500;
|
|
360
|
+
font-size: 0.8em; /* .card .num 16px ÷26 ÷0.77 */
|
|
361
|
+
letter-spacing: 0.2em;
|
|
362
|
+
text-transform: uppercase;
|
|
363
|
+
color: var(--text-secondary);
|
|
364
|
+
}
|
|
365
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
|
|
366
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
|
|
367
|
+
font-family: var(--slide-title-font);
|
|
368
|
+
font-size: 1.92em; /* 38px ÷26 ÷0.77 */
|
|
369
|
+
font-weight: 700;
|
|
370
|
+
line-height: 1.02;
|
|
371
|
+
letter-spacing: -0.02em;
|
|
372
|
+
color: var(--seed-ink);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/* 1.6.8 kpi · P09(stats):页题 92px;奶油卡 + 168px SG 700 墨蓝大数字
|
|
376
|
+
(行高 .85);卡说明 19px(.stat) */
|
|
377
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
|
|
378
|
+
body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
|
|
379
|
+
font-size: 3.5em; /* 92px ÷26 */
|
|
380
|
+
}
|
|
381
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
|
|
382
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
|
|
383
|
+
width: 30.7%;
|
|
384
|
+
margin: 0 1.7% 1.2em 0;
|
|
385
|
+
background: #F8F1D6;
|
|
386
|
+
border: 1.5px solid var(--seed-ink);
|
|
387
|
+
border-radius: 4px;
|
|
388
|
+
box-shadow: 5px 6px 0 0 var(--seed-ink);
|
|
389
|
+
padding: 1.3em 1.15em;
|
|
390
|
+
font-size: 0.73em; /* .stat p 19px ÷26 */
|
|
391
|
+
vertical-align: top;
|
|
392
|
+
display: inline-block;
|
|
393
|
+
}
|
|
394
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
|
|
395
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
|
|
396
|
+
font-size: var(--slide-kpi-number-size);
|
|
397
|
+
font-weight: 700;
|
|
398
|
+
line-height: 0.85;
|
|
399
|
+
letter-spacing: -0.04em;
|
|
400
|
+
color: var(--seed-ink);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/* 1.6.9 quote · P10(voice):奶油面板声部——引用行奶油底 + 墨蓝字
|
|
404
|
+
(.panel 底),Caveat 巨引号 360px 墨蓝;署名行 mono 18px 大写(.who) */
|
|
405
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
406
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
407
|
+
font-family: var(--slide-title-font);
|
|
408
|
+
font-weight: 500;
|
|
409
|
+
font-size: var(--slide-quote-size);
|
|
410
|
+
line-height: 1.1;
|
|
411
|
+
letter-spacing: -0.02em;
|
|
412
|
+
color: var(--seed-ink);
|
|
413
|
+
background: #F8F1D6;
|
|
414
|
+
padding-left: 3em;
|
|
415
|
+
padding-right: 3em;
|
|
416
|
+
}
|
|
417
|
+
body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
418
|
+
body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
419
|
+
font-family: "Caveat", "Noto Sans SC", sans-serif;
|
|
420
|
+
font-weight: 700;
|
|
421
|
+
font-size: 13.8em; /* qmark 360px ÷26 */
|
|
422
|
+
line-height: 0.6;
|
|
423
|
+
color: var(--seed-ink);
|
|
424
|
+
}
|
|
425
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
426
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
427
|
+
margin-top: 1.2em;
|
|
428
|
+
font-family: var(--slide-mono);
|
|
429
|
+
font-weight: 500;
|
|
430
|
+
font-size: 0.7em; /* .who 18px ÷26 */
|
|
431
|
+
letter-spacing: 0.14em;
|
|
432
|
+
text-transform: uppercase;
|
|
433
|
+
color: var(--seed-ink);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* 1.6.10 closing · P11(CTA):原 HTML 页面底色是黄纸(墨蓝只在左 pane,
|
|
437
|
+
单栏版式无法复刻 pane 切分)——整页保持黄纸 + 墨蓝文字,对照原页取
|
|
438
|
+
「黄纸底 + 墨蓝 SG 标题 130px + 虚线墨蓝步骤(Caveat 序号 60px)」形态 */
|
|
439
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
|
|
440
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title {
|
|
441
|
+
font-size: var(--slide-closing-title-size);
|
|
442
|
+
line-height: 1.05;
|
|
443
|
+
color: var(--text-color);
|
|
444
|
+
}
|
|
445
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
446
|
+
body.slides-printing .cm-md-slide-closing .cm-md-page-title[data-slide-kicker]::before {
|
|
447
|
+
color: var(--text-color);
|
|
448
|
+
opacity: 0.85;
|
|
449
|
+
}
|
|
450
|
+
body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
|
|
451
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
|
|
452
|
+
font-size: 0.7em;
|
|
453
|
+
border-top: 1.5px dashed rgba(31, 58, 138, 0.45);
|
|
454
|
+
border-bottom: none;
|
|
455
|
+
padding: 0.9em 0;
|
|
456
|
+
margin: 0;
|
|
457
|
+
}
|
|
458
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
|
|
459
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
|
|
460
|
+
font-family: "Caveat", "Noto Sans SC", sans-serif;
|
|
461
|
+
font-weight: 700;
|
|
462
|
+
font-size: 3.3em; /* 60px ÷26 ÷0.7 */
|
|
463
|
+
line-height: 0.9;
|
|
464
|
+
color: var(--text-color);
|
|
465
|
+
margin-right: 0.4em;
|
|
466
|
+
}
|
|
467
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
|
|
468
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
|
|
469
|
+
font-family: var(--slide-title-font);
|
|
470
|
+
font-size: 1.21em; /* 22px ÷26 ÷0.7 */
|
|
471
|
+
font-weight: 700;
|
|
472
|
+
color: var(--text-color);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* 1.6.11 chrome · runner/footer:DM Mono 18px/15px .12-.14em 大写(.top/.footer) */
|
|
476
|
+
body.presenting .slide-chrome,
|
|
477
|
+
body.slides-printing .slide-chrome {
|
|
478
|
+
font-size: clamp(14px, 0.94vw, 18px);
|
|
479
|
+
letter-spacing: 0.12em;
|
|
480
|
+
color: var(--text-color);
|
|
481
|
+
}
|
|
482
|
+
body.presenting .slide-foot,
|
|
483
|
+
body.slides-printing .slide-foot {
|
|
484
|
+
font-size: clamp(12px, 0.78vw, 15px);
|
|
485
|
+
letter-spacing: 0.14em;
|
|
486
|
+
opacity: 0.65;
|
|
487
|
+
color: var(--text-color);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/* ═══════════════════════════════════════════════════════════
|
|
491
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
492
|
+
═══════════════════════════════════════════════════════════ */
|
|
493
|
+
|
|
494
|
+
#editor .cm-content {
|
|
495
|
+
font-family: var(--font-body);
|
|
496
|
+
font-size: var(--editor-font-size);
|
|
497
|
+
line-height: 1.6;
|
|
498
|
+
color: var(--text-color);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* ── 2.1 Headings(Caveat 手写声部;x-height 小,字号阶梯整体上调一档)── */
|
|
502
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
503
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
504
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
505
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
506
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
507
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
508
|
+
font-family: "Caveat", "Noto Sans SC", sans-serif;
|
|
509
|
+
color: var(--text-color);
|
|
510
|
+
font-weight: 700;
|
|
511
|
+
line-height: 1.2;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
#editor .cm-content .cm-md-atxheading1 {
|
|
515
|
+
font-size: 3.2em;
|
|
516
|
+
padding-bottom: 0.3em;
|
|
517
|
+
border-bottom: 2px solid var(--border-color);
|
|
518
|
+
}
|
|
519
|
+
#editor .cm-content .cm-md-atxheading2 {
|
|
520
|
+
font-size: 2.4em;
|
|
521
|
+
padding-bottom: 0.25em;
|
|
522
|
+
border-bottom: 1px solid var(--border-color);
|
|
523
|
+
}
|
|
524
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.9em; }
|
|
525
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.45em; }
|
|
526
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.15em; }
|
|
527
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
528
|
+
font-size: 1em;
|
|
529
|
+
color: var(--text-secondary);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/* ── 2.2 Inline ── */
|
|
533
|
+
#editor .cm-content .cm-md-strong { color: var(--link-color); font-weight: 700; }
|
|
534
|
+
#editor .cm-content .cm-md-em { font-style: italic; }
|
|
535
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
536
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
537
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
538
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
539
|
+
|
|
540
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
541
|
+
font-family: var(--font-mono);
|
|
542
|
+
background: var(--code-bg);
|
|
543
|
+
color: var(--text-color);
|
|
544
|
+
border-radius: 3px;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
#editor .cm-content .cm-md-marker,
|
|
548
|
+
#editor .cm-content .cm-md-quotemark,
|
|
549
|
+
#editor .cm-content .cm-md-listmark {
|
|
550
|
+
color: var(--text-muted);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
554
|
+
引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
|
|
555
|
+
否则引用里的代码行会盖住代码块底色。 */
|
|
556
|
+
#editor .cm-content .cm-md-blockquote {
|
|
557
|
+
color: var(--text-secondary);
|
|
558
|
+
border-left: 3px solid var(--blockquote-border);
|
|
559
|
+
padding-left: 16px;
|
|
560
|
+
padding-right: 16px;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
#editor .cm-content .cm-md-codeblock {
|
|
564
|
+
background: var(--code-block-bg);
|
|
565
|
+
color: var(--code-block-text);
|
|
566
|
+
padding-left: 16px;
|
|
567
|
+
padding-right: 16px;
|
|
568
|
+
}
|
|
569
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
570
|
+
border-top-left-radius: 6px;
|
|
571
|
+
border-top-right-radius: 6px;
|
|
572
|
+
}
|
|
573
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
574
|
+
border-bottom-left-radius: 6px;
|
|
575
|
+
border-bottom-right-radius: 6px;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/* ── 2.4 Table / Rule ── */
|
|
579
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
580
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
581
|
+
border-color: var(--border-color);
|
|
582
|
+
}
|
|
583
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
584
|
+
background: var(--table-header-bg);
|
|
585
|
+
color: var(--text-color);
|
|
586
|
+
font-weight: 700;
|
|
587
|
+
border-bottom: 2px solid var(--link-color);
|
|
588
|
+
}
|
|
589
|
+
#editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
|
|
590
|
+
|
|
591
|
+
/* ── 2.5 中文首行缩进 ──
|
|
592
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
593
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
594
|
+
|
|
595
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
596
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
597
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
598
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
599
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
600
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
601
|
+
#editor .cm-content .cm-md-blockquote,
|
|
602
|
+
#editor .cm-content .cm-md-codeblock,
|
|
603
|
+
#editor .cm-content .cm-md-hr,
|
|
604
|
+
#editor .cm-content .cm-md-mermaid,
|
|
605
|
+
#editor .cm-content .cm-md-li-0,
|
|
606
|
+
#editor .cm-content .cm-md-li-1,
|
|
607
|
+
#editor .cm-content .cm-md-li-2,
|
|
608
|
+
#editor .cm-content .cm-md-li-3,
|
|
609
|
+
#editor .cm-content .cm-md-li-4,
|
|
610
|
+
#editor .cm-content .cm-md-li-5,
|
|
611
|
+
#editor .cm-content .cm-md-li-6 {
|
|
612
|
+
text-indent: 0;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/* ═══════════════════════════════════════════════════════════
|
|
616
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
617
|
+
HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
|
|
618
|
+
═══════════════════════════════════════════════════════════ */
|
|
619
|
+
|
|
620
|
+
.colamd-document {
|
|
621
|
+
font-family: var(--font-body);
|
|
622
|
+
font-size: var(--editor-font-size);
|
|
623
|
+
line-height: 1.6;
|
|
624
|
+
background: var(--bg-color);
|
|
625
|
+
color: var(--text-color);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.colamd-document h1,
|
|
629
|
+
.colamd-document h2,
|
|
630
|
+
.colamd-document h3,
|
|
631
|
+
.colamd-document h4,
|
|
632
|
+
.colamd-document h5,
|
|
633
|
+
.colamd-document h6 {
|
|
634
|
+
font-family: "Caveat", "Noto Sans SC", sans-serif;
|
|
635
|
+
color: var(--text-color);
|
|
636
|
+
font-weight: 700;
|
|
637
|
+
line-height: 1.2;
|
|
638
|
+
margin: 1.2em 0 0.5em;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.colamd-document h1 {
|
|
642
|
+
font-size: 3.2em;
|
|
643
|
+
padding-bottom: 0.3em;
|
|
644
|
+
border-bottom: 2px solid var(--border-color);
|
|
645
|
+
margin-top: 0.4em;
|
|
646
|
+
}
|
|
647
|
+
.colamd-document h2 {
|
|
648
|
+
font-size: 2.4em;
|
|
649
|
+
padding-bottom: 0.25em;
|
|
650
|
+
border-bottom: 1px solid var(--border-color);
|
|
651
|
+
}
|
|
652
|
+
.colamd-document h3 { font-size: 1.9em; }
|
|
653
|
+
.colamd-document h4 { font-size: 1.45em; }
|
|
654
|
+
.colamd-document h5 { font-size: 1.15em; }
|
|
655
|
+
.colamd-document h6 { font-size: 1em; color: var(--text-secondary); }
|
|
656
|
+
|
|
657
|
+
.colamd-document strong { color: var(--link-color); }
|
|
658
|
+
.colamd-document code {
|
|
659
|
+
background: var(--code-bg);
|
|
660
|
+
color: var(--text-color);
|
|
661
|
+
font-family: var(--font-mono);
|
|
662
|
+
}
|
|
663
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
664
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
|
|
665
|
+
.colamd-document pre { background: var(--code-block-bg); }
|
|
666
|
+
.colamd-document pre code { color: var(--code-block-text); }
|
|
667
|
+
.colamd-document blockquote {
|
|
668
|
+
background: var(--blockquote-bg);
|
|
669
|
+
color: var(--text-secondary);
|
|
670
|
+
border-left: 3px solid var(--blockquote-border);
|
|
671
|
+
}
|
|
672
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
673
|
+
.colamd-document th {
|
|
674
|
+
background: var(--table-header-bg);
|
|
675
|
+
border-bottom: 2px solid var(--link-color);
|
|
676
|
+
}
|
|
677
|
+
.colamd-document hr { border-top-color: var(--border-color); }
|
|
678
|
+
|
|
679
|
+
.colamd-document p { text-indent: 2em; }
|
|
680
|
+
.colamd-document li p,
|
|
681
|
+
.colamd-document td p,
|
|
682
|
+
.colamd-document th p,
|
|
683
|
+
.colamd-document blockquote p {
|
|
684
|
+
text-indent: 0;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/* ═══════════════════════════════════════════════════════════
|
|
688
|
+
SECTION 4 — Print
|
|
689
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
690
|
+
═══════════════════════════════════════════════════════════ */
|
|
691
|
+
|
|
692
|
+
@media print {
|
|
693
|
+
html,
|
|
694
|
+
body {
|
|
695
|
+
background: var(--bg-color);
|
|
696
|
+
color: var(--text-color);
|
|
697
|
+
-webkit-print-color-adjust: exact;
|
|
698
|
+
print-color-adjust: exact;
|
|
699
|
+
}
|
|
700
|
+
}
|