Accessibility: Privacy: Improve the readability of the suggested text in Privacy Policy Guide.

Per WCAG 2.0 guidelines, big chunks of italic text should be avoided for better accessibility.

Props birgire, sabernhardt, xkon, garrett-eclipse, melchoyce, karmatosed, afercia, jepperask, SergeyBiryukov.
Fixes #44621. See #47327.

git-svn-id: https://develop.svn.wordpress.org/trunk@47147 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-01-31 03:24:00 +00:00
parent b894d8665a
commit df755ff8ac

View File

@ -729,18 +729,34 @@ form#tags-filter {
margin-top: 6px; margin-top: 6px;
} }
.hide-privacy-policy-tutorial {
background-color: #fff;
}
.hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat, see #49282 */ .hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat, see #49282 */
.hide-privacy-policy-tutorial .privacy-policy-tutorial { .hide-privacy-policy-tutorial .privacy-policy-tutorial {
visibility: hidden; display: none;
} }
.wp-suggested-text p { .wp-suggested-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
font-style: italic; background-color: #fff;
margin: 0;
padding: 1em;
} }
.wp-suggested-text p.wp-policy-help, /* For back-compat, see #49282 */ .wp-suggested-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) + p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
.wp-suggested-text p.privacy-policy-tutorial { padding-top: 0;
font-style: normal; }
.hide-privacy-policy-tutorial p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
margin: 1em 0;
padding: 0;
}
strong.wp-policy-help, /* For back-compat, see #49282 */
strong.privacy-policy-tutorial {
display: block;
margin: 0 0 1em;
} }
.notice.wp-pp-notice { .notice.wp-pp-notice {