From f54e344ed8de6c30de2e3422f8fab36aed5a9e0d Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Wed, 3 Jul 2024 10:29:16 +0000 Subject: [PATCH] Twenty Ten: Fixes table and calendar block font size issues. The table and calendar block font sizes were not the same on front and in editor. This resolves in using relative line-height. Props iamfarhan09, bijit027, sabernhardt. Fixes #58362. Built from https://develop.svn.wordpress.org/trunk@58633 git-svn-id: http://core.svn.wordpress.org/trunk@58062 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/blocks.css | 8 ++++++++ wp-content/themes/twentyten/editor-blocks.css | 8 ++++++++ wp-includes/version.php | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyten/blocks.css b/wp-content/themes/twentyten/blocks.css index fb53e7be63..0bceba13bf 100644 --- a/wp-content/themes/twentyten/blocks.css +++ b/wp-content/themes/twentyten/blocks.css @@ -156,6 +156,14 @@ p.has-drop-cap:not(:focus)::first-letter { background: #f2f7fc; } +#content .wp-block-table[style*="font-size"] *, +#content .wp-block-table[class*="-font-size"] *, +#content .wp-block-calendar[style*="font-size"] *, +#content .wp-block-calendar[class*="-font-size"] * { + font-size: inherit; + line-height: 1.5; +} + /*-------------------------------------------------------------- 4.0 Blocks - Layout Elements --------------------------------------------------------------*/ diff --git a/wp-content/themes/twentyten/editor-blocks.css b/wp-content/themes/twentyten/editor-blocks.css index 86b2f5f875..bdf98220f8 100644 --- a/wp-content/themes/twentyten/editor-blocks.css +++ b/wp-content/themes/twentyten/editor-blocks.css @@ -294,6 +294,14 @@ p.has-drop-cap:not(:focus)::first-letter { padding-top: 0; } +.wp-block-table[style*="font-size"] *, +.wp-block-table[class*="-font-size"] *, +.wp-block-calendar[style*="font-size"] *, +.wp-block-calendar[class*="-font-size"] * { + font-size: inherit; + line-height: 1.5; +} + /*-------------------------------------------------------------- 5.0 Blocks - Widgets --------------------------------------------------------------*/ diff --git a/wp-includes/version.php b/wp-includes/version.php index 809b9163cf..64b11a1c85 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58632'; +$wp_version = '6.7-alpha-58633'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.