Make WordPress Core

Ticket #62243: 62243.1.patch

File 62243.1.patch, 2.0 KB (added by sabernhardt, 7 months ago)

adds 1em top margin to a paragraph if it is the first element in the post content, within a Latest Posts block

  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

     
    10651065        margin-top: 15px;
    10661066}
    10671067
     1068.wp-block-latest-posts__post-full-content > p:first-child {
     1069        margin-top: 1em;
     1070}
     1071
    10681072/* Block: Shortcode -------------------------- */
    10691073
    10701074.editor-styles-wrapper .wp-block-shortcode textarea {
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

     
    10691069        margin-top: 15px;
    10701070}
    10711071
     1072.wp-block-latest-posts__post-full-content > p:first-child {
     1073        margin-top: 1em;
     1074}
     1075
    10721076/* Block: Shortcode -------------------------- */
    10731077
    10741078.editor-styles-wrapper .wp-block-shortcode textarea {
  • src/wp-content/themes/twentytwenty/style-rtl.css

     
    35253525        margin-top: 0;
    35263526}
    35273527
     3528.wp-block-latest-posts__post-full-content > p:first-child {
     3529        margin-top: 1em;
     3530}
     3531
    35283532/* Block: Post Template ---------------- */
    35293533
    35303534.wp-block-post-template,
  • src/wp-content/themes/twentytwenty/style.css

     
    35493549        margin-top: 0;
    35503550}
    35513551
     3552.wp-block-latest-posts__post-full-content > p:first-child {
     3553        margin-top: 1em;
     3554}
     3555
    35523556/* Block: Post Template ---------------- */
    35533557
    35543558.wp-block-post-template,