From 98893585d80b8ee80cc501ad773e5ed8cf2da542 Mon Sep 17 00:00:00 2001 From: And Finally Date: Fri, 13 Aug 2021 09:34:21 +0100 Subject: [PATCH 1/2] Small style tweaks. - Added top margin to `.addons-button` to ensure there's a gap above it when promos are squished to a narrower width. - Changed wording and style of `Search results for` label at the top of extensions search results, to conform to new design. --- assets/css/admin.scss | 8 ++++++-- includes/admin/views/html-admin-page-addons.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/css/admin.scss b/assets/css/admin.scss index ef246e48941..a02d64ba1fe 100644 --- a/assets/css/admin.scss +++ b/assets/css/admin.scss @@ -125,7 +125,7 @@ white-space: nowrap; &.current { - box-shadow: inset 0px -3px 0px #3171a6, inset 0px -1px 0px #ccc; + box-shadow: inset 0 -3px 0 #3171a6, inset 0 -1px 0 #ccc; } } } @@ -133,6 +133,9 @@ h1.search-form-title { clear: left; + font-size: 20px; + line-height: 1.2; + margin: 48px 0 16px; padding: 0; } @@ -165,12 +168,13 @@ content: ""; } - .addons-button { + . { border-radius: 3px; cursor: pointer; display: block; height: 37px; line-height: 37px; + margin-top: 16px; text-align: center; text-decoration: none; width: 124px; diff --git a/includes/admin/views/html-admin-page-addons.php b/includes/admin/views/html-admin-page-addons.php index 92fa50ecd8b..200cd5dcfe2 100644 --- a/includes/admin/views/html-admin-page-addons.php +++ b/includes/admin/views/html-admin-page-addons.php @@ -55,7 +55,7 @@ if ( ! defined( 'ABSPATH' ) ) {

- ' . esc_html( sanitize_text_field( wp_unslash( $_GET['search'] ) ) ) . '' ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> +

From 4d2afc71ce3d17dbdfd7c088287cec0655a7451e Mon Sep 17 00:00:00 2001 From: And Finally Date: Fri, 13 Aug 2021 10:14:13 +0100 Subject: [PATCH 2/2] Restored classname in style block, accidentally deleted. --- assets/css/admin.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/admin.scss b/assets/css/admin.scss index a02d64ba1fe..dcc9358bef0 100644 --- a/assets/css/admin.scss +++ b/assets/css/admin.scss @@ -168,7 +168,7 @@ content: ""; } - . { + .addons-button { border-radius: 3px; cursor: pointer; display: block;