mirror of
https://github.com/marktext/marktext.git
synced 2025-05-04 03:32:36 +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-"],
|
:not(pre) > code[class*="language-"],
|
||||||
pre,
|
pre:not(.CodeMirror-line),
|
||||||
pre[class*="language-"] {
|
pre[class*="language-"],
|
||||||
|
pre.ag-paragraph {
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:not(pre) > code[class*="language-"],
|
:not(pre) > code[class*="language-"],
|
||||||
pre,
|
pre:not(.CodeMirror-line),
|
||||||
pre[class*="language-"],
|
pre[class*="language-"],
|
||||||
pre.ag-paragraph {
|
pre.ag-paragraph {
|
||||||
background: var(--codeBlockBgColor) !important;
|
background: var(--codeBlockBgColor) !important;
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
|
|
||||||
:not(pre) > code[class*="language-"],
|
:not(pre) > code[class*="language-"],
|
||||||
pre,
|
pre:not(.CodeMirror-line),
|
||||||
pre[class*="language-"],
|
pre[class*="language-"],
|
||||||
pre.ag-paragraph {
|
pre.ag-paragraph {
|
||||||
background: var(--codeBlockBgColor) !important;
|
background: var(--codeBlockBgColor) !important;
|
||||||
|
@ -133,7 +133,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:not(pre) > code[class*="language-"],
|
:not(pre) > code[class*="language-"],
|
||||||
pre,
|
pre:not(.CodeMirror-line),
|
||||||
pre[class*="language-"],
|
pre[class*="language-"],
|
||||||
pre.ag-paragraph {
|
pre.ag-paragraph {
|
||||||
background: var(--codeBlockBgColor) !important;
|
background: var(--codeBlockBgColor) !important;
|
||||||
|
@ -56,7 +56,7 @@ pre.ag-paragraph {
|
|||||||
/* Inline Code */
|
/* Inline Code */
|
||||||
:not(pre) > code[class*="language-"],
|
:not(pre) > code[class*="language-"],
|
||||||
pre.ag-paragraph {
|
pre.ag-paragraph {
|
||||||
background: #282c34;
|
background: #3a3f4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Inline Code */
|
/* Inline Code */
|
||||||
|
Loading…
Reference in New Issue
Block a user