@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,782 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Long Table(长桌 · 手工精修版)
|
|
3
|
+
* 来源:D:\workspace\git\beautiful-html-templates\templates\long-table\
|
|
4
|
+
* template.html + template.json + design.md(奶油纸 + 单一铁锈红 + 粗体大写
|
|
5
|
+
* Bricolage Grotesque 标题 + Fraunces 衬线正文 + 描边胶囊按钮)
|
|
6
|
+
* colors: paper #FAF1E2 / paper-d #F2E5CF / paper-vd #E8D7B6
|
|
7
|
+
* ink #B53D2A(全篇唯一墨色)/ ink-dp #8E2D1F(强调加深)
|
|
8
|
+
* fonts: Bricolage Grotesque(display 800 大写)/ Fraunces(正文、眉标、
|
|
9
|
+
* 页码、标签)/ 无等宽体
|
|
10
|
+
* 0.6.1 手工精修:seed 色板按模板真实色重推(生成版的 accent 是凭空蓝
|
|
11
|
+
* #2B579A,模板根本没有第二种颜色),strong 从蓝色收回正文墨色,h2 比 h3
|
|
12
|
+
* 还小的标题阶梯修复为 Bricolage 800 大写阶梯,引用轨 3px→1.5px,
|
|
13
|
+
* 圆角按模板归零(只有胶囊按钮用 999px,编辑器里不出现)。
|
|
14
|
+
*
|
|
15
|
+
* paradigm 备案(模板刻意身份,与 pin-and-paper 同类,有意保留):
|
|
16
|
+
* CR-01 —— ink #B53D2A on paper #FAF1E2 正文对比 5.1:1(AA 过线,WCAG AAA
|
|
17
|
+
* 7:1 未达)。模板身份就是「奶油纸上一种铁锈红」,压深到 #94291A
|
|
18
|
+
* 才够 7:1 但整套会失去暖锈红气质;深一档 #8E2D1F 只用于次要文字/
|
|
19
|
+
* 代码/表头等小字号处(7.4:1),正文大字号走原 ink。
|
|
20
|
+
* SL-01 —— 纸底 #FAF1E2 饱和度 70.6% > 5%:奶油纸就是主题身份,不中性化。
|
|
21
|
+
* SL-02 —— panel #F2E5CF 57.4% / panelAlt #E8D7B6 52.1% > 10%:同为纸面降档。
|
|
22
|
+
* NT-03 —— 边框为 ink 铁锈细线(模板 1.5px solid var(--ink) 与
|
|
23
|
+
* rgba(181,61,42,.30~.32) 内部虚线),饱和度 62.3%,暖色刻意。
|
|
24
|
+
* 已修正:SL-03(三层纸面改用模板 paper/paper-d/paper-vd,色相轴 37.5-39.6°,
|
|
25
|
+
* 偏差 ≤2.1°);CR-04(链接沿用 ink,5.1:1 ≥ 4.5)。
|
|
26
|
+
*
|
|
27
|
+
* 版式复刻要点(八页逐页见 SECTION 1.5/1.6):
|
|
28
|
+
* 1) 八页「页面」底色全部是 paper(.s-manifesto 等 section 均 background:
|
|
29
|
+
* var(--paper)),没有换底色页——因此不需要 body:has() 五层层叠链上色,
|
|
30
|
+
* 也没有 ghost / 表格 td 同色隐形问题。
|
|
31
|
+
* 2) 模板 CSS 已剥离 design.md 声明的 Fraunces italic-default(零处
|
|
32
|
+
* font-style,与 biennale-yellow / pin-and-paper 的发行版一致),正文
|
|
33
|
+
* 按实际渲染走罗马体;中文斜体在合成引擎下会变形,也不适合做正文。
|
|
34
|
+
* 3) 绝对定位装饰无行式 DOM 挂点 → 有意未复刻:P1 右半 480px 巨数字
|
|
35
|
+
* "No. 05"、P1/P4 胶囊按钮行、P1 圆形版次徽章、P3 卡顶 num/city 行与
|
|
36
|
+
* 卡底 seats/date 行、P4 右栏 1.5px 描边信息卡框、P7 状态胶囊
|
|
37
|
+
* (sold-out 反白)、P8 三个胶囊按钮、全篇纸面噪点纹理(radial-gradient
|
|
38
|
+
* 网点)与左下导航提示 nav-hint。能近似的已近似(署名行走顶部细线、
|
|
39
|
+
* closing 三列页脚、timeline 行线、quote 无引号)。
|
|
40
|
+
* 4) 无对应页的版式(kpi / steps / figure)保持上游默认样式。
|
|
41
|
+
*
|
|
42
|
+
* 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
|
|
43
|
+
*
|
|
44
|
+
* 两条硬规矩:
|
|
45
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
46
|
+
* 编辑器继承不到。
|
|
47
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
48
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
49
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
50
|
+
*
|
|
51
|
+
* ═══════════════════════════════════════════════════════════
|
|
52
|
+
* SECTION 1 — Design Tokens
|
|
53
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
54
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
55
|
+
|
|
56
|
+
:root {
|
|
57
|
+
|
|
58
|
+
/* ── 1.1 Seed Palette ──
|
|
59
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
60
|
+
模板是严格双色:只有一个 ink(铁锈红),没有任何第二强调色。
|
|
61
|
+
明度排序(SL-04 亮色范式):surface > panel > panelAlt;
|
|
62
|
+
ink-muted/ink-dim 取 ink-dp 与 ink 之间(小字号处 ≥4.5:1)。 */
|
|
63
|
+
--seed-accent: #b53d2a; /* ink —— 模板唯一墨色,兼作强调/边框 */
|
|
64
|
+
--seed-accent-light: #d8755f; /* ink 55% 压在纸上(选区/淡底用) */
|
|
65
|
+
--seed-accent-dark: #8e2d1f; /* ink-dp —— 模板强调深红 */
|
|
66
|
+
--seed-surface: #faf1e2; /* paper —— 奶油纸 */
|
|
67
|
+
--seed-panel: #f2e5cf; /* paper-d —— 降档纸面(H 37.7°) */
|
|
68
|
+
--seed-panel-alt: #e8d7b6; /* paper-vd —— 更深纸面(H 39.6°) */
|
|
69
|
+
--seed-ink: #b53d2a; /* ink —— 全篇正文/标题同色 */
|
|
70
|
+
--seed-ink-muted: #8e2d1f; /* ink-dp(纸上 7.4:1) */
|
|
71
|
+
--seed-ink-dim: #a8452f; /* ink 与 ink-dp 之间(纸上 5.4:1) */
|
|
72
|
+
--seed-border: #b53d2a; /* 模板 1px/1.5px ink 细线体系 */
|
|
73
|
+
--seed-border-strong: #b53d2a;
|
|
74
|
+
|
|
75
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
76
|
+
--bg-color: var(--seed-surface);
|
|
77
|
+
--text-color: var(--seed-ink);
|
|
78
|
+
--text-secondary: var(--seed-ink-muted);
|
|
79
|
+
--text-muted: var(--seed-ink-dim);
|
|
80
|
+
--border-color: var(--seed-border);
|
|
81
|
+
--link-color: var(--seed-accent); /* 模板无第二色:链接仍是 ink(5.1:1) */
|
|
82
|
+
|
|
83
|
+
--code-bg: var(--seed-panel);
|
|
84
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
85
|
+
--code-block-text: #8e2d1f; /* paper-vd 上 5.8:1 */
|
|
86
|
+
|
|
87
|
+
--blockquote-border: #b53d2a; /* 1.5px ink 左轨(模板细线体系) */
|
|
88
|
+
--blockquote-bg: var(--seed-panel); /* paper-d */
|
|
89
|
+
--table-header-bg: var(--seed-panel); /* paper-d 表头 */
|
|
90
|
+
|
|
91
|
+
--selection-bg: rgba(181, 61, 42, 0.16); /* ink 16% 选区 */
|
|
92
|
+
--highlight-bg: var(--seed-panel-alt); /* paper-vd 荧光/标记 */
|
|
93
|
+
|
|
94
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
95
|
+
--font-body: "Fraunces", "Noto Serif SC", Georgia, serif;
|
|
96
|
+
--font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
97
|
+
--editor-font-size: 16px;
|
|
98
|
+
--editor-column-width: 820px;
|
|
99
|
+
|
|
100
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
101
|
+
图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。
|
|
102
|
+
模板零圆角(只有 CTA 胶囊 999px),图表托底也走直角。 */
|
|
103
|
+
--pele-bg: var(--code-block-bg);
|
|
104
|
+
--pele-fg: var(--code-block-text);
|
|
105
|
+
--pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
|
|
106
|
+
--pele-line: var(--code-block-text);
|
|
107
|
+
--pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
|
|
108
|
+
--pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
|
|
109
|
+
--pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
|
|
110
|
+
--pele-accent: var(--seed-accent);
|
|
111
|
+
--pele-radius: 0px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 long-table 八页逐页复刻)──
|
|
115
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
116
|
+
模板 1920×1080 画布上 clamp 的实际落点 px ÷ 26 = em(不取 clamp 上限)。
|
|
117
|
+
字体体系:Bricolage Grotesque 800 大写(display,行高 .90-.92、字距
|
|
118
|
+
-.012em)/ Fraunces 400(正文、眉标、页码、标签——模板没有等宽体,
|
|
119
|
+
故 --slide-mono 直接指向 Fraunces 栈)。
|
|
120
|
+
页面对照:
|
|
121
|
+
cover←P1 封面 section←P2 宣言(大字标题 + 右栏段落)
|
|
122
|
+
matrix←P3 版次索引 two-col←P4 主推版次(左叙述 / 右信息行)
|
|
123
|
+
agenda←P5 菜单 quote←P6 引言
|
|
124
|
+
timeline←P7 日程 closing←P8 收束 + 三列页脚
|
|
125
|
+
(kpi / steps / figure 无对应页,保持上游默认。P2 与 P4 都是「大字 +
|
|
126
|
+
段落」的双栏页,按是否有分行清单分别落 section / two-col。)
|
|
127
|
+
字号落点:封面 162px→6.23em · 宣言 140px→5.4em · 索引/日程/收束
|
|
128
|
+
108px→4.15em · 主推 113px→4.35em · 菜单 90.7px→3.49em · 引言 79.9px→3.07em。
|
|
129
|
+
全八页纸底,无 ink 页——不做页面级背景覆写(也就没有层叠覆盖问题)。 */
|
|
130
|
+
:root {
|
|
131
|
+
--slide-mono: "Fraunces", Georgia, "Noto Serif SC", serif;
|
|
132
|
+
--slide-title-font: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
|
|
133
|
+
--slide-title-size: 4.15em; /* 内容页题 108px ÷26(P3/P7/P8) */
|
|
134
|
+
--slide-title-weight: 800; /* 模板 display 一律 800 */
|
|
135
|
+
--slide-subhead-weight: 700;
|
|
136
|
+
--slide-title-tracking: -0.012em; /* 模板 display -.012em */
|
|
137
|
+
--slide-title-line-height: 0.95;
|
|
138
|
+
--slide-cover-title-size: 6.23em; /* P1 min(8.8vw,15vh)=162px ÷26 */
|
|
139
|
+
--slide-cover-title-line-height: 0.92;
|
|
140
|
+
--slide-cover-title-tracking: -0.012em;
|
|
141
|
+
--slide-section-title-size: 5.4em; /* P2 min(7.6vw,13vh)=140px ÷26 */
|
|
142
|
+
--slide-closing-title-size: 4.15em; /* P8 min(6.4vw,10vh)=108px ÷26 */
|
|
143
|
+
--slide-lead-size: 1.08em; /* P2 段落 28px ÷26 */
|
|
144
|
+
--slide-kicker-size: clamp(14px, 1.05vw, 18px); /* 眉标/lab-tag 18px @1920 */
|
|
145
|
+
--slide-kicker-tracking: 0.02em; /* 模板眉标不加大写、不追字 */
|
|
146
|
+
--slide-kicker-transform: none;
|
|
147
|
+
--slide-chrome-opacity: 0.55; /* nav-hint 45% 档 */
|
|
148
|
+
--slide-chrome-transform: none;
|
|
149
|
+
--slide-kpi-number-size: 3.8em; /* 无 KPI 页,沿用上游档位 */
|
|
150
|
+
--slide-quote-size: 3.07em; /* P6 qbody min(4.4vw,7.4vh)=79.9px ÷26 */
|
|
151
|
+
--slide-page-pad-x: 5vw; /* P1/P3 页边距 96px @1920 */
|
|
152
|
+
--slide-page-top-pad: 104px; /* 内容顶 inset 10vh=108px − chrome 安全区 */
|
|
153
|
+
--slide-page-top-pad-print: 92px;
|
|
154
|
+
--slide-cover-text-align: left; /* P1 标题左对齐 */
|
|
155
|
+
--slide-cover-lead-inline: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
159
|
+
body.presenting / body.slides-printing 作用域) ═══════════════ */
|
|
160
|
+
|
|
161
|
+
/* 1.6.1 页标题声部对齐:Bricolage Grotesque 800 大写铁锈红;压掉文档式
|
|
162
|
+
h1/h2 的 border-bottom 与行高(编辑器规则带 id 权重会漏进放映) */
|
|
163
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
164
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
165
|
+
font-family: var(--slide-title-font);
|
|
166
|
+
font-size: var(--slide-title-size);
|
|
167
|
+
font-weight: 800;
|
|
168
|
+
line-height: 0.95;
|
|
169
|
+
letter-spacing: -0.012em;
|
|
170
|
+
text-transform: uppercase;
|
|
171
|
+
color: var(--text-color);
|
|
172
|
+
border-bottom: none;
|
|
173
|
+
padding-bottom: 0;
|
|
174
|
+
margin-bottom: 0.35em;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* 眉标:模板是 Fraunces 小字大写化前的人话("A Menu, in Five Slow
|
|
178
|
+
Movements"),不追字、不全大写、走墨色 */
|
|
179
|
+
body.presenting .cm-md-page-title[data-slide-kicker]::before,
|
|
180
|
+
body.slides-printing .cm-md-page-title[data-slide-kicker]::before {
|
|
181
|
+
font-family: var(--slide-mono);
|
|
182
|
+
font-size: var(--slide-kicker-size);
|
|
183
|
+
font-weight: 400;
|
|
184
|
+
letter-spacing: 0.02em;
|
|
185
|
+
text-transform: none;
|
|
186
|
+
color: var(--text-color);
|
|
187
|
+
margin-bottom: 0.9em;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* 1.6.2 cover · P1:纸底,标题贴顶(6vh inset),tagline 沉到底部
|
|
191
|
+
(模板 .bottom-block margin-top:auto);右半 480px 巨数字"有意未复刻" */
|
|
192
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content {
|
|
193
|
+
justify-content: flex-start;
|
|
194
|
+
}
|
|
195
|
+
body.presenting #editor .cm-content .cm-md-slide-cover .cm-md-page-title,
|
|
196
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title {
|
|
197
|
+
font-size: var(--slide-cover-title-size);
|
|
198
|
+
line-height: 0.92;
|
|
199
|
+
letter-spacing: -0.012em;
|
|
200
|
+
margin-top: 4.5vh; /* 6vh inset − chrome 让位 */
|
|
201
|
+
margin-bottom: 0.18em;
|
|
202
|
+
max-width: 88%;
|
|
203
|
+
}
|
|
204
|
+
/* 封面副标题槽:模板的 "No. 05 · December · Lisbon · Edition" 标签声部 */
|
|
205
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
|
|
206
|
+
body.slides-printing .cm-md-slide-cover.cm-md-atxheading2 {
|
|
207
|
+
font-family: var(--slide-title-font);
|
|
208
|
+
font-size: 0.69em; /* 18px ÷26 */
|
|
209
|
+
font-weight: 700;
|
|
210
|
+
letter-spacing: 0.18em; /* .big-edition-lab .18em */
|
|
211
|
+
text-transform: uppercase;
|
|
212
|
+
color: var(--text-color);
|
|
213
|
+
}
|
|
214
|
+
/* 导语 = .tagline 26px,宽 40ch;模板把它压在底部区块 */
|
|
215
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
|
|
216
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
|
|
217
|
+
font-size: 1em; /* 26px ÷26 */
|
|
218
|
+
line-height: 1.35;
|
|
219
|
+
max-width: 40ch;
|
|
220
|
+
color: var(--text-color);
|
|
221
|
+
margin-top: 0.6em;
|
|
222
|
+
}
|
|
223
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
224
|
+
body.slides-printing .cm-md-slide-cover .cm-md-page-title[data-slide-kicker]::before {
|
|
225
|
+
font-size: 1.15em; /* .ed-label 30px ÷26 */
|
|
226
|
+
letter-spacing: 0.04em;
|
|
227
|
+
margin-bottom: 0.5em;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* 1.6.3 section · P2(a letter from the table):大字 140px 居左,
|
|
231
|
+
右栏三段 28px 罗马 Fraunces;圆形版次徽章 + 竖排 ed-row 未复刻 */
|
|
232
|
+
body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
|
|
233
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-title {
|
|
234
|
+
font-size: var(--slide-section-title-size);
|
|
235
|
+
line-height: 0.9; /* 模板 .h line-height .9 */
|
|
236
|
+
max-width: 10ch;
|
|
237
|
+
}
|
|
238
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
|
|
239
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-lead {
|
|
240
|
+
font-size: 1.08em; /* 28px ÷26 */
|
|
241
|
+
line-height: 1.45;
|
|
242
|
+
color: var(--text-color);
|
|
243
|
+
max-width: 52ch;
|
|
244
|
+
}
|
|
245
|
+
/* 宣言页余下的段落同样是 28px 正文色(P2 是整页单色) */
|
|
246
|
+
body.presenting #editor .cm-content .cm-md-slide-section.cm-line,
|
|
247
|
+
body.slides-printing #editor .cm-content .cm-md-slide-section.cm-line {
|
|
248
|
+
color: var(--text-color);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* 1.6.4 agenda · P5(menu / five slow movements):页题居中 90.7px,
|
|
252
|
+
眉标居中;菜目行 = 序号列 "i." + Bricolage 700 大写 28px 菜名 +
|
|
253
|
+
17px 说明 + 右侧配酒标签(无挂点),1px rgba ink .32 底线 */
|
|
254
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title,
|
|
255
|
+
body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
|
|
256
|
+
font-size: 3.49em; /* min(5vw,8.4vh)=90.7px ÷26 */
|
|
257
|
+
text-align: center;
|
|
258
|
+
}
|
|
259
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title[data-slide-kicker]::before,
|
|
260
|
+
body.slides-printing .cm-md-slide-agenda .cm-md-page-title[data-slide-kicker]::before {
|
|
261
|
+
text-align: center;
|
|
262
|
+
margin-bottom: 0.35em;
|
|
263
|
+
}
|
|
264
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
265
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
266
|
+
font-size: 0.654em; /* .desc 17px ÷26 */
|
|
267
|
+
border-top: none;
|
|
268
|
+
border-bottom: 1px solid rgba(181, 61, 42, 0.32);
|
|
269
|
+
padding: 1.41em 0; /* 24px ÷26 ÷0.654 */
|
|
270
|
+
margin: 0;
|
|
271
|
+
color: var(--text-color);
|
|
272
|
+
list-style: none;
|
|
273
|
+
}
|
|
274
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
275
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
276
|
+
font-family: var(--slide-mono);
|
|
277
|
+
font-weight: 400;
|
|
278
|
+
font-size: 1.18em; /* .num-tag 20px ÷26 ÷0.654 */
|
|
279
|
+
letter-spacing: 0;
|
|
280
|
+
color: var(--text-color);
|
|
281
|
+
margin-right: 1.2em;
|
|
282
|
+
}
|
|
283
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
|
|
284
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
|
|
285
|
+
display: block; /* .item 里 .nm 在 .desc 之上 */
|
|
286
|
+
font-family: var(--slide-title-font);
|
|
287
|
+
font-size: 1.65em; /* .nm 28px ÷26 ÷0.654 */
|
|
288
|
+
font-weight: 700;
|
|
289
|
+
line-height: 1.05;
|
|
290
|
+
letter-spacing: -0.005em;
|
|
291
|
+
text-transform: uppercase;
|
|
292
|
+
color: var(--text-color);
|
|
293
|
+
margin-bottom: 0.15em;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* 1.6.5 matrix · P3(index of editions):页题 108px + 1.5px ink 底线
|
|
297
|
+
(右上 lab-tag 无挂点);三列描边卡 = 1.5px ink 边框、零圆角、
|
|
298
|
+
32/30px 内距、Bricolage 800 大写 44px 卡名 + 17px 说明 */
|
|
299
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-page-title,
|
|
300
|
+
body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
|
|
301
|
+
font-size: var(--slide-title-size);
|
|
302
|
+
line-height: 0.9; /* .topbar .h line-height .9 */
|
|
303
|
+
border-bottom: 1.5px solid var(--text-color);
|
|
304
|
+
padding-bottom: 0.45em; /* .topbar padding-bottom 24px */
|
|
305
|
+
margin-bottom: 0.55em;
|
|
306
|
+
}
|
|
307
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
308
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
309
|
+
font-size: 0.654em; /* .desc 17px ÷26 */
|
|
310
|
+
display: inline-block;
|
|
311
|
+
width: 31.8%; /* (1728−72)/3 ÷1728 */
|
|
312
|
+
margin: 0 1.5% 2.2em 0;
|
|
313
|
+
padding: 1.88em 1.76em 1.7em; /* 32px / 30px ÷26 ÷0.654 */
|
|
314
|
+
border: 1.5px solid var(--text-color);
|
|
315
|
+
border-radius: 0; /* 模板只有胶囊是圆的 */
|
|
316
|
+
vertical-align: top;
|
|
317
|
+
color: var(--text-color);
|
|
318
|
+
list-style: none;
|
|
319
|
+
}
|
|
320
|
+
/* 卡名 44px:44 ÷26 ÷0.654 = 2.59em */
|
|
321
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
|
|
322
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
|
|
323
|
+
display: block;
|
|
324
|
+
font-family: var(--slide-title-font);
|
|
325
|
+
font-size: 2.59em;
|
|
326
|
+
font-weight: 800;
|
|
327
|
+
line-height: 0.95;
|
|
328
|
+
letter-spacing: -0.008em;
|
|
329
|
+
text-transform: uppercase;
|
|
330
|
+
color: var(--text-color);
|
|
331
|
+
margin-bottom: 0.35em;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* 1.6.6 two-col · P4(featured edition):放映时两栏流排,左栏标题 113px +
|
|
335
|
+
22px lede,右栏 = 5 条 info-row(虚线分隔,键 15px 大写 .16em、值 26px)。
|
|
336
|
+
右栏 1.5px 描边卡框需要块级包裹(行式 DOM 无挂点 → 有意未复刻) */
|
|
337
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content {
|
|
338
|
+
column-rule: none; /* 模板中缝由卡框分隔,无竖线 */
|
|
339
|
+
}
|
|
340
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-page-title,
|
|
341
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-title {
|
|
342
|
+
font-size: 4.35em; /* min(6.4vw,10.5vh)=113px ÷26 */
|
|
343
|
+
line-height: 0.9;
|
|
344
|
+
}
|
|
345
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
|
|
346
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
|
|
347
|
+
font-size: 0.846em; /* .lede 22px ÷26 */
|
|
348
|
+
line-height: 1.5;
|
|
349
|
+
max-width: 44ch;
|
|
350
|
+
color: var(--text-color);
|
|
351
|
+
}
|
|
352
|
+
/* info-row:值 26px(.v.it Fraunces 26px)为基准,键 15px ÷26 = .58em */
|
|
353
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-li,
|
|
354
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-li {
|
|
355
|
+
font-size: 1em;
|
|
356
|
+
margin: 0;
|
|
357
|
+
padding: 0.9em 0 0.8em;
|
|
358
|
+
border-bottom: 1px dashed rgba(181, 61, 42, 0.32);
|
|
359
|
+
color: var(--text-color);
|
|
360
|
+
list-style: none;
|
|
361
|
+
}
|
|
362
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-listmark,
|
|
363
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-listmark {
|
|
364
|
+
display: none; /* info-row 无序号 */
|
|
365
|
+
}
|
|
366
|
+
body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-strong,
|
|
367
|
+
body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-strong {
|
|
368
|
+
display: block; /* .k 在 .v 之上 */
|
|
369
|
+
font-family: var(--slide-mono);
|
|
370
|
+
font-size: 0.58em; /* .k 15px ÷26 */
|
|
371
|
+
font-weight: 400;
|
|
372
|
+
line-height: 1.4;
|
|
373
|
+
letter-spacing: 0.16em; /* 模板 .k .16em */
|
|
374
|
+
text-transform: uppercase;
|
|
375
|
+
color: var(--text-color);
|
|
376
|
+
margin-bottom: 0.3em;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/* 1.6.7 quote · P6(a guest writes):整页居中无大引号;qbody = Bricolage
|
|
380
|
+
700 大写 79.9px(模板用 display 写引言,不是衬线);署名行 = 1.5px ink
|
|
381
|
+
顶线 + Bricolage 700 大写 18px + 16px 78% 元信息 */
|
|
382
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content,
|
|
383
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote {
|
|
384
|
+
text-align: center;
|
|
385
|
+
}
|
|
386
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
387
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
388
|
+
font-family: var(--slide-title-font);
|
|
389
|
+
font-size: var(--slide-quote-size);
|
|
390
|
+
font-weight: 700;
|
|
391
|
+
font-style: normal; /* 模板 qbody 是正体大写 */
|
|
392
|
+
line-height: 0.95;
|
|
393
|
+
letter-spacing: -0.012em;
|
|
394
|
+
text-transform: uppercase;
|
|
395
|
+
color: var(--text-color);
|
|
396
|
+
background: transparent;
|
|
397
|
+
border-left: none;
|
|
398
|
+
text-align: center;
|
|
399
|
+
padding-left: 0;
|
|
400
|
+
padding-right: 0;
|
|
401
|
+
max-width: 76%;
|
|
402
|
+
margin-left: auto;
|
|
403
|
+
margin-right: auto;
|
|
404
|
+
}
|
|
405
|
+
/* 上游自动加的 “ 巨引号:模板引言页没有引号,去掉 */
|
|
406
|
+
body.presenting .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
407
|
+
body.slides-printing .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
408
|
+
content: none;
|
|
409
|
+
}
|
|
410
|
+
/* 署名行:.who-tag 18px + meta 16px,顶部 1.5px ink 细线(CSS-03:纵向留白只走
|
|
411
|
+
margin + 行高,模板 who-row 的 padding-top 20px 由 line-height 2.6 代偿) */
|
|
412
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
413
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
414
|
+
margin: 1.3em auto 0;
|
|
415
|
+
line-height: 2.6; /* 线上留白 = 行盒余量,非 padding */
|
|
416
|
+
border-top: 1.5px solid var(--text-color);
|
|
417
|
+
font-family: var(--slide-title-font);
|
|
418
|
+
font-size: 0.615em; /* meta-tag 16px ÷26 */
|
|
419
|
+
font-weight: 700;
|
|
420
|
+
letter-spacing: -0.005em;
|
|
421
|
+
text-transform: uppercase;
|
|
422
|
+
color: var(--text-color);
|
|
423
|
+
opacity: 0.78; /* 模板 meta-tag .78 */
|
|
424
|
+
max-width: 34ch;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/* 1.6.8 timeline · P7(what's coming up):页题 108px + 1.5px ink 底线;
|
|
428
|
+
ledger 行 = 1px rgba ink .30 底线、18px 序号、Bricolage 700 大写 24px 城市、
|
|
429
|
+
22px 主题;上游的左侧时间轴线与圆点在模板里不存在 → 拆掉;
|
|
430
|
+
状态胶囊(sold-out 反白)无挂点,有意未复刻 */
|
|
431
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-page-title,
|
|
432
|
+
body.slides-printing .cm-md-slide-timeline.cm-md-page-title {
|
|
433
|
+
font-size: var(--slide-title-size);
|
|
434
|
+
line-height: 0.9;
|
|
435
|
+
border-bottom: 1.5px solid var(--text-color);
|
|
436
|
+
padding-bottom: 0.45em;
|
|
437
|
+
margin-bottom: 1em;
|
|
438
|
+
}
|
|
439
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
|
|
440
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
|
|
441
|
+
font-size: 0.846em; /* .theme 22px ÷26 */
|
|
442
|
+
margin: 0; /* 拆掉上游 0.6em 左轴缩进 */
|
|
443
|
+
padding: 0.82em 0;
|
|
444
|
+
border-left: none;
|
|
445
|
+
border-bottom: 1px solid rgba(181, 61, 42, 0.3);
|
|
446
|
+
color: var(--text-color);
|
|
447
|
+
list-style: none;
|
|
448
|
+
}
|
|
449
|
+
body.presenting .cm-md-slide-timeline.cm-md-li::before,
|
|
450
|
+
body.slides-printing .cm-md-slide-timeline.cm-md-li::before {
|
|
451
|
+
content: none; /* 模板无时间轴圆点 */
|
|
452
|
+
}
|
|
453
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
|
|
454
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
|
|
455
|
+
display: inline; /* 上游隐藏,此处复刻 .num-tag 18px */
|
|
456
|
+
font-family: var(--slide-mono);
|
|
457
|
+
font-weight: 400;
|
|
458
|
+
font-size: 0.82em; /* 18px ÷26 ÷0.846 */
|
|
459
|
+
letter-spacing: 0.02em;
|
|
460
|
+
color: var(--text-color);
|
|
461
|
+
margin-right: 1.4em;
|
|
462
|
+
}
|
|
463
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
|
|
464
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
|
|
465
|
+
display: inline; /* 城市行题与主题同行 */
|
|
466
|
+
font-family: var(--slide-title-font);
|
|
467
|
+
font-size: 1.09em; /* .city-tag 24px ÷26 ÷0.846 */
|
|
468
|
+
font-weight: 700;
|
|
469
|
+
letter-spacing: -0.005em;
|
|
470
|
+
text-transform: uppercase;
|
|
471
|
+
color: var(--text-color);
|
|
472
|
+
margin-right: 0.7em;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* 1.6.9 closing · P8(see you at the table):标题 108px 左对齐,22px 说明;
|
|
476
|
+
三列页脚 = 30% 列宽 + 1px ink 顶线 + 16px 正文(.ftag 600 一行)
|
|
477
|
+
胶囊按钮与圆形徽章有意未复刻 */
|
|
478
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
|
|
479
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title {
|
|
480
|
+
font-size: var(--slide-closing-title-size);
|
|
481
|
+
line-height: 0.92;
|
|
482
|
+
max-width: 12ch;
|
|
483
|
+
}
|
|
484
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
|
|
485
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
|
|
486
|
+
font-size: 0.846em; /* .desc-it 22px ÷26 */
|
|
487
|
+
line-height: 1.5;
|
|
488
|
+
max-width: 42ch;
|
|
489
|
+
color: var(--text-color);
|
|
490
|
+
}
|
|
491
|
+
body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
|
|
492
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
|
|
493
|
+
display: inline-block;
|
|
494
|
+
width: 30%; /* .footer-line .colf flex:1,三段 */
|
|
495
|
+
margin: 1.2em 2.6% 0 0;
|
|
496
|
+
padding-top: 0.6em;
|
|
497
|
+
vertical-align: top;
|
|
498
|
+
border-top: 1px solid var(--text-color);
|
|
499
|
+
border-bottom: none;
|
|
500
|
+
font-size: 0.615em; /* .colf 16px ÷26 */
|
|
501
|
+
line-height: 1.4;
|
|
502
|
+
color: var(--text-color);
|
|
503
|
+
}
|
|
504
|
+
body.presenting .cm-md-slide-closing.cm-md-li::before,
|
|
505
|
+
body.slides-printing .cm-md-slide-closing.cm-md-li::before {
|
|
506
|
+
content: none; /* 模板页脚无 ▸ 前缀 */
|
|
507
|
+
}
|
|
508
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
|
|
509
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
|
|
510
|
+
display: none;
|
|
511
|
+
}
|
|
512
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
|
|
513
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
|
|
514
|
+
font-family: var(--font-body);
|
|
515
|
+
font-size: 1em; /* .ftag 16px,li 基准即 16px */
|
|
516
|
+
font-weight: 600;
|
|
517
|
+
letter-spacing: 0.02em;
|
|
518
|
+
text-transform: none;
|
|
519
|
+
color: var(--text-color);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/* 1.6.10 chrome · 模板只有右下页码(Fraunces 16px .02em 全墨)与左下
|
|
523
|
+
nav-hint(13px 45%),没有顶部 chrome 与巨幽灵页码:
|
|
524
|
+
右上 .slide-chrome 收成 Fraunces 小字并去掉那条 repo 默认细线,
|
|
525
|
+
.slide-ghost(超大页码)整页隐去 */
|
|
526
|
+
body.presenting .slide-chrome,
|
|
527
|
+
body.slides-printing .slide-chrome {
|
|
528
|
+
font-family: var(--slide-mono);
|
|
529
|
+
font-size: clamp(13px, 0.9vw, 15px);
|
|
530
|
+
font-weight: 400;
|
|
531
|
+
letter-spacing: 0.02em;
|
|
532
|
+
text-transform: none;
|
|
533
|
+
color: var(--text-color);
|
|
534
|
+
}
|
|
535
|
+
body.presenting .slide-chrome-left::after,
|
|
536
|
+
body.slides-printing .slide-chrome-left::after {
|
|
537
|
+
content: none; /* 模板顶部无 1px 细线 */
|
|
538
|
+
}
|
|
539
|
+
body.presenting .slide-ghost,
|
|
540
|
+
body.slides-printing .slide-ghost {
|
|
541
|
+
opacity: 0; /* 模板无巨页码 */
|
|
542
|
+
}
|
|
543
|
+
body.presenting .slide-foot,
|
|
544
|
+
body.slides-printing .slide-foot {
|
|
545
|
+
font-family: var(--slide-mono);
|
|
546
|
+
font-size: clamp(14px, 0.95vw, 16px); /* .pagenum 16px */
|
|
547
|
+
letter-spacing: 0.02em;
|
|
548
|
+
text-transform: none;
|
|
549
|
+
opacity: 0.78;
|
|
550
|
+
color: var(--text-color);
|
|
551
|
+
}
|
|
552
|
+
body.presenting .slide-foot-brand,
|
|
553
|
+
body.slides-printing .slide-foot-brand {
|
|
554
|
+
font-family: var(--slide-mono);
|
|
555
|
+
font-size: 13px; /* .nav-hint 13px */
|
|
556
|
+
font-weight: 400;
|
|
557
|
+
letter-spacing: 0.02em;
|
|
558
|
+
text-transform: none;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/* ═══════════════════════════════════════════════════════════
|
|
562
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
563
|
+
═══════════════════════════════════════════════════════════ */
|
|
564
|
+
|
|
565
|
+
#editor .cm-content {
|
|
566
|
+
font-family: var(--font-body);
|
|
567
|
+
line-height: 1.75;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/* ── 2.1 Headings ──
|
|
571
|
+
模板 display:Bricolage 800 大写、行高 .9、字距 -.012em。
|
|
572
|
+
生成版 h2(1.125em) 比 h3(1.25em) 还小、字重 700、带下划线,全部修正。 */
|
|
573
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
574
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
575
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
576
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
577
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
578
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
579
|
+
font-family: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
|
|
580
|
+
color: var(--text-color);
|
|
581
|
+
font-weight: 800;
|
|
582
|
+
text-transform: uppercase;
|
|
583
|
+
line-height: 1.05; /* 文档流里 .9 会压行 */
|
|
584
|
+
letter-spacing: -0.012em;
|
|
585
|
+
border-bottom: none; /* 模板只在 topbar 用线 */
|
|
586
|
+
padding-bottom: 0;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
#editor .cm-content .cm-md-atxheading1 { font-size: 3.2em; line-height: 0.98; }
|
|
590
|
+
#editor .cm-content .cm-md-atxheading2 { font-size: 2.3em; line-height: 1; }
|
|
591
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.7em; }
|
|
592
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.3em; }
|
|
593
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.08em; }
|
|
594
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
595
|
+
font-size: 1em;
|
|
596
|
+
font-family: var(--font-body);
|
|
597
|
+
font-weight: 600;
|
|
598
|
+
letter-spacing: 0.16em; /* 模板 caption / info-key */
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/* ── 2.2 Inline ──
|
|
602
|
+
模板是单色系统:强调只靠字重 400→600 与字号,不用第二颜色。
|
|
603
|
+
生成版的 strong 被染成蓝色 accent,这里收回正文墨色。 */
|
|
604
|
+
#editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
|
|
605
|
+
#editor .cm-content .cm-md-em { font-style: italic; }
|
|
606
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
607
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
608
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
609
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
610
|
+
|
|
611
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
612
|
+
font-family: var(--font-mono);
|
|
613
|
+
background: var(--code-bg);
|
|
614
|
+
color: var(--text-color);
|
|
615
|
+
border-radius: 0; /* 模板零圆角 */
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
#editor .cm-content .cm-md-marker,
|
|
619
|
+
#editor .cm-content .cm-md-quotemark,
|
|
620
|
+
#editor .cm-content .cm-md-listmark {
|
|
621
|
+
color: var(--text-muted);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
625
|
+
引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
|
|
626
|
+
否则引用里的代码行会盖住代码块底色。模板细线体系:1.5px ink 左轨。 */
|
|
627
|
+
#editor .cm-content .cm-md-blockquote {
|
|
628
|
+
color: var(--text-color);
|
|
629
|
+
border-left: 1.5px solid var(--blockquote-border);
|
|
630
|
+
padding-left: 16px;
|
|
631
|
+
padding-right: 16px;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
#editor .cm-content .cm-md-codeblock {
|
|
635
|
+
background: var(--code-block-bg);
|
|
636
|
+
color: var(--code-block-text);
|
|
637
|
+
padding-left: 16px;
|
|
638
|
+
padding-right: 16px;
|
|
639
|
+
}
|
|
640
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
641
|
+
border-top-left-radius: 0;
|
|
642
|
+
border-top-right-radius: 0;
|
|
643
|
+
}
|
|
644
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
645
|
+
border-bottom-left-radius: 0;
|
|
646
|
+
border-bottom-right-radius: 0;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/* ── 2.4 Table / Rule(模板:ledger 式细线表,结构线 1.5px ink)── */
|
|
650
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
651
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
652
|
+
border-color: rgba(181, 61, 42, 0.28);
|
|
653
|
+
padding: 10px 14px;
|
|
654
|
+
}
|
|
655
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
656
|
+
background: var(--table-header-bg);
|
|
657
|
+
color: var(--text-color);
|
|
658
|
+
font-family: var(--font-body);
|
|
659
|
+
font-size: 0.8em;
|
|
660
|
+
font-weight: 600;
|
|
661
|
+
letter-spacing: 0.04em; /* 模板 headrow .04em */
|
|
662
|
+
text-transform: uppercase;
|
|
663
|
+
border-bottom: 1.5px solid var(--text-color);
|
|
664
|
+
}
|
|
665
|
+
#editor .cm-content .cm-md-hr { border-top: 1.5px solid var(--text-color); }
|
|
666
|
+
|
|
667
|
+
/* ── 2.5 中文首行缩进 ──
|
|
668
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
669
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
670
|
+
|
|
671
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
672
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
673
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
674
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
675
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
676
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
677
|
+
#editor .cm-content .cm-md-blockquote,
|
|
678
|
+
#editor .cm-content .cm-md-codeblock,
|
|
679
|
+
#editor .cm-content .cm-md-hr,
|
|
680
|
+
#editor .cm-content .cm-md-mermaid,
|
|
681
|
+
#editor .cm-content .cm-md-li-0,
|
|
682
|
+
#editor .cm-content .cm-md-li-1,
|
|
683
|
+
#editor .cm-content .cm-md-li-2,
|
|
684
|
+
#editor .cm-content .cm-md-li-3,
|
|
685
|
+
#editor .cm-content .cm-md-li-4,
|
|
686
|
+
#editor .cm-content .cm-md-li-5,
|
|
687
|
+
#editor .cm-content .cm-md-li-6 {
|
|
688
|
+
text-indent: 0;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/* ═══════════════════════════════════════════════════════════
|
|
692
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
693
|
+
HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
|
|
694
|
+
═══════════════════════════════════════════════════════════ */
|
|
695
|
+
|
|
696
|
+
.colamd-document {
|
|
697
|
+
font-family: var(--font-body);
|
|
698
|
+
font-size: 16px;
|
|
699
|
+
line-height: 1.75;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.colamd-document h1,
|
|
703
|
+
.colamd-document h2,
|
|
704
|
+
.colamd-document h3,
|
|
705
|
+
.colamd-document h4,
|
|
706
|
+
.colamd-document h5,
|
|
707
|
+
.colamd-document h6 {
|
|
708
|
+
font-family: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
|
|
709
|
+
color: var(--text-color);
|
|
710
|
+
font-weight: 800;
|
|
711
|
+
text-transform: uppercase;
|
|
712
|
+
line-height: 1.05;
|
|
713
|
+
letter-spacing: -0.012em;
|
|
714
|
+
margin: 1.5em 0 0.5em;
|
|
715
|
+
}
|
|
716
|
+
.colamd-document h1 { font-size: 3.2em; line-height: 0.98; margin-top: 0.4em; }
|
|
717
|
+
.colamd-document h2 { font-size: 2.3em; line-height: 1; }
|
|
718
|
+
.colamd-document h3 { font-size: 1.7em; }
|
|
719
|
+
.colamd-document h4 { font-size: 1.3em; }
|
|
720
|
+
.colamd-document h5 { font-size: 1.08em; }
|
|
721
|
+
.colamd-document h6 {
|
|
722
|
+
font-size: 1em;
|
|
723
|
+
font-family: var(--font-body);
|
|
724
|
+
font-weight: 600;
|
|
725
|
+
letter-spacing: 0.16em;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.colamd-document strong { color: var(--text-color); font-weight: 600; }
|
|
729
|
+
.colamd-document code {
|
|
730
|
+
background: var(--code-bg);
|
|
731
|
+
color: var(--text-color);
|
|
732
|
+
font-family: var(--font-mono);
|
|
733
|
+
border-radius: 0;
|
|
734
|
+
}
|
|
735
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
736
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
|
|
737
|
+
.colamd-document pre { background: var(--code-block-bg); }
|
|
738
|
+
.colamd-document pre code { color: var(--code-block-text); }
|
|
739
|
+
.colamd-document blockquote {
|
|
740
|
+
background: var(--blockquote-bg);
|
|
741
|
+
color: var(--text-color);
|
|
742
|
+
border-left: 1.5px solid var(--blockquote-border);
|
|
743
|
+
padding: 0.5em 1.2em;
|
|
744
|
+
}
|
|
745
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
746
|
+
.colamd-document th,
|
|
747
|
+
.colamd-document td {
|
|
748
|
+
border-color: rgba(181, 61, 42, 0.28);
|
|
749
|
+
padding: 10px 14px;
|
|
750
|
+
}
|
|
751
|
+
.colamd-document th {
|
|
752
|
+
background: var(--table-header-bg);
|
|
753
|
+
font-size: 0.8em;
|
|
754
|
+
font-weight: 600;
|
|
755
|
+
letter-spacing: 0.04em;
|
|
756
|
+
text-transform: uppercase;
|
|
757
|
+
border-bottom: 1.5px solid var(--text-color);
|
|
758
|
+
}
|
|
759
|
+
.colamd-document hr { border-top: 1.5px solid var(--text-color); }
|
|
760
|
+
|
|
761
|
+
.colamd-document p { text-indent: 2em; }
|
|
762
|
+
.colamd-document li p,
|
|
763
|
+
.colamd-document td p,
|
|
764
|
+
.colamd-document th p,
|
|
765
|
+
.colamd-document blockquote p {
|
|
766
|
+
text-indent: 0;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/* ═══════════════════════════════════════════════════════════
|
|
770
|
+
SECTION 4 — Print
|
|
771
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
772
|
+
═══════════════════════════════════════════════════════════ */
|
|
773
|
+
|
|
774
|
+
@media print {
|
|
775
|
+
html,
|
|
776
|
+
body {
|
|
777
|
+
background: var(--bg-color);
|
|
778
|
+
color: var(--text-color);
|
|
779
|
+
-webkit-print-color-adjust: exact;
|
|
780
|
+
print-color-adjust: exact;
|
|
781
|
+
}
|
|
782
|
+
}
|