mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 20:28:28 -04:00
35 lines
766 B
CSS
35 lines
766 B
CSS
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
color: var(--text);
|
|
background-color: var(--background-outer);
|
|
/* light-dark theme switch fading */
|
|
transition: background 0.25s ease;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* make SVG icons relative in size/position to surrounding text */
|
|
.icon {
|
|
display: inline-block;
|
|
height: 1.2em;
|
|
width: 1.2em;
|
|
vertical-align: -0.2em;
|
|
}
|
|
|
|
/* https://web.dev/prefers-reduced-motion/#(bonus)-forcing-reduced-motion-on-all-websites */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
::before,
|
|
::after {
|
|
animation-delay: -1ms !important;
|
|
animation-duration: 1ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0s !important;
|
|
transition-delay: 0s !important;
|
|
}
|
|
}
|