Make WordPress Core

Ticket #57195: 57195.diff

File 57195.diff, 1.4 KB (added by costdev, 2 years ago)

Remove margin-top. Add padding-top: 1.5em and padding-bottom: 1.5em.

  • src/wp-content/themes/twentyeleven/blocks.css

    diff --git a/src/wp-content/themes/twentyeleven/blocks.css b/src/wp-content/themes/twentyeleven/blocks.css
    index 6d9b02947a..4723f9ab0e 100644
    a b p.has-drop-cap:not(:focus)::first-letter { 
    285285        margin-bottom: 1.625em;
    286286}
    287287
     288.wp-block-media-text *:first-child {
     289        margin-top: 0;
     290}
     291
    288292.wp-block-media-text *:last-child {
    289293        margin-bottom: 0;
    290294}
    291295
     296.wp-block-media-text .wp-block-media-text__content {
     297        padding-top: 1.5em;
     298        padding-bottom: 1.5em;
     299}
     300
    292301/*--------------------------------------------------------------
    2933025.0 Blocks - Widgets
    294303--------------------------------------------------------------*/
  • src/wp-content/themes/twentyeleven/editor-blocks.css

    diff --git a/src/wp-content/themes/twentyeleven/editor-blocks.css b/src/wp-content/themes/twentyeleven/editor-blocks.css
    index 4b10bb4ade..0e93698d23 100644
    a b p.has-drop-cap:not(:focus)::first-letter { 
    429429
    430430/* Media & Text */
    431431
     432.wp-block-media-text *:first-child {
     433        margin-top: 0;
     434}
     435
    432436.wp-block-media-text *:last-child {
    433437        margin-bottom: 0;
    434438}
    435439
     440.wp-block-media-text .wp-block-media-text__content {
     441        padding-top: 1.5em;
     442        padding-bottom: 1.5em;
     443}
     444
    436445/*--------------------------------------------------------------
    4374466.0 Blocks - Widgets
    438447--------------------------------------------------------------*/