Make WordPress Core

Changeset 58238


Ignore:
Timestamp:
05/29/2024 08:58:13 PM (7 months ago)
Author:
karmatosed
Message:

Twenty Eleven: Resolves padding for media and text block.

The media and test block had misaligned padding. This changes styles to match margins.

Props kajalgohel, nidhidhandhukiya, ironprogrammer, sabernhardt, costdev, huzaifaalmesbah, hmbashar.
Fixes #57195.

Location:
trunk/src/wp-content/themes/twentyeleven
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/blocks.css

    r58178 r58238  
    287287}
    288288
     289.wp-block-media-text *:first-child {
     290    margin-top: 0;
     291}
     292
    289293.wp-block-media-text *:last-child {
    290294    margin-bottom: 0;
     295}
     296
     297.wp-block-media-text .wp-block-media-text__content {
     298    padding-top: 1.5em;
     299    padding-bottom: 1.5em;
    291300}
    292301
  • trunk/src/wp-content/themes/twentyeleven/editor-blocks.css

    r58178 r58238  
    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;
     438}
     439
     440.wp-block-media-text .wp-block-media-text__content {
     441    padding-top: 1.5em;
     442    padding-bottom: 1.5em;
    434443}
    435444
Note: See TracChangeset for help on using the changeset viewer.