Removed `wrap` class from `.wc-addons-wrap` div on Marketplace page, as we now have a way of forcing the notices to appear at a particular place. Removing styles associated with the previous classes.

This commit is contained in:
And Finally 2021-08-11 18:15:26 +01:00
parent af7c5a4e1d
commit 1a4f061710
2 changed files with 8 additions and 34 deletions

View File

@ -21,20 +21,6 @@
.wc-addons-wrap {
&.wrap {
padding-top: 0 !important;
.woocommerce-message {
margin-left: 20px;
margin-right: 20px;
&:first-of-type {
margin-top: 32px;
}
}
}
.marketplace-header {
background-image: url(../images/marketplace-header-bg@2x.png);
background-position: right;
@ -553,10 +539,6 @@
}
.marketplace-content-wrapper {
padding: 0 20px;
}
.marketplace-content {
margin: 0 auto;
max-width: 1032px;
width: 100%;
@ -678,30 +660,22 @@
}
}
.woocommerce-embed-page {
.wc-addons-wrap.wrap {
padding: 0;
}
}
.wc-subscriptions-wrap {
max-width: 1200px;
}
.woocommerce-page-wc-marketplace {
.woocommerce-layout {
display: none;
}
.notice {
margin-left: 20px;
margin-right: 20px;
}
.wp-header-end {
margin-top: -16px;
&.woocommerce-page {
.wrap {
margin-top: 32px;
}
}
}

View File

@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
?>
<div class="wrap woocommerce wc-addons-wrap">
<div class="woocommerce wc-addons-wrap">
<h1 class="screen-reader-text"><?php esc_html_e( 'Marketplace', 'woocommerce' ); ?></h1>
<?php if ( $sections ) : ?>
@ -36,8 +36,8 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="wp-header-end"></div>
<div class="marketplace-content-wrapper">
<div class="marketplace-content">
<div class="wrap">
<div class="marketplace-content-wrapper">
<?php if ( isset( $_GET['search'] ) ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?>
<h1 class="search-form-title">
<?php // translators: search keyword. ?>