mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-30 15:22:09 +00:00
2abdb82cb3
The newish APCA contrast algorithm correctly reveals that blue-on-black and purple-on-black links have lower perceptual contrast than yellow-on-black links. A Fediverse survey with 19 participants revealed that others tend to prefer the older look over this one, but the number in favor was much larger than I thought; it was a 3:2 split. I decided that on my poor laptop screen facing sunlight with simulated color vision deficiencies, the yellow links are indeed easier to read so I went with them.
33 lines
506 B
CSS
33 lines
506 B
CSS
@media (prefers-color-scheme: dark) {
|
|
html {
|
|
background: #000;
|
|
color: #fff;
|
|
}
|
|
|
|
/* IndieWeb u-photo shouldn't look like floating punctuation marks */
|
|
.u-photo {
|
|
/* Versions of Samsung Internet released recently as 2017 need this
|
|
* prefix, along with Qt4-based QtWebkit used in e.g. rekonq */
|
|
-webkit-filter: invert(1);
|
|
filter: invert(1);
|
|
}
|
|
|
|
a {
|
|
color: #ed5;
|
|
}
|
|
|
|
a:visited {
|
|
color: #ddc;
|
|
}
|
|
|
|
a:active {
|
|
color: #c80;
|
|
}
|
|
|
|
blockquote,
|
|
p code,
|
|
hr,
|
|
pre {
|
|
border-color: #333;
|
|
}
|
|
}
|