fix(client): Insufficient color contrast on highlighted code block (#42415)

Co-authored-by: PrashantSakre <prashantsakre@Prashants-mac-mini.local>
pull/42426/head
Prashant 2021-06-10 10:56:35 +05:30 committed by GitHub
parent f0eaaadcc1
commit 205be3db81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -51,6 +51,13 @@ padding in night mode */
background: var(--primary-background);
}
.night pre[class*='language-']::selection,
.night pre[class*='language-'] ::selection,
.night code[class*='language-']::selection,
.night code[class*='language-'] ::selection {
background: var(--selection-color);
}
/* Inline code */
.night :not(pre) > code[class*='language-'] {
padding: 0.1em;

View File

@ -7,6 +7,13 @@ pre[class*='language-'] {
background: var(--primary-background);
}
.default pre[class*='language-']::selection,
.default pre[class*='language-'] ::selection,
.default code[class*='language-']::selection,
.default code[class*='language-'] ::selection {
background: var(--selection-color);
}
* {
text-shadow: none !important;
}