Skip to content

Commit 9bc68bd

Browse files
authored
Fix code blocks "indent" without highlight.js
The `.hljs` class added by highlight.js adds a `display: block` rule which makes `padding` apply correctly (left padding on all lines, not just the first one). Make sure that rule is applied even if highlight.js isn't run.
1 parent 56c225b commit 9bc68bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/theme/css/chrome.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ pre > .buttons button {
260260
}
261261
}
262262
pre > code {
263+
display: block;
263264
padding: 1rem;
264265
}
265266

0 commit comments

Comments
 (0)