From 92edf23139846247192ec7e9d553a6d77aa44bc6 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Thu, 9 May 2024 13:01:33 +0800 Subject: [PATCH] improve navigation bar display --- styles/layouts/all.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/styles/layouts/all.css b/styles/layouts/all.css index 0cb93a7..4ada63c 100644 --- a/styles/layouts/all.css +++ b/styles/layouts/all.css @@ -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%; }