Add lucide icons and TOC toggle
This commit is contained in:
+95
-9
@@ -97,7 +97,7 @@ a:hover { color: var(--brand-strong); }
|
||||
background: var(--brand-mark-bg);
|
||||
color: #fff; font-weight: 700; box-shadow: var(--shadow-sm);
|
||||
}
|
||||
.sidebar-brand-text { display: grid; line-height: 1.15; }
|
||||
.sidebar-brand-text { display: grid; line-height: 1.3; }
|
||||
.sidebar-brand-text strong { font-size: 15px; }
|
||||
.sidebar-brand-text small { color: var(--text-muted); font-size: 12px; }
|
||||
.search-box input {
|
||||
@@ -186,6 +186,13 @@ a:hover { color: var(--brand-strong); }
|
||||
border-bottom: 0;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
.toolbar-breadcrumb-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
.toolbar-breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -254,7 +261,27 @@ a:hover { color: var(--brand-strong); }
|
||||
cursor: pointer; display: grid; place-items: center; font-size: 16px;
|
||||
}
|
||||
.btn-icon:hover { background: var(--bg-soft); color: var(--text); border-color: var(--border); }
|
||||
|
||||
.btn-icon svg,
|
||||
.btn-icon i svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
stroke: currentColor;
|
||||
stroke-width: 2;
|
||||
fill: none;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
.btn-icon i {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
.btn-sidebar-toggle {
|
||||
flex: 0 0 auto;
|
||||
display: grid;
|
||||
}
|
||||
.content-body {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
@@ -285,6 +312,12 @@ a:hover { color: var(--brand-strong); }
|
||||
gap: 24px;
|
||||
align-items: start;
|
||||
}
|
||||
.article-layout.toc-collapsed {
|
||||
grid-template-columns: minmax(0, 1fr) 68px;
|
||||
}
|
||||
.article-main {
|
||||
min-width: 0;
|
||||
}
|
||||
.article-header {
|
||||
padding: 10px 0 14px;
|
||||
margin-bottom: 20px;
|
||||
@@ -300,10 +333,22 @@ a:hover { color: var(--brand-strong); }
|
||||
font-size: clamp(30px, 4vw, 44px); line-height: 1.08;
|
||||
letter-spacing: -0.03em; color: var(--text);
|
||||
}
|
||||
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--text-muted); font-size: 13px; }
|
||||
.article-meta-side {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
.article-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 16px;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.article-meta-footer {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 18px;
|
||||
margin-top: 32px;
|
||||
padding-top: 18px;
|
||||
border-top: 1px solid var(--border);
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.article-meta-item {
|
||||
display: inline-flex;
|
||||
@@ -313,6 +358,10 @@ a:hover { color: var(--brand-strong); }
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.article-meta-item em {
|
||||
font-style: italic;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.article-body {
|
||||
font-size: 16px; line-height: 1.85; color: var(--text);
|
||||
}
|
||||
@@ -424,6 +473,7 @@ a:hover { color: var(--brand-strong); }
|
||||
gap: 14px;
|
||||
position: sticky;
|
||||
top: 18px;
|
||||
margin-top: 48px;
|
||||
}
|
||||
.toc-card {
|
||||
padding: 16px 14px;
|
||||
@@ -433,8 +483,12 @@ a:hover { color: var(--brand-strong); }
|
||||
box-shadow: var(--shadow-sm);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
.meta-card {
|
||||
padding-bottom: 14px;
|
||||
.toc-card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.toc-title {
|
||||
font-size: 12px;
|
||||
@@ -442,12 +496,40 @@ a:hover { color: var(--brand-strong); }
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.toc-toggle-btn {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 10px;
|
||||
color: var(--text-soft);
|
||||
}
|
||||
.toc-toggle-btn i,
|
||||
.toc-toggle-btn svg,
|
||||
.toc-toggle-btn i svg {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
.toc-nav {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
.toc-panel.is-collapsed .toc-card {
|
||||
/* padding: 12px 10px; */
|
||||
padding-left: 9px;
|
||||
padding-right: 9px;
|
||||
}
|
||||
.toc-panel.is-collapsed .toc-card-header {
|
||||
justify-content: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.toc-panel.is-collapsed .toc-title,
|
||||
.toc-panel.is-collapsed .toc-nav {
|
||||
display: none;
|
||||
}
|
||||
/* .toc-panel.is-collapsed .toc-toggle-btn {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
} */
|
||||
.toc-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -517,7 +599,11 @@ a:hover { color: var(--brand-strong); }
|
||||
opacity: 1;
|
||||
}
|
||||
.content-toolbar { padding-left: 18px; }
|
||||
.toolbar-breadcrumb-group {
|
||||
gap: 10px;
|
||||
}
|
||||
.toolbar-breadcrumb { min-width: 0; }
|
||||
.btn-sidebar-toggle-toolbar { display: none !important; }
|
||||
.theme-select-wrap { max-width: 150px; }
|
||||
.theme-select { min-width: 0; width: 100%; }
|
||||
.markdown-body { width: min(100%, calc(100% - 28px)); padding-top: 20px; padding-bottom: 72px; }
|
||||
|
||||
Reference in New Issue
Block a user