官网开发 0805

This commit is contained in:
eafonyang
2026-08-05 18:36:01 +08:00
parent 816281bf2d
commit c9a1d9c576
23 changed files with 1367 additions and 231 deletions
+62
View File
@@ -23,3 +23,65 @@ body {
a {
text-decoration: none;
}
/* 区块标题字号统一由此处控制:config.title_font_size 经 SectionRenderer 注入 --sec-title-fs(桌面)
/ --sec-title-fs-m(移动端),留空兜底桌面 36px / 移动端 22.5px62.5%);
富文本内的 h2 由 .rich-text 标题规则覆盖(class 选择器优先级更高) */
section h2 {
font-size: var(--sec-title-fs-m, 22.5px);
}
@media (min-width: 768px) {
section h2 {
font-size: var(--sec-title-fs, 36px);
}
}
/* 富文本(wangEditor 输出 HTML)样式还原:UnoCSS preflight 重置了 p/列表/标题等默认样式 */
.rich-text p {
margin: 0 0 0.75em;
}
.rich-text > p:last-child {
margin-bottom: 0;
}
.rich-text ul,
.rich-text ol {
margin: 0 0 0.75em;
padding-left: 1.5em;
}
.rich-text ul {
list-style: disc;
}
.rich-text ol {
list-style: decimal;
}
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5 {
margin: 0.6em 0;
font-weight: 700;
line-height: 1.3;
}
.rich-text h1 {
font-size: 1.6em;
}
.rich-text h2 {
font-size: 1.4em;
}
.rich-text h3 {
font-size: 1.2em;
}
.rich-text h4,
.rich-text h5 {
font-size: 1.05em;
}
.rich-text blockquote {
margin: 0 0 0.75em;
padding-left: 12px;
border-left: 3px solid currentColor;
opacity: 0.8;
}
.rich-text a {
text-decoration: underline;
}