@media only screen and (min-device-width: 1024px) { .anilaDefaultHeader { &__top { max-width: 100vw; display: flex; align-items: center; background-color: $primary-color; min-height: 2rem; .top-menu { flex: 0 0 70%; justify-content: center; align-items: center; ul { list-style: none; margin-left: 1rem; margin: 0 !important; } a { color: $grey-color-light; font-weight: 600; transition: 0.3s all ease-in-out; font-size: 15px; &:hover { color: white; } } li { display: block; float: left; padding: .5rem; margin: 0 !important; line-height: 1 !important; } } .social-media { flex: 1; margin-right: 1rem; .fab { color: $grey-color-light; transform: scale(1.3); padding: 0 0.5rem; float: right; transition: 0.3s all ease-in-out; &:hover { color: white; transform: scale(1.8); } } } } &__middle { display: flex; max-width: 90vw; margin: .5rem auto; justify-items: center; justify-content: center; align-items: center; .logo { flex: 0 0 30%; font-size: 36px; h1 { margin: 0 !important; line-height: 1; } } .advt { flex: 1; justify-content: center; li { list-style: none; float: right; line-height: 1.2; margin: 0 !important; } } } &__bottom { background-color: $primary-color-dark; display: flex; .main-menu { flex: 0 0 70%; } .search-area { flex: 1; margin-right: 1rem; } } } .main-menu .main-menu { margin: 0 1rem; display: flex; list-style: none; .menu-button { padding: 0 1rem; background-color: transparent; color: inherit; margin-left: rem-calc(10px); } > .menu-item { margin: 0; > a { padding: 0.5rem; border-bottom: none; display: block; color: #fff; border-left: 1px solid $primary-color; font-size: rem-calc(14px); &:hover { background-color: $primary-color; } } &:hover a, &.open > a { color: $font-color; } > .sub-menu { position: absolute; margin: 0; list-style: none; background: $primary-color-dark; display: none; min-width: 200px; border: 1px solid $primary-color; border-top-color: $primary-color; z-index: 10; } } > .menu-item:not(.mega) { .sub-menu { .sub-menu { position: absolute; margin: 0; list-style: none; background: #fff; display: none; min-width: 200px; left: 100%; font-size: 100%; top: 0px; border-top-color:#efefef; } .menu-item { margin: 0; position: relative; background-color: $primary-color-dark; a { padding: 0.5rem; border-bottom: 1px solid $primary-color; display: block; font-size: rem-calc(14px); color: white; } &:hover { background-color: $primary-color; } &:hover > a { color: $font-color; } } } } .menu-item:not(.mega).open > .sub-menu { display: block !important; } } .current-page-item, .current-menu-item { background-color: $primary-color; } .menu-item-home { background-color: $primary-color; } } @media only screen and (max-device-width: 1023px) { .anilaDefaultHeader { &__top { max-width: 100vw; min-height: 2rem; .top-menu { display: none; } .social-media { text-align: center; background-color: $primary-color-dark; .fab { color: $grey-color-light; transform: scale(1.3); padding: 0.5rem; &:hover { color: white; transform: scale(1.8); } } } } &__middle { display: none; } &__bottom { display: none; } } }