v0.10.18: H18 最新博文(8bc6b68)完成 + 文章分类关系数据修复

- PostsWidget 忠实重写(skin cards):预取架构 loader 按 widget 收集术语→查文章→
  PostsDataContext 分发;卡 DOM/缩略图比率 0.66/NEWS 徽章(uppercase)/日期 F j,Y/
  摘要 18 词(空回退正文);右列纯文本卡(44px 两行钳制+箭头图标,custom_css 注入)
- posts cards 基础 CSS + slim 白名单 cards_*/_skin/posts_include* 全键
- scripts/repair-content-terms.ts:从 legacy dump wp_term_relationships 提取 67709 对,
  经 legacy_id 映射补插 1162 条 content_terms(Blog 302/News 22 篇,原仅 61 篇有关联)
- 补 icon-arrow-light-orange.png;双端节内几何/样式全等(sec 521),截图目视一致
This commit is contained in:
bigcode
2026-11-02 00:27:15 +08:00
parent f614d10c94
commit 27fa9e605f
8 changed files with 297 additions and 44 deletions
+32
View File
@@ -372,6 +372,38 @@
* padding 48/48/16 + 白底 + 圆角 6 + 边框 #E0E5F9 均设置驱动 */
[data-el="65282de"] > div, [data-el="cc3e8ca"] > div { width: auto !important; }
/* ===== Elementor posts widget(skin cards 基础;H18 实测 2026-11-01)
* 卡 = flex 纵向(h 520 由节点 custom_css .ele-post-dif .elementor-post 注入);
* 缩略图比率 0.66×内宽(img 绝对定位铺满 object-fit fill)、badge 绝对右上
* (bg rgba(255,255,255,.7)/12px/圆角 4,自定义样式经 custom_css 注入);
* 标题 18/400/#000、meta 16/#ADADAD/padding 10 12、摘要在 H18 组件内联 */
.elementor-post__card {
display: flex; flex-direction: column; overflow: hidden;
border-radius: 3px;
}
.elementor-post__thumbnail__link { display: block; position: relative; margin: 0 0 20px; }
.elementor-post__thumbnail { position: relative; overflow: hidden; padding-bottom: 66%; }
.elementor-post__thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.elementor-post__badge {
position: absolute; top: 0; right: 0; z-index: 1;
font-size: 12px; line-height: 1; padding: 7.2px 14.4px;
text-transform: uppercase;
}
.elementor-post__text { padding: 0 12px; flex-grow: 1; }
.elementor-post__title { font-size: 18px; line-height: 27px; font-weight: 400; color: #000; }
.elementor-post__title a { color: inherit; text-decoration: none; }
.elementor-post__meta-data {
display: block; margin: 0; padding: 10px 12px;
font-size: 16px; color: #ADADAD;
}
.elementor-post__excerpt { font-size: 16px; line-height: 1.7; color: #333; }
/* 右列卡(a22c185 .ele-post-dif-2):纯文本卡 bg #F4F5F8、标题链接右侧箭头图标
* 与 44px 两行钳制均由 custom_css 注入;此处理品牌底色/箭头 hover 位移 */
[data-el="a22c185"] .elementor-post__card { background-color: #F4F5F8; }
[data-el="a22c185"] .elementor-post__text { padding: 0 18px; }
/* H18 两列 populated 扣水平 margin(右列 680-16=664,margin 左 1rem 设置驱动) */
[data-el="1621f99"] > div, [data-el="5db48f4"] > div { width: auto !important; }
/* ===== 首页 H2 产品线入口(post-18.css 对应块;1436px 实测 2026-10-31)
* 外层 section:白→#F4F5F8 线性渐变(180deg)+ 1360 容器(SectionNode 背景已渲染);
* 中列 0.5rem 内边距;内层 e38a898 六列均分 224px,列内容 wrap padding 10px(高 107);