Set custom properties for sticky navbar height

This commit is contained in:
Helen Chong 2024-06-13 17:59:11 +08:00
parent 3641c15cea
commit d6ea036102
2 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@
.sidebar--sticky { .sidebar--sticky {
position: sticky; position: sticky;
top: 4rem; top: var(--sz-navbar-ht);
} }
/* Desktop main content layout */ /* Desktop main content layout */

View File

@ -46,6 +46,7 @@
--sz-paragraph-margin: 1.15em; --sz-paragraph-margin: 1.15em;
--sz-main-padding: clamp(1rem, 5%, 4rem); --sz-main-padding: clamp(1rem, 5%, 4rem);
--sz-navbar-ht: 4rem;
} }
/* ------------------- */ /* ------------------- */