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 .


git-svn-id: https://develop.svn.wordpress.org/trunk@58238 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Tammie Lister 2024-05-29 20:58:13 +00:00
parent 415995a210
commit 70203a19be
2 changed files with 18 additions and 0 deletions
src/wp-content/themes/twentyeleven

@ -286,10 +286,19 @@ p.has-drop-cap:not(:focus)::first-letter {
margin-bottom: 1.625em;
}
.wp-block-media-text *:first-child {
margin-top: 0;
}
.wp-block-media-text *:last-child {
margin-bottom: 0;
}
.wp-block-media-text .wp-block-media-text__content {
padding-top: 1.5em;
padding-bottom: 1.5em;
}
/*--------------------------------------------------------------
5.0 Blocks - Widgets
--------------------------------------------------------------*/

@ -429,10 +429,19 @@ p.has-drop-cap:not(:focus)::first-letter {
/* Media & Text */
.wp-block-media-text *:first-child {
margin-top: 0;
}
.wp-block-media-text *:last-child {
margin-bottom: 0;
}
.wp-block-media-text .wp-block-media-text__content {
padding-top: 1.5em;
padding-bottom: 1.5em;
}
/*--------------------------------------------------------------
6.0 Blocks - Widgets
--------------------------------------------------------------*/