WordPress.org

Make WordPress Core

Changeset 47560


Ignore:
Timestamp:
04/09/2020 10:32:43 PM (11 months ago)
Author:
whyisjake
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/edit.css

    r47473 r47560  
    757757}
    758758
    759 .policy-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
     759.policy-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help),
     760.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) {
    760761    background-color: #fff;
    761762    margin: 0;
     
    763764}
    764765
    765 .policy-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) + p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
     766.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),
     767.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) {
    766768    padding-top: 0;
    767769}
    768770
    769 .hide-privacy-policy-tutorial p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
     771.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) {
    770772    margin: 1em 0;
    771773    padding: 0;
     774}
     775
     776.policy-text ul li,
     777.policy-text ol li {
     778    margin-left: 2em;
     779}
     780
     781.policy-text ul {
     782    list-style: disc;
    772783}
    773784
Note: See TracChangeset for help on using the changeset viewer.