From f2ca730128fe3a0fdbf15323addef9096c4af44b Mon Sep 17 00:00:00 2001 From: Thabo Date: Wed, 14 Oct 2015 16:49:53 -0700 Subject: [PATCH] sup-1514 smooth animation --- src/css/base.css | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/css/base.css b/src/css/base.css index a3a91e6b..d15de99b 100644 --- a/src/css/base.css +++ b/src/css/base.css @@ -875,9 +875,19 @@ sub, sup { max-width: 1376px; margin: 0 auto; } .top-header .main-menu { - line-height: 54px; } + line-height: 54px; + } + .top-header .menu-item .submenu { + overflow: hidden; + max-height: 0px; + transition: all .25s ease-in-out; + } + .top-header .menu-item:hover .submenu { + max-height: 500px; + } .top-header .menu-item:not(:hover) .submenu:not(.expanded):not(:hover) { - display: none; } + padding: 0px 54px 0px 54px; + } .top-header .menu-link:hover { background-color: #0096ff; } .top-header .menu-link.active {