Files
wordpress-theme-aksrt/assets/css/frontend/widget-batch3d.css
T
kate522 9356faf13d feat(widgets): feature intro, term cards, paid posts lists
Close more zibll produck/posts widget gaps: media-tab feature intro,
taxonomy term cards, and paid/credits content list with CSS.
2026-07-19 00:29:37 +08:00

164 lines
4.1 KiB
CSS

/**
* Batch3d: feature intro, term cards, paid posts.
*/
.aksrt-fi {
display: grid;
grid-template-columns: 1fr 1.1fr;
gap: 28px;
align-items: center;
margin-bottom: 20px;
}
.aksrt-fi.media-left { grid-template-columns: 1.1fr 1fr; }
.aksrt-fi.media-left .aksrt-fi__text { order: 2; }
.aksrt-fi.media-left .aksrt-fi__media { order: 1; }
@media (max-width: 991.98px) {
.aksrt-fi,
.aksrt-fi.media-left {
grid-template-columns: 1fr;
}
.aksrt-fi.media-left .aksrt-fi__text,
.aksrt-fi.media-left .aksrt-fi__media { order: initial; }
}
.aksrt-fi__title {
font-size: 28px;
line-height: 1.25;
margin: 0 0 12px;
}
.aksrt-fi__desc {
font-size: 14px;
color: var(--muted-2-color, #666);
line-height: 1.7;
margin-bottom: 14px;
}
.aksrt-fi__stat {
display: flex;
align-items: baseline;
gap: 6px;
margin-bottom: 14px;
}
.aksrt-fi__stat-num {
font-size: 36px;
font-weight: 800;
color: var(--color-primary, #3b82f6);
line-height: 1;
}
.aksrt-fi__stat-plus { font-size: 22px; font-weight: 700; color: var(--color-primary, #3b82f6); }
.aksrt-fi__stat-label { font-size: 13px; color: var(--muted-2-color, #888); margin-left: 4px; }
.aksrt-fi__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.aksrt-fi__tab {
border: 1px solid var(--color-line, #e5e7eb);
background: var(--surface-1, #fff);
border-radius: 999px;
padding: 6px 14px;
font-size: 13px;
cursor: pointer;
}
.aksrt-fi__tab.is-active {
background: var(--color-primary, #3b82f6);
border-color: transparent;
color: #fff;
}
.aksrt-fi__panel { display: none; }
.aksrt-fi__panel.is-active { display: block; }
.aksrt-fi__browser {
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--color-line, #e5e7eb);
background: var(--surface-2, #f3f4f6);
box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.aksrt-fi__browser.is-plain { box-shadow: none; }
.aksrt-fi__browser-bar {
height: 28px;
background: #eef1f5;
display: flex;
align-items: center;
gap: 6px;
padding: 0 12px;
}
.aksrt-fi__browser-bar span {
width: 8px;
height: 8px;
border-radius: 50%;
background: #d0d5dd;
}
.aksrt-fi__browser-bar span:nth-child(1) { background: #ff5f57; }
.aksrt-fi__browser-bar span:nth-child(2) { background: #febc2e; }
.aksrt-fi__browser-bar span:nth-child(3) { background: #28c840; }
.aksrt-fi__browser-body {
position: relative;
width: 100%;
height: 0;
background: #111;
}
.aksrt-fi__img,
.aksrt-fi__video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.aksrt-term-cards {
display: grid;
grid-template-columns: repeat(var(--aksrt-tc-cols, 2), minmax(0, 1fr));
gap: 12px;
margin-bottom: 12px;
}
.aksrt-term-card {
display: block;
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--color-line, #e5e7eb);
text-decoration: none;
color: inherit;
background: var(--surface-1, #fff);
}
.aksrt-term-card__cover {
height: 88px;
background: var(--surface-2, #f3f4f6) center/cover no-repeat;
}
.aksrt-term-card__cover.is-empty {
background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.aksrt-term-card__body { padding: 10px 12px 12px; }
.aksrt-term-card__name { font-weight: 700; font-size: 14px; }
.aksrt-term-card__count { font-size: 12px; color: var(--muted-2-color, #888); margin-top: 2px; }
.aksrt-paid-posts { list-style: none; margin: 0; padding: 0; }
.aksrt-paid-posts__item {
display: flex;
gap: 10px;
padding: 8px 0;
border-bottom: 1px dashed var(--color-line, #e5e7eb);
}
.aksrt-paid-posts__item:last-child { border-bottom: 0; }
.aksrt-paid-posts__thumb {
width: 56px;
height: 56px;
border-radius: 8px;
overflow: hidden;
flex-shrink: 0;
background: var(--surface-2, #eee);
}
.aksrt-paid-posts__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aksrt-paid-posts__body { min-width: 0; flex: 1; }
.aksrt-paid-posts__title {
display: block;
color: inherit;
text-decoration: none;
font-size: 13px;
font-weight: 600;
line-height: 1.4;
}
.aksrt-paid-posts__price {
display: inline-block;
margin-top: 4px;
font-size: 12px;
color: #e11d48;
font-weight: 700;
}