fix(client): Insufficient color contrast on highlighted code block (#42415)
Co-authored-by: PrashantSakre <prashantsakre@Prashants-mac-mini.local>pull/42426/head
parent
f0eaaadcc1
commit
205be3db81
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue