From b2a2270ae7a69393f361a7207fd0aef6f3b8314d Mon Sep 17 00:00:00 2001 From: "Marius L. J" Date: Sun, 18 Sep 2022 01:27:13 +0000 Subject: [PATCH] Site Health: Adjust margins for the Site Health dashboard widget. This aligns the spacing within the widget with other core widgets, and removes an unintended margin which was pushing the indicator slightly above the centered position it was intended to have. Props sabernhardt, costdev, mukesh27. Fixes #56369. git-svn-id: https://develop.svn.wordpress.org/trunk@54197 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/site-health.css | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/css/site-health.css b/src/wp-admin/css/site-health.css index ed539d33ae..af8a43cc51 100644 --- a/src/wp-admin/css/site-health.css +++ b/src/wp-admin/css/site-health.css @@ -11,10 +11,6 @@ are styled in the Privacy section of edit.css */ font-weight: 400; } -.health-check-widget-title-section { - text-align: center; -} - .site-health-progress-wrapper { margin-bottom: 1rem; } @@ -307,6 +303,14 @@ are styled in the Privacy section of edit.css */ padding-left: 16px; } +#dashboard_site_health .site-health-details p:first-child { + margin-top: 0; +} + +#dashboard_site_health .site-health-details p:last-child { + margin-bottom: 0; +} + #dashboard_site_health .health-check-widget { display: grid; grid-template-columns: 1fr 2fr; @@ -318,6 +322,11 @@ are styled in the Privacy section of edit.css */ margin-left: 0; } +.health-check-widget-title-section { + margin-bottom: 0; + text-align: center; +} + @media screen and (max-width: 480px) { #dashboard_site_health .health-check-widget { grid-template-columns: 100%;