mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 20:13:31 +08:00
feat(article): Optimized TOC style
This commit is contained in:
parent
5bf8bdcde2
commit
f0cdcba23b
@ -184,6 +184,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.widget-head {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.widget-title {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
font-weight: bold;
|
||||||
|
color: var(--body-text-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.widget--toc {
|
.widget--toc {
|
||||||
background-color: var(--card-background);
|
background-color: var(--card-background);
|
||||||
border-radius: var(--card-border-radius);
|
border-radius: var(--card-border-radius);
|
||||||
@ -220,6 +231,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
|
list-style-type: none;
|
||||||
margin: 15px 20px;
|
margin: 15px 20px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
|
||||||
|
@ -43,10 +43,12 @@
|
|||||||
{{ if (.Scratch.Get "hasTOC") }}
|
{{ if (.Scratch.Get "hasTOC") }}
|
||||||
<aside class="sidebar right-sidebar sticky">
|
<aside class="sidebar right-sidebar sticky">
|
||||||
<section class="widget archives">
|
<section class="widget archives">
|
||||||
<div class="widget-icon">
|
<div class="widget-head">
|
||||||
{{ partial "helper/icon" "hash" }}
|
<div class="widget-icon">
|
||||||
|
{{ partial "helper/icon" "hash" }}
|
||||||
|
</div>
|
||||||
|
<h2 class="widget-title">{{ T "article.tableOfContents" }}</h2>
|
||||||
</div>
|
</div>
|
||||||
<h2 class="widget-title section-title">{{ T "article.tableOfContents" }}</h2>
|
|
||||||
|
|
||||||
<div class="widget--toc">
|
<div class="widget--toc">
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
|
Loading…
Reference in New Issue
Block a user