1
0
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:
Stypox
2025-02-18 22:56:16 +01:00
parent db2369e766
commit 384720d1b3

View File

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