This commit is contained in:
2026-08-22 18:54:12 +08:00
parent 25bb0213d4
commit 31e185664a
19 changed files with 12 additions and 672 deletions
@@ -165,7 +165,7 @@ a, button, input, select, textarea {
/* --- 卡片 hover 统一 --- */
.post-card, .widget, .aksrt-theme-box, .theme-box,
.comment-body, .friend-card, .special-card,
.resource-download-box, .resource-meta-box {
.resource-download-box {
transition: box-shadow var(--dur) var(--ease),
border-color var(--dur) var(--ease),
transform var(--dur) var(--ease);
-5
View File
@@ -191,17 +191,12 @@ body.site-layout-3 .sidebar,
/* Sticky widgets inside sidebar */
@media (min-width: 992px) {
body.site-layout-2 .sidebar .posts-nav-box,
body.site-layout-3 .sidebar .posts-nav-box,
body.site-layout-2 .aksrt-article-sidebar .posts-nav-box,
body.site-layout-3 .aksrt-article-sidebar .posts-nav-box,
.sidebar .content-layout__aside,
.content-layout__aside {
position: sticky;
top: calc(var(--nav-height, 60px) + 16px);
}
.has-static-nav .sidebar .posts-nav-box,
.has-static-nav .content-layout__aside {
top: 16px;
}
-1
View File
@@ -86,7 +86,6 @@
}
/* 资源元信息 */
.resource-meta-box,
.resource-download-box {
border: 1px solid #ccc;
padding: 12px;
@@ -184,23 +184,6 @@
line-height: 1.3;
}
/* ============================================================
* 元信息卡片图标增强
* ============================================================ */
.resource-meta-box__key {
display: flex;
align-items: center;
gap: 8px;
}
.resource-meta-box__key i {
width: 16px;
text-align: center;
color: var(--color-ink-4, #8A8F98);
font-size: 13px;
flex-shrink: 0;
}
/* ============================================================
* 渐变价格标签(模仿 legacy 渐变 pay-tag)
* ============================================================ */
@@ -323,152 +323,6 @@ html.dark .article-end-separator span {
background: var(--surface-2);
}
.toc-widget {
position: sticky;
top: 88px;
padding: 18px 18px 14px;
margin-bottom: 16px;
border: none;
border-radius: var(--radius-2xl, 16px);
box-shadow: var(--shadow-sm);
background: var(--surface-1);
}
.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-h1 a {
font-weight: 700;
}
.toc-list .toc-h3 a {
padding-left: 12px;
}
.toc-list .toc-h4 a {
padding-left: 24px;
}
/* Built-in article TOC shell. */
.sidebar .posts-nav-box.toc-widget {
margin: 0;
box-shadow: none;
background: transparent;
padding: 0;
border-radius: 0;
}
.sidebar .posts-nav-box.toc-widget > h3,
.sidebar .posts-nav-box.toc-widget .toc-widget__title {
margin: 0 0 10px;
font-size: 15px;
font-weight: 700;
}
body.single .sidebar .posts-nav-box.toc-widget.is-affix,
body.single .sidebar .posts-nav-box.toc-widget[data-affix="true"] {
position: sticky;
top: calc(var(--nav-height, 60px) + 16px);
}
.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-1);
border-left: 1px solid rgba(255, 255, 255, 0.55);
box-shadow: var(--shadow-drawer);
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;
@@ -509,14 +363,6 @@ body.single .sidebar .posts-nav-box.toc-widget[data-affix="true"] {
}
@media (max-width: 991px) {
.toc-widget {
display: none;
}
.toc-float-btn {
display: inline-flex;
}
.resource-mobile-download-bar {
display: block;
}
-59
View File
@@ -25,12 +25,6 @@ body.single main.container .content-layout > .breadcrumbs-wrap {
padding-top: 2px;
}
/* Sticky TOC widget in sidebar — parent .sidebar is position:unset like legacy */
body.single .sidebar .posts-nav-box.toc-widget {
position: sticky;
top: calc(var(--nav-height, 60px) + 16px);
}
body.single .sidebar .aksrt-panel,
body.single .sidebar .widget {
margin-bottom: 15px;
@@ -56,56 +50,3 @@ body.single main.container {
align-items: center;
gap: 5px;
}
/* Useful fallback for sites that enable the column before adding widgets. */
.single-overview-widget {
padding: 18px;
border-radius: var(--main-radius, 8px);
background: var(--main-bg-color, #fff);
box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
}
.single-overview-widget__title {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 12px;
font-size: 15px;
}
.single-overview-widget__title i {
color: var(--focus-color, #f04494);
}
.single-overview-widget__list {
margin: 0;
}
.single-overview-widget__list > div {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 8px 0;
border-bottom: 1px dashed var(--main-border-color, rgba(50, 50, 50, 0.08));
}
.single-overview-widget__list > div:last-child {
padding-bottom: 0;
border-bottom: 0;
}
.single-overview-widget__list dt,
.single-overview-widget__list dd {
margin: 0;
font-size: 12px;
}
.single-overview-widget__list dt {
color: var(--muted-color, #777);
}
.single-overview-widget__list dd {
color: var(--key-color, #333);
text-align: right;
}