From a9135c617ad9bf48e03062d78b8af971aab0c2a3 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Sun, 26 May 2024 08:32:13 +0000 Subject: [PATCH] Twenty Nineteen: Make h1 consistent for entry title. The h1 for entry-title was not the same between the editor and front end. This fixes that in the by setting wp-block-post-title font sizes together with h2 and combines post-section-dash mixin for both h1 and h2. Props sabernhardt, nkeller15, shailu25. Fixes #58440. Built from https://develop.svn.wordpress.org/trunk@58198 git-svn-id: http://core.svn.wordpress.org/trunk@57661 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentynineteen/style-editor.css | 35 ++++++------------- .../themes/twentynineteen/style-editor.scss | 8 +++-- wp-includes/version.php | 2 +- 3 files changed, 18 insertions(+), 27 deletions(-) diff --git a/wp-content/themes/twentynineteen/style-editor.css b/wp-content/themes/twentynineteen/style-editor.css index 5523c4b9d9..ac0b00892f 100644 --- a/wp-content/themes/twentynineteen/style-editor.css +++ b/wp-content/themes/twentynineteen/style-editor.css @@ -685,34 +685,25 @@ h1 { font-size: 2.25em; } -h1:before { - background: #767676; - content: "\020"; - display: block; - height: 2px; - margin: 1rem 0; - width: 1em; -} - -h1.has-text-align-center:before { - margin-left: auto; - margin-right: auto; -} - -h1.has-text-align-right:before { - margin-left: auto; -} - @media only screen and (min-width: 768px) { h1 { font-size: 2.8125em; } } +.wp-block-post-title, h2 { font-size: 1.6875em; } +@media only screen and (min-width: 768px) { + .wp-block-post-title, + h2 { + font-size: 2.25em; + } +} + +h1:before, h2:before { background: #767676; content: "\020"; @@ -722,21 +713,17 @@ h2:before { width: 1em; } +h1.has-text-align-center:before, h2.has-text-align-center:before { margin-left: auto; margin-right: auto; } +h1.has-text-align-right:before, h2.has-text-align-right:before { margin-left: auto; } -@media only screen and (min-width: 768px) { - h2 { - font-size: 2.25em; - } -} - h3 { font-size: 1.6875em; } diff --git a/wp-content/themes/twentynineteen/style-editor.scss b/wp-content/themes/twentynineteen/style-editor.scss index 34bde6efea..72903b8950 100644 --- a/wp-content/themes/twentynineteen/style-editor.scss +++ b/wp-content/themes/twentynineteen/style-editor.scss @@ -119,22 +119,26 @@ h6 { h1 { font-size: $font__size-xl; - @include post-section-dash; @include media(tablet) { font-size: $font__size-xxl; } } +.wp-block-post-title, h2 { font-size: $font__size-lg; - @include post-section-dash; @include media(tablet) { font-size: $font__size-xl; } } +h1, +h2 { + @include post-section-dash; +} + h3 { font-size: $font__size-lg; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 24623e78bf..e412c86c7d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58197'; +$wp_version = '6.6-alpha-58198'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.