From 6d586d428717e9819b2c964090864871cbe9185c Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Thu, 9 Apr 2020 22:32:43 +0000 Subject: [PATCH] Privacy: Support additional elements (table, ol, ul) in privacy policy guide new styling The privacy policy guide supports a lot of HTML, include rules for lists, and ensure proper styling for the rest. Props garrett-eclipse. Fixes #49772. git-svn-id: https://develop.svn.wordpress.org/trunk@47560 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/edit.css | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css index 4c73094015..7e0beb356a 100644 --- a/src/wp-admin/css/edit.css +++ b/src/wp-admin/css/edit.css @@ -756,21 +756,32 @@ form#tags-filter { margin-bottom: 1em; } -.policy-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) { +.policy-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help), +.policy-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) { background-color: #fff; margin: 0; padding: 1em; } -.policy-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) + p:not(.privacy-policy-tutorial):not(.wp-policy-help) { +.policy-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) + *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help), +.policy-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) + *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) { padding-top: 0; } -.hide-privacy-policy-tutorial p:not(.privacy-policy-tutorial):not(.wp-policy-help) { +.hide-privacy-policy-tutorial > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) { margin: 1em 0; padding: 0; } +.policy-text ul li, +.policy-text ol li { + margin-left: 2em; +} + +.policy-text ul { + list-style: disc; +} + strong.wp-policy-help, /* For back-compat, see #49282 */ strong.privacy-policy-tutorial { display: block;