From e5e0debea452b1594bf90c02d87cd99db4150f46 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Wed, 29 May 2024 21:00:13 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@58238 git-svn-id: http://core.svn.wordpress.org/trunk@57701 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/blocks.css | 9 +++++++++ wp-content/themes/twentyeleven/editor-blocks.css | 9 +++++++++ wp-includes/version.php | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyeleven/blocks.css b/wp-content/themes/twentyeleven/blocks.css index 3a49346ff9..f5e27a6d0c 100644 --- a/wp-content/themes/twentyeleven/blocks.css +++ b/wp-content/themes/twentyeleven/blocks.css @@ -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 --------------------------------------------------------------*/ diff --git a/wp-content/themes/twentyeleven/editor-blocks.css b/wp-content/themes/twentyeleven/editor-blocks.css index 185b450750..e19d631d8a 100644 --- a/wp-content/themes/twentyeleven/editor-blocks.css +++ b/wp-content/themes/twentyeleven/editor-blocks.css @@ -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 --------------------------------------------------------------*/ diff --git a/wp-includes/version.php b/wp-includes/version.php index 0baf3eb2b9..51a58a6aa1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58237'; +$wp_version = '6.6-alpha-58238'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.