Making WordPress.org

Changeset 9407


Ignore:
Timestamp:
01/22/2020 12:35:41 AM (5 years ago)
Author:
coffee2code
Message:

Handbook plugin: Ensure proper spacing within callouts also apply for single-line shortcodes rendered via shortcode blocks.

For single-line shortcodes added via the shortcode block, the efforts of wpautop() appear to be stripped prior to display so spacing should not rely on presence of any 'p' tags.

Props dilipbheda, dufresnesteven, coffee2code.
Fixes #4936.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/stylesheets/callout-boxes.css

    r6357 r9407  
    11.callout {
    2   padding: 1em 3em 1em 3.7em;
     2  padding: 1.5em 3em 1.6em 3.7em;
    33  margin-bottom: 1.5em;
    44  overflow: auto;
     
    99}
    1010.callout p {
    11   margin-bottom: 0.6em !important;
    12   margin-top: 0.5em !important;
     11  margin-bottom: 0.6em;
     12  margin-top: 0.5em;
    1313}
    14 .callout p ~ p {
    15   margin-top: 1em;
     14.callout p:first-child {
     15  margin-top: 0;
     16}
     17.callout p:last-child {
     18  margin-bottom: 0;
    1619}
    1720.callout:before {
Note: See TracChangeset for help on using the changeset viewer.