* Override wpbody styles when nav present

* Use negative margin only when toolbar exists

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
This commit is contained in:
Paul Sealock 2021-02-19 04:02:30 +13:00 committed by GitHub
parent 00676f12b5
commit 589283f652
1 changed files with 15 additions and 7 deletions

View File

@ -45,13 +45,8 @@
.woocommerce-admin-full-screen {
background: $studio-gray-0;
color: $studio-gray-60;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
'Helvetica Neue', sans-serif;
margin-top: -$adminbar-height;
@include breakpoint( '<600px' ) {
margin-top: -$adminbar-height-mobile;
}
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
#wpwrap {
top: 0;
@ -82,6 +77,19 @@
margin-top: 0 !important;
}
}
&.has-woocommerce-navigation {
#wpbody {
padding-left: 0;
}
}
}
.wp-toolbar .woocommerce-admin-full-screen {
margin-top: -$adminbar-height;
@include breakpoint( '<600px' ) {
margin-top: -$adminbar-height-mobile;
}
}
.woocommerce-onboarding {