From 7060529d3ac9d96523fa25e2fe0f36e0e9db2e60 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Tue, 13 Jun 2023 18:58:28 +0200 Subject: [PATCH] fix nav menu --- ui/css/menustyle.css | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/ui/css/menustyle.css b/ui/css/menustyle.css index 37c7e88..78a2e85 100755 --- a/ui/css/menustyle.css +++ b/ui/css/menustyle.css @@ -32,7 +32,7 @@ .menu-container { display: none; - width: 100vw; + width: 80%; } .active { @@ -50,18 +50,20 @@ .toggle-wrapper { display: inline-flex; height: 100%; - width: 70%; + width: 80%; align-items: center; justify-content: flex-end; } .menu-container, .dropdown-menu { list-style: none; + margin: 0 5%; + padding: 0; } .menubutton { text-decoration: none; - width: 80%; + width: 96%; display: block; padding: 2%; color: white; @@ -74,7 +76,11 @@ } .sub { - width: 79%; + width: 96%; +} + +.dropdown-menu { + width: 95%; } @media only screen and (min-width: 999px) { @@ -85,11 +91,12 @@ .menu-wrapper { display: inline-block; } - + .menu-container { display: inline-flex; list-style-type: none; width: 80%; + margin: 0; justify-content: center; } @@ -104,6 +111,11 @@ transition: 0.6s; } + .sub { + width: 92%; + padding: 20px 4%; + } + .menubutton:hover { border-radius: 0%; background-color: darkblue; @@ -113,6 +125,7 @@ .dropdown-menu { margin: 0; padding: 0; + width: fit-content; background-color: lightseagreen; display: none; list-style-type: none;