2022-04-27 08:41:36 -07: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 15:46:20 -08:00
|
|
|
@media (prefers-color-scheme: dark) {
|
2020-12-12 21:05:25 -08:00
|
|
|
html {
|
2022-04-27 08:41:36 -07:00
|
|
|
/* Pure white on black causes halation.
|
|
|
|
* "background" is short for a bunch of unnecessary CSS rules
|
2022-04-14 22:15:54 -07:00
|
|
|
* background-color is all I need */
|
2022-04-26 17:29:05 -07:00
|
|
|
background-color: #111;
|
2022-04-27 08:41:36 -07: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. */
|
|
|
|
color: #e9e9e9;
|
2022-04-23 15:35:08 -07:00
|
|
|
}
|
|
|
|
|
2022-05-06 22:28:06 -07:00
|
|
|
/* Small text needs higher contrast */
|
|
|
|
sup {
|
|
|
|
background-color: #0b0b0b;
|
|
|
|
}
|
|
|
|
|
2022-04-13 18:19:49 -07:00
|
|
|
/* Only color <a> if it's a link; if href is empty, let it be. */
|
|
|
|
a:link {
|
2022-04-27 08:52:14 -07:00
|
|
|
color: #f1e7b2;
|
2020-11-23 15:47:27 -08:00
|
|
|
}
|
2020-11-03 15:46:20 -08:00
|
|
|
|
2020-12-15 23:18:18 -08:00
|
|
|
a:visited {
|
2022-04-27 08:41:36 -07:00
|
|
|
color: #fdf;
|
2020-11-23 15:47:27 -08:00
|
|
|
}
|
2022-03-30 17:44:39 -07:00
|
|
|
|
2022-05-01 17:04:20 -07:00
|
|
|
a:active {
|
|
|
|
color: #b93;
|
|
|
|
}
|
|
|
|
|
2022-03-30 17:44:39 -07:00
|
|
|
/* stylelint-disable -- hasn't heard of "prefers-contrast" yet */
|
|
|
|
@media (prefers-contrast: less) {
|
|
|
|
/* stylelint-enable */
|
|
|
|
html {
|
|
|
|
background-color: #222;
|
|
|
|
}
|
|
|
|
}
|
2020-11-03 15:46:20 -08:00
|
|
|
}
|