Remove Bootstrap fade/in classes from the active home pane, render cards as <article class="posts-item">, and lock list opacity/display with !important so published posts cannot stay invisible.
533 lines
12 KiB
CSS
533 lines
12 KiB
CSS
|
|
.aksrt-homepage__view-btn.is-active {
|
|
color: var(--color-primary, var(--color-primary));
|
|
}
|
|
|
|
.aksrt-homepage__view-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
/* ================================================================
|
|
7. TITLE THEME (sidebar section headers)
|
|
================================================================ */
|
|
|
|
.title-theme {
|
|
position: relative;
|
|
padding-left: 1.2em;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.title-theme::before {
|
|
position: absolute;
|
|
content: "";
|
|
width: 4px;
|
|
background: var(--color-primary, var(--color-primary));
|
|
top: 10%;
|
|
left: 2px;
|
|
bottom: 10%;
|
|
border-radius: 5px;
|
|
box-shadow: 1px 1px 3px -1px var(--color-primary, var(--color-primary));
|
|
}
|
|
|
|
.aksrt-homepage__page-indicator {
|
|
margin-left: 10px;
|
|
font-size: 80%;
|
|
font-weight: 400;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* ================================================================
|
|
8. PANELS
|
|
================================================================ */
|
|
|
|
.aksrt-homepage__panel[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.aksrt-homepage__panels {
|
|
display: block;
|
|
}
|
|
|
|
.home-tab-content {
|
|
display: block;
|
|
}
|
|
|
|
.index-tab-main .tab-pane[hidden],
|
|
.home-tab-content .tab-pane[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.aksrt-homepage__panel {
|
|
/* Inactive panes start transparent; active pane must be fully visible. */
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.aksrt-homepage__panel.is-active,
|
|
.aksrt-homepage__panel.active,
|
|
.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;
|
|
}
|
|
|
|
/* 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,
|
|
#index-tab-main.fade {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.aksrt-homepage__panel-contract {
|
|
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 .aksrt-skeleton {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--surface-2, #eee);
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.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 .aksrt-skeleton,
|
|
.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: flex;
|
|
flex-wrap: wrap;
|
|
margin: -8px;
|
|
}
|
|
|
|
.aksrt-homepage__posts[data-view="card"] > .posts-item {
|
|
width: calc(33.333% - 16px);
|
|
margin: 8px;
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
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 {
|
|
display: block !important;
|
|
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 {
|
|
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; }
|
|
.flex1,
|
|
.flex-1 { flex: 1 1 auto; min-width: 0; }
|
|
.jsb { justify-content: space-between; }
|
|
.ac { align-items: center; }
|
|
.jb { justify-content: space-between; }
|