woocommerce/plugins/woocommerce-admin/client/stylesheets/shared/_reset.scss

87 lines
1.6 KiB
SCSS
Raw Normal View History

// css resets some wp-admin specific rules so that the app fits better in the extension container
.woocommerce-page {
.wrap {
margin: 0;
}
#wpcontent,
&.woocommerce_page_wc-admin #wpbody-content {
padding: 0;
overflow-x: hidden !important;
min-height: calc(100vh - #{$adminbar-height});
}
@include breakpoint( '>782px' ) {
#wpbody-content {
2019-08-07 12:49:45 +00:00
padding-left: 0;
}
}
@include breakpoint( '<782px' ) {
// WP breakpoint for mobile menu
.wp-responsive-open #woocommerce-embedded-root,
.wp-responsive-open #wpbody {
position: relative;
right: -14.5em;
}
#wpcontent,
#wpbody-content {
min-height: calc(100vh - #{$adminbar-height-mobile});
}
}
@include breakpoint( '>960px' ) {
#toplevel_page_woocommerce.menu-top > a:focus,
#toplevel_page_wcadmin--analytics.menu-top > a:focus {
padding-bottom: 1px;
}
}
}
.woocommerce-layout * {
box-sizing: border-box;
}
#wpfooter {
display: none;
}
.woocommerce_page_wc-admin {
.wp-responsive-open {
.woocommerce-layout__header {
margin-left: 2px;
}
}
.woocommerce-filters-date__content:not(.is-mobile) {
z-index: 2; /* below of woocommerce-layout__header */
}
}
@include breakpoint( '<600px' ) {
#wpadminbar {
position: fixed;
}
}
// Temporary fix for compability with the Jetpack masterbar
// See https://github.com/Automattic/jetpack/issues/9608
@include breakpoint( '<782px' ) {
.jetpack-masterbar {
#wpadminbar #wp-admin-bar-menu-toggle {
margin-top: -10px;
}
// #wpwrap id added for specificity
#wpwrap .woocommerce-layout__header-heading {
padding-left: 60px;
}
&.wp-admin .wrap h1,
&.wp-admin .wrap h2 {
padding-left: 0;
}
}
}