From 2a28226bbb603208a356e20efe2ab035528e4aff Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 29 Jul 2023 16:43:20 +0530 Subject: [PATCH] fix styles --- src/client/theme-default/styles/components/vp-doc.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/client/theme-default/styles/components/vp-doc.css b/src/client/theme-default/styles/components/vp-doc.css index 63074535..753843dc 100644 --- a/src/client/theme-default/styles/components/vp-doc.css +++ b/src/client/theme-default/styles/components/vp-doc.css @@ -8,7 +8,7 @@ .vp-doc h4, .vp-doc h5, .vp-doc h6 { - display: flex; + position: relative; font-weight: 600; outline: none; } @@ -37,8 +37,9 @@ .vp-doc .header-anchor { position: absolute; + top: 0; + left: 0; margin-left: -0.87em; - padding-right: 0.23em; font-weight: 500; user-select: none; opacity: 0; @@ -74,6 +75,10 @@ } } +.vp-doc h2 .header-anchor { + top: 24px; +} + /** * Paragraph and inline elements * -------------------------------------------------------------------------- */