Skip to content

Commit d5d3cd7

Browse files
authored
fix(ui): gap between TOC entries is inconsistent (#2119)
In desktop mode, H2 and the first sub-level H3 in the TOC are too close.
1 parent e59c094 commit d5d3cd7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

_includes/toc.html

Lines changed: 1 addition & 1 deletion
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-2 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
6+
<h2 class="panel-heading ps-3 pb-1 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
77
<nav id="toc"></nav>
88
</section>
99
{% endif %}

_sass/pages/_post.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,6 @@ header {
275275
margin: 0.4rem 0;
276276
}
277277

278-
&:first-child {
279-
margin-top: 0;
280-
}
281-
282278
a {
283279
padding: 0.2rem 0 0.2rem 1.25rem;
284280
}

0 commit comments

Comments
 (0)