Hide other elements in wpcontent while in full screen mode (https://github.com/woocommerce/woocommerce-admin/pull/3621)

This commit is contained in:
Joshua T Flowers 2020-01-28 23:37:33 +08:00 committed by Timmy Crawford
parent fcd2d517cd
commit d1ef0eb029
1 changed files with 10 additions and 0 deletions

View File

@ -30,6 +30,7 @@
.woocommerce-admin-is-loading {
#adminmenumain,
#wpfooter,
#wpcontent,
#wpadminbar,
#wpbody-content,
.woocommerce-layout__header,
@ -50,11 +51,16 @@
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
'Helvetica Neue', sans-serif;
#wpwrap {
top: 0;
}
#wpbody-content {
min-height: 100vh;
}
/* Hide wp-admin and WooCommerce elements when the dashboard body class is present */
#wpcontent > *,
#adminmenumain,
.woocommerce-layout__header,
.update-nag,
@ -68,5 +74,9 @@
#wpcontent {
margin-left: 0;
> #wpbody {
display: block;
}
}
}