Multiple themes: Fixes Code block not adjusting to font size changes.

This resolves the Code block not changing when the font sizes are switched in Twenty Eleven and Twenty Twelve. The solution is the same as used for other code block adjustments for font sizes.

Props viralsampat, sabernhardt.
Fixes #61753.


git-svn-id: https://develop.svn.wordpress.org/trunk@58816 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Tammie Lister 2024-07-27 09:35:19 +00:00
parent 916a992530
commit a3e07a2ec0
4 changed files with 10 additions and 0 deletions

View File

@ -119,6 +119,9 @@ pre {
code, kbd, samp, var {
font: 13px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
pre code {
font-size: inherit;
}
abbr, acronym, dfn {
border-bottom: 1px dotted #666;
cursor: help;

View File

@ -408,6 +408,9 @@ pre {
code, kbd, samp, var {
font: 13px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
pre code {
font-size: inherit;
}
abbr, acronym, dfn {
border-bottom: 1px dotted #666;
cursor: help;

View File

@ -157,6 +157,9 @@ var {
font-size: 0.857142857rem;
line-height: 2;
}
pre code {
font-size: inherit;
}
abbr,
acronym,
dfn {

View File

@ -903,6 +903,7 @@ article.sticky .featured-post {
.entry-content pre code,
.comment-content pre code {
display: block;
font-size: inherit;
}
.entry-content abbr,
.comment-content abbr,