From a0d4a1e3a77cf7079b0784e392655755dde1be88 Mon Sep 17 00:00:00 2001 From: ASOwnerYT Date: Tue, 7 Jan 2025 22:52:48 +1300 Subject: [PATCH] dropdown workingish --- src/app/components/Navbar.module.css | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app/components/Navbar.module.css b/src/app/components/Navbar.module.css index 7f31d16..6bb179b 100644 --- a/src/app/components/Navbar.module.css +++ b/src/app/components/Navbar.module.css @@ -110,6 +110,10 @@ padding-bottom: 1rem; background-color: #fff; } + + .dropdown { + padding: 0 !important; + } } /* Styles for desktop view */ @@ -139,6 +143,10 @@ position: absolute; display: none; } + + .dropdown:hover .dropdownMenu { + display: block; + } } .header { @@ -160,11 +168,6 @@ font-family: var(--font-geist-mono); } -.dropdown { - padding: 0 !important; -} - - .dropdown a { cursor: pointer; margin-bottom: 0; @@ -179,7 +182,6 @@ } .dropdown:not(.dropdownActive) { - padding: 0 !important; background-color: #fff; transition: all 0.3s ease-out; }