fix: prevent linked doc headings from disappearing behind page header (#35114)

This commit is contained in:
AlCalzone 2024-10-07 11:20:28 +02:00 committed by GitHub
parent cb1576df5f
commit 2587c6ffc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}