fix(client): Insufficient color contrast on highlighted code block (#42415)
Co-authored-by: PrashantSakre <prashantsakre@Prashants-mac-mini.local>
This commit is contained in:
@ -51,6 +51,13 @@ padding in night mode */
|
|||||||
background: var(--primary-background);
|
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 */
|
/* Inline code */
|
||||||
.night :not(pre) > code[class*='language-'] {
|
.night :not(pre) > code[class*='language-'] {
|
||||||
padding: 0.1em;
|
padding: 0.1em;
|
||||||
|
@ -7,6 +7,13 @@ pre[class*='language-'] {
|
|||||||
background: var(--primary-background);
|
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;
|
text-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user