Files
wordpress-theme-aksrt/assets/css/frontend/widget-batch5.css
T
kate522 7a91eb7321 feat(widgets): user-card guest/login depth, main posts, term aggregation
1:1 zibll user widget guest shell + checkin/actions, main post list
styles, term aggregation cards, and ranking by check-in days.
2026-07-19 01:06:20 +08:00

230 lines
5.4 KiB
CSS

/**
* Batch5: user card guest/login depth, main posts, term aggregation.
*/
.aksrt-user-card {
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--color-line, #e5e7eb);
background: var(--surface-1, #fff);
text-align: center;
margin-bottom: 12px;
}
.aksrt-user-card__cover {
height: 90px;
background: linear-gradient(135deg, #93c5fd, #c4b5fd) center/cover no-repeat;
}
.aksrt-user-card__cover.is-empty {
background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}
.aksrt-user-card__body { padding: 0 14px 16px; position: relative; }
.aksrt-user-card__checkin {
position: absolute;
right: 10px;
top: 8px;
z-index: 2;
max-width: 48%;
}
.aksrt-user-card__checkin .but {
padding: 4px 8px !important;
font-size: 12px !important;
line-height: 1.2;
}
.aksrt-user-card__checkin .aksrt-header-checkin-details { display: none; }
.aksrt-user-card__avatar {
display: inline-block;
margin-top: -36px;
width: 72px;
height: 72px;
border-radius: 50%;
overflow: hidden;
border: 3px solid var(--surface-1, #fff);
background: var(--surface-2, #eee);
}
.aksrt-user-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aksrt-user-card__name {
margin: 10px 0 0;
font-size: 16px;
font-weight: 700;
}
.aksrt-user-card__name a { color: inherit; text-decoration: none; }
.aksrt-user-card__bio,
.aksrt-user-card__guest-title {
margin: 8px 0 0;
font-size: 12px;
color: var(--muted-2-color, #888);
line-height: 1.5;
}
.aksrt-user-card__guest-title { font-size: 14px; font-weight: 600; color: inherit; }
.aksrt-user-card__stats {
display: flex;
justify-content: center;
gap: 18px;
margin-top: 12px;
}
.aksrt-user-card__stat-value {
display: block;
font-size: 16px;
font-weight: 700;
}
.aksrt-user-card__stat-label {
font-size: 11px;
color: var(--muted-2-color, #999);
}
.aksrt-user-card__actions {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
margin-top: 14px;
}
.aksrt-user-card__btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 96px;
padding: 7px 14px;
border-radius: 999px;
font-size: 13px;
text-decoration: none;
font-weight: 600;
}
.aksrt-user-card__btn--primary {
background: var(--color-primary, #3b82f6);
color: #fff !important;
}
.aksrt-user-card__btn--ghost {
background: var(--surface-2, #f3f4f6);
color: inherit !important;
}
/* Main posts */
.aksrt-main-posts { display: flex; flex-direction: column; gap: 10px; }
.aksrt-main-posts.style-card {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
@media (max-width: 575.98px) {
.aksrt-main-posts.style-card { grid-template-columns: 1fr; }
}
.aksrt-main-posts__card {
display: block;
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--color-line, #e5e7eb);
background: var(--surface-1, #fff);
text-decoration: none;
color: inherit;
}
.aksrt-main-posts__thumb {
height: 110px;
background: var(--surface-2, #f3f4f6);
overflow: hidden;
}
.aksrt-main-posts__thumb.mini {
width: 56px;
height: 56px;
border-radius: 8px;
flex-shrink: 0;
}
.aksrt-main-posts__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aksrt-main-posts__thumb.is-empty { background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.aksrt-main-posts__body { padding: 10px 12px 12px; min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.aksrt-main-posts__title {
font-size: 13px;
font-weight: 600;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.aksrt-main-posts__meta {
display: flex;
gap: 10px;
font-size: 11px;
color: var(--muted-2-color, #999);
}
.aksrt-main-posts__row {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: inherit;
padding: 4px 0;
border-bottom: 1px dashed var(--color-line, #e5e7eb);
}
.aksrt-main-posts__row:last-child { border-bottom: 0; }
.aksrt-main-posts__num {
width: 20px;
flex-shrink: 0;
font-size: 12px;
font-weight: 700;
color: var(--color-primary, #3b82f6);
text-align: center;
}
/* Term aggregation */
.aksrt-term-agg {
display: grid;
grid-template-columns: repeat(var(--aksrt-ta-cols, 1), minmax(0, 1fr));
gap: 12px;
}
.aksrt-term-agg__card {
border: 1px solid var(--color-line, #e5e7eb);
border-radius: 12px;
overflow: hidden;
background: var(--surface-1, #fff);
}
.aksrt-term-agg__head {
display: block;
text-decoration: none;
color: inherit;
position: relative;
}
.aksrt-term-agg__cover {
height: 96px;
background: var(--surface-2, #f3f4f6) center/cover no-repeat;
}
.aksrt-term-agg__cover.is-empty {
background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.aksrt-term-agg__name {
position: absolute;
left: 12px;
bottom: 10px;
font-weight: 700;
color: #fff;
text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.aksrt-term-agg__count {
position: absolute;
right: 10px;
top: 10px;
font-size: 11px;
padding: 2px 8px;
border-radius: 999px;
background: rgba(0,0,0,.45);
color: #fff;
}
.aksrt-term-agg__posts {
list-style: none;
margin: 0;
padding: 8px 12px 10px;
}
.aksrt-term-agg__posts li {
padding: 6px 0;
border-bottom: 1px dashed var(--color-line, #eee);
}
.aksrt-term-agg__posts li:last-child { border-bottom: 0; }
.aksrt-term-agg__posts a {
color: inherit;
text-decoration: none;
font-size: 13px;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}