Fix code pre coloring

This commit is contained in:
Avijit 🚀
2021-08-02 13:17:52 +02:00
parent 531dbcbd78
commit 274a6b4ec4
2 changed files with 11 additions and 1 deletions

View File

@@ -54,6 +54,10 @@ table th {
border-bottom-color: var(--dark-header-divider-color); border-bottom-color: var(--dark-header-divider-color);
} }
:not(pre) > code {
color: var(--dark-text-color);
}
/* TODO: Check if this is needed or not */ /* TODO: Check if this is needed or not */
/* /*
img, img,

View File

@@ -212,7 +212,7 @@ img {
/* CODE BLOCKS */ /* CODE BLOCKS */
code, code,
pre { pre {
background-color: #1f1f1f !important; background-color: #272822 !important;
box-sizing: border-box; box-sizing: border-box;
color: white; color: white;
} }
@@ -230,6 +230,12 @@ code {
font-size: 0.8em; font-size: 0.8em;
} }
:not(pre) > code {
background-color: #e0e0e0 !important;
color: var(--light-text-color);
padding: 1px 4px;
}
pre code { pre code {
font-size: 1em; font-size: 1em;
} }