mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +03:00
the contrast was decreased at https://github.com/deltachat/deltachat-core-rust/pull/4136 , there were also suggestions to fix it there, but it was probably just forgotten :) this pr increases the contrast between code background and code font again to the level it was before and also to what similar themes are doing.
29 lines
479 B
CSS
29 lines
479 B
CSS
|
|
:root {
|
|
--accent: hsl(0 0% 85%);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--accent: hsl(0 0% 25%);
|
|
}
|
|
}
|
|
|
|
/* the code snippet frame, defaults to white which tends to get badly readable in combination with explaining text around */
|
|
div.fragment {
|
|
background-color: var(--accent);
|
|
border: 0;
|
|
padding: 1em;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
code {
|
|
background-color: var(--accent);
|
|
padding-left: .5em;
|
|
padding-right: .5em;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: .5em;
|
|
} |