@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%; ul { list-style: none; margin: 0; margin: 0 !important; a { padding: 0.5rem 1rem; color: white; transition: 0.3s all ease-in-out; } li { display: block; position: relative; float: left; border-left: 1px solid lighten($primary-color-dark, 10%); z-index: 200; margin: 0 !important; a { display: block; transition: 0.3s all ease-in-out; } a:hover { background: $primary-color; color: $font-color; font-weight: 600; } ul { ul { left: 100%; top: 0; } } } } li { transition: 0.3s all ease-in-out; ul { display: none; transition: 0.3s all ease-in-out; li { border-top: 0; border-bottom: 1px solid lighten($primary-color-dark, 20%); transition: 0.3s all ease-in-out; } } &:hover > ul { display: block; position: absolute; width: 15rem; background: lighten($primary-color, 20%); transition: 0.2s ease-in-out; color: $font-color; font-weight: 600; } &:hover{ li { float: none; } } } & ul:before, & ul:after { content: " "; /* 1 */ display: table; /* 2 */ } & ul:after { clear: both; } .current-menu-item { background: $primary-color; } .menu-item-home { background: $primary-color; } } .search-area { flex: 1; margin-right: 1rem; } } } } @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; } } }