diff --git a/assets/css/frontend/homepage-fixed/base-2.css b/assets/css/frontend/homepage-fixed/base-2.css index 30a2c0d4..1d65f19e 100644 --- a/assets/css/frontend/homepage-fixed/base-2.css +++ b/assets/css/frontend/homepage-fixed/base-2.css @@ -72,9 +72,23 @@ .aksrt-homepage__panel.fade.in, .aksrt-homepage__panel.tab-pane.active, #index-tab-main.aksrt-homepage__panel, -#index-tab-main.posts-row { - opacity: 1; - display: block; +#index-tab-main.posts-row, +.home-tab-content .tab-pane.is-active, +.home-tab-content .tab-pane.show, +.home-tab-content .tab-pane.active, +.aksrt-homepage__panel.is-active, +.aksrt-homepage__panel.show { + opacity: 1 !important; + display: block !important; + visibility: visible !important; +} + +/* Beat Bootstrap .fade:not(.show){opacity:0} if fade class remains */ +.home-tab-content .tab-pane.fade.is-active, +.home-tab-content .tab-pane.fade.show, +.home-tab-content .tab-pane.fade.active, +#index-tab-main.fade { + opacity: 1 !important; } .aksrt-homepage__panel-contract { @@ -484,3 +498,35 @@ html.dark #index-tab-main > .posts-item.list:hover { .aksrt-homepage__posts[data-view="card"] > .posts-item .meta-right { display: none; } + + +/* ================================================================ + VISIBILITY LOCK — homepage post stream must always paint + ================================================================ */ +posts.posts-item, +article.posts-item, +#index-tab-main > .posts-item, +.home-tab-content .posts-item { + display: block !important; + opacity: 1 !important; + visibility: visible !important; + color: var(--color-ink, #333); + font-size: 1rem !important; +} + +#index-tab-main > .posts-item.list, +.home-tab-content .posts-item.list { + display: flex !important; + width: 100%; + box-sizing: border-box; +} + +/* Minimal flex utilities used by post cards (zibll-style helpers) */ +.flex { display: flex !important; } +.flex.xx, +.xx { flex-direction: column; } +.flex1, +.flex-1 { flex: 1 1 auto; min-width: 0; } +.jsb { justify-content: space-between; } +.ac { align-items: center; } +.jb { justify-content: space-between; } diff --git a/assets/css/frontend/post-card.css b/assets/css/frontend/post-card.css index 67720f54..fa7ab527 100644 --- a/assets/css/frontend/post-card.css +++ b/assets/css/frontend/post-card.css @@ -25,9 +25,13 @@ /* ============================================================ * 通用 posts-item 基础 — 对齐 zibll line 7585 * ============================================================ */ +posts.posts-item, +article.posts-item, .posts-item { /* Custom element is inline by default — force block layout. */ - display: block; + display: block !important; + opacity: 1 !important; + visibility: visible !important; padding: 20px; margin: 15px 0; background: var(--main-bg-color, var(--surface-1, #fff)); diff --git a/inc/helpers/aksrt-homepage.php b/inc/helpers/aksrt-homepage.php index 50f51027..9393c127 100644 --- a/inc/helpers/aksrt-homepage.php +++ b/inc/helpers/aksrt-homepage.php @@ -935,7 +935,7 @@ if (!function_exists('aksrt_homepage_render_layout')) {
-
+
' . $excerpt_markup . '

' : ''; - $html = ''; + $html = '
'; if ($cfg['style'] === 'style2') { $html .= $title_html; @@ -757,7 +757,7 @@ if (!function_exists('aksrt_renderer_list')) { $html .= '
'; } - $html .= ''; + $html .= ''; return $html; } } @@ -796,7 +796,7 @@ if (!function_exists('aksrt_renderer_card')) { $title_markup = aksrt_renderer_title_markup($data, $cfg); $excerpt_markup = aksrt_renderer_excerpt_markup($data, $cfg); - $html = ''; + $html = '
'; $html .= $thumb; $html .= '
'; $target_attr = !empty($cfg['target_blank']) ? ' target="_blank"' : ''; @@ -814,7 +814,7 @@ if (!function_exists('aksrt_renderer_card')) { } $html .= $meta; - $html .= '
'; + $html .= '
'; return $html; }