From 62d95a5704f5fc5e5cebf0bf9488370a63281153 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 15 Nov 2020 21:23:24 +0100 Subject: [PATCH] fix anchor links (#754) --- .../markdown-renderer/markdown-renderer.scss | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/markdown-renderer/markdown-renderer.scss b/src/components/markdown-renderer/markdown-renderer.scss index 19da71956..eaba6bb84 100644 --- a/src/components/markdown-renderer/markdown-renderer.scss +++ b/src/components/markdown-renderer/markdown-renderer.scss @@ -19,13 +19,18 @@ width: unset; } - a.heading-anchor { - margin-left: -1.25em; - font-size: 0.75em; - margin-top: 0.25em; - opacity: 0; + h1, h2, h3, h4, h5, h6 { + a.heading-anchor { + margin-left: -1.25em; + font-size: 0.75em; + margin-top: 0.25em; + opacity: 0; - &:hover { + &:hover { + opacity: 1; + } + } + &:hover a.heading-anchor { opacity: 1; } }