website/_src/assets/css/default/motion.css

91 lines
1.7 KiB
CSS
Raw Normal View History

2025-10-14 19:40:29 +03:00
@media (prefers-reduced-motion: no-preference) {
/* Scrolling pride flag text */
#bio span[id],
2025-10-14 19:40:29 +03:00
footer span {
font-family: "Nosey Rodent", sans-serif;
font-weight: bold;
color: transparent;
background-clip: text;
filter: var(--outlined);
background-repeat: repeat;
background-size: 200% 100%;
background-position: 0% 50%;
animation: slide 5s linear infinite;
transition: color var(--trans);
}
}
@media (prefers-reduced-motion: reduce) {
/* Buttons */
:is(a, button),
span:has(a) {
transition: none;
2025-10-14 19:40:29 +03:00
}
/* Permalinks */
.header-anchor,
main article pre {
transition: none;
2025-10-14 19:40:29 +03:00
}
/* Images */
#gallery a:has(figure),
#blog main article figure,
2025-10-14 19:40:29 +03:00
a img {
transition: none;
2025-10-14 19:40:29 +03:00
}
.emoji:has(img[alt*="🐇"]) {
& img {
opacity: 0;
}
&::after {
position: absolute;
content: "🐇";
}
}
/* Scrolling pride flag text */
#bio span[id] {
transition: none;
animation: none;
2025-10-14 19:40:29 +03:00
color: inherit;
background-clip: initial;
background: initial;
2025-10-14 19:40:29 +03:00
&::before {
content: "";
display: inline-flex;
width: 2rem;
height: 1.25rem;
margin: 0 2px;
background-repeat: repeat-x;
border-radius: 2px;
top: 4px;
position: relative;
}
}
footer span {
width: 100%;
}
2025-10-14 19:40:29 +03:00
#aromantic::before {
background-image: url("/assets/img/flag/aromantic.svg");
}
#agender::before {
background-image: url("/assets/img/flag/agender.svg");
}
#pansexual::before {
background-image: url("/assets/img/flag/pansexual.svg");
}
/* Jumping critters */
#pkmn span:hover {
animation: none;
2025-10-14 19:40:29 +03:00
transform: translateY(-4px);
}
#art div {
transform: none;
}
main article > .postscript {
& p,
p > img {
transition: none;
}
}
#blog #posts a {
transition: none;
}
2025-10-14 19:40:29 +03:00
}