Skip to content

Commit

Permalink
fix(ui): gap between TOC entries is inconsistent (#2119)
Browse files Browse the repository at this point in the history
In desktop mode, H2 and the first sub-level H3 in the TOC are too close.
  • Loading branch information
cotes2020 authored Dec 15, 2024
1 parent 2f00d41 commit 1b4e318
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion _includes/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if enable_toc %}
<div class="toc-border-cover z-3"></div>
<section id="toc-wrapper" class="invisible position-sticky ps-0 pe-4 pb-4">
<h2 class="panel-heading ps-3 pb-2 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
<h2 class="panel-heading ps-3 pb-1 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
<nav id="toc"></nav>
</section>
{% endif %}
4 changes: 0 additions & 4 deletions _sass/pages/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ header {
margin: 0.4rem 0;
}

&:first-child {
margin-top: 0;
}

a {
padding: 0.2rem 0 0.2rem 1.25rem;
}
Expand Down

0 comments on commit 1b4e318

Please sign in to comment.