Skip to content

Commit 1d2fbd7

Browse files
committed
reduce font size of pre inside table for pdf-converter component
1 parent 2d1cf81 commit 1d2fbd7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/css/doc.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,11 +761,16 @@
761761
/* NEEDS REVIEW prevent pre in table from causing article to exceed bounds */
762762
.doc .listingblock.wrap pre code,
763763
.doc .listingblock.wrap pre:not(.highlight),
764-
.doc table.tableblock pre code,
765-
.doc table.tableblock pre:not(.highlight) {
764+
.doc:not(.pdf-converter) table.tableblock pre code,
765+
.doc:not(.pdf-converter) table.tableblock pre:not(.highlight) {
766766
white-space: pre-wrap;
767767
}
768768

769+
.doc.pdf-converter table.tableblock pre {
770+
font-size: calc(13.5 / var(--rem-base) * 1rem);
771+
max-width: 375px;
772+
}
773+
769774
.doc pre.highlight {
770775
position: relative;
771776
}

0 commit comments

Comments
 (0)