feat: Sticky navbar

This commit is contained in:
Leni Aniva 2024-10-26 18:16:20 -07:00
parent 78a414c747
commit 482f7e59a7
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
2 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@
<!-- Homepage has its own navbar with animations -->
{#if $page.url.pathname != "/"}
<div id="layout">
<div id="navbar">
<div id="nav">
<Navbar />
<slot name="header" />
</div>
@ -58,7 +58,7 @@
width: min(100vw, max(50vw, 100vh));
grid-area: content;
}
#navbar {
#nav {
align-self: right;
padding-left: 10px;
grid-area: nav;

View File

@ -35,7 +35,8 @@
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: between;
position: sticky;
top: 0;
}
@media (max-width: 700px) {
#navbar {