Skip to content

Commit 6b6ef67

Browse files
committed
only style code as block if direct descendant of pre
1 parent 4235834 commit 6b6ef67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/css/doc.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@
839839
margin-top: 0;
840840
}
841841

842-
.doc pre code,
842+
.doc pre > code,
843843
.doc .listingblock pre:not(.highlight),
844844
.doc .literalblock pre {
845845
background: var(--pre-background);
@@ -850,9 +850,9 @@
850850
}
851851

852852
/* NEEDS REVIEW prevent pre in table from causing article to exceed bounds */
853-
.doc .listingblock.wrap pre code,
853+
.doc .listingblock.wrap pre > code,
854854
.doc .listingblock.wrap pre:not(.highlight),
855-
.doc:not(.pdf-converter) table.tableblock pre code,
855+
.doc:not(.pdf-converter) table.tableblock pre > code,
856856
.doc:not(.pdf-converter) table.tableblock pre:not(.highlight) {
857857
white-space: pre-wrap;
858858
}

0 commit comments

Comments
 (0)