From 59433bb3062ad833812a293c0f2255b2d914ad30 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 25 Apr 2020 12:25:54 +0000 Subject: [PATCH] Administration: Remove right padding on form tables on smaller screens so that the spacing is equal on both sides. Additionally, reduce the right margin on screen meta links (Help and Screen Options) to align with the tables. Props jainnidhi, garrett-eclipse, ibdz, SergeyBiryukov. Fixes #43279. git-svn-id: https://develop.svn.wordpress.org/trunk@47622 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 5 +++++ src/wp-admin/css/forms.css | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 5c97f14453..878df291ad 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -3998,6 +3998,11 @@ img { float: none; } + #screen-meta, + #screen-meta-links { + margin-right: 10px; + } + #screen-meta-links { margin-bottom: 20px; /* Add margins beneath links for better spacing between boxes and elements */ } diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index c8de29148b..b86fe8370e 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -1500,16 +1500,13 @@ table.form-table td .updated p { } .form-table th { - padding-top: 10px; - padding-bottom: 0; + padding: 10px 0 0 0; border-bottom: 0; } .form-table td { margin-bottom: 0; - padding-bottom: 6px; - padding-top: 4px; - padding-left: 0; + padding: 4px 0 6px 0; } .form-table.permalink-structure td code {