nanterre-2023: add scroll-margin to leave space for sticky header (#86215)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Thomas Jund 2024-01-30 15:56:05 +01:00
parent 1248cf79c9
commit c95b3d2391
1 changed files with 8 additions and 0 deletions

View File

@ -179,6 +179,14 @@ div#header {
// Header
//
$menu-item-desktop-size: 130px;
@media($min-desktop-viewport) {
[id] {
// move scroll position because header is sticky
scroll-margin-top: $menu-item-desktop-size+10;
}
}
.header-link {
display: flex;
align-items: center;