Skip to content

Commit 9fff5b7

Browse files
committed
Correct code background color
fixes #4746
1 parent 5d8246a commit 9fff5b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/resources/formats/html/bootstrap/_bootstrap-rules.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,14 +884,18 @@ pre {
884884
p code:not(.sourceCode),
885885
li code:not(.sourceCode),
886886
td code:not(.sourceCode) {
887-
@if variable-exists(code-bg) {
887+
@if variable-exists(mono-background-color) {
888+
background-color: $mono-background-color;
889+
} @else if variable-exists(code-bg) {
888890
background-color: $code-bg;
889891
}
890892

891893
@if variable-exists(code-padding) {
892894
padding: $code-padding;
893895
} @else if variable-exists(code-bg) {
894896
padding: 0.2em;
897+
} @else if variable-exists(mono-background-color) {
898+
padding: 0.2em;
895899
}
896900
}
897901

0 commit comments

Comments
 (0)