Skip to content

Commit

Permalink
Twenty Twenty and Twenty Twenty-One: Fixes code tag showing outside o…
Browse files Browse the repository at this point in the history
…f section area.

The code tag had a formatting issue where it was showing outside of the section area. This resolves it in both themes.

Props ravipatel, SergeyBiryukov, poena, sabernhardt, peterwilsoncc.
Fixes #52780.


git-svn-id: https://develop.svn.wordpress.org/trunk@58557 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
karmatosed committed Jun 24, 2024
1 parent e3aa011 commit c2e7ab3
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/wp-content/themes/twentytwenty/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ pre code {
padding: 0;
}

.entry-content > code {
display: block;
}

/* Media ------------------------------------- */

Expand Down
3 changes: 3 additions & 0 deletions src/wp-content/themes/twentytwenty/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ pre code {
padding: 0;
}

.entry-content > code {
display: block;
}

/* Media ------------------------------------- */

Expand Down
4 changes: 4 additions & 0 deletions src/wp-content/themes/twentytwentyone/assets/css/ie.css
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,10 @@ pre {
overflow-x: auto;
}

.entry-content > code {
display: block;
}

/*
* text-underline-offset doesn't work in Chrome at all 👎
* But looks nice in Safari/Firefox, so let's keep it and
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ pre {
white-space: pre;
overflow-x: auto;
}

.entry-content > code {
display: block;
}
4 changes: 4 additions & 0 deletions src/wp-content/themes/twentytwentyone/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,10 @@ pre {
overflow-x: auto;
}

.entry-content > code {
display: block;
}

/*
* text-underline-offset doesn't work in Chrome at all 👎
* But looks nice in Safari/Firefox, so let's keep it and
Expand Down
4 changes: 4 additions & 0 deletions src/wp-content/themes/twentytwentyone/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,10 @@ pre {
overflow-x: auto;
}

.entry-content > code {
display: block;
}

/*
* text-underline-offset doesn't work in Chrome at all 👎
* But looks nice in Safari/Firefox, so let's keep it and
Expand Down
2 changes: 1 addition & 1 deletion src/wp-content/themes/twentytwentyone/style.css.map

Large diffs are not rendered by default.

0 comments on commit c2e7ab3

Please sign in to comment.