2022-04-27 15:41:36 +00:00
|
|
|
/* The dark stylesheet is the only place we set custom colors besides
|
|
|
|
* border colors for inline text. Make sure the perceptual contrast
|
|
|
|
* stays within the ideal APCA ranges, not lower and preferably not
|
|
|
|
* higher either. */
|
2020-11-03 23:46:20 +00:00
|
|
|
@media (prefers-color-scheme: dark) {
|
2020-12-13 05:05:25 +00:00
|
|
|
html {
|
2022-04-27 15:41:36 +00:00
|
|
|
/* Pure white on black causes halation.
|
|
|
|
* "background" is short for a bunch of unnecessary CSS rules
|
2022-05-23 15:54:06 +00:00
|
|
|
* background-color is all I need.
|
|
|
|
* This is the brightest background that still achieves an APCA
|
|
|
|
* contrast of 90 Lc.*/
|
|
|
|
background-color: #1a1919;
|
2022-04-27 15:41:36 +00:00
|
|
|
/* Dimming the default text color is not the same as reducing screen
|
|
|
|
* brightness, since other colors in this stylesheet have brighter
|
|
|
|
* red and blue channels than the default text. */
|
2022-05-23 15:54:06 +00:00
|
|
|
color: #e6e6e6;
|
2022-04-23 22:35:08 +00:00
|
|
|
}
|
|
|
|
|
2022-04-14 01:19:49 +00:00
|
|
|
/* Only color <a> if it's a link; if href is empty, let it be. */
|
|
|
|
a:link {
|
2022-05-23 15:54:06 +00:00
|
|
|
color: #eee7b2;
|
2020-11-23 23:47:27 +00:00
|
|
|
}
|
2020-11-03 23:46:20 +00:00
|
|
|
|
2022-05-19 20:21:10 +00:00
|
|
|
a:active {
|
|
|
|
color: #b93;
|
|
|
|
}
|
|
|
|
|
2020-12-16 07:18:18 +00:00
|
|
|
a:visited {
|
2022-05-23 15:54:06 +00:00
|
|
|
color: #ffdaff;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-contrast: less) {
|
|
|
|
html {
|
|
|
|
background-color: #333;
|
|
|
|
}
|
2020-11-23 23:47:27 +00:00
|
|
|
}
|
2022-03-31 00:44:39 +00:00
|
|
|
|
2022-05-23 15:42:24 +00:00
|
|
|
/* Small text needs higher contrast. */
|
|
|
|
@media not (prefers-contrast: less) {
|
|
|
|
sup a:link {
|
|
|
|
color: #feb;
|
|
|
|
}
|
|
|
|
|
|
|
|
sup a:visited {
|
|
|
|
color: #ffe5ff;
|
|
|
|
}
|
2022-05-02 00:04:20 +00:00
|
|
|
}
|
|
|
|
|
2022-05-23 15:54:06 +00:00
|
|
|
@media (prefers-contrast: more) {
|
2022-03-31 00:44:39 +00:00
|
|
|
html {
|
2022-05-23 15:54:06 +00:00
|
|
|
background-color: #111;
|
|
|
|
color: #eee;
|
2022-03-31 00:44:39 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-23 15:54:06 +00:00
|
|
|
|
2020-11-03 23:46:20 +00:00
|
|
|
}
|