1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00
seirdy.one/assets/css/dark.css

47 lines
747 B
CSS
Raw Normal View History

@media (prefers-color-scheme: dark) {
/* I've been told that pure white on black is a bit harsh */
html {
color: #e9e9e9;
}
html {
/* "background" is short for a bunch of unnecessary CSS rules
* background-color is all I need */
background-color: #111;
}
/* Only color <a> if it's a link; if href is empty, let it be. */
a:link {
color: #f1e6af;
}
a:active {
color: #b93;
}
a:visited {
color: #ffd6ff;
}
sup a:link {
color: #f3f0cb;
}
sup a:visited {
color: #ffdfff;
}
:not(pre) > code,
:not(pre) > samp {
border-color: #555;
}
/* stylelint-disable -- hasn't heard of "prefers-contrast" yet */
@media (prefers-contrast: less) {
/* stylelint-enable */
html {
background-color: #222;
}
}
}