Skip to content

Commit 361acb5

Browse files
committed
style: update code preview style.
1 parent faa99b7 commit 361acb5

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/styles/markdown.less

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -884,18 +884,7 @@ body[data-color-mode*='light'] {
884884
border: 0;
885885
}
886886

887-
.highlight {
888-
margin-bottom: 16px;
889-
pre {
890-
margin-bottom: 0;
891-
word-break: normal;
892-
}
893-
}
894-
895-
.highlight pre,
896887
pre {
897-
padding: 16px;
898-
overflow: auto;
899888
font-size: 85%;
900889
line-height: 1.45;
901890
background-color: var(--color-canvas-subtle);
@@ -914,6 +903,11 @@ body[data-color-mode*='light'] {
914903
background-color: transparent;
915904
border: 0;
916905
}
906+
pre > code {
907+
padding: 16px;
908+
overflow: auto;
909+
display: block;
910+
}
917911
}
918912

919913
.wmde-markdown {

0 commit comments

Comments
 (0)