Layout tweaks. Changed new page classes to kebab case to avoid future stylelint selector warnings. Styling notices when they appear above the purple header.

This commit is contained in:
And Finally 2021-08-11 11:58:36 +01:00
parent 8553519657
commit 584b0a0a61
2 changed files with 40 additions and 12 deletions

View File

@ -560,7 +560,7 @@
width: 100%; width: 100%;
} }
.products { .products {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
flex-wrap: wrap; flex-wrap: wrap;
@ -685,6 +685,33 @@
max-width: 1200px; max-width: 1200px;
} }
.woocommerce-page-wc-marketplace {
.woocommerce-layout {
display: none;
}
#wpbody {
.notice {
margin-left: 20px;
margin-right: 20px;
}
.notice:first-of-type {
margin: 42px 20px 15px;
}
}
}
.woocommerce-embed-page.woocommerce-page-wc-marketplace {
#screen-meta-links {
position: absolute;
right: 0;
}
}
.woocommerce-message, .woocommerce-message,
.woocommerce-BlankState { .woocommerce-BlankState {
a.button-primary, a.button-primary,
@ -2764,6 +2791,16 @@ ul.wc_coupon_list_block {
margin-top: 4px; margin-top: 4px;
} }
} }
.woocommerce-page-wc-marketplace {
#wpbody {
.notice:first-of-type {
margin-top: 52px;
}
}
}
} }
.column-customer_message .note-on { .column-customer_message .note-on {
@ -7338,15 +7375,6 @@ table.bar_chart {
font-weight: bold; font-weight: bold;
} }
/* stylelint-disable selector-class-pattern */
.woocommerce-embed-page.woocommerce_page_wc-addons {
#screen-meta-links {
position: absolute;
right: 0;
}
}
@media screen and (min-width: 600px) { @media screen and (min-width: 600px) {
.wc-addons-wrap { .wc-addons-wrap {

View File

@ -805,9 +805,9 @@ class WC_Admin_Addons {
*/ */
public static function filter_admin_body_classes( string $admin_body_class = '' ) { public static function filter_admin_body_classes( string $admin_body_class = '' ) {
if ( isset( $_GET['section'] ) && 'helper' === $_GET['section'] ) { if ( isset( $_GET['section'] ) && 'helper' === $_GET['section'] ) {
return " $admin_body_class woocommerce_page_wc-subscriptions "; return " $admin_body_class woocommerce-page-wc-subscriptions ";
} }
return " $admin_body_class woocommerce_page_wc-marketplace "; return " $admin_body_class woocommerce-page-wc-marketplace ";
} }
} }