From e5d85a4490d36455a2aded9ea8bf6914b45ff33f Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Mon, 24 Jun 2024 19:51:11 +0000 Subject: [PATCH] Twenty Twenty and Twenty Twenty-One: Fixes code tag showing outside of section area. The code tag had a formatting issue where it was showing outside of the section area. This resolves it in both themes. Props ravipatel, SergeyBiryukov, poena, sabernhardt, peterwilsoncc. Fixes #52780. Built from https://develop.svn.wordpress.org/trunk@58557 git-svn-id: http://core.svn.wordpress.org/trunk@58005 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwenty/style-rtl.css | 3 +++ wp-content/themes/twentytwenty/style.css | 3 +++ wp-content/themes/twentytwentyone/assets/css/ie.css | 4 ++++ .../themes/twentytwentyone/assets/sass/04-elements/misc.scss | 4 ++++ wp-content/themes/twentytwentyone/style-rtl.css | 4 ++++ wp-content/themes/twentytwentyone/style.css | 4 ++++ wp-includes/version.php | 2 +- 7 files changed, 23 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwenty/style-rtl.css b/wp-content/themes/twentytwenty/style-rtl.css index 6bb7052119..7ede0961e0 100644 --- a/wp-content/themes/twentytwenty/style-rtl.css +++ b/wp-content/themes/twentytwenty/style-rtl.css @@ -598,6 +598,9 @@ pre code { padding: 0; } +.entry-content > code { + display: block; +} /* Media ------------------------------------- */ diff --git a/wp-content/themes/twentytwenty/style.css b/wp-content/themes/twentytwenty/style.css index de5ba3bf75..c82a942688 100644 --- a/wp-content/themes/twentytwenty/style.css +++ b/wp-content/themes/twentytwenty/style.css @@ -602,6 +602,9 @@ pre code { padding: 0; } +.entry-content > code { + display: block; +} /* Media ------------------------------------- */ diff --git a/wp-content/themes/twentytwentyone/assets/css/ie.css b/wp-content/themes/twentytwentyone/assets/css/ie.css index a6f9bf189d..87d14784e5 100644 --- a/wp-content/themes/twentytwentyone/assets/css/ie.css +++ b/wp-content/themes/twentytwentyone/assets/css/ie.css @@ -1661,6 +1661,10 @@ pre { overflow-x: auto; } +.entry-content > code { + display: block; +} + /* * text-underline-offset doesn't work in Chrome at all 👎 * But looks nice in Safari/Firefox, so let's keep it and diff --git a/wp-content/themes/twentytwentyone/assets/sass/04-elements/misc.scss b/wp-content/themes/twentytwentyone/assets/sass/04-elements/misc.scss index 9fe7247a26..b5e65a1c86 100644 --- a/wp-content/themes/twentytwentyone/assets/sass/04-elements/misc.scss +++ b/wp-content/themes/twentytwentyone/assets/sass/04-elements/misc.scss @@ -15,3 +15,7 @@ pre { white-space: pre; overflow-x: auto; } + +.entry-content > code { + display: block; +} diff --git a/wp-content/themes/twentytwentyone/style-rtl.css b/wp-content/themes/twentytwentyone/style-rtl.css index 66d5cbad35..32d227633b 100644 --- a/wp-content/themes/twentytwentyone/style-rtl.css +++ b/wp-content/themes/twentytwentyone/style-rtl.css @@ -1555,6 +1555,10 @@ pre { overflow-x: auto; } +.entry-content > code { + display: block; +} + /* * text-underline-offset doesn't work in Chrome at all 👎 * But looks nice in Safari/Firefox, so let's keep it and diff --git a/wp-content/themes/twentytwentyone/style.css b/wp-content/themes/twentytwentyone/style.css index 11a1355a02..8500e2d240 100644 --- a/wp-content/themes/twentytwentyone/style.css +++ b/wp-content/themes/twentytwentyone/style.css @@ -1565,6 +1565,10 @@ pre { overflow-x: auto; } +.entry-content > code { + display: block; +} + /* * text-underline-offset doesn't work in Chrome at all 👎 * But looks nice in Safari/Firefox, so let's keep it and diff --git a/wp-includes/version.php b/wp-includes/version.php index aed662c150..b7993035de 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-beta4-58556'; +$wp_version = '6.6-beta4-58557'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.