From 1b4e318dc1cd57da812e11bf69ebb06083c213fc Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 15 Dec 2024 14:43:07 +0800 Subject: [PATCH] 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. --- _includes/toc.html | 2 +- _sass/pages/_post.scss | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/_includes/toc.html b/_includes/toc.html index 0f877267b39..888466d275b 100644 --- a/_includes/toc.html +++ b/_includes/toc.html @@ -3,7 +3,7 @@ {% if enable_toc %}
{% endif %} diff --git a/_sass/pages/_post.scss b/_sass/pages/_post.scss index 9348c5669f8..f51f3b9d60d 100644 --- a/_sass/pages/_post.scss +++ b/_sass/pages/_post.scss @@ -275,10 +275,6 @@ header { margin: 0.4rem 0; } - &:first-child { - margin-top: 0; - } - a { padding: 0.2rem 0 0.2rem 1.25rem; }