Make WordPress Core

Ticket #56747: 56747.patch

File 56747.patch, 874 bytes (added by sabernhardt, 2 years ago)

accommodate captions when the block's classes list does not begin with wp-block-

  • src/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css

     
    458458        margin-top: 0.5em;
    459459}
    460460
    461 /* Caption styles*/
     461/* Caption styles */
    462462
    463 [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     463[class^="wp-block-"]:not(.wp-block-gallery) figcaption,
     464[class*=" wp-block-"]:not(.wp-block-gallery) figcaption {
    464465        font-style: italic;
    465466        margin-bottom: 1.5em;
    466467        text-align: left;
    467468}
    468469
    469 .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     470.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption,
     471.rtl [class*=" wp-block-"]:not(.wp-block-gallery) figcaption {
    470472        text-align: right;
    471473}
    472474