Skip to content

Commit c2e7ab3

Browse files
committed
Twenty Twenty and Twenty Twenty-One: Fixes code tag showing outside of 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
1 parent e3aa011 commit c2e7ab3

File tree

8 files changed

+24
-2
lines changed

8 files changed

+24
-2
lines changed

src/wp-content/themes/twentytwenty/style-rtl.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,9 @@ pre code {
598598
padding: 0;
599599
}
600600

601+
.entry-content > code {
602+
display: block;
603+
}
601604

602605
/* Media ------------------------------------- */
603606

src/wp-content/themes/twentytwenty/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,9 @@ pre code {
602602
padding: 0;
603603
}
604604

605+
.entry-content > code {
606+
display: block;
607+
}
605608

606609
/* Media ------------------------------------- */
607610

src/wp-content/themes/twentytwentyone/assets/css/ie.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,10 @@ pre {
16611661
overflow-x: auto;
16621662
}
16631663

1664+
.entry-content > code {
1665+
display: block;
1666+
}
1667+
16641668
/*
16651669
* text-underline-offset doesn't work in Chrome at all 👎
16661670
* But looks nice in Safari/Firefox, so let's keep it and

src/wp-content/themes/twentytwentyone/assets/css/ie.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wp-content/themes/twentytwentyone/assets/sass/04-elements/misc.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ pre {
1515
white-space: pre;
1616
overflow-x: auto;
1717
}
18+
19+
.entry-content > code {
20+
display: block;
21+
}

src/wp-content/themes/twentytwentyone/style-rtl.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,10 @@ pre {
15551555
overflow-x: auto;
15561556
}
15571557

1558+
.entry-content > code {
1559+
display: block;
1560+
}
1561+
15581562
/*
15591563
* text-underline-offset doesn't work in Chrome at all 👎
15601564
* But looks nice in Safari/Firefox, so let's keep it and

src/wp-content/themes/twentytwentyone/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,10 @@ pre {
15651565
overflow-x: auto;
15661566
}
15671567

1568+
.entry-content > code {
1569+
display: block;
1570+
}
1571+
15681572
/*
15691573
* text-underline-offset doesn't work in Chrome at all 👎
15701574
* But looks nice in Safari/Firefox, so let's keep it and

src/wp-content/themes/twentytwentyone/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)