174 lines
2.6 KiB
SCSS
174 lines
2.6 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,
|
|
#wpbody-content {
|
|
padding: 0;
|
|
overflow-x: hidden !important;
|
|
}
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
// WP breakpoint for mobile menu
|
|
.wp-responsive-open #wpbody {
|
|
right: -14.5em;
|
|
}
|
|
}
|
|
|
|
@include breakpoint( '>960px' ) {
|
|
#toplevel_page_woocommerce.menu-top > a:focus,
|
|
#toplevel_page_woodash--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-embed-page {
|
|
#wpcontent,
|
|
#wpbody-content {
|
|
overflow-x: initial !important;
|
|
}
|
|
|
|
#wpbody-content .notice {
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.wrap {
|
|
padding: 20px;
|
|
padding-top: 0;
|
|
}
|
|
|
|
#screen-meta {
|
|
border-right: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.notice {
|
|
margin: 5px 15px 2px;
|
|
padding: 1px 12px;
|
|
}
|
|
|
|
#wpbody-content #wp__notice-list {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.woocommerce-layout__primary {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.woocommerce-layout * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.woocommerce-layout__notice-list-hide {
|
|
opacity: 0;
|
|
height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.woocommerce-layout__notice-list-show {
|
|
opacity: 1;
|
|
height: auto;
|
|
transition: all 1s ease-in-out;
|
|
margin-top: 0px;
|
|
|
|
&.has-screen-meta-links {
|
|
display: inline-block;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
#woocommerce-embedded-root {
|
|
@include breakpoint( '<600px' ) {
|
|
margin-top: 46px;
|
|
}
|
|
}
|
|
|
|
#wp__notice-list-uncollapsed {
|
|
visibility: hidden;
|
|
margin: -2px 0 0;
|
|
}
|
|
|
|
#wp__notice-list {
|
|
padding: 10px;
|
|
}
|
|
|
|
.woocommerce-layout__notice-list .jitm-card {
|
|
margin: 5px 15px 2px;
|
|
padding: 1px 12px;
|
|
}
|
|
|
|
#wpfooter {
|
|
display: none;
|
|
}
|
|
|
|
// Temporary fix for compability with the Jetpack masterbar
|
|
// See https://github.com/Automattic/jetpack/issues/9608
|
|
// !important rules overwrite some existing !important rules
|
|
.jetpack-masterbar {
|
|
@include breakpoint( '<782px' ) {
|
|
&.wp-admin .wrap h1 {
|
|
padding-left: 0;
|
|
}
|
|
|
|
#wpadminbar li.menupop.my-sites {
|
|
margin-left: 55px;
|
|
}
|
|
|
|
#wpadminbar #wp-admin-bar-menu-toggle {
|
|
top: -5px;
|
|
left: -5px;
|
|
width: 60px;
|
|
|
|
.ab-icon:before {
|
|
color: $white;
|
|
}
|
|
|
|
a {
|
|
padding: 0 8px 4px 8px !important;
|
|
}
|
|
|
|
a:hover {
|
|
background: #333;
|
|
}
|
|
}
|
|
|
|
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle {
|
|
left: -5px;
|
|
width: 60px;
|
|
|
|
.ab-icon:before {
|
|
color: $white !important;
|
|
}
|
|
|
|
a {
|
|
background: #333;
|
|
}
|
|
}
|
|
}
|
|
}
|