Morden: Fix responsive logic in header

This commit is contained in:
Allan Cole 2019-08-27 10:41:10 -04:00
parent c539885985
commit 263d5b3d63
3 changed files with 28 additions and 1 deletions

View file

@ -68,8 +68,13 @@ body {
position: relative;
.site-header-wrap {
@extend %responsive-alignwide;
margin-left: auto;
margin-right: auto;
@include media(mobile-only) {
width: calc(100% - #{2 * map-deep-get($config-global, "spacing", "unit")});
}
& > * {
max-width: 100%;

View file

@ -3491,6 +3491,17 @@ hr.wp-block-separator.is-style-wide,
position: relative;
}
#masthead .site-header-wrap {
margin-right: auto;
margin-left: auto;
}
@media only screen and (max-width: 559px) {
#masthead .site-header-wrap {
width: calc(100% - 32px);
}
}
#masthead .site-header-wrap > * {
max-width: 100%;
}

View file

@ -3508,6 +3508,17 @@ hr.wp-block-separator.is-style-wide,
position: relative;
}
#masthead .site-header-wrap {
margin-left: auto;
margin-right: auto;
}
@media only screen and (max-width: 559px) {
#masthead .site-header-wrap {
width: calc(100% - 32px);
}
}
#masthead .site-header-wrap > * {
max-width: 100%;
}