评论区 侧边栏

This commit is contained in:
2026-06-18 16:03:38 +08:00 Unverified
parent ebaf187d89
commit ce4a201508
6 changed files with 368 additions and 7 deletions
+188 -4
View File
@@ -109,7 +109,8 @@ a {
white-space: nowrap;
}
.nav-links a {
.nav-links a,
.nav-search {
border: 1px solid transparent;
border-radius: 999px;
padding: 7px 12px;
@@ -121,13 +122,36 @@ a {
transform 0.2s ease;
}
.nav-search {
display: inline-flex;
align-items: center;
gap: 6px;
color: inherit;
font: inherit;
line-height: inherit;
background: transparent;
cursor: pointer;
}
.nav-search svg {
width: 16px;
height: 16px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav-links a:hover,
.nav-search:hover,
.site-footer a:hover,
.section-heading a:hover {
color: var(--accent);
}
.nav-links a:hover {
.nav-links a:hover,
.nav-search:hover {
border-color: rgba(255, 255, 255, 0.62);
background: rgba(255, 255, 255, 0.38);
box-shadow:
@@ -646,6 +670,7 @@ a {
}
.toc-list,
.article-tag-list,
.same-category-list {
display: grid;
gap: 6px;
@@ -669,6 +694,7 @@ a {
}
.toc-list a,
.article-tag-list a,
.same-category-list a {
border-radius: 8px;
padding: 9px 11px;
@@ -681,18 +707,108 @@ a {
}
.toc-list a:hover,
.article-tag-list a:hover,
.same-category-list a:hover {
color: #1f618d;
background: rgba(102, 200, 245, 0.16);
transform: translateX(2px);
}
.toc-tree {
gap: 8px;
}
.toc-group {
position: relative;
}
.toc-link {
position: relative;
display: flex;
align-items: flex-start;
gap: 9px;
text-decoration: none;
}
.toc-link-main {
color: #3e5664 !important;
font-weight: 800;
}
.toc-marker {
flex: 0 0 auto;
width: 8px;
height: 8px;
margin-top: 0.52em;
border-radius: 999px;
background: rgba(102, 200, 245, 0.52);
box-shadow: 0 0 0 4px rgba(102, 200, 245, 0.12);
}
.toc-children {
position: relative;
display: grid;
gap: 4px;
max-height: 0;
margin-left: 14px;
overflow: hidden;
border-left: 1px solid rgba(102, 200, 245, 0.24);
padding-left: 10px;
opacity: 0;
transition:
max-height 0.28s ease,
opacity 0.22s ease,
margin-top 0.22s ease;
}
.toc-group.is-open .toc-children {
max-height: 520px;
margin-top: 4px;
opacity: 1;
}
.toc-link-child {
color: #657384 !important;
font-size: 0.9rem;
font-weight: 600;
}
.toc-link.is-active {
color: #0f766e !important;
background: rgba(102, 200, 245, 0.16);
transform: translateX(2px);
}
.toc-group.is-open .toc-link-main .toc-marker,
.toc-link.is-active .toc-marker {
background: #3eb8be;
box-shadow: 0 0 0 4px rgba(62, 184, 190, 0.16);
}
.article-tag-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.article-tag-list a {
display: inline-flex;
align-items: center;
min-height: 34px;
border: 1px solid rgba(15, 118, 110, 0.18);
padding: 6px 11px;
color: var(--accent);
font-size: 0.88rem;
font-weight: 700;
background: rgba(236, 253, 245, 0.66);
}
.toc-depth-2 {
padding-left: 22px !important;
}
.toc-depth-3 {
padding-left: 34px !important;
padding-left: 24px !important;
font-size: 0.9rem;
}
@@ -1290,6 +1406,73 @@ time {
transform: translateY(-1px);
}
.twikoo-comments {
margin-top: 34px;
border: 1px solid rgba(255, 255, 255, 0.64);
border-radius: 8px;
padding: clamp(20px, 4vw, 30px);
background:
radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.8), transparent 32%),
linear-gradient(135deg, rgba(255, 253, 248, 0.8), rgba(236, 253, 245, 0.55)),
rgba(255, 253, 248, 0.76);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.86),
0 16px 42px rgba(58, 51, 38, 0.12);
backdrop-filter: blur(18px) saturate(165%);
-webkit-backdrop-filter: blur(18px) saturate(165%);
}
.twikoo-comments-head {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 22px;
}
.twikoo-comments-icon {
display: grid;
flex: 0 0 auto;
place-items: center;
width: 44px;
height: 44px;
border-radius: 8px;
color: #fff;
background: #3eb8be;
box-shadow: 0 12px 28px rgba(15, 118, 110, 0.16);
}
.twikoo-comments-icon svg {
width: 22px;
height: 22px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.2;
}
.twikoo-comments h2 {
margin: 0;
color: #27313a;
font-size: 1.28rem;
line-height: 1.25;
}
.twikoo-comments p {
margin: 4px 0 0;
color: var(--muted);
font-size: 0.92rem;
line-height: 1.45;
}
.twikoo-wrap {
min-height: 160px;
}
.twikoo-comments :where(.tk-comments-container, .tk-submit) {
color: var(--text);
}
.archive-list {
margin-top: 24px;
display: grid;
@@ -1589,7 +1772,8 @@ time {
padding-bottom: 2px;
}
.nav-links a {
.nav-links a,
.nav-search {
flex: 0 0 auto;
}