fix code pre theme

remote old styles
This commit is contained in:
DefectingCat
2023-11-10 11:01:15 +08:00
parent 072498779b
commit 6348390a68
4 changed files with 34 additions and 968 deletions

View File

@ -179,6 +179,38 @@ h6:hover::before {
border-radius: 6px;
}
#article pre,
code {
font-family:
var(--font-jetbrains-mono),
-apple-system,
'DejaVu Sans Mono',
monospace;
}
#article pre {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
border-radius: 0.3em;
@apply bg-white dark:bg-rua-gray-800;
/* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
monospace; */
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
line-height: 1.5;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
#article pre > code {
padding: 0;
margin: 0;