mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +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
|
// Prevent headings from disappearing behind the site header when linked to
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
:target {
|
:target {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: relative;
|
||||||
top: -100px;
|
top: -100px;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
scroll-margin-top: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-header {
|
.site-header {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user