feat(widgets): partners/iframe/combo/text/user + forum plate widgets
Close major zibll widget-more and bbs plate gaps: partners marquee, super embed, combo info cards, text title, user lists, and plate list/info/moderator sidebars with batch3 CSS registration.
This commit is contained in:
@@ -0,0 +1,532 @@
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
@@ -3,3 +3,4 @@
|
||||
@import url("widgets/part-3.css");
|
||||
@import url("widgets/part-4.css");
|
||||
@import url("widget-slider.css");
|
||||
@import url("widget-batch3.css");
|
||||
|
||||
Reference in New Issue
Block a user