Skip to content

Commit 611be67

Browse files
committed
only apply code formatting inside blocks to inline code
1 parent 8586508 commit 611be67

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

ui/src/css/doc.css

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
.doc p code,
200200
.doc thead code,
201201
.doc .colist > table code,
202-
.doc .admonitionblock td.content code {
202+
.doc .admonitionblock td.content code:not(.hljs) {
203203
color: var(--code-font-color);
204204
background: #F7F7F7;
205205
border-radius: 4px;
@@ -970,19 +970,13 @@
970970
margin-top: 0;
971971
}
972972

973-
/* Fix wrapping issues inside sidebarblocks */
974-
.doc .sidebarblock code {
973+
/* Fix wrapping issues inside sidebarblocks - only for inline code, not code blocks */
974+
.doc .sidebarblock code:not(.hljs) {
975975
white-space: normal;
976976
word-break: break-word;
977977
overflow-wrap: break-word;
978978
}
979979

980-
.doc .sidebarblock .listingblock pre {
981-
white-space: pre-wrap;
982-
word-break: break-word;
983-
overflow-wrap: break-word;
984-
}
985-
986980
.doc .sidebarblock .listingblock {
987981
width: 100%;
988982
max-width: 100%;

0 commit comments

Comments
 (0)