@@ -919,16 +919,6 @@ pre {
919919
920920// Maps the pandoc 'monobackgroundcolor' to bootstrap
921921// Note this only targets code outside of sourceCode blocks
922- @if variable-exists (mono-background-color ) {
923- p code :not (.sourceCode ),
924- li code :not (.sourceCode ),
925- kbd ,
926- pre :not (.sourceCode ),
927- samp {
928- background-color : $mono-background-color ;
929- padding : 0.2em ;
930- }
931- }
932922
933923p pre code :not (.sourceCode ),
934924li pre code :not (.sourceCode ),
@@ -937,21 +927,38 @@ pre code:not(.sourceCode) {
937927}
938928
939929// Default padding if background is set
930+ h1 code :not (.sourceCode ),
931+ h2 code :not (.sourceCode ),
932+ h3 code :not (.sourceCode ),
933+ h4 code :not (.sourceCode ),
934+ h5 code :not (.sourceCode ),
935+ h6 code :not (.sourceCode ),
940936p code :not (.sourceCode ),
941937li code :not (.sourceCode ),
942- td code :not (.sourceCode ) {
938+ td code :not (.sourceCode ),
939+ kbd ,
940+ pre :not (.sourceCode ),
941+ samp {
943942 @if variable-exists (mono-background-color ) {
944943 background-color : $mono-background-color ;
945944 } @else if variable-exists (code-bg ) {
946945 background-color : $code-bg ;
947946 }
948947
948+ @if variable-exists (mono-foreground-color ) {
949+ color : $mono-foreground-color ;
950+ } @else if variable-exists (code-color ) {
951+ color : $code-color ;
952+ }
953+
949954 @if variable-exists (code-padding ) {
950955 padding : $code-padding ;
951956 } @else if variable-exists (code-bg ) {
952957 padding : 0.2em ;
953958 } @else if variable-exists (mono-background-color ) {
954959 padding : 0.2em ;
960+ } @else if variable-exists (mono-foreground-color ) {
961+ padding : 0.2em ;
955962 }
956963}
957964
0 commit comments