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:
@@ -1,154 +1,8 @@
|
||||
/**
|
||||
* Batch3 widgets: partners scroll, iframe, combo info, text title, user lists, plate widgets.
|
||||
* Batch3 widgets: iframe, combo info, text title, user lists, plate widgets.
|
||||
* @package AKSRT
|
||||
*/
|
||||
|
||||
/* ---- Partners scroll ---- */
|
||||
.aksrt-partners-scroll-wrap {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.aksrt-partners-scroll-wrap.is-bare {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
}
|
||||
.aksrt-partners-scroll {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
--aksrt-ps-w: 220px;
|
||||
--aksrt-ps-h: 90px;
|
||||
--aksrt-ps-radius: 10px;
|
||||
--aksrt-ps-speed: 3;
|
||||
}
|
||||
.aksrt-ps-end-fade::before,
|
||||
.aksrt-ps-end-fade::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 48px;
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
}
|
||||
.aksrt-ps-end-fade::before {
|
||||
left: 0;
|
||||
background: linear-gradient(90deg, var(--surface-1, #fff), transparent);
|
||||
}
|
||||
.aksrt-ps-end-fade::after {
|
||||
right: 0;
|
||||
background: linear-gradient(270deg, var(--surface-1, #fff), transparent);
|
||||
}
|
||||
.aksrt-ps-row {
|
||||
overflow: hidden;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.aksrt-ps-row:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.aksrt-ps-track {
|
||||
display: flex;
|
||||
width: max-content;
|
||||
animation: aksrt-ps-marquee calc(40s / var(--aksrt-ps-speed)) linear infinite;
|
||||
}
|
||||
.aksrt-ps-dir-right .aksrt-ps-track {
|
||||
animation-name: aksrt-ps-marquee-rev;
|
||||
}
|
||||
.aksrt-ps-pause-hover:hover .aksrt-ps-track {
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.aksrt-ps-group {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.aksrt-ps-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
width: var(--aksrt-ps-w);
|
||||
height: var(--aksrt-ps-h);
|
||||
margin-right: 12px;
|
||||
border-radius: var(--aksrt-ps-radius);
|
||||
overflow: hidden;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
box-sizing: border-box;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
.aksrt-ps-card-bg .aksrt-ps-item {
|
||||
background: var(--surface-2, #f3f4f6);
|
||||
}
|
||||
.aksrt-ps-img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
}
|
||||
.aksrt-ps-style-logo .aksrt-ps-item {
|
||||
justify-content: center;
|
||||
padding: 10px;
|
||||
}
|
||||
.aksrt-ps-card-icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
flex-shrink: 0;
|
||||
margin-right: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.aksrt-ps-card-icon .aksrt-ps-img {
|
||||
max-height: 42px;
|
||||
}
|
||||
.aksrt-ps-card-text {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.aksrt-ps-card-title {
|
||||
font-weight: 700;
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.aksrt-ps-card-desc {
|
||||
font-size: 12px;
|
||||
color: var(--muted-2-color, #999);
|
||||
margin-top: 3px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.aksrt-ps-style-chip .aksrt-ps-item {
|
||||
width: auto;
|
||||
height: auto;
|
||||
min-height: 36px;
|
||||
border-radius: 999px;
|
||||
padding: 6px 14px;
|
||||
gap: 6px;
|
||||
}
|
||||
.aksrt-ps-chip-icon {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 6px;
|
||||
}
|
||||
.aksrt-ps-chip-title {
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@keyframes aksrt-ps-marquee {
|
||||
from { transform: translateX(0); }
|
||||
to { transform: translateX(-50%); }
|
||||
}
|
||||
@keyframes aksrt-ps-marquee-rev {
|
||||
from { transform: translateX(-50%); }
|
||||
to { transform: translateX(0); }
|
||||
}
|
||||
|
||||
/* ---- Iframe embed ---- */
|
||||
.aksrt-iframe-embed {
|
||||
margin-bottom: 16px;
|
||||
@@ -532,75 +386,6 @@
|
||||
}
|
||||
|
||||
|
||||
/* ---- Pricing plans ---- */
|
||||
.aksrt-pricing { margin-bottom: 16px; }
|
||||
.aksrt-pricing__cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
.aksrt-pricing__card {
|
||||
position: relative;
|
||||
border: 1px solid var(--color-line, #e5e7eb);
|
||||
border-radius: 14px;
|
||||
padding: 22px 18px 18px;
|
||||
background: var(--surface-1, #fff);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
}
|
||||
.aksrt-pricing__card.is-featured {
|
||||
box-shadow: 0 10px 28px rgba(0,0,0,.08);
|
||||
border-color: transparent;
|
||||
border-top: 3px solid var(--plan-accent, #3b82f6);
|
||||
}
|
||||
.aksrt-pricing__card.accent-pink { --plan-accent: #ec4899; }
|
||||
.aksrt-pricing__card.accent-purple { --plan-accent: #a855f7; }
|
||||
.aksrt-pricing__card.accent-blue { --plan-accent: #3b82f6; }
|
||||
.aksrt-pricing__card.accent-green { --plan-accent: #22c55e; }
|
||||
.aksrt-pricing__card.accent-yellow { --plan-accent: #eab308; }
|
||||
.aksrt-pricing__card.accent-cyan { --plan-accent: #06b6d4; }
|
||||
.aksrt-pricing__badge {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
font-size: 11px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
background: var(--plan-accent, #3b82f6);
|
||||
color: #fff;
|
||||
}
|
||||
.aksrt-pricing__name { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
|
||||
.aksrt-pricing__desc { font-size: 13px; color: var(--muted-2-color, #888); margin: 0 0 12px; }
|
||||
.aksrt-pricing__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
|
||||
.aksrt-pricing__main { font-size: 32px; font-weight: 800; color: var(--plan-accent, #3b82f6); line-height: 1; }
|
||||
.aksrt-pricing__mark { font-size: .55em; margin-right: 2px; }
|
||||
.aksrt-pricing__original { font-size: 13px; color: #999; text-decoration: line-through; }
|
||||
.aksrt-pricing__features { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
|
||||
.aksrt-pricing__features li { display: flex; gap: 8px; font-size: 13px; padding: 5px 0; }
|
||||
.aksrt-pricing__features i { color: var(--plan-accent, #3b82f6); margin-top: 2px; }
|
||||
.aksrt-pricing__btn {
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding: 10px 14px;
|
||||
border-radius: 999px;
|
||||
background: var(--plan-accent, #3b82f6);
|
||||
color: #fff !important;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
.aksrt-pricing__trust {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 14px 22px;
|
||||
margin-top: 18px;
|
||||
justify-content: center;
|
||||
}
|
||||
.aksrt-pricing__trust-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
|
||||
.aksrt-pricing__trust-item i { color: var(--color-primary, #3b82f6); margin-top: 2px; }
|
||||
.aksrt-pricing__trust-item strong { display: block; }
|
||||
.aksrt-pricing__trust-item span { color: var(--muted-2-color, #888); font-size: 12px; }
|
||||
|
||||
/* ---- FAQ ---- */
|
||||
.aksrt-faq { margin-bottom: 16px; }
|
||||
.aksrt-faq__search { display: flex; gap: 8px; margin-bottom: 14px; }
|
||||
@@ -671,38 +456,6 @@
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* ---- Stats ---- */
|
||||
.aksrt-stats { margin-bottom: 16px; }
|
||||
.aksrt-stats__intro { margin-bottom: 14px; }
|
||||
.aksrt-stats__intro-title { font-size: 22px; margin: 0 0 6px; }
|
||||
.aksrt-stats__intro-sub { color: var(--muted-2-color, #888); margin: 0; font-size: 13px; }
|
||||
.aksrt-stats__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--aksrt-stats-pc, 4), minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
@media (max-width: 767.98px) {
|
||||
.aksrt-stats__grid {
|
||||
grid-template-columns: repeat(var(--aksrt-stats-m, 2), minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
.aksrt-stats__item {
|
||||
border-radius: 12px;
|
||||
padding: 16px 14px;
|
||||
background: var(--surface-1, #fff);
|
||||
border: 1px solid var(--color-line, #e5e7eb);
|
||||
text-align: center;
|
||||
}
|
||||
.aksrt-stats__item.color-pink { --stat-c: #ec4899; }
|
||||
.aksrt-stats__item.color-purple { --stat-c: #a855f7; }
|
||||
.aksrt-stats__item.color-orange { --stat-c: #f97316; }
|
||||
.aksrt-stats__item.color-blue { --stat-c: #3b82f6; }
|
||||
.aksrt-stats__item.color-green { --stat-c: #22c55e; }
|
||||
.aksrt-stats__icon { font-size: 20px; color: var(--stat-c, #3b82f6); margin-bottom: 8px; }
|
||||
.aksrt-stats__value { font-size: 28px; font-weight: 800; color: var(--stat-c, #3b82f6); line-height: 1.1; }
|
||||
.aksrt-stats__prefix, .aksrt-stats__unit { font-size: .55em; font-weight: 600; }
|
||||
.aksrt-stats__label { margin-top: 6px; font-size: 12px; color: var(--muted-2-color, #888); }
|
||||
|
||||
/* ---- Forum topic lists ---- */
|
||||
.aksrt-ftopic-list { list-style: none; margin: 0; padding: 0; }
|
||||
.aksrt-ftopic-list__item {
|
||||
|
||||
Reference in New Issue
Block a user