mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
Fix heading anchor scroll and wrapping (#35453)
* Fix heading anchor scroll and wrapping * Increase scroll-margin-top to allow for more room after scroll * Further adjustment * Reduced again to prioritise 1 or 2 line heading whitespace on scroll
This commit is contained in:
parent
22fe1157da
commit
78840ee202
@ -1390,13 +1390,15 @@ a.my {
|
||||
// Prevent headings from disappearing behind the site header when linked to
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
position: relative;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
:target {
|
||||
display: block;
|
||||
position: absolute;
|
||||
position: relative;
|
||||
top: -100px;
|
||||
visibility: hidden;
|
||||
scroll-margin-top: 80px;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
|
Loading…
x
Reference in New Issue
Block a user