improve navigation bar display

This commit is contained in:
buzz-lightsnack-2007 2024-05-09 13:01:33 +08:00
parent 35663a3ed7
commit 92edf23139

View file

@ -56,10 +56,22 @@ nav .input-field label {
}
.nav-wrapper {
position: sticky;
position: fixed;
top: 0;
left: 0;
z-index: 10;
}
.nav-wrapper + *, *:has(.nav-wrapper) + * {
margin-top: 56px;
}
@media only screen and (min-width: 601px) {
.nav-wrapper + *, *:has(.nav-wrapper) + * {
margin-top: 64px;
}
}
nav ul:not(.dropdown-content) > li > a {
height: 100%;
}