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.



git-svn-id: https://develop.svn.wordpress.org/trunk@50347 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Kelly Choyce-Dwan 2021-02-15 18:54:02 +00:00
parent c3bf0a2fec
commit caffd32f52
5 changed files with 20 additions and 2 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 {