Bundled Themes: Support font size option for code block.

Adds font-size support to Twenty Fourteen, Twenty Sixteen, and Twenty Seventeen.

Props poena, paaljoachim, peterwilsoncc.
Fixes #52431.


Built from https://develop.svn.wordpress.org/trunk@50347


git-svn-id: http://core.svn.wordpress.org/trunk@49958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryelle 2021-02-15 18:56:04 +00:00
parent ec38e1434a
commit 0e7386521b
6 changed files with 21 additions and 3 deletions

View File

@ -168,6 +168,10 @@ p.has-drop-cap:not(:focus)::first-letter {
padding: 0;
}
.wp-block-code code {
font-size: inherit;
}
/* Pullquote */
.wp-block-pullquote {

View File

@ -357,6 +357,10 @@ p.has-drop-cap:not(:focus)::first-letter {
padding: 0;
}
.editor-styles-wrapper .wp-block-code code {
font-size: inherit;
}
/* Pullquote */
.wp-block-pullquote {

View File

@ -149,6 +149,10 @@ p.has-drop-cap:not(:focus)::first-letter {
padding: 0;
}
.wp-block-code code {
font-size: inherit;
}
/* Pullquote */
.wp-block-pullquote {

View File

@ -622,6 +622,10 @@ html[lang="th"] .edit-post-visual-editor * {
padding: 0;
}
.editor-styles-wrapper .wp-block-code code {
font-size: inherit;
}
/* Classic */
.wp-block-freeform.block-library-rich-text__tinymce li,

View File

@ -145,12 +145,14 @@ p.has-drop-cap:not(:focus)::first-letter {
.wp-block-code {
border: 0;
font-family: Inconsolata, monospace;
font-size: 16px;
font-size: 1rem;
line-height: 1.75;
padding: 0;
}
.wp-block-code code {
font-size: inherit;
}
/* Pullquote */
.wp-block-pullquote {

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-beta2-50346';
$wp_version = '5.7-beta2-50347';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.