fix
This commit is contained in:
1 parent
25bb0213d4
commit
31e185664a
19 files changed
+12
-672
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user