remove nav height to prevent overflow

This commit is contained in:
zepp 2025-03-12 00:23:35 -04:00
parent a737996b73
commit f015aa8a52

View File

@ -2,8 +2,8 @@
const backgroundColor = "#E0D1ED"; const backgroundColor = "#E0D1ED";
const backgroundColorNightMode = "#240046"; const backgroundColorNightMode = "#240046";
--- ---
<div>
<nav> <nav>
<h3>life of emma</h3> <h3>life of emma</h3>
<ul> <ul>
<li> <li>
@ -31,21 +31,26 @@ const backgroundColorNightMode = "#240046";
<ul> <ul>
<li><a href="#top">top of page</a></li> <li><a href="#top">top of page</a></li>
</ul> </ul>
</nav> </nav>
</div>
<style define:vars={{backgroundColor, backgroundColorNightMode}}> <style define:vars={{backgroundColor, backgroundColorNightMode}}>
nav { div {
background-color: var(--backgroundColor); height: 100%;
width: 20vw;
grid-row: 2/3; grid-row: 2/3;
grid-column: 1/2; grid-column: 1/2;
}
nav {
background-color: var(--backgroundColor);
width: 20vw; width: 20vw;
height: 70vh; height: auto;
font-family: system-ui; font-family: system-ui;
letter-spacing: 0.05rem; letter-spacing: 0.05rem;
position: sticky; position: sticky;
top: 0; top: 0;
margin-left: 2rem; margin-left: 2rem;
padding-top: 0.75rem; padding: 0.75rem 0;
padding-left: 1.5rem; padding-left: 1.5rem;
border-radius: 25px; border-radius: 25px;
} }