From 2587c6ffc642ebd320b1a3ee60b184e6d57d3cc9 Mon Sep 17 00:00:00 2001 From: AlCalzone Date: Mon, 7 Oct 2024 11:20:28 +0200 Subject: [PATCH] fix: prevent linked doc headings from disappearing behind page header (#35114) --- sass/homeassistant/_overrides.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sass/homeassistant/_overrides.scss b/sass/homeassistant/_overrides.scss index 3afa6de89be..3d289b8accf 100644 --- a/sass/homeassistant/_overrides.scss +++ b/sass/homeassistant/_overrides.scss @@ -861,7 +861,6 @@ a.material-card:hover { } } - h1:hover a.title-link, h2:hover a.title-link, h3:hover a.title-link, @@ -1360,9 +1359,14 @@ a.my { } } +// Prevent headings from disappearing behind the site header when linked to +h1, h2, h3, h4, h5, h6 { + position: relative; +} + :target { display: block; - position: relative; + position: absolute; top: -100px; visibility: hidden; }