Make WordPress Core

Ticket #56747: 56747.em.patch

File 56747.em.patch, 1.7 KB (added by sabernhardt, 2 years ago)

reversing italics for em elements within captions

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

     
    3030        text-align: right;
    3131}
    3232
     33[class^="wp-block-"]:not(.wp-block-gallery) figcaption em {
     34        font-style: normal;
     35}
     36
    3337/*--------------------------------------------------------------
    34382.0 Blocks - Common Blocks
    3539--------------------------------------------------------------*/
  • 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
     475[class^="wp-block-"]:not(.wp-block-gallery) figcaption em,
     476[class*=" wp-block-"]:not(.wp-block-gallery) figcaption em {
     477        font-style: normal;
     478}
     479
    473480/* Code styles */
    474481
    475482.wp-block-freeform.block-library-rich-text__tinymce code {