mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
321f851431
It's mobile-friendly as-is. I made sure that tap-targets were even bigger and more spaced-apart, just to be safe. Hide unnecessary nav-links in print mode.
37 lines
992 B
CSS
37 lines
992 B
CSS
/* 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. */
|
|
@media (prefers-color-scheme: dark) {
|
|
html {
|
|
/* Pure white on black causes halation.
|
|
* "background" is short for a bunch of unnecessary CSS rules
|
|
* background-color is all I need */
|
|
background-color: #111;
|
|
/* 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;
|
|
}
|
|
|
|
/* Only color <a> if it's a link; if href is empty, let it be. */
|
|
a:link {
|
|
color: #f1e7b2;
|
|
}
|
|
|
|
a:visited {
|
|
color: #fdf;
|
|
}
|
|
|
|
a:active {
|
|
color: #b93;
|
|
}
|
|
|
|
/* stylelint-disable -- hasn't heard of "prefers-contrast" yet */
|
|
@media (prefers-contrast: less) {
|
|
/* stylelint-enable */
|
|
html {
|
|
background-color: #222;
|
|
}
|
|
}
|
|
}
|