mirror of
https://github.com/TeamNewPipe/website
synced 2025-10-06 00:22:38 +02:00
Offset the targeted #id by roughly the height of the navbar
This commit is contained in:
13
css/blog.css
13
css/blog.css
@@ -1196,4 +1196,17 @@ figure.screenshot-list figcaption {
|
||||
figure.screenshot-list {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
When pointing to a specific place in the page by adding the fragment to the url,
|
||||
e.g. #title-here, the navigation bar would be in the way without this fix.
|
||||
See https://stackoverflow.com/a/24298427.
|
||||
*/
|
||||
[id]:target::before {
|
||||
content: '';
|
||||
display: block;
|
||||
height: 85px;
|
||||
margin-top: -85px;
|
||||
visibility: hidden;
|
||||
}
|
Reference in New Issue
Block a user