补充主题静态资源与归档模板
This commit is contained in:
@@ -0,0 +1,300 @@
|
||||
/* ========== 侧栏小工具(模仿 zibll .zib-widget) ========== */
|
||||
.content-layout__aside .widget,
|
||||
.widget-card,
|
||||
.zib-widget {
|
||||
clear: both;
|
||||
background: var(--surface-1);
|
||||
padding: var(--card-padding);
|
||||
box-shadow: var(--shadow-sm);
|
||||
border-radius: var(--radius);
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
/* Custom HTML widgets: de-card (no background, no padding — matches Zibll) */
|
||||
.widget_custom_html,
|
||||
.zib-widget.widget_custom_html {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Zibll zib-widget-sm / noshadow modifier */
|
||||
.zib-widget-sm,
|
||||
.zib-widget.noshadow {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.widget-title {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
margin: 0 0 10px;
|
||||
padding-bottom: 8px;
|
||||
position: relative;
|
||||
color: var(--color-ink);
|
||||
border-bottom: none;
|
||||
text-transform: none;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
/* 标题下划线装饰(模仿 zibll) */
|
||||
.widget-title::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 3px;
|
||||
width: 40px;
|
||||
height: 3px;
|
||||
background: var(--color-primary);
|
||||
border-radius: 5px;
|
||||
box-shadow: 1px 1px 3px -1px var(--color-primary);
|
||||
transition: transform 0.4s ease;
|
||||
transform-origin: left;
|
||||
}
|
||||
|
||||
/* 暗色模式 */
|
||||
.theme-dark .content-layout__aside .widget,
|
||||
html.dark .content-layout__aside .widget,
|
||||
.theme-dark .widget-card,
|
||||
html.dark .widget-card,
|
||||
.theme-dark .zib-widget,
|
||||
html.dark .zib-widget {
|
||||
background: var(--surface-1);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.author-card {
|
||||
text-align: center;
|
||||
padding: 28px 20px;
|
||||
border-radius: var(--radius-lg);
|
||||
background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
|
||||
color: #fff;
|
||||
box-shadow: var(--shadow-md);
|
||||
border: none;
|
||||
}
|
||||
|
||||
.author-card img {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border-radius: var(--radius-avatar);
|
||||
border: 3px solid rgba(255, 255, 255, 0.35);
|
||||
margin-bottom: 14px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.author-card h3 {
|
||||
margin: 0 0 8px;
|
||||
color: #fff;
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
.author-card p {
|
||||
margin: 0 0 16px;
|
||||
font-size: 0.875rem;
|
||||
opacity: 0.92;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.author-card .social-row,
|
||||
.author-card .profile-social-links {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.profile-social-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.profile-social-links a,
|
||||
.social-icon-link {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: var(--radius-avatar);
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.profile-social-links a svg,
|
||||
.social-icon-link svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
display: block;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
|
||||
.profile-social-links a:hover,
|
||||
.social-icon-link:hover {
|
||||
background: rgba(255, 255, 255, 0.35);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.widget_search .search-form {
|
||||
display: flex;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.widget_search label {
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--color-ink-4);
|
||||
}
|
||||
|
||||
.widget_search .search-field {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
padding: 0 16px 0 44px;
|
||||
border-radius: var(--radius-btn);
|
||||
border: 1px solid var(--color-line);
|
||||
background: var(--surface-3);
|
||||
color: var(--color-ink);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.widget_search .search-field:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px var(--color-primary-50);
|
||||
}
|
||||
|
||||
.widget_search .search-submit {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
top: 4px;
|
||||
height: 36px;
|
||||
padding: 0 14px;
|
||||
border-radius: 6px;
|
||||
border: none;
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.widget-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.widget-list li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid var(--color-line);
|
||||
font-size: 14px;
|
||||
color: var(--color-ink-3);
|
||||
}
|
||||
|
||||
.widget-list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.widget-list li a {
|
||||
flex: 1;
|
||||
transition: color 0.2s, padding 0.2s;
|
||||
}
|
||||
|
||||
.widget-list li a:hover {
|
||||
color: var(--color-primary);
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
.widget-list li span {
|
||||
color: var(--color-ink-4);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.widget_recent_entries li,
|
||||
.recent-posts-row {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: flex-start;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
.widget_recent_entries li:last-child,
|
||||
.recent-posts-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.recent-posts-row img {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: var(--radius-btn);
|
||||
object-fit: cover;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tag-cloud {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.tag-cloud a {
|
||||
padding: 6px 12px;
|
||||
border-radius: var(--radius-pill);
|
||||
border: 1px solid var(--color-line);
|
||||
font-weight: 500;
|
||||
color: var(--color-ink-3);
|
||||
transition: background 0.2s, border-color 0.2s, color 0.2s;
|
||||
}
|
||||
|
||||
.tag-cloud a:hover {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.content-layout__aside .widget:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 热榜文章小工具 — v4.0 Zibll-Inspired
|
||||
* ============================================================ */
|
||||
.widget-hot-posts {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.hot-post-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
.hot-post-item:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.hot-post-item:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.hot-post-item__rank {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
min-width: 22px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
background: var(--surface-3);
|
||||
color: var(--color-ink-4);
|
||||
@@ -0,0 +1,300 @@
|
||||
flex-shrink: 0;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* 前三名高亮 */
|
||||
.hot-post-item.rank-top .hot-post-item__rank {
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hot-post-item__info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.hot-post-item__title {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
color: var(--color-ink);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.hot-post-item__title:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.hot-post-item__meta {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
font-size: 11px;
|
||||
color: var(--color-ink-4);
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.hot-post-item__meta span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.hot-post-item__meta i {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 多栏目 Tab 切换小工具 — v4.0 Zibll-Inspired
|
||||
* ============================================================ */
|
||||
.widget-tab-posts__nav {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
margin: 0 0 12px;
|
||||
padding: 0;
|
||||
gap: 2px;
|
||||
border-bottom: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
.widget-tab-posts__nav li {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.widget-tab-posts__tab {
|
||||
display: inline-block;
|
||||
padding: 6px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--color-ink-4);
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
cursor: pointer;
|
||||
transition: color 0.15s ease, border-color 0.15s ease;
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
|
||||
.widget-tab-posts__tab:hover {
|
||||
color: var(--color-ink);
|
||||
}
|
||||
|
||||
.widget-tab-posts__tab.active {
|
||||
color: var(--color-primary);
|
||||
border-bottom-color: var(--color-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.widget-tab-posts__panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.widget-tab-posts__panel.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.widget-tab-posts__list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.widget-tab-posts__item {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
.widget-tab-posts__item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.widget-tab-posts__thumb {
|
||||
width: 56px;
|
||||
height: 42px;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.widget-tab-posts__thumb img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.widget-tab-posts__info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.widget-tab-posts__title {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
color: var(--color-ink);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.widget-tab-posts__title:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.widget-tab-posts__meta {
|
||||
font-size: 11px;
|
||||
color: var(--color-ink-4);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .widget-tab-posts__list--mini,
|
||||
.aksrt-homepage__aside .aksrt-home-widget__sidebar-list {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
width: 100% !important;
|
||||
gap: 12px;
|
||||
padding: 10px 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .widget-tab-posts__list--mini .posts-mini + .posts-mini,
|
||||
.aksrt-homepage__aside .aksrt-home-widget__sidebar-list .posts-mini + .posts-mini {
|
||||
border-top: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .widget-tab-posts__list--mini .posts-mini:first-of-type,
|
||||
.aksrt-homepage__aside .aksrt-home-widget__sidebar-list .posts-mini:first-of-type {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .widget-tab-posts__list--mini .posts-mini:last-of-type,
|
||||
.aksrt-homepage__aside .aksrt-home-widget__sidebar-list .posts-mini:last-of-type {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini-con {
|
||||
flex: auto;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini .item-thumbnail {
|
||||
display: block;
|
||||
position: relative;
|
||||
flex: 0 0 96px;
|
||||
width: 96px;
|
||||
min-width: 96px;
|
||||
height: 0;
|
||||
padding-bottom: var(--posts-list-scale, 70%);
|
||||
border-radius: var(--radius, 8px);
|
||||
overflow: hidden;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini .item-thumbnail img {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini .item-heading {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 1.45;
|
||||
max-height: 2.9em;
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini .item-heading a {
|
||||
color: var(--color-ink);
|
||||
text-decoration: none;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini .item-heading a:hover {
|
||||
color: var(--color-primary, var(--color-primary));
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini .item-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-top: 6px;
|
||||
font-size: 12px;
|
||||
color: var(--color-ink-4);
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini .item-meta .meta-dot {
|
||||
width: 3px;
|
||||
height: 3px;
|
||||
min-width: 3px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini .item-meta .meta-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .posts-mini .item-meta i {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .widget-hot-posts--mini .hot-post-item {
|
||||
align-items: stretch;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .widget-hot-posts--mini .hot-post-item .posts-mini {
|
||||
flex: 1;
|
||||
align-items: flex-start;
|
||||
min-width: 0;
|
||||
width: auto !important;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .widget-hot-posts--mini .hot-post-item .posts-mini-con {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.aksrt-homepage__aside .widget-hot-posts--mini .hot-post-item__rank {
|
||||
margin-top: 2px;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.widget-empty {
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: var(--color-ink-4);
|
||||
padding: 16px 0;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
@@ -0,0 +1,300 @@
|
||||
* Homepage content widgets
|
||||
* ============================================================ */
|
||||
.aksrt-home-widget {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__header--tabs {
|
||||
align-items: flex-end;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__title {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
padding-left: 16px;
|
||||
color: var(--color-ink);
|
||||
font: 700 15px/1.4 var(--font-ui, var(--font-ui));
|
||||
}
|
||||
|
||||
.aksrt-home-widget__title::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 10%;
|
||||
bottom: 10%;
|
||||
left: 2px;
|
||||
width: 4px;
|
||||
border-radius: 5px;
|
||||
background: var(--color-primary);
|
||||
box-shadow: 1px 1px 3px -1px var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-home-widget__more {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 30px;
|
||||
padding: 0 12px;
|
||||
border-radius: 20px;
|
||||
background: var(--surface-3);
|
||||
color: var(--color-ink-3);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
transition: background 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__more:hover {
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__footer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__tab-nav.widget-tab-posts__nav {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
gap: 4px;
|
||||
border-bottom: 0;
|
||||
flex: 1 1 auto;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__tab-nav .widget-tab-posts__tab {
|
||||
padding: 5px 12px;
|
||||
margin-bottom: 0;
|
||||
border: 0;
|
||||
border-radius: 20px;
|
||||
background: var(--surface-3);
|
||||
color: var(--color-ink-3);
|
||||
}
|
||||
|
||||
.aksrt-home-widget__tab-nav .widget-tab-posts__tab:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-home-widget__tab-nav .widget-tab-posts__tab.active {
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid--list {
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.aksrt-home-widget__post-grid--card,
|
||||
.aksrt-home-widget__post-grid--grid-cms {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.aksrt-home-widget__post-grid--card,
|
||||
.aksrt-home-widget__post-grid--grid-cms {
|
||||
grid-template-columns: repeat(var(--aksrt-widget-columns, 3), minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid .posts-item.card {
|
||||
height: 100%;
|
||||
border: 1px solid var(--color-line);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid .posts-item.card:hover {
|
||||
transform: none;
|
||||
box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid .posts-item.list {
|
||||
border-bottom: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid .posts-item.list:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid .item-heading {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid .item-tags {
|
||||
gap: 0;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid .item-tags .badge {
|
||||
margin-right: 5px;
|
||||
padding: 2px 5px;
|
||||
font-size: 11px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__post-grid .item-meta {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__sidebar-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__sidebar-list .widget-tab-posts__item:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.aksrt-category-recommend__grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.aksrt-category-recommend__grid {
|
||||
grid-template-columns: repeat(var(--aksrt-recommend-columns, 2), minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
background: var(--surface-page);
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__card:hover {
|
||||
transform: none;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__hero {
|
||||
position: relative;
|
||||
aspect-ratio: 16 / 9;
|
||||
overflow: hidden;
|
||||
background: var(--surface-3);
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__hero > a {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__cover {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__card:hover .aksrt-category-recommend__cover {
|
||||
transform: scale(1.04);
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__badge,
|
||||
.aksrt-category-recommend__views {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
z-index: 2;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
min-height: 24px;
|
||||
padding: 0 9px;
|
||||
border-radius: 20px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
background: rgba(17, 24, 39, 0.72);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__badge {
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__views {
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__body {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__name {
|
||||
margin: 0;
|
||||
font-size: 15px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__name a {
|
||||
color: var(--color-ink);
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__name a:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__desc {
|
||||
margin: 0;
|
||||
color: var(--color-ink-4);
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__posts {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-top: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__post {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
justify-content: space-between;
|
||||
@@ -0,0 +1,95 @@
|
||||
padding: 9px 0;
|
||||
border-bottom: 1px dashed var(--color-line);
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__post:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__post-link {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
color: var(--color-ink);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__post-link:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-category-recommend__date {
|
||||
flex: 0 0 auto;
|
||||
color: var(--color-ink-4);
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.aksrt-home-widget__header,
|
||||
.aksrt-home-widget__header--tabs {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.aksrt-home-widget__tab-nav.widget-tab-posts__nav {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 流体挂件区(Fluid Widget Areas)
|
||||
* 模仿 zibll 的 all_top_fluid / single_top_fluid 等全宽挂载位
|
||||
* ============================================================ */
|
||||
.aksrt-fluid-widget {
|
||||
width: 100%;
|
||||
max-width: var(--container-wide, 1440px);
|
||||
margin: 0 auto;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.aksrt-fluid-widget {
|
||||
padding: 0 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.aksrt-fluid-widget .widget {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.aksrt-fluid-widget--all-top {
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
.aksrt-fluid-widget--all-bottom {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.aksrt-fluid-widget--home-top {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.aksrt-fluid-widget--single-top {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.aksrt-fluid-widget--single-bottom {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.aksrt-fluid-widget--archive-bottom {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
/* 流体挂件区内无边框无背景(全宽展示) */
|
||||
.aksrt-fluid-widget .widget_custom_html {
|
||||
background: transparent;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user