补充主题静态资源与归档模板
This commit is contained in:
1 parent
1268a55dd0
commit
3247db7ed1
265 files changed
+59174
No files matched your search
@@ -0,0 +1,430 @@
|
||||
/* ===== Previous / Next Navigation ===== */
|
||||
.post-nav-box {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.post-nav-box__item {
|
||||
display: block;
|
||||
padding: 15px;
|
||||
text-decoration: none;
|
||||
transition: color 0.15s ease;
|
||||
color: var(--key-color, #333);
|
||||
}
|
||||
|
||||
.post-nav-box__item:hover {
|
||||
color: var(--focus-color, #f04494);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post-nav-box__item--next { text-align: right; }
|
||||
|
||||
.post-nav-box__label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: var(--color-ink-4, var(--color-ink-4));
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.post-nav-box__title {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--key-color, #333);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ===== Related Posts — 对齐 zibll 卡片容器 ===== */
|
||||
.related-box {
|
||||
margin-bottom: 16px;
|
||||
overflow: hidden;
|
||||
background: var(--main-bg-color, #fff);
|
||||
border-radius: var(--main-radius, 8px);
|
||||
box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
|
||||
}
|
||||
|
||||
.related-box__header { padding-bottom: 0; }
|
||||
|
||||
.related-box__title {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.related-box__title i { color: var(--color-primary); font-size: 13px; }
|
||||
|
||||
.related-box__list {
|
||||
padding: 12px 16px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.related-box__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid var(--color-line);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.related-box__item:last-child { border-bottom: none; }
|
||||
.related-box__item:hover { color: var(--color-primary); }
|
||||
|
||||
.related-box__thumb {
|
||||
width: 96px;
|
||||
min-width: 96px;
|
||||
height: 64px;
|
||||
border-radius: var(--main-radius, 8px);
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
background: var(--muted-bg-color, #eee);
|
||||
}
|
||||
|
||||
.related-box__thumb img { width: 100%; height: 100%; object-fit: cover; }
|
||||
|
||||
.related-box__placeholder {
|
||||
width: 100%; height: 100%;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: var(--color-ink-4); font-size: 14px;
|
||||
}
|
||||
|
||||
.related-box__item-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 1;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ===== Comment Card Spacing ===== */
|
||||
.comments-card { margin-bottom: 16px; }
|
||||
|
||||
/* ===== Content Height Clamp ===== */
|
||||
.wp-posts-content.limit-height {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wp-posts-content.limit-height::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0; left: 0; right: 0;
|
||||
height: 100px;
|
||||
background: linear-gradient(to bottom, transparent, var(--surface-page));
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.wp-posts-content.limit-height.is-expanded::after { display: none; }
|
||||
|
||||
.entry-content.limit-height {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.entry-content.limit-height::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0; left: 0; right: 0;
|
||||
height: 100px;
|
||||
background: linear-gradient(to bottom, transparent, var(--surface-page));
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.entry-content.limit-height.is-expanded::after { display: none; }
|
||||
|
||||
.content-expand-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
margin-top: -30px;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
border: none;
|
||||
background: var(--surface-page);
|
||||
color: var(--color-primary);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
border-top: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
.content-expand-btn:hover { background: var(--color-primary-soft, rgba(240, 68, 148, 0.06)); }
|
||||
.content-expand-btn.is-expanded i { transform: rotate(180deg); }
|
||||
|
||||
/* ===== Mobile ===== */
|
||||
@media (max-width: 767px) {
|
||||
.single-cover { padding-bottom: 55%; }
|
||||
.single-cover__content { padding: 14px; }
|
||||
.single-cover__title { font-size: 1rem; }
|
||||
.post-nav-box { grid-template-columns: 1fr; }
|
||||
.post-actions-card__buttons { gap: 8px; }
|
||||
.action-btn { padding: 8px 14px; font-size: 13px; }
|
||||
}
|
||||
|
||||
/* ===== 鏆楄壊妯″紡 ===== */
|
||||
.theme-dark .article-end-separator span,
|
||||
html.dark .article-end-separator span {
|
||||
background: var(--surface-1);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* Phase 7 single/article controls
|
||||
* ============================================================ */
|
||||
.reading-progress-bar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 120;
|
||||
width: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 55%, #fff));
|
||||
box-shadow: 0 2px 12px color-mix(in srgb, var(--color-primary) 24%, transparent);
|
||||
}
|
||||
|
||||
.author-info-bar.article-author-bar {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.author-info-bar.article-author-bar .author-info-bar__avatar img,
|
||||
.author-info-bar.article-author-bar .author-info-bar__avatar .avatar {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.author-info-bar.article-author-bar .author-info-bar__body {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.author-info-bar.article-author-bar .author-info-bar__name {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--color-ink);
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.author-info-bar.article-author-bar .author-info-bar__sub {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 10px;
|
||||
margin-top: 4px;
|
||||
color: var(--color-ink-4);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.author-info-bar.article-author-bar .author-info-bar__bio {
|
||||
margin: 8px 0 0;
|
||||
color: var(--color-ink-3);
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.action-btn--ghost {
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.toc-widget {
|
||||
position: sticky;
|
||||
top: 88px;
|
||||
padding: 18px 18px 14px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.toc-widget .widget-title {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.toc-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.toc-list li {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.toc-list a {
|
||||
display: block;
|
||||
color: var(--color-ink-3);
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.toc-list a:hover,
|
||||
.toc-list a.is-active {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.toc-list .toc-h3 a {
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
.toc-list .toc-h4 a {
|
||||
padding-left: 24px;
|
||||
}
|
||||
|
||||
.toc-float-btn {
|
||||
position: fixed;
|
||||
right: 18px;
|
||||
bottom: 86px;
|
||||
z-index: 41;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
.toc-drawer-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 79;
|
||||
display: none;
|
||||
background: rgba(15, 23, 42, 0.36);
|
||||
}
|
||||
|
||||
.toc-drawer-overlay.is-open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.toc-drawer {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 80;
|
||||
width: min(86vw, 340px);
|
||||
padding: 18px 18px 28px;
|
||||
background: var(--surface-page);
|
||||
border-left: 1px solid var(--color-line);
|
||||
transform: translateX(100%);
|
||||
transition: transform 0.25s ease;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.toc-drawer.is-open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.toc-drawer__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.toc-drawer__head h3 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.toc-drawer__close {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: var(--surface-2);
|
||||
color: var(--color-ink-3);
|
||||
}
|
||||
|
||||
.resource-mobile-fab {
|
||||
position: fixed;
|
||||
right: 18px;
|
||||
bottom: 24px;
|
||||
z-index: 42;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 999px;
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
.resource-mobile-download-bar {
|
||||
display: none;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.resource-related {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.resource-related__header {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.resource-related__title {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.resource-related__grid {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.toc-widget {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.toc-float-btn {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.resource-mobile-download-bar {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.resource-mobile-fab {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.author-info-bar.article-author-bar {
|
||||
gap: 10px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.author-info-bar.article-author-bar .author-info-bar__sub {
|
||||
gap: 6px 8px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user