@media (min-width: $screen-sm-min) { .main-nav-container { &.nav-collapse, .menu-collapse { max-height: 0; overflow: hidden; } &.nav-expand, .menu-expand { max-height: 100%; overflow: visible; } } .header-row.second-row, .main-nav-container { position: relative; } .nav-wrapper { position: absolute; top: 100%; left: 25%; background-color: $header-background; z-index: $zindex-header-flyout; } #navContainer { .navigation-menu-item > a.menu-item { display: none; } .nav-item-hover-js .nav-item { a { color: $header-background; } } } #navContainer .nav-item { display: block; min-width: 100%; &.submenu-title, &.back-link { display: none; } a { color: $white; display: inline-block; width: 100%; padding: 12px; box-sizing: border-box; border-bottom: 1px solid $gray; line-height: 1.5em; .arrow-right { left: 0; top: 3px; border: solid $white; border-width: 0 2px 2px 0; margin-left: 2em; } } &:hover > a, & > a:focus { color: $header-background; background-color: $gray-medium; text-shadow: 1px 0 0 $header-background; .arrow-right { border: solid $header-background; border-width: 0 2px 2px 0; } } #navContainer #mainNavMenu > .nav-item { &:hover > a { text-shadow: none; } } .has-submenu:hover .header-nav-menu { left: 100%; margin: 0; background: $gray-medium; max-height: 75vh; overflow-y: scroll; a { color: $header-background; } } } .header-nav-menu { .header-nav-menu { min-width: 100%; width: auto; white-space: nowrap; min-height: 100%; max-height: 0; margin-left: 20%; position: absolute; left: -999em; top: 0; -webkit-transition: all 0.5s linear; transition: all 0s ease; overflow-y: hidden; &.nav-item-hover-js { left: 100%; margin: 0; background: $gray-medium; max-height: 75vh; overflow-y: scroll; } } } }