From 6d914acd6cc808a5cd4b406578bdaf62667df5ef Mon Sep 17 00:00:00 2001 From: ianbelanger Date: Mon, 15 Jun 2020 15:13:09 +0000 Subject: [PATCH] Bundled Themes: Twenty Nineteen dropcap appears higher than expected in Firefox. Fixes the issue by adding moz specific top margin for the dropcap. Props kjellr, joseph.dickson, maxpertici, samful. Fixes #45876. Built from https://develop.svn.wordpress.org/trunk@48047 git-svn-id: http://core.svn.wordpress.org/trunk@47814 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentynineteen/sass/blocks/_blocks.scss | 6 ++++++ wp-content/themes/twentynineteen/style-editor.css | 6 ++++++ wp-content/themes/twentynineteen/style-editor.scss | 6 ++++++ wp-content/themes/twentynineteen/style.css | 6 ++++++ wp-includes/version.php | 2 +- 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss index e4b31341fa..a7f215c984 100644 --- a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss +++ b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss @@ -339,6 +339,12 @@ line-height: 1; font-weight: bold; margin: 0 0.25em 0 0; + + @-moz-document url-prefix() { + & { + margin-top: 0.2em; + } + } } } diff --git a/wp-content/themes/twentynineteen/style-editor.css b/wp-content/themes/twentynineteen/style-editor.css index b1051e5bf6..4b79f5350b 100644 --- a/wp-content/themes/twentynineteen/style-editor.css +++ b/wp-content/themes/twentynineteen/style-editor.css @@ -836,6 +836,12 @@ figcaption, margin: 0 0.25em 0 0; } +@-moz-document url-prefix() { + .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter { + margin-top: 0.2em; + } +} + /** === Table === */ .wp-block-table { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; diff --git a/wp-content/themes/twentynineteen/style-editor.scss b/wp-content/themes/twentynineteen/style-editor.scss index 921d0880de..58185578c9 100644 --- a/wp-content/themes/twentynineteen/style-editor.scss +++ b/wp-content/themes/twentynineteen/style-editor.scss @@ -236,6 +236,12 @@ figcaption, line-height: 1; font-weight: bold; margin: 0 0.25em 0 0; + + @-moz-document url-prefix() { + & { + margin-top: 0.2em; + } + } } } diff --git a/wp-content/themes/twentynineteen/style.css b/wp-content/themes/twentynineteen/style.css index 296f506d1e..dc99af1dd4 100644 --- a/wp-content/themes/twentynineteen/style.css +++ b/wp-content/themes/twentynineteen/style.css @@ -5651,6 +5651,12 @@ body.page .main-navigation { margin: 0 0.25em 0 0; } +@-moz-document url-prefix() { + .entry .entry-content .has-drop-cap:not(:focus)::first-letter { + margin-top: 0.2em; + } +} + .entry .entry-content .wp-block-pullquote { border-color: transparent; border-width: 2px; diff --git a/wp-includes/version.php b/wp-includes/version.php index 5ab28ddb7f..a74815a7dc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48046'; +$wp_version = '5.5-alpha-48047'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.