feat(frontend): replace article system with Zibll 9.0

This commit is contained in:
2026-08-18 16:06:47 +08:00
parent 2881c69e9c
commit 0f2ac6c34a
69 changed files with 2603 additions and 4163 deletions
@@ -41,26 +41,6 @@
padding-top: 16px;
}
.aksrt-homepage__posts > .posts-item.list {
padding: 15px;
gap: 14px;
}
.aksrt-homepage__posts > .posts-item.list .item-thumbnail {
width: 160px;
min-width: 160px;
padding-bottom: calc(160px * 0.7);
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb .thumb-items > span {
width: calc(33.333% - 6px);
padding-bottom: calc(var(--posts-list-scale, 70%) / 3);
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb .thumb-items > span:nth-child(4) {
display: none;
}
}
/* ================================================================
@@ -73,41 +53,6 @@
padding-right: 10px;
}
.aksrt-homepage__posts > .posts-item.list {
padding: 12px;
gap: 12px;
margin-bottom: 10px;
}
.aksrt-homepage__posts > .posts-item.list .item-thumbnail {
width: 120px;
min-width: 120px;
padding-bottom: calc(120px * 0.7);
}
.aksrt-homepage__posts .item-heading {
font-size: 15px;
line-height: 1.4;
}
.aksrt-homepage__posts .item-excerpt {
display: none;
}
.aksrt-homepage__posts .meta-right {
display: none;
}
/* Zibll keeps article cards in two columns throughout the mobile range. */
.aksrt-homepage__posts[data-view="card"] {
margin: -5px;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item {
width: calc(50% - 10px);
margin: 5px;
}
/* Tab skeleton: smaller thumb */
.aksrt-homepage__tab-skeleton-thumb {
width: 120px;
@@ -158,44 +103,6 @@
font-size: 13px;
}
.aksrt-homepage__posts > .posts-item.list {
padding: 10px;
gap: 10px;
border-radius: var(--radius, 8px);
}
.aksrt-homepage__posts > .posts-item.list .item-thumbnail {
width: 96px;
min-width: 96px;
padding-bottom: calc(96px * 0.7);
border-radius: 6px;
}
.aksrt-homepage__posts .item-heading {
font-size: 15px;
-webkit-line-clamp: 2;
}
.aksrt-homepage__posts .item-tags .badge {
font-size: 11px;
padding: 2px 5px;
}
.aksrt-homepage__posts .item-meta {
flex-wrap: wrap;
gap: 8px;
font-size: 12px;
}
.aksrt-homepage__posts .meta-avatar {
width: 20px;
height: 20px;
}
.aksrt-homepage__posts .meta-item {
font-size: 12px;
}
/* Tab skeleton: adapt */
.aksrt-homepage__tab-skeleton-thumb {
width: 96px;
+31 -454
View File
@@ -1,6 +1,5 @@
.aksrt-homepage__view-btn.is-active {
color: var(--color-primary, var(--color-primary));
color: var(--color-primary);
}
.aksrt-homepage__view-btn svg {
@@ -9,10 +8,6 @@
fill: currentColor;
}
/* ================================================================
7. TITLE THEME (sidebar section headers)
================================================================ */
.title-theme {
position: relative;
padding-left: 1.2em;
@@ -23,14 +18,14 @@
.title-theme::before {
position: absolute;
content: "";
width: 4px;
background: var(--color-primary, var(--color-primary));
top: 10%;
left: 2px;
bottom: 10%;
left: 2px;
width: 4px;
content: "";
background: var(--color-primary);
border-radius: 5px;
box-shadow: 1px 1px 3px -1px var(--color-primary, var(--color-primary));
box-shadow: 1px 1px 3px -1px var(--color-primary);
}
.aksrt-homepage__page-indicator {
@@ -40,29 +35,18 @@
opacity: 0.7;
}
/* ================================================================
8. PANELS
================================================================ */
.aksrt-homepage__panel[hidden] {
display: none !important;
}
.aksrt-homepage__panels {
display: block;
}
.home-tab-content {
display: block;
}
.aksrt-homepage__panel[hidden],
.index-tab-main .tab-pane[hidden],
.home-tab-content .tab-pane[hidden] {
display: none !important;
}
.aksrt-homepage__panels,
.home-tab-content {
display: block;
}
.aksrt-homepage__panel {
/* Inactive panes start transparent; active pane must be fully visible. */
opacity: 0;
transition: opacity 0.3s ease;
}
@@ -72,18 +56,15 @@
.aksrt-homepage__panel.fade.in,
.aksrt-homepage__panel.tab-pane.active,
#index-tab-main.aksrt-homepage__panel,
#index-tab-main.posts-row,
.home-tab-content .tab-pane.is-active,
.home-tab-content .tab-pane.show,
.home-tab-content .tab-pane.active,
.aksrt-homepage__panel.is-active,
.aksrt-homepage__panel.show {
opacity: 1 !important;
display: block !important;
visibility: visible !important;
opacity: 1 !important;
}
/* Beat Bootstrap .fade:not(.show){opacity:0} if fade class remains */
.home-tab-content .tab-pane.fade.is-active,
.home-tab-content .tab-pane.fade.show,
.home-tab-content .tab-pane.fade.active,
@@ -95,430 +76,26 @@
display: none;
}
.aksrt-homepage__posts.post-grid--home {
gap: 0;
}
.aksrt-homepage__posts {
display: block;
margin: 0;
}
/* List cards: wrapped (.aksrt-homepage__posts) OR direct panel children (skip_wrapper). */
.aksrt-homepage__posts > .posts-item.list,
.posts-row.ajaxpager > .posts-item.list,
#index-tab-main > .posts-item.list {
width: 100%;
margin: 15px 0;
padding: 20px;
display: flex;
flex-direction: row;
gap: 16px;
min-width: 0;
background: var(--surface-1, #fff);
border: none;
border-radius: var(--main-radius, var(--radius, 8px));
box-shadow: var(--shadow-sm);
overflow: hidden;
transition: box-shadow 0.2s ease;
font-size: 1rem;
opacity: 1;
}
.aksrt-homepage__posts > .posts-item.list:last-child,
.posts-row.ajaxpager > .posts-item.list:last-child,
#index-tab-main > .posts-item.list:last-child {
margin-bottom: 0;
}
.aksrt-homepage__posts > .posts-item.list:hover,
.posts-row.ajaxpager > .posts-item.list:hover,
#index-tab-main > .posts-item.list:hover {
box-shadow: var(--shadow);
transform: none;
}
html.dark .aksrt-homepage__posts > .posts-item.list:hover,
html.dark .posts-row.ajaxpager > .posts-item.list:hover,
html.dark #index-tab-main > .posts-item.list:hover {
box-shadow: 0 4px 16px rgba(24, 24, 24, 0.22);
}
.aksrt-homepage__posts > .posts-item.list .item-thumbnail {
position: relative;
width: 190px;
min-width: 190px;
height: 0;
padding-top: 0;
padding-bottom: calc(190px * 0.7);
border-radius: var(--radius, 8px);
overflow: hidden;
flex-shrink: 0;
}
.aksrt-homepage__posts > .posts-item.list .item-thumbnail > a {
position: absolute;
inset: 0;
display: block;
}
.aksrt-homepage__posts > .posts-item.list .item-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}
.aksrt-homepage__posts > .posts-item.list:hover .item-thumbnail img {
transform: scale(1.02);
}
.aksrt-homepage__posts > .posts-item.list .item-thumbnail .img-badge {
position: absolute;
top: 8px;
left: 8px;
padding: 2px 6px;
border-radius: 4px;
font-size: 11px;
font-weight: 500;
line-height: 1.4;
background: rgba(0, 0, 0, 0.6);
color: #fff;
z-index: 1;
}
.aksrt-homepage__posts > .posts-item.list .thumb-items {
display: none;
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb {
display: block;
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb .item-thumbnail {
display: none;
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb .thumb-items {
display: block;
margin: 0 -3px 6px;
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb .thumb-items > span {
position: relative;
display: inline-block;
width: calc(25% - 6px);
height: 0;
margin: 0 3px;
padding-bottom: calc(var(--posts-list-scale, 70%) / 4);
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb .thumb-items.contain > span {
overflow: hidden;
background: var(--color-line, rgba(50, 50, 50, 0.06));
border-radius: var(--radius, 8px);
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb .thumb-items > span > img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb .thumb-items > span > img {
object-fit: cover;
transition: transform 0.3s;
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb:hover .thumb-items > span > img {
transform: scale(1.02);
}
.aksrt-homepage__posts > .posts-item.list.mult-thumb .item-body {
width: 100%;
padding: 2px 0 0;
}
.aksrt-homepage__posts > .posts-item.list .item-body,
.posts-row.ajaxpager > .posts-item.list .item-body,
#index-tab-main > .posts-item.list .item-body {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 8px;
margin: 0;
padding: 2px 0;
min-width: 0;
flex: 1 1 auto;
}
.aksrt-homepage__posts .item-heading,
#index-tab-main .item-heading,
.posts-row.ajaxpager .item-heading {
margin: 0 0 2px;
font-size: 18px;
font-weight: 500;
line-height: 1.4;
min-height: 0;
max-height: 2.8em;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
color: var(--color-ink);
}
.aksrt-homepage__posts .item-heading a,
#index-tab-main .item-heading a,
.posts-row.ajaxpager .item-heading a {
color: inherit;
text-decoration: none;
}
.aksrt-homepage__posts .item-heading a:hover,
#index-tab-main .item-heading a:hover,
.posts-row.ajaxpager .item-heading a:hover {
color: var(--color-primary, var(--color-primary));
}
.aksrt-homepage__posts .item-excerpt,
#index-tab-main .item-excerpt,
.posts-row.ajaxpager .item-excerpt {
margin: 0;
color: var(--main-color, #4e5358);
font-size: 14px;
line-height: 1.6;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.aksrt-homepage__posts .item-tags,
#index-tab-main .item-tags,
.posts-row.ajaxpager .item-tags {
display: flex;
align-items: center;
min-height: 0;
margin-bottom: 0;
gap: 5px;
flex-wrap: wrap;
overflow: visible;
}
.aksrt-homepage__posts .item-tags .badge {
min-height: auto;
margin-right: 0;
padding: 2px 5px;
border-radius: 4px;
font-size: 11px;
line-height: 1.4;
font-weight: 400;
}
.aksrt-homepage__posts .item-meta,
#index-tab-main .item-meta,
.posts-row.ajaxpager .item-meta {
display: flex;
align-items: center;
justify-content: space-between;
margin: 0;
padding-top: 0;
border-top: 0;
font-size: 13px;
color: var(--color-ink-3, #777);
}
.aksrt-homepage__posts .meta-author,
.aksrt-homepage__posts .meta-right {
display: flex;
align-items: center;
gap: 8px;
}
.aksrt-homepage__posts .meta-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
}
.aksrt-homepage__posts .meta-name {
color: var(--color-ink);
font-weight: 500;
}
.aksrt-homepage__posts .meta-dot {
width: 4px;
height: 4px;
border-radius: 999px;
background: var(--color-ink-4, #b1b1b1);
}
.aksrt-homepage__posts .meta-item {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 13px;
white-space: nowrap;
color: var(--color-ink-3, #777);
}
.aksrt-homepage__posts .meta-item i {
font-size: 12px;
}
/* ================================================================
10. POST CARDS — CARD MODE (3-column grid)
================================================================ */
.aksrt-homepage__posts[data-view="card"] {
display: block;
margin: -8px;
font-size: 0;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item {
width: calc(33.333% - 16px);
margin: 8px;
padding: 10px;
display: inline-block;
vertical-align: top;
font-size: 1rem;
background: var(--surface-1, #fff);
border: none;
border-radius: var(--main-radius, var(--radius, 8px));
box-shadow: var(--shadow-sm);
overflow: hidden;
transition: box-shadow 0.3s ease;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item:hover {
box-shadow: var(--shadow);
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.style2 {
background: transparent;
box-shadow: none;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.style2:hover {
background: var(--surface-1, #fff);
box-shadow: 0 0 10px var(--shadow, rgba(116, 116, 116, 0.08));
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.style3 {
padding: 0;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-thumbnail {
position: relative;
display: block;
width: 100%;
height: 0;
padding-top: 0;
padding-bottom: var(--posts-card-scale, 70%);
min-width: unset;
border-radius: var(--radius, 8px);
overflow: hidden;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-thumbnail > a {
position: absolute;
inset: 0;
display: block;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item:hover .item-thumbnail img {
transform: scale(1.02);
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.mult-thumb .thumb-items {
display: none;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.mult-thumb .item-thumbnail {
display: block;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.style3 .item-thumbnail,
.aksrt-homepage__posts[data-view="card"] > .posts-item.style3 .item-thumbnail img {
border-radius: var(--radius, 8px) var(--radius, 8px) 0 0;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-body {
width: 100%;
margin: 10px 0 0;
padding: 0;
gap: 6px;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.style3 .item-body {
margin: 0;
padding: 10px;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-heading {
font-size: 14px;
font-weight: 500;
line-height: 1.4;
min-height: 2.8em;
-webkit-line-clamp: 2;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-excerpt {
display: none;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-meta {
font-size: 12px;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .meta-right {
display: none;
}
/* ================================================================
VISIBILITY LOCK — homepage post stream must always paint
================================================================ */
posts.posts-item,
article.posts-item,
#index-tab-main > .posts-item,
.home-tab-content .posts-item {
opacity: 1 !important;
visibility: visible !important;
color: var(--color-ink, #333);
font-size: 1rem !important;
}
#index-tab-main > .posts-item.list,
.home-tab-content .posts-item.list {
.flex {
display: flex !important;
width: 100%;
box-sizing: border-box;
}
/* Minimal flex utilities used by post cards (zibll-style helpers) */
.flex { display: flex !important; }
.flex.xx,
.xx { flex-direction: column; }
.xx {
flex-direction: column;
}
.flex1,
.flex-1 { flex: 1 1 auto; min-width: 0; }
.jsb { justify-content: space-between; }
.ac { align-items: center; }
.jb { justify-content: space-between; }
.flex-1 {
flex: 1 1 auto;
min-width: 0;
}
.jsb,
.jb {
justify-content: space-between;
}
.ac {
align-items: center;
}
@@ -1,55 +1,3 @@
transition: transform 0.3s;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.mult-thumb .thumb-items {
display: none;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.mult-thumb .item-thumbnail {
display: block;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.style3 .item-thumbnail,
.aksrt-homepage__posts[data-view="card"] > .posts-item.style3 .item-thumbnail img {
border-radius: var(--radius, 8px) var(--radius, 8px) 0 0;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item:hover .item-thumbnail img {
transform: scale(1.02);
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-body {
width: 100%;
margin: 10px 0 0;
padding: 0;
gap: 6px;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item.style3 .item-body {
margin: 0;
padding: 10px;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-heading {
font-size: 14px;
font-weight: 500;
line-height: 1.4;
min-height: 2.8em;
-webkit-line-clamp: 2;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-excerpt {
display: none;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .item-meta {
font-size: 12px;
}
.aksrt-homepage__posts[data-view="card"] > .posts-item .meta-right {
display: none;
}
/* ================================================================
11. PAGINATION
================================================================ */
@@ -231,7 +231,4 @@
padding: 0.7em;
}
.posts-item .item-thumbnail {
width: 138px;
}
}
-60
View File
@@ -1,60 +0,0 @@
/**
* Post Card · CMS (grid-cms layout)
*/
.post-grid--grid-cms {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
}
.post-grid--grid-cms .posts-item.card.posts-item--cms {
height: 100%;
border-radius: 16px;
}
.post-grid--grid-cms .posts-item--cms .item-body {
gap: 10px;
}
.post-grid--grid-cms .posts-item--cms .item-excerpt {
-webkit-line-clamp: 2;
}
.post-grid--grid-cms .posts-item--cms .item-cms-strip {
display: flex;
flex-wrap: wrap;
gap: 8px;
list-style: none;
margin: 0;
padding: 0;
}
.post-grid--grid-cms .posts-item--cms .item-cms-strip li {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 10px;
border-radius: 999px;
background: var(--surface-2);
color: var(--color-ink-4);
font-size: 12px;
font-weight: 500;
}
.post-grid--grid-cms .posts-item--cms .item-cms-strip li::before {
display: none;
}
@media (max-width: 640px) {
.post-grid--grid-cms {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
}
@media (max-width: 380px) {
.post-grid--grid-cms {
grid-template-columns: 1fr;
}
}
File diff suppressed because it is too large Load Diff