Skip to content

Commit 9f51105

Browse files
committed
fix: update CSS rule (merging the ducplicated ones)
1 parent 59ef7e7 commit 9f51105

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -914,23 +914,22 @@ pre {
914914
border: initial;
915915
}
916916

917-
// Maps the pandoc 'monobackgroundcolor' to bootstrap
917+
/ Maps the pandoc 'monobackgroundcolor' to bootstrap
918918
// Note this only targets code outside of sourceCode blocks
919-
@if variable-exists(mono-background-color) {
920-
p code:not(.sourceCode),
921-
li code:not(.sourceCode),
922-
kbd,
923-
pre:not(.sourceCode),
924-
samp {
925-
background-color: $mono-background-color;
926-
padding: 0.2em;
927-
}
928-
}
929919

930920
// Default padding if background is set
921+
h1 code:not(.sourceCode),
922+
h2 code:not(.sourceCode),
923+
h3 code:not(.sourceCode),
924+
h4 code:not(.sourceCode),
925+
h5 code:not(.sourceCode),
926+
h6 code:not(.sourceCode),
931927
p code:not(.sourceCode),
932928
li code:not(.sourceCode),
933-
td code:not(.sourceCode) {
929+
td code:not(.sourceCode),
930+
kbd,
931+
pre:not(.sourceCode),
932+
samp {
934933
@if variable-exists(mono-background-color) {
935934
background-color: $mono-background-color;
936935
} @else if variable-exists(code-bg) {

0 commit comments

Comments
 (0)