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 {
|
||||
background-color: var(--card-background);
|
||||
border-radius: var(--card-border-radius);
|
||||
@ -220,6 +231,7 @@
|
||||
}
|
||||
|
||||
li {
|
||||
list-style-type: none;
|
||||
margin: 15px 20px;
|
||||
padding: 5px;
|
||||
|
||||
|
@ -43,11 +43,13 @@
|
||||
{{ if (.Scratch.Get "hasTOC") }}
|
||||
<aside class="sidebar right-sidebar sticky">
|
||||
<section class="widget archives">
|
||||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "hash" }}
|
||||
<div class="widget-head">
|
||||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "hash" }}
|
||||
</div>
|
||||
<h2 class="widget-title">{{ T "article.tableOfContents" }}</h2>
|
||||
</div>
|
||||
<h2 class="widget-title section-title">{{ T "article.tableOfContents" }}</h2>
|
||||
|
||||
|
||||
<div class="widget--toc">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user