v0.10.10 首页 H10 Smart Apartment Gateway 规划模块(html 自包含模块)1:1:html widget localSiteUrl/去内层 mb;全局补 Elementor figure margin 0 与 kit 标题排版(Roboto 600/h2 38px);sec h 674.8 与原站全等,H2/H9 回归零差异
This commit is contained in:
@@ -484,8 +484,10 @@ function WidgetNodeInner({ el }: { el: ElElement }) {
|
||||
case "button":
|
||||
return <ButtonWidget settings={settings} />;
|
||||
case "html":
|
||||
// 间距交由 kit-spacing 列规则(.el-col > div > [data-el]),内层不再加 mb;
|
||||
// 媒体地址经 localSiteUrl 改写为本地 /uploads(原站绝对地址 → 本地)
|
||||
return s(settings.html) ? (
|
||||
<div className="mb-[18px]" dangerouslySetInnerHTML={{ __html: stripStructuralTags(s(settings.html)) }} />
|
||||
<div dangerouslySetInnerHTML={{ __html: localSiteUrl(stripStructuralTags(s(settings.html))) }} />
|
||||
) : null;
|
||||
case "image-box":
|
||||
return <ImageBoxWidget settings={settings} />;
|
||||
|
||||
@@ -86,6 +86,13 @@
|
||||
|
||||
@layer components {
|
||||
/* ===== 内容排版(Elementor / 正文 HTML,数据库导入内容) ===== */
|
||||
/* kit 标题排版(post-15.css .elementor-kit-15 h1..h6):标题族一律 Roboto
|
||||
* (h1/h3=primary Roboto 600、h2=Roboto 600 38px、h4~h6=accent Roboto 500);
|
||||
* widget 标题(heading/image-box 等)的内联排版与 widget css 特异性更高,不受影响 */
|
||||
.content-html h1 { font-family: "Roboto", sans-serif; font-weight: 600; }
|
||||
.content-html h2 { font-family: "Roboto", sans-serif; font-size: 38px; font-weight: 600; }
|
||||
.content-html h3 { font-family: "Roboto", sans-serif; font-weight: 600; }
|
||||
.content-html h4, .content-html h5, .content-html h6 { font-family: "Roboto", sans-serif; font-weight: 500; }
|
||||
.content-html img { max-width: 100%; height: auto; }
|
||||
.content-html table { border-collapse: collapse; }
|
||||
.content-html td, .content-html th { border: 1px solid var(--line); padding: 6px 10px; }
|
||||
@@ -285,6 +292,10 @@
|
||||
.el-col > div > [data-el]:not(:last-child):not(.el-w-auto) { margin-bottom: 20px; }
|
||||
.el-texteditor { display: flow-root; }
|
||||
.el-texteditor p { margin: 0 0 0.9em; }
|
||||
/* frontend.min.css:widget 内 figure 外边距清零(text-editor / post-content 例外保留 UA 边距);
|
||||
* H10 html 模块 figure 曾因 UA margin(1em 40px) 被挤窄 80px、多出 16px 底边距 */
|
||||
.content-html [data-el] figure { margin: 0; }
|
||||
.content-html .el-texteditor figure { margin-block: 1em; margin-inline: 40px; }
|
||||
|
||||
/* ===== Elementor widget-image 基础(widget-image.min.css 对应块)
|
||||
* a 与 img 都是 inline-block 且 img vertical-align:middle,
|
||||
|
||||
Reference in New Issue
Block a user