Files
wordpress-theme-aksrt/assets/css/frontend/widget-batch3.css
T
kate522 d8682ce1fe feat(widgets): pricing/FAQ/stats + forum topic list and bbs sidebars
Add zibll produck widgets (pricing plans, FAQ, stats), forum topic
lists, register bbs_* sidebar zones, and wire plate/topic/home/compose
templates to render those widget areas.
2026-07-19 00:22:31 +08:00

740 lines
17 KiB
CSS

/**
* Batch3 widgets: partners scroll, 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;
}
.aksrt-iframe-ratio {
position: relative;
width: 100%;
height: 0;
border-radius: 8px;
overflow: hidden;
background: var(--surface-2, #f3f4f6);
}
.aksrt-iframe-ratio iframe,
.aksrt-iframe-el {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
}
/* ---- Combo info cards ---- */
.aksrt-combo-info {
display: grid;
grid-template-columns: repeat(var(--aksrt-zci-pc, 4), minmax(0, 1fr));
gap: 14px;
margin-bottom: 16px;
--aksrt-zci-radius: 12px;
--aksrt-zci-band-h: 70px;
}
@media (max-width: 991.98px) {
.aksrt-combo-info {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 575.98px) {
.aksrt-combo-info {
grid-template-columns: repeat(var(--aksrt-zci-m, 1), minmax(0, 1fr));
}
}
.aksrt-zci-card {
position: relative;
display: flex;
flex-direction: column;
border-radius: var(--aksrt-zci-radius);
background: var(--surface-1, #fff);
border: 1px solid var(--color-line, #e5e7eb);
padding: 18px 16px 16px;
overflow: hidden;
min-height: 100%;
}
.aksrt-combo-info.has-band .aksrt-zci-card::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
height: 4px;
background: var(--color-primary, #3b82f6);
}
.aksrt-zci-band-blue::before { background: #3b82f6; }
.aksrt-zci-band-cyan::before { background: #06b6d4; }
.aksrt-zci-band-green::before { background: #22c55e; }
.aksrt-zci-band-yellow::before { background: #eab308; }
.aksrt-zci-band-pink::before { background: #ec4899; }
.aksrt-zci-band-purple::before { background: #a855f7; }
.aksrt-zci-icon {
width: 48px;
height: 48px;
margin-bottom: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
color: var(--color-primary, #3b82f6);
}
.aksrt-zci-icon img {
max-width: 48px;
max-height: 48px;
object-fit: contain;
}
.aksrt-zci-title {
font-weight: 700;
font-size: 16px;
margin-bottom: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.aksrt-zci-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
}
.aksrt-zci-tag {
display: inline-block;
font-size: 12px;
padding: 2px 10px;
border-radius: 999px;
background: var(--surface-2, #f3f4f6);
color: var(--color-ink-3, #666);
}
.aksrt-zci-desc {
font-size: 13px;
color: var(--muted-2-color, #888);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
flex: 1;
}
.aksrt-zci-cta {
margin-top: 14px;
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 600;
color: var(--color-primary, #3b82f6);
text-decoration: none;
}
.aksrt-zci-cta:hover i {
transform: translateX(3px);
}
.aksrt-zci-cta i {
transition: transform .2s ease;
font-size: 12px;
}
/* ---- Text title ---- */
.aksrt-text-title {
margin: 8px 0 18px;
--aksrt-tt-title-size: 22px;
--aksrt-tt-desc-size: 14px;
}
.aksrt-text-title.align-center { text-align: center; }
.aksrt-text-title.align-left { text-align: left; }
.aksrt-text-title.align-right { text-align: right; }
.aksrt-text-title__main {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: var(--aksrt-tt-title-size);
font-weight: 700;
color: var(--aksrt-tt-title-color, inherit);
line-height: 1.3;
}
.aksrt-text-title.align-center .aksrt-text-title__main {
justify-content: center;
}
.aksrt-text-title__desc {
margin-top: 8px;
font-size: var(--aksrt-tt-desc-size);
color: var(--aksrt-tt-desc-color, var(--muted-2-color, #888));
line-height: 1.5;
}
.aksrt-text-title__icon {
display: inline-flex;
opacity: .85;
}
/* ---- User lists ---- */
.aksrt-user-lists {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px 8px;
text-align: center;
padding: 4px 0 8px;
}
.aksrt-user-lists.is-bare {
padding: 0;
}
@media (max-width: 575.98px) {
.aksrt-user-lists {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.aksrt-user-lists__item {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
text-decoration: none;
color: inherit;
min-width: 0;
}
.aksrt-user-lists__avatar {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
background: var(--surface-2, #eee);
}
.aksrt-user-lists__name {
font-size: 12px;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ---- Forum plate lists ---- */
.aksrt-plate-lists {
display: flex;
flex-direction: column;
gap: 10px;
}
.aksrt-plate-item {
display: flex;
gap: 12px;
align-items: flex-start;
text-decoration: none;
color: inherit;
padding: 6px 0;
border-bottom: 1px dashed var(--color-line, #e5e7eb);
}
.aksrt-plate-item:last-child {
border-bottom: 0;
}
.aksrt-plate-item__thumb {
width: 48px;
height: 48px;
border-radius: 10px;
overflow: hidden;
flex-shrink: 0;
background: var(--surface-2, #f3f4f6);
display: flex;
align-items: center;
justify-content: center;
color: var(--color-primary, #3b82f6);
font-size: 18px;
}
.aksrt-plate-item__thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.aksrt-plate-item__body {
min-width: 0;
flex: 1;
}
.aksrt-plate-item__title {
font-weight: 700;
font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.aksrt-plate-item__desc {
font-size: 12px;
color: var(--muted-2-color, #888);
margin-top: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.aksrt-plate-item__meta {
font-size: 11px;
color: var(--color-ink-4, #999);
margin-top: 4px;
}
.aksrt-plate-cards {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
@media (max-width: 575.98px) {
.aksrt-plate-cards {
grid-template-columns: 1fr;
}
}
.aksrt-plate-card {
display: block;
text-decoration: none;
color: inherit;
border-radius: 10px;
overflow: hidden;
border: 1px solid var(--color-line, #e5e7eb);
background: var(--surface-1, #fff);
}
.aksrt-plate-card__cover {
height: 88px;
background: var(--surface-2, #f3f4f6) center/cover no-repeat;
}
.aksrt-plate-card__title {
font-weight: 700;
font-size: 13px;
padding: 10px 10px 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.aksrt-plate-card__meta {
display: flex;
justify-content: space-between;
font-size: 11px;
color: var(--muted-2-color, #888);
padding: 0 10px 10px;
}
/* ---- Plate info ---- */
.aksrt-plate-info {
border-radius: 10px;
overflow: hidden;
border: 1px solid var(--color-line, #e5e7eb);
background: var(--surface-1, #fff);
margin-bottom: 12px;
}
.aksrt-plate-info__cover {
height: 90px;
background: var(--surface-2, #f3f4f6) center/cover no-repeat;
}
.aksrt-plate-info__body {
padding: 12px 14px 14px;
}
.aksrt-plate-info__title {
display: block;
font-weight: 700;
font-size: 16px;
color: inherit;
text-decoration: none;
margin-bottom: 6px;
}
.aksrt-plate-info__desc {
font-size: 12px;
color: var(--muted-2-color, #888);
line-height: 1.5;
margin-bottom: 10px;
}
.aksrt-plate-info__stats {
display: flex;
gap: 14px;
font-size: 12px;
color: var(--color-ink-3, #666);
}
.aksrt-plate-info__stats i {
margin-right: 4px;
opacity: .75;
}
/* ---- Plate moderators ---- */
.aksrt-plate-mods {
margin-bottom: 12px;
}
.aksrt-plate-mods__head {
margin-bottom: 10px;
}
.aksrt-plate-mods__list {
display: flex;
flex-direction: column;
gap: 8px;
}
.aksrt-plate-mods__item {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: inherit;
}
.aksrt-plate-mods__avatar {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.aksrt-plate-mods__name {
flex: 1;
min-width: 0;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.aksrt-plate-mods__role {
font-size: 11px;
color: var(--color-primary, #3b82f6);
flex-shrink: 0;
}
/* ---- 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; }
.aksrt-faq__search-input {
flex: 1;
border: 1px solid var(--color-line, #e5e7eb);
border-radius: 8px;
padding: 8px 12px;
}
.aksrt-faq__search-btn {
border: 0;
border-radius: 8px;
padding: 8px 14px;
background: var(--color-primary, #3b82f6);
color: #fff;
cursor: pointer;
}
.aksrt-faq__item {
border: 1px solid var(--color-line, #e5e7eb);
border-radius: 10px;
padding: 0;
margin-bottom: 10px;
background: var(--surface-1, #fff);
}
.aksrt-faq__q {
list-style: none;
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
cursor: pointer;
font-weight: 600;
}
.aksrt-faq__q::-webkit-details-marker { display: none; }
.aksrt-faq__num {
width: 28px;
height: 28px;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 12px;
background: var(--surface-2, #f3f4f6);
color: var(--color-primary, #3b82f6);
flex-shrink: 0;
}
.aksrt-faq__a {
padding: 0 14px 14px 52px;
font-size: 13px;
color: var(--muted-2-color, #666);
line-height: 1.6;
}
.aksrt-faq__aside { display: grid; gap: 12px; margin-top: 14px; }
.aksrt-faq__doc, .aksrt-faq__help {
border-radius: 10px;
border: 1px solid var(--color-line, #e5e7eb);
padding: 14px;
background: var(--surface-2, #f8fafc);
}
.aksrt-faq__help-btn {
display: inline-block;
margin-top: 8px;
padding: 6px 12px;
border-radius: 999px;
background: var(--color-primary, #3b82f6);
color: #fff !important;
text-decoration: none;
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 {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 8px 0;
border-bottom: 1px dashed var(--color-line, #e5e7eb);
}
.aksrt-ftopic-list__item:last-child { border-bottom: 0; }
.aksrt-ftopic-list__link {
flex: 1;
min-width: 0;
color: inherit;
text-decoration: none;
font-size: 13px;
line-height: 1.45;
}
.aksrt-ftopic-list__views {
flex-shrink: 0;
font-size: 11px;
color: var(--muted-2-color, #999);
}
.aksrt-ftopic-list.is-detail .aksrt-ftopic-list__item { flex-direction: column; gap: 4px; }
.aksrt-ftopic-list__meta {
display: flex;
gap: 10px;
font-size: 11px;
color: var(--muted-2-color, #999);
}
/* Forum widget sidebar shell */
.aksrt-forum-widget-zone { margin-top: 12px; }
.aksrt-forum-widget-zone .zib-widget { margin-bottom: 14px; }