.navigation { nav { margin-bottom: 20px; } .dropdown-menu { position: absolute; right: 0; left: 0; align-items: center; } .parent:hover .dropdown-menu { display: flex; } ul { list-style-type: none; } .navigation-item a { position: relative; color: $black; } .navigation-item.active a, .nav-item.active a { color: $red; } .navigation-item a::after { position: absolute; bottom: -5px; left: 0; width: 47px; height: 3px; border-radius: 4px; background-color: $red; content: ""; } } @media screen and (width <= 991px) { .navigation nav, #navbar-supported-content { position: absolute; right: 0; left: 0; display: none; min-height: 90vh; padding-right: 20px; padding-left: 20px; background-color: $white; } .navigation nav { top: 79px; ul { height: 100vh; padding-top: 40px; padding-left: 40px; margin-top: 40px; background-color: $white; } } #menu-btn { right: 20px; padding: 10px; border: 0 none; background-color: $red; color: $white; } .navigation.show nav, #navbar-supported-content.show { display: block; } } @media screen and (width >= 768px) { .navigation nav, #navbar-supported-content { top: 93px; } } @media screen and (width <= 767px) { .navigation nav, #navbar-supported-content { top: 65px; } } @media screen and (width >= 992px) { #menu-btn { display: none; } .navigation .navigation-item:nth-child(-n + 3)::after { margin-right: 15px; margin-left: 15px; color: $gray-300; content: "|"; } }