Skip to content

Commit 80fc070

Browse files
authored
Fix code syntax highlight style issue when without given language (#167)
1 parent 20b9de6 commit 80fc070

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

css/main.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,12 @@ table {
615615
pre {
616616
font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
617617
}
618+
pre:has(code:not([class])) {
619+
background: #2d2d2d;
620+
}
618621
pre code:not([class]) {
619-
padding: 1.5em;
622+
color: #ccc;
623+
padding: 0;
620624
overflow-x: scroll;
621625
}
622626
code,

0 commit comments

Comments
 (0)