From c0d665f64ea83538b89a82523c7b3ba119006aee Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Mon, 5 Aug 2024 09:51:11 +0000 Subject: [PATCH] Twenty Sixteen: Fixes Code block not showing same line-height and padding on front and in editor. The Code block had a difference in line-height and padding in the editor and front end. This does not fix font-family which has another ticket. Props viralsampat, sabernhardt. Fixes #61700. Built from https://develop.svn.wordpress.org/trunk@58852 git-svn-id: http://core.svn.wordpress.org/trunk@58248 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentysixteen/css/editor-blocks.css | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentysixteen/css/editor-blocks.css b/wp-content/themes/twentysixteen/css/editor-blocks.css index fb79e47200..da242520b1 100644 --- a/wp-content/themes/twentysixteen/css/editor-blocks.css +++ b/wp-content/themes/twentysixteen/css/editor-blocks.css @@ -416,7 +416,9 @@ figure[class*="wp-block-"] > figcaption { .editor-styles-wrapper .wp-block-code { border: 0; - padding: 0.125em 0.25em; + font-family: Inconsolata, monospace; + line-height: 1.75; + padding: 0; background-color: #d1d1d1; } diff --git a/wp-includes/version.php b/wp-includes/version.php index f49889979e..44c34e1ef0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58851'; +$wp_version = '6.7-alpha-58852'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.