Files
MorphDoc/themes/tender-blind/theme.css
T
SkyJourney 83e6559c2c release: 发布 v0.5.1
新增能力:内置 4 套红头、3 套正式文档和 3 套标书主题,支持主题推荐页边距、页面装饰、页眉页脚和页码;增加结构化公文、项目报告及标书 Front Matter,内置 Fandol 中文字体、两份教程和 14 份主题示例。

桌面工作流:重组更多菜单,增加新建、保存、另存为快捷键和未保存确认;另存为后跟随新路径,主题示例自动切换主题,Desktop 发行包完整携带教程、示例与字体。

问题修复:修正红头标题居中与正式文档字体;围栏代码按正文宽度自动换行,长内容安全断行,至少两行即可在当前页分页,并统一保留 8px 左侧内容留白;Docker Web 镜像正确打包 samples。

兼容与部署:未声明主题推荐设置时继续使用 16mm 默认页边距;Web 隐藏不适用的另存为。正式镜像 yixiong/md-to-pdf:v0.5.1 内容 ID 为 sha256:72f519a69bfd6cb2f6df30c2be938e58ceb6f20e4748a32551874de3d436b276,Compose 健康运行。

验证结果:最终修复前 65 个测试文件、286 项测试通过,最终代码块与主题定向测试 27 项通过;全项目类型检查、生产构建和 git diff --check 通过。容器检出 14 套主题、17 份 Markdown,代码块回归 PDF 为 2 页且无越界。NSIS SHA-256 为 676CCE73D782B0B15AC6BC68F253CFBC4740383583E4DAA98F746EDF9999C5CC,ZIP SHA-256 为 82BF6ADF1200604F145CC86FA3ED193955CF6741EBEE3DF8953483515CFF621F。
2026-07-29 16:58:17 +08:00

159 lines
2.4 KiB
CSS

:root {
--blind-ink: #000;
--blind-border: #333;
--blind-soft: #f3f3f3;
}
#write {
color: var(--blind-ink);
font-family:
"SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
font-size: 16px;
line-height: 1.7;
overflow-wrap: break-word;
}
#write .doc-cover-tender {
display: flex;
min-height: 220mm;
padding: 18mm 12mm;
border: 0.5mm solid #000;
break-after: page;
break-inside: avoid;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
#write .doc-cover-copy-mark {
margin: 0 0 20mm;
font-size: 1.15em;
font-weight: 700;
}
#write .doc-cover-project-name {
margin: 0 0 7mm;
font-size: 1.45em;
font-weight: 700;
line-height: 1.5;
}
#write .doc-cover-project-number {
margin: 0 0 20mm;
}
#write .doc-cover-title {
margin: 0 0 8mm;
font-size: 2.2em;
font-weight: 700;
letter-spacing: 0.12em;
}
#write .doc-cover-volume {
margin: 0 0 24mm;
font-size: 1.3em;
font-weight: 700;
}
#write .doc-cover-bidder,
#write .doc-cover-representative {
display: none !important;
}
#write .doc-cover-date {
display: block;
margin-top: 18mm;
}
#write h1,
#write h2,
#write h3,
#write h4,
#write h5,
#write h6 {
color: #000;
font-family:
"SimHei", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
font-weight: 700;
}
#write h1 {
margin: 0 0 0.8em;
padding-bottom: 0.35em;
border-bottom: 0.5mm solid #000;
font-size: 1.55em;
}
#write h2 {
margin: 1.35em 0 0.5em;
font-size: 1.2em;
}
#write h3 {
margin: 1.15em 0 0.4em;
font-size: 1.05em;
}
#write p {
margin: 0 0 0.65em;
text-align: justify;
text-indent: 2em;
}
#write .doc-cover p,
#write li > p,
#write blockquote p,
#write td p,
#write th p {
text-indent: 0;
}
#write a {
color: #000;
text-decoration: none;
}
#write blockquote {
margin: 0.8em 0;
padding: 0.6em 0.8em;
border: 0.25mm solid #777;
background: var(--blind-soft);
}
#write table {
width: 100%;
margin: 0.8em 0;
border-collapse: collapse;
font-size: 0.88em;
}
#write th,
#write td {
padding: 0.4em 0.55em;
border: 0.3mm solid var(--blind-border);
}
#write th {
background: #e9e9e9;
}
#write code {
font-family: "Cascadia Mono", Consolas, monospace;
font-size: 0.8em;
}
#write pre,
#write .md-fences {
margin: 0.8em 0;
padding: 0.75em 0.9em;
overflow: auto;
border: 0.25mm solid #777;
background: #f5f5f5;
}
#write pre code {
padding: 0;
background: transparent;
}