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%;
}
.products {
.products {
display: flex;
flex-flow: row;
flex-wrap: wrap;
@ -685,6 +685,33 @@
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-BlankState {
a.button-primary,
@ -2764,6 +2791,16 @@ ul.wc_coupon_list_block {
margin-top: 4px;
}
}
.woocommerce-page-wc-marketplace {
#wpbody {
.notice:first-of-type {
margin-top: 52px;
}
}
}
}
.column-customer_message .note-on {
@ -7338,15 +7375,6 @@ table.bar_chart {
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) {
.wc-addons-wrap {

View File

@ -805,9 +805,9 @@ class WC_Admin_Addons {
*/
public static function filter_admin_body_classes( string $admin_body_class = '' ) {
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 ";
}
}