Skip to content

Instantly share code, notes, and snippets.

@mjsdiaz
Last active May 15, 2018 18:09
Show Gist options
  • Save mjsdiaz/e33c7e71b9397554cea26dcedec356ef to your computer and use it in GitHub Desktop.
Save mjsdiaz/e33c7e71b9397554cea26dcedec356ef to your computer and use it in GitHub Desktop.
/* Center logo and menu on only large screens. */
@media only screen and (min-width: 960px) {
.wp-custom-logo .title-area,
.wp-custom-logo .nav-primary {
float: none;
}
.wp-custom-logo .title-area {
margin: 0 auto;
text-align: center;
}
.wp-custom-logo .nav-primary {
text-align: center;
}
.wp-custom-logo .nav-primary .sub-menu {
text-align: left;
}
}
/* Center logo and menu on large and small screens. */
.wp-custom-logo .title-area,
.wp-custom-logo .menu-toggle,
.wp-custom-logo .nav-primary {
float: none;
}
.wp-custom-logo .title-area {
margin: 0 auto;
text-align: center;
}
@media only screen and (min-width: 960px) {
.wp-custom-logo .nav-primary {
text-align: center;
}
.wp-custom-logo .nav-primary .sub-menu {
text-align: left;
}
}
/* No fixed header. */
.site-header {
position: static;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment