1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-01-14 08:02:58 -05:00

prevent fading into dark theme if we're immediately setting it on load

This commit is contained in:
2022-02-06 12:25:48 -05:00
parent 4e7f235ed5
commit ee1b708b99
16 changed files with 50 additions and 35 deletions

View File

@@ -1,17 +1,10 @@
body {
width: 100%;
height: 100%;
margin: 0 auto;
background-color: var(--background-inner);
/* light-dark theme switch fading */
transition: background 0.25s ease;
}
a {
text-decoration: none;
}
/* https://web.dev/prefers-reduced-motion/#(bonus)-forcing-reduced-motion-on-all-websites */
@media (prefers-reduced-motion: reduce) {
*,