<style define:vars={{ navbarHeight: ${NAVBAR_HEIGHT}px }}>
.navbar {
height: var(--navbarHeight);
margin-bottom: -1;
position: sticky;
top: 0;
z-index: 1;
}
.expander {
--min-width: 768px;
transition-duration: 250ms;
width: 100%;
overflow: hidden;
backdrop-filter: blur(4rem) brightness(0.75);
-webkit-backdrop-filter: blur(4rem) brightness(0.75);
@media (min-width: var(--min-width)) {
max-height: var(--navbarHeight);
}
&[data-expanded='false'] {
max-height: var(--navbarHeight);
*[data-expanded] {
display: none;
}
}
&[data-expanded='true'] {
max-height: 100vh;
overscroll-behavior: contain;
*[data-closed] {
display: none;
}
}
}
.hamburger {
display: inline-flex;
@media (min-width: var(--min-width)) {
display: none;
}
}
.tools {
display: none;
@media (min-width: var(--min-width)) {
display: flex;
}
}
</style>
but not only does the css not work in chrome it says css variable is undefined