mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 03:00:19 +08:00
fix source-code background color (#987)
This commit is contained in:
parent
bfcad27178
commit
1ab1e853f4
@ -416,8 +416,9 @@ kbd {
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre,
|
||||
pre[class*="language-"] {
|
||||
pre:not(.CodeMirror-line),
|
||||
pre[class*="language-"],
|
||||
pre.ag-paragraph {
|
||||
overflow: visible;
|
||||
font-size: 90%;
|
||||
line-height: 1.6;
|
||||
|
@ -57,7 +57,7 @@
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre,
|
||||
pre:not(.CodeMirror-line),
|
||||
pre[class*="language-"],
|
||||
pre.ag-paragraph {
|
||||
background: var(--codeBlockBgColor) !important;
|
||||
|
@ -49,7 +49,7 @@
|
||||
/* ------------------------------------ */
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre,
|
||||
pre:not(.CodeMirror-line),
|
||||
pre[class*="language-"],
|
||||
pre.ag-paragraph {
|
||||
background: var(--codeBlockBgColor) !important;
|
||||
|
@ -133,7 +133,7 @@
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre,
|
||||
pre:not(.CodeMirror-line),
|
||||
pre[class*="language-"],
|
||||
pre.ag-paragraph {
|
||||
background: var(--codeBlockBgColor) !important;
|
||||
|
@ -56,7 +56,7 @@ pre.ag-paragraph {
|
||||
/* Inline Code */
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre.ag-paragraph {
|
||||
background: #282c34;
|
||||
background: #3a3f4b;
|
||||
}
|
||||
|
||||
/* Inline Code */
|
||||
|
Loading…
Reference in New Issue
Block a user