Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 68604e7

Browse files
committed
Merge pull request #362 from appirio-tech/sup-1514-nav-animation
fix animation
2 parents 3137619 + ccfdd85 commit 68604e7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

assets/css/layout/header.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,19 @@
372372
line-height: 54px;
373373
}
374374

375+
.menu-item .submenu {
376+
overflow: hidden;
377+
max-height: 0px;
378+
transition: all .25s ease-in-out;
379+
}
380+
381+
.menu-item:hover .submenu {
382+
max-height: 500px;
383+
}
384+
375385
// Expand the submenu only when hovering on header or submenu itself or if submenu is marked with .expanded
376386
.menu-item:not(:hover) .submenu:not(.expanded):not(:hover) {
377-
display: none;
387+
padding: 0px 54px 0px 54px;
378388
}
379389

380390
.menu-link:hover {

0 commit comments

Comments
 (0)