Remove colors from <pre> and <code> to prevent proper working of "dark mode"

This commit is contained in:
djmaze 2021-02-24 00:51:05 +01:00
parent 2982027dd2
commit a1f4daff3a
2 changed files with 3 additions and 17 deletions

View file

@ -14,15 +14,12 @@ pre {
font-weight: normal;
line-height: @baseLineHeight;
font-size: @baseFontSize - 2;
color: @grayDark;
border-radius: 3px;
}
// Inline code
code {
padding: 2px 4px;
color: #d14;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
@ -34,15 +31,12 @@ pre {
font-size: @baseFontSize - 1; // 14px to 13px
line-height: @baseLineHeight;
white-space: pre-wrap;
background-color: #f5f5f5;
border: 1px solid rgba(0,0,0,.15);
border-radius: 4px;
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
color: inherit;
background-color: transparent;
border: 0;
}
}