Skip to content

Commit

Permalink
fix: prevent linked doc headings from disappearing behind page header (
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Oct 7, 2024
1 parent cb1576d commit 2587c6f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sass/homeassistant/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,6 @@ a.material-card:hover {
}
}


h1:hover a.title-link,
h2:hover a.title-link,
h3:hover a.title-link,
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 2587c6f

Please sign in to comment.