1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00

Re-do dark stylesheet to avoid overstim

Use the updated weights for APCA.
This commit is contained in:
Rohan Kumar 2022-04-26 17:29:05 -07:00
parent f8cc34f37b
commit 0548f7d66c
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 11 additions and 13 deletions

View file

@ -1,36 +1,34 @@
@media (prefers-color-scheme: dark) {
/* I've been told that pure white on black is a bit harsh */
html {
color: #eee;
color: #e9e9e9;
}
html {
/* "background" is short for a bunch of unnecessary CSS rules
* background-color is all I need */
background-color: #0f0f0b;
}
/* Small text needs better contrast */
sup a {
background-color: #000;
background-color: #111;
}
/* Only color <a> if it's a link; if href is empty, let it be. */
a:link {
color: #ffeaba;
color: #f1e6af;
}
a:active {
color: #c80;
color: #b93;
}
a:visited {
color: #f9dafa;
color: #ffd6ff;
}
sup a:link {
color: #f3f0cb;
}
/* Small text needs better contrast */
sup a:visited {
color: #fae4ff;
color: #ffdfff;
}
:not(pre) > code,

View file

@ -31,7 +31,7 @@ html {
* minimal adjustment.
* Only do this on screen, since printouts already improve legibility
* and cost paper + ink. */
font-size: 106%;
font-size: 105%;
max-width: 45em;
padding: 0 2%;