feat(widgets): simplify locations and paid sidebar

Remove deprecated widget locations and widgets, standardize sidebar labels, and render a compact paid-post purchase card in the article sidebar.
This commit is contained in:
2026-08-14 01:49:50 +08:00
parent 51d2ab3aa7
commit bd7d3046a5
43 changed files with 294 additions and 3581 deletions
+43 -139
View File
@@ -1977,7 +1977,7 @@ a.main-color > .icon-cover-card:hover {
.widget_aksrt_icon_cover_cards .col-xs-3 { width: 25%; }
}
/* ===== Batch16-18: highlights/combo/reviews/announcement/gap/pricing polish ===== */
/* ===== Batch16-18: highlights/combo/announcement/gap polish ===== */
.aksrt-highlights__row {
display: grid;
@@ -2063,80 +2063,6 @@ a.main-color > .icon-cover-card:hover {
.aksrt-combo-info .col-xs-4 { width: 33.333%; }
}
/* Reviews swiper */
.aksrt-reviews-swiper {
position: relative;
overflow: hidden;
padding: 0 28px 4px;
}
.aksrt-reviews-swiper .swiper-slide {
width: calc(100% / var(--aksrt-rev-pc, 3));
max-width: 360px;
height: auto;
padding-right: 12px;
box-sizing: border-box;
}
@media (max-width: 767px) {
.aksrt-reviews-swiper .swiper-slide {
width: calc(100% / var(--aksrt-rev-m, 1.2));
}
}
.aksrt-reviews__card {
height: 100%;
border-radius: 12px;
border: 1px solid var(--color-line, #e5e7eb);
background: var(--surface-1, #fff);
padding: 16px;
position: relative;
}
.aksrt-reviews__head {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.aksrt-reviews__avatar {
width: 44px;
height: 44px;
border-radius: 50%;
object-fit: cover;
display: block;
background: var(--surface-2, #eee);
}
.aksrt-reviews__avatar.is-placeholder {
display: inline-flex;
align-items: center;
justify-content: center;
color: #999;
}
.aksrt-reviews__name { font-weight: 700; }
.aksrt-reviews__role { font-size: 12px; color: var(--muted-2-color, #888); }
.aksrt-reviews__stars .fa-star.is-on { color: #f5b301; }
.aksrt-reviews__stars .fa-star.is-off { color: #ddd; }
.aksrt-reviews__content { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted-color, #555); }
.aksrt-reviews__quote {
position: absolute;
right: 12px;
bottom: 10px;
opacity: .12;
font-size: 28px;
}
.aksrt-reviews-swiper .swiper-button-prev,
.aksrt-reviews-swiper .swiper-button-next {
width: 28px;
height: 28px;
margin-top: 0;
top: 42%;
border-radius: 50%;
background: var(--surface-1, #fff);
border: 1px solid var(--color-line, #e5e7eb);
color: var(--color-ink, #111);
}
.aksrt-reviews-swiper .swiper-button-prev:after,
.aksrt-reviews-swiper .swiper-button-next:after { font-size: 12px; font-weight: 700; }
.aksrt-reviews-swiper .swiper-button-prev { left: 0; }
.aksrt-reviews-swiper .swiper-button-next { right: 0; }
/* Announcement vertical swiper reuse notice styles */
.aksrt-announcement-swiper-wrap {
display: flex;
@@ -2227,36 +2153,6 @@ a.main-color > .icon-cover-card:hover {
padding: 1px 8px;
}
.aksrt-paid-posts__item.is-mini {
position: relative;
margin-bottom: 10px;
}
.aksrt-paid-posts__item.is-mini .aksrt-paid-posts__price.badge {
position: absolute;
top: 6px;
right: 6px;
z-index: 2;
background: rgba(239, 68, 68, .92);
color: #fff;
font-size: 11px;
padding: 2px 8px;
border-radius: 999px;
}
.aksrt-lang-switch-widget.hide-name .aksrt-lang-switch__toggle span,
.aksrt-lang-switch-widget.hide-name .aksrt-lang-switch__item {
font-size: 0;
}
.aksrt-lang-switch-widget.hide-current .aksrt-lang-switch__item.is-active,
.aksrt-lang-switch-widget.hide-current .aksrt-lang-switch__flag.is-active {
display: none;
}
.aksrt-lang-switch-widget.style-inline .aksrt-lang-switch--flags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.aksrt-forum-widget__item.is-top .aksrt-forum-widget__rank {
background: var(--theme-color, #f04494);
color: #fff;
@@ -2380,8 +2276,6 @@ a.main-color > .icon-cover-card:hover {
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; }
/* batch28-30 residual */
.aksrt-ftab.widget-tab-posts .aksrt-ftab__nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
@@ -2392,14 +2286,6 @@ a.main-color > .icon-cover-card:hover {
.aksrt-ftab__btn.is-active { background: var(--theme-color, #f04494); color: #fff; }
.aksrt-ftab__panel[hidden] { display: none !important; }
.aksrt-ftab__panel.is-ajax-loading { opacity: .65; pointer-events: none; }
.aksrt-reviews__avatar.aksrt-lazy { object-fit: cover; border-radius: 50%; }
/* batch31-33 residual */
.aksrt-fi__img.aksrt-lazy { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.aksrt-fi__video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
/* batch34-36 residual */
.widget-hot-posts--graphic .hot-posts-graphic { margin-bottom: 12px; border-radius: 8px; overflow: hidden; }
.widget-hot-posts--graphic .hot-posts-graphic .graphic { position: relative; overflow: hidden; border-radius: 8px; background: var(--surface-2, #f3f4f6); }
@@ -2448,19 +2334,49 @@ a.main-color > .icon-cover-card:hover {
.posts-mini-lists.aksrt-main-posts { /* zibll mini outer */ }
/* batch37-39 residual */
.aksrt-post-pay-box { position: relative; overflow: hidden; }
.aksrt-post-pay-box .pay-tag.abs-center {
position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
z-index: 2; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; font-size: 12px;
/* Compact paid-content purchase card for the article sidebar. */
.aksrt-post-pay-card {
--aksrt-pay-accent: var(--color-primary, #3b82f6);
display: grid;
gap: 12px;
padding: 16px;
border: 1px solid color-mix(in srgb, var(--aksrt-pay-accent) 26%, var(--color-line, #e5e7eb));
border-radius: 12px;
background: linear-gradient(145deg, color-mix(in srgb, var(--aksrt-pay-accent) 8%, var(--surface-1, #fff)), var(--surface-1, #fff));
}
.aksrt-post-pay-box__hero { position: relative; overflow: hidden; min-height: 120px; color: #fff; }
.aksrt-post-pay-box__blob { opacity: .55; pointer-events: none; }
.aksrt-post-pay-box__blob--a { height: 200px; left: 75%; width: 200px; top: -34%; border-radius: 100%; }
.aksrt-post-pay-box__blob--b { height: 305px; width: 337px; left: -229px; border-radius: 100%; opacity: .7; }
.aksrt-post-pay-box .box-body { position: relative; z-index: 1; }
.aksrt-post-pay-box .img-badge.hot { position: absolute; top: 8px; right: 8px; z-index: 2; }
.aksrt-post-pay-box .but.btn-block { width: 100%; justify-content: center; }
.aksrt-post-pay-card.jb-red { --aksrt-pay-accent: #ef4444; }
.aksrt-post-pay-card.jb-yellow { --aksrt-pay-accent: #f59e0b; }
.aksrt-post-pay-card.jb-blue { --aksrt-pay-accent: #3b82f6; }
.aksrt-post-pay-card.jb-green { --aksrt-pay-accent: #22c55e; }
.aksrt-post-pay-card.jb-purple { --aksrt-pay-accent: #8b5cf6; }
.aksrt-post-pay-card.jb-vip1 { --aksrt-pay-accent: #d49a25; }
.aksrt-post-pay-card.jb-vip2 { --aksrt-pay-accent: #64748b; }
.aksrt-post-pay-card__header,
.aksrt-post-pay-card__price-row,
.aksrt-post-pay-card__actions { display: flex; align-items: center; gap: 8px; }
.aksrt-post-pay-card__header { justify-content: space-between; }
.aksrt-post-pay-card__type,
.aksrt-post-pay-card__sales {
font-size: 12px;
line-height: 1;
}
.aksrt-post-pay-card__type {
padding: 5px 8px;
border-radius: 999px;
color: var(--aksrt-pay-accent);
background: color-mix(in srgb, var(--aksrt-pay-accent) 13%, transparent);
font-weight: 700;
}
.aksrt-post-pay-card__sales { color: var(--muted-2-color, #888); }
.aksrt-post-pay-card__price-row { min-height: 32px; }
.aksrt-post-pay-card__price,
.aksrt-post-pay-card__status { color: var(--aksrt-pay-accent); font-size: 25px; line-height: 1.2; }
.aksrt-post-pay-card__status { font-size: 19px; }
.aksrt-post-pay-card__status i { margin-right: 6px; }
.aksrt-post-pay-card__price-row del { color: var(--muted-2-color, #888); font-size: 13px; }
.aksrt-post-pay-card__hint { margin: -4px 0 0; color: var(--muted-2-color, #888); font-size: 12px; }
.aksrt-post-pay-card__actions { align-items: stretch; flex-direction: column; }
.aksrt-post-pay-card__actions .but { justify-content: center; width: 100%; }
.aksrt-main-posts__skeleton .placeholder-row,
.aksrt-product-tab__skeleton .placeholder-row {
display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;
@@ -2498,10 +2414,6 @@ a.main-color > .icon-cover-card:hover {
flex: 1 1 0; min-width: 0; text-align: center;
}
.aksrt-plate-info .count-mates .em14 { font-weight: 700; line-height: 1.2; }
.aksrt-fi[data-aksrt-feature-intro] .aksrt-fi__panel { display: none; }
.aksrt-fi[data-aksrt-feature-intro] .aksrt-fi__panel.is-active { display: block; }
/* batch43-45 residual */
.aksrt-product-widget__item--mini {
gap: 10px; padding: 8px 0;
@@ -2513,14 +2425,6 @@ a.main-color > .icon-cover-card:hover {
background: var(--surface-2, #f3f4f6); display: block;
}
.aksrt-product-widget__thumb.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aksrt-paid-posts.style-card { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.aksrt-paid-posts.style-list .aksrt-paid-posts__item { margin-bottom: 10px; }
.aksrt-paid-posts__price.badge {
display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 4px;
background: rgba(240,68,148,.1); color: var(--theme-color, #f04494); font-size: 12px;
}
/* batch46-48 residual */
.widget .is-affix[data-affix="true"],
.ajaxpager.is-affix[data-affix="true"],