feat(widgets): category tabs polish + batch25-27 residual CSS
Mark category tabs shell for shared stack and style forum rank rows / stats animate residual chrome.
This commit is contained in:
1 parent
7a476a220d
commit
6d1b05cbb6
2 files changed
+36
-1
No files matched your search
@@ -2379,3 +2379,38 @@ a.main-color > .icon-cover-card:hover,
|
|||||||
|
|
||||||
.aksrt-ftag-list { display: flex; flex-wrap: wrap; gap: 8px; }
|
.aksrt-ftag-list { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||||
.aksrt-ftag-item.is-card { min-width: 120px; justify-content: space-between; }
|
.aksrt-ftag-item.is-card { min-width: 120px; justify-content: space-between; }
|
||||||
|
|
||||||
|
|
||||||
|
/* batch25-27 residual */
|
||||||
|
.aksrt-forum-widget__list.is-mini .forum-posts.mini { border-bottom: 1px solid var(--color-line-soft, #f0f1f3); }
|
||||||
|
.aksrt-forum-widget__list.is-mini .forum-posts.mini:last-child { border-bottom: 0; }
|
||||||
|
.aksrt-forum-widget__rank-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 8px 0;
|
||||||
|
border-bottom: 1px solid var(--color-line-soft, #f0f1f3);
|
||||||
|
}
|
||||||
|
.aksrt-forum-widget__rank-row:last-child { border-bottom: 0; }
|
||||||
|
.aksrt-forum-widget__rank-row .forum-posts.mini {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
.aksrt-forum-widget__rank {
|
||||||
|
flex: 0 0 24px;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
margin-top: 4px;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: var(--surface-2, #f3f4f6);
|
||||||
|
color: var(--muted-2-color, #999);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.aksrt-forum-widget__rank-row badge.img-badge { position: static; flex: 0 0 auto; margin-top: 4px; }
|
||||||
|
.aksrt-stats__item[data-aksrt-animate] { will-change: transform, opacity; }
|
||||||
@@ -38,7 +38,7 @@ class CategoryTabsWidget extends \WP_Widget {
|
|||||||
$tabs = $this->resolve_tabs($instance);
|
$tabs = $this->resolve_tabs($instance);
|
||||||
|
|
||||||
echo $args['before_widget'];
|
echo $args['before_widget'];
|
||||||
echo '<section class="aksrt-home-widget aksrt-home-widget--tabs widget-tab-posts" data-aksrt-home-cat-tabs>';
|
echo '<section class="aksrt-home-widget aksrt-home-widget--tabs widget-tab-posts" data-aksrt-home-cat-tabs data-aksrt-tabs="1">';
|
||||||
|
|
||||||
if (empty($tabs)) {
|
if (empty($tabs)) {
|
||||||
echo function_exists('aksrt_get_widget_null') ? aksrt_get_widget_null(__('暂无可用分类', 'aksrt')) : '<p class="widget-empty">' . esc_html__('暂无可用分类', 'aksrt') . '</p>';
|
echo function_exists('aksrt_get_widget_null') ? aksrt_get_widget_null(__('暂无可用分类', 'aksrt')) : '<p class="widget-empty">' . esc_html__('暂无可用分类', 'aksrt') . '</p>';
|
||||||
|
|||||||
Reference in new issue
Block a user