Skip to content

Commit 8a4d0bc

Browse files
authored
fix(ui): left borderline of TOC is notched (#2140)
1 parent 1b93f6d commit 8a4d0bc

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

_includes/toc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% if enable_toc %}
44
<div class="toc-border-cover z-3"></div>
55
<section id="toc-wrapper" class="invisible position-sticky ps-0 pe-4 pb-4">
6-
<h2 class="panel-heading ps-3 pb-1 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
6+
<h2 class="panel-heading ps-3 pb-2 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
77
<nav id="toc"></nav>
88
</section>
99
{% endif %}

_sass/pages/_post.scss

+1-5
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,8 @@ header {
272272
padding-left: 0;
273273

274274
li {
275-
&:not(:last-child) {
276-
margin: 0.4rem 0;
277-
}
278-
279275
a {
280-
padding: 0.2rem 0 0.2rem 1.25rem;
276+
padding: 0.4rem 0 0.4rem 1.25rem;
281277
}
282278
}
283279

0 commit comments

Comments
 (0)