mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-13 01:02:10 +00:00
eaa8023af8
- Use borders instead of <hr> - Distinguish <kbd> from <code> and body text with boldness - Improve dark contrast and make dark visited links look distinct from regular text - Improve focus indicators
34 lines
633 B
CSS
34 lines
633 B
CSS
@media (prefers-color-scheme: dark) {
|
|
html {
|
|
/* "background" is short for a bunch of unnecessary CSS rules
|
|
* background-color is all I need
|
|
* I've been told that pure white on black is a bit harsh */
|
|
background-color: #0e0e0e;
|
|
color: #eee;
|
|
}
|
|
|
|
/* Only color <a> if it's a link; if href is empty, let it be. */
|
|
a:link {
|
|
color: #fe8;
|
|
}
|
|
|
|
a:visited {
|
|
color: #edc;
|
|
}
|
|
|
|
a:active {
|
|
color: #c80;
|
|
}
|
|
|
|
:not(pre) > code {
|
|
border-color: #555;
|
|
}
|
|
|
|
/* stylelint-disable -- hasn't heard of "prefers-contrast" yet */
|
|
@media (prefers-contrast: less) {
|
|
/* stylelint-enable */
|
|
html {
|
|
background-color: #222;
|
|
}
|
|
}
|
|
}
|