Skip to content

Commit

Permalink
only style code as block if direct descendant of pre
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Nov 25, 2023
1 parent 4235834 commit 6b6ef67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@
margin-top: 0;
}

.doc pre code,
.doc pre > code,
.doc .listingblock pre:not(.highlight),
.doc .literalblock pre {
background: var(--pre-background);
Expand All @@ -850,9 +850,9 @@
}

/* NEEDS REVIEW prevent pre in table from causing article to exceed bounds */
.doc .listingblock.wrap pre code,
.doc .listingblock.wrap pre > code,
.doc .listingblock.wrap pre:not(.highlight),
.doc:not(.pdf-converter) table.tableblock pre code,
.doc:not(.pdf-converter) table.tableblock pre > code,
.doc:not(.pdf-converter) table.tableblock pre:not(.highlight) {
white-space: pre-wrap;
}
Expand Down

0 comments on commit 6b6ef67

Please sign in to comment.