<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[51025] trunk/src/wp-admin: Site Health, Privacy: Combine shared CSS for Site Health & Privacy Settings</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/51025">51025</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/51025","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>ryelle</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2021-05-26 01:52:26 +0000 (Wed, 26 May 2021)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Site Health, Privacy: Combine shared CSS for Site Health & Privacy Settings
The styles for the Privacy settings page were based on the Site Health section. These were duplicated into `edit.css` in <a href="https://core.trac.wordpress.org/ticket/49264">#49264</a>. This change merges the selectors from Site Health into the Privacy section, to reduce that duplicate code.
Props xkon, notlaura, clorith.
See <a href="https://core.trac.wordpress.org/ticket/52429">#52429</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmincsseditcss">trunk/src/wp-admin/css/edit.css</a></li>
<li><a href="#trunksrcwpadmincsssitehealthcss">trunk/src/wp-admin/css/site-health.css</a></li>
<li><a href="#trunksrcwpadminincludesdashboardphp">trunk/src/wp-admin/includes/dashboard.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmincsseditcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/css/edit.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/css/edit.css 2021-05-26 01:46:10 UTC (rev 51024)
+++ trunk/src/wp-admin/css/edit.css 2021-05-26 01:52:26 UTC (rev 51025)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -701,15 +701,22 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Privacy Settings section
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+*
+* Note: This section includes selectors from
+* Site Health where duplicate styling is used.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* General */
</span><span class="cx" style="display: block; padding: 0 10px"> .privacy-settings #wpcontent,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings.auto-fold #wpcontent {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings.auto-fold #wpcontent,
+.site-health #wpcontent,
+.site-health.auto-fold #wpcontent {
</ins><span class="cx" style="display: block; padding: 0 10px"> padding-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-header h1 {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* Emulates .wrap h1 styling */
+.privacy-settings-header h1,
+.health-check-header h1 {
</ins><span class="cx" style="display: block; padding: 0 10px"> display: inline-block;
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 600;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0 0.8rem 1rem;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -719,7 +726,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Header */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-header {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-header,
+.health-check-header {
</ins><span class="cx" style="display: block; padding: 0 10px"> text-align: center;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0 0 1rem;
</span><span class="cx" style="display: block; padding: 0 10px"> background: #fff;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -726,11 +734,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> border-bottom: 1px solid #dcdcde;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-title-section {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-title-section,
+.health-check-title-section {
</ins><span class="cx" style="display: block; padding: 0 10px"> display: flex;
</span><span class="cx" style="display: block; padding: 0 10px"> align-items: center;
</span><span class="cx" style="display: block; padding: 0 10px"> justify-content: center;
</span><span class="cx" style="display: block; padding: 0 10px"> clear: both;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ padding-top: 8px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .privacy-settings-tabs-wrapper {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -752,27 +762,32 @@
</span><span class="cx" style="display: block; padding: 0 10px"> transition: box-shadow 0.5s ease-in-out;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-tab:nth-child(1) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-tab:nth-child(1),
+.health-check-tab:nth-child(1) {
</ins><span class="cx" style="display: block; padding: 0 10px"> -ms-grid-column: 1; /* IE 11 */
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-tab:nth-child(2) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-tab:nth-child(2),
+.health-check-tab:nth-child(2) {
</ins><span class="cx" style="display: block; padding: 0 10px"> -ms-grid-column: 2; /* IE 11 */
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-tab:focus {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-tab:focus,
+.health-check-tab:focus {
</ins><span class="cx" style="display: block; padding: 0 10px"> color: #1d2327;
</span><span class="cx" style="display: block; padding: 0 10px"> outline: 1px solid #787c82;
</span><span class="cx" style="display: block; padding: 0 10px"> box-shadow: none;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-tab.active {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-tab.active,
+.health-check-tab.active {
</ins><span class="cx" style="display: block; padding: 0 10px"> box-shadow: inset 0 -3px #3582c4;
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 600;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Body */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-body {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-body,
+.health-check-body {
</ins><span class="cx" style="display: block; padding: 0 10px"> max-width: 800px;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0 auto;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -787,11 +802,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Accordions */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion,
+.health-check-accordion {
</ins><span class="cx" style="display: block; padding: 0 10px"> border: 1px solid #c3c4c7;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-heading {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-heading,
+.health-check-accordion-heading {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> border-top: 1px solid #c3c4c7;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: inherit;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -800,11 +817,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> color: inherit;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-heading:first-child {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-heading:first-child,
+.health-check-accordion-heading:first-child {
</ins><span class="cx" style="display: block; padding: 0 10px"> border-top: none;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger,
+.health-check-accordion-trigger {
</ins><span class="cx" style="display: block; padding: 0 10px"> background: #fff;
</span><span class="cx" style="display: block; padding: 0 10px"> border: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> color: #2c3338;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -819,14 +838,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px"> align-items: center;
</span><span class="cx" style="display: block; padding: 0 10px"> justify-content: space-between;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ -webkit-user-select: auto;
+ user-select: auto;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .privacy-settings-accordion-trigger:hover,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger:active {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger:active,
+.health-check-accordion-trigger:hover,
+.health-check-accordion-trigger:active {
</ins><span class="cx" style="display: block; padding: 0 10px"> background: #f6f7f7;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger:focus {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger:focus,
+.health-check-accordion-trigger:focus {
</ins><span class="cx" style="display: block; padding: 0 10px"> color: #1d2327;
</span><span class="cx" style="display: block; padding: 0 10px"> border: none;
</span><span class="cx" style="display: block; padding: 0 10px"> box-shadow: none;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -835,7 +859,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> background-color: #f6f7f7;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger .title {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger .title,
+.health-check-accordion-trigger .title {
</ins><span class="cx" style="display: block; padding: 0 10px"> pointer-events: none;
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 600;
</span><span class="cx" style="display: block; padding: 0 10px"> flex-grow: 1;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -842,7 +867,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .privacy-settings-accordion-trigger .icon,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-view-read .icon {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-view-read .icon,
+.health-check-accordion-trigger .icon,
+.site-health-view-passed .icon {
</ins><span class="cx" style="display: block; padding: 0 10px"> border: solid #50575e;
</span><span class="cx" style="display: block; padding: 0 10px"> border-width: 0 2px 2px 0;
</span><span class="cx" style="display: block; padding: 0 10px"> height: 0.5rem;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -854,53 +881,68 @@
</span><span class="cx" style="display: block; padding: 0 10px"> width: 0.5rem;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger .badge {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger .badge,
+.health-check-accordion-trigger .badge {
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: 0.1rem 0.5rem 0.15rem;
</span><span class="cx" style="display: block; padding: 0 10px"> color: #2c3338;
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 600;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+}
+
+.privacy-settings-accordion-trigger .badge {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-left: 0.5rem;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger .badge.blue {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger .badge.blue,
+.health-check-accordion-trigger .badge.blue {
</ins><span class="cx" style="display: block; padding: 0 10px"> border: 1px solid #72aee6;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger .badge.orange {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger .badge.orange,
+.health-check-accordion-trigger .badge.orange {
</ins><span class="cx" style="display: block; padding: 0 10px"> border: 1px solid #dba617;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger .badge.red {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger .badge.red,
+.health-check-accordion-trigger .badge.red {
</ins><span class="cx" style="display: block; padding: 0 10px"> border: 1px solid #e65054;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger .badge.green {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger .badge.green,
+.health-check-accordion-trigger .badge.green {
</ins><span class="cx" style="display: block; padding: 0 10px"> border: 1px solid #00ba37;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger .badge.purple {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger .badge.purple,
+.health-check-accordion-trigger .badge.purple {
</ins><span class="cx" style="display: block; padding: 0 10px"> border: 1px solid #2271b1;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-trigger .badge.gray {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-trigger .badge.gray,
+.health-check-accordion-trigger .badge.gray {
</ins><span class="cx" style="display: block; padding: 0 10px"> border: 1px solid #c3c4c7;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .privacy-settings-accordion-trigger[aria-expanded="true"] .icon,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-view-passed[aria-expanded="true"] .icon {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-view-passed[aria-expanded="true"] .icon,
+.health-check-accordion-trigger[aria-expanded="true"] .icon,
+.site-health-view-passed[aria-expanded="true"] .icon {
</ins><span class="cx" style="display: block; padding: 0 10px"> transform: translateY(-30%) rotate(-135deg)
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-panel {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-panel,
+.health-check-accordion-panel {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 1em 1.5em;
</span><span class="cx" style="display: block; padding: 0 10px"> background: #fff;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-panel[hidden] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-panel[hidden],
+.health-check-accordion-panel[hidden] {
</ins><span class="cx" style="display: block; padding: 0 10px"> display: none;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.privacy-settings-accordion-panel a .dashicons {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.privacy-settings-accordion-panel a .dashicons,
+.health-check-accordion-panel a .dashicons {
</ins><span class="cx" style="display: block; padding: 0 10px"> text-decoration: none;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -945,16 +987,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /* Media queries */
</span><span class="cx" style="display: block; padding: 0 10px"> @media screen and (max-width: 782px) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .privacy-settings-body {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .privacy-settings-body,
+ .health-check-body {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin: 0 12px;
</span><span class="cx" style="display: block; padding: 0 10px"> width: auto;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .privacy-settings .notice {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .privacy-settings .notice,
+ .site-health .notice {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin: 5px 10px 15px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .privacy-settings .update-nag {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .privacy-settings .update-nag,
+ .site-health .update-nag {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-right: 10px;
</span><span class="cx" style="display: block; padding: 0 10px"> margin-left: 10px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -971,7 +1016,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (max-width: 1004px) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .privacy-settings-body {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .privacy-settings-body,
+ .health-check-body {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin: 0 22px;
</span><span class="cx" style="display: block; padding: 0 10px"> width: auto;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpadmincsssitehealthcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/css/site-health.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/css/site-health.css 2021-05-26 01:46:10 UTC (rev 51024)
+++ trunk/src/wp-admin/css/site-health.css 2021-05-26 01:52:26 UTC (rev 51025)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,18 +1,7 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.site-health #wpcontent,
-.site-health.auto-fold #wpcontent {
- padding-left: 0;
-}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* Note: Any Site Health selectors that use
+duplicate styling from the Privacy settings screen
+are styled in the Privacy section of edit.css */
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/* Emulates .wrap h1 styling */
-.health-check-header h1 {
- display: inline-block;
- font-weight: 600;
- margin: 0 0.8rem 1rem;
- font-size: 23px;
- padding: 9px 0 4px 0;
- line-height: 1.3;
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> .health-check-body h2 {
</span><span class="cx" style="display: block; padding: 0 10px"> line-height: 1.4;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,25 +11,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 400;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.health-check-header {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.health-check-widget-title-section {
</ins><span class="cx" style="display: block; padding: 0 10px"> text-align: center;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- margin: 0 0 1rem;
- background: #fff;
- border-bottom: 1px solid #dcdcde;
</del><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.health-check-title-section {
- clear: both;
- text-align: center;
- padding-top: 8px;
-}
-
-.site-health .health-check-title-section {
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> .site-health-progress-wrapper {
</span><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 1rem;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -186,24 +160,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> box-shadow: 0 2px 5px 0 rgba( 0, 0, 0, 0.75 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.health-check-tab:nth-child(1) {
- -ms-grid-column: 1; /* IE 11 */
-}
-
-.health-check-tab:nth-child(2) {
- -ms-grid-column: 2; /* IE 11 */
-}
-
-.health-check-tab:focus {
- color: #1d2327;
- outline: 1px solid #787c82;
- box-shadow: none;
-}
-
-.health-check-tab.active {
- box-shadow: inset 0 -3px #3582c4;
- font-weight: 600;
-}
</del><span class="cx" style="display: block; padding: 0 10px"> .health-check-offscreen-nav .health-check-tab.active {
</span><span class="cx" style="display: block; padding: 0 10px"> box-shadow: inset 3px 0 #3582c4;
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 600;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -321,42 +277,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.health-check-accordion {
- border: 1px solid #c3c4c7;
-}
-
-.health-check-accordion-heading {
- margin: 0;
- border-top: 1px solid #c3c4c7;
- font-size: inherit;
- line-height: inherit;
- font-weight: 600;
- color: inherit;
-}
-
-.health-check-accordion-heading:first-child {
- border-top: none;
-}
-
-.health-check-accordion-trigger {
- background: #fff;
- border: 0;
- color: #2c3338;
- cursor: pointer;
- display: flex;
- font-weight: 400;
- margin: 0;
- padding: 1em 3.5em 1em 1.5em;
- min-height: 46px;
- position: relative;
- text-align: left;
- width: 100%;
- align-items: center;
- justify-content: space-between;
- -webkit-user-select: auto;
- user-select: auto;
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> .wp-core-ui .button.site-health-view-passed {
</span><span class="cx" style="display: block; padding: 0 10px"> position: relative;
</span><span class="cx" style="display: block; padding: 0 10px"> padding-right: 40px;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -363,89 +283,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> padding-left: 20px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.health-check-accordion-trigger:hover,
-.health-check-accordion-trigger:active {
- background: #f6f7f7;
-}
</del><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.health-check-accordion-trigger:focus {
- color: #1d2327;
- border: none;
- box-shadow: none;
- outline-offset: -1px;
- outline: 2px solid #2271b1;
- background-color: #f6f7f7;
-}
-
-.health-check-accordion-trigger .title {
- pointer-events: none;
- font-weight: 600;
- flex-grow: 1;
-}
-
-.health-check-accordion-trigger .icon,
-.site-health-view-passed .icon {
- border: solid #50575e;
- border-width: 0 2px 2px 0;
- height: 0.5rem;
- pointer-events: none;
- position: absolute;
- right: 1.5em;
- top: 50%;
- transform: translateY(-70%) rotate(45deg);
- width: 0.5rem;
-}
-
-.health-check-accordion-trigger .badge {
- padding: 0.1rem 0.5rem 0.15rem;
- color: #2c3338;
- font-weight: 600;
- margin-left: 0.5rem;
-}
-
-.health-check-accordion-trigger .badge.blue {
- border: 1px solid #72aee6;
-}
-
-.health-check-accordion-trigger .badge.orange {
- border: 1px solid #dba617;
-}
-
-.health-check-accordion-trigger .badge.red {
- border: 1px solid #e65054;
-}
-
-.health-check-accordion-trigger .badge.green {
- border: 1px solid #00ba37;
-}
-
-.health-check-accordion-trigger .badge.purple {
- border: 1px solid #2271b1;
-}
-
-.health-check-accordion-trigger .badge.gray {
- border: 1px solid #c3c4c7;
-}
-
-.health-check-accordion-trigger[aria-expanded="true"] .icon,
-.site-health-view-passed[aria-expanded="true"] .icon {
- transform: translateY(-30%) rotate(-135deg)
-}
-
-.health-check-accordion-panel {
- margin: 0;
- padding: 1em 1.5em;
- background: #fff;
-}
-
-.health-check-accordion-panel[hidden] {
- display: none;
-}
-
-.health-check-accordion-panel a .dashicons {
- text-decoration: none;
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> /* Better position for the WordPress admin notices and update nag. */
</span><span class="cx" style="display: block; padding: 0 10px"> .site-health .notice {
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 5px 20px 15px 22px;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -486,20 +324,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media screen and (max-width: 782px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .health-check-body {
- margin: 0 12px;
- width: auto;
- }
</del><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .site-health .notice {
- margin: 5px 10px 15px;
- }
-
- .site-health .update-nag {
- margin-right: 10px;
- margin-left: 10px;
- }
-
</del><span class="cx" style="display: block; padding: 0 10px"> .site-health-issues-wrapper .health-check-accordion-trigger {
</span><span class="cx" style="display: block; padding: 0 10px"> flex-direction: column;
</span><span class="cx" style="display: block; padding: 0 10px"> align-items: flex-start;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -531,10 +356,3 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/* The breakpoint is usually at 960px, the additional space is to allow for the margin. */
-@media only screen and (max-width: 1004px) {
- .health-check-body {
- margin: 0 22px;
- width: auto;
- }
-}
</del></span></pre></div>
<a id="trunksrcwpadminincludesdashboardphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/dashboard.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/dashboard.php 2021-05-26 01:46:10 UTC (rev 51024)
+++ trunk/src/wp-admin/includes/dashboard.php 2021-05-26 01:52:26 UTC (rev 51025)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1891,7 +1891,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $issues_total = $issue_counts['recommended'] + $issue_counts['critical'];
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div class="health-check-title-section site-health-progress-wrapper loading hide-if-no-js">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="health-check-widget-title-section site-health-progress-wrapper loading hide-if-no-js">
</ins><span class="cx" style="display: block; padding: 0 10px"> <div class="site-health-progress">
</span><span class="cx" style="display: block; padding: 0 10px"> <svg role="img" aria-hidden="true" focusable="false" width="100%" height="100%" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg">
</span><span class="cx" style="display: block; padding: 0 10px"> <circle r="90" cx="100" cy="100" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle>
</span></span></pre>
</div>
</div>
</body>
</html>