106 lines
1.9 KiB
SCSS
106 lines
1.9 KiB
SCSS
/** @format */
|
|
// 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 {
|
|
padding: 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;
|
|
}
|
|
}
|
|
|
|
.wp-has-current-submenu::after {
|
|
right: 0;
|
|
border: 8px solid transparent;
|
|
content: ' ';
|
|
height: 0;
|
|
width: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
border-right-color: #f1f1f1;
|
|
top: 0;
|
|
margin-top: 10px;
|
|
|
|
@include breakpoint( '<960px' ) {
|
|
border-width: 4px;
|
|
margin-top: 14px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.woocommerce-layout * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#wpfooter {
|
|
display: none;
|
|
}
|
|
|
|
.woocommerce_page_wc-admin {
|
|
.wp-responsive-open {
|
|
.woocommerce-layout__header {
|
|
margin-left: 2px;
|
|
}
|
|
}
|
|
|
|
.components-popover:not(.is-mobile) {
|
|
z-index: 1; /* 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-breadcrumbs {
|
|
padding-left: 60px;
|
|
}
|
|
|
|
&.wp-admin .wrap h1,
|
|
&.wp-admin .wrap h2 {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
}
|