Make WordPress Core

Changeset 47561 for branches/5.4


Ignore:
Timestamp:
04/09/2020 10:44:10 PM (5 years 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.

Backports the trunk commit to the 5.4 branch.

Props garrett-eclipse.
Fixes #49772.

Location:
branches/5.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/src/wp-admin/css/edit.css

    r47418 r47561  
    449449.curtime #timestamp:before,
    450450#post-body .misc-pub-revisions:before,
    451 #post-body .misc-pub-response-to:before, 
     451#post-body .misc-pub-response-to:before,
    452452#post-body .misc-pub-comment-status:before {
    453453    color: #82878c;
     
    458458.curtime #timestamp:before,
    459459#post-body .misc-pub-revisions:before,
    460 #post-body .misc-pub-response-to:before, 
     460#post-body .misc-pub-response-to:before,
    461461#post-body .misc-pub-comment-status:before {
    462462    font: normal 20px/1 dashicons;
     
    470470}
    471471
    472 #post-body .misc-pub-post-status:before, 
     472#post-body .misc-pub-post-status:before,
    473473#post-body .misc-pub-comment-status:before {
    474474    content: "\f173";
     
    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.