Last active
April 14, 2020 07:20
-
-
Save generatepress/2334ed60572e551d4d5f to your computer and use it in GitHub Desktop.
Move the navigation when floating right below other header items on mobile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (max-width: 768px) { | |
.inside-header { | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
-webkit-flex-flow: row wrap; | |
flex-flow: row wrap; | |
} | |
.site-logo { | |
-webkit-box-ordinal-group: 1; | |
-moz-box-ordinal-group: 1; | |
-ms-flex-order: 1; | |
-webkit-order: 1; | |
order: 1; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
.header-widget { | |
-webkit-box-ordinal-group: 2; | |
-moz-box-ordinal-group: 2; | |
-ms-flex-order: 2; | |
-webkit-order: 2; | |
order: 2; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
.main-navigation { | |
-webkit-box-ordinal-group: 4; | |
-moz-box-ordinal-group: 4; | |
-ms-flex-order: 4; | |
-webkit-order: 4; | |
order: 4; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment