web: add scroll to navbar (#4100)

* web: add scroll to navbar

* web: add scroll to whole navbar instead of scrolling the opened menu
This commit is contained in:
M. Sarmad Qadeer
2024-05-08 13:31:02 +05:00
committed by GitHub
parent 1b081197d4
commit 10f41aa1c9
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -292,10 +292,11 @@ header nav {
max-height: 0;
transform: translateY(-10px);
transition: all .7s ease !important;
overflow: hidden;
}
.active .sub-menu {
max-height: 600px;
max-height: 1000px;
transform: translateY(0px);
opacity: 1;
visibility: visible;
@@ -306,6 +307,7 @@ header nav {
visibility: hidden;
opacity: 0;
transform: translateX(100%);
overflow-y: auto;
}
header nav.open {