Skip to content

Commit 5b58481

Browse files
author
zopsicle
committed
rustdoc: consolidate prefers-reduced-motion-gated rulesets
1 parent cdd3371 commit 5b58481

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/librustdoc/html/static/css/rustdoc.css

+4-6
Original file line numberDiff line numberDiff line change
@@ -1689,12 +1689,6 @@ instead, we check that it's not a "finger" cursor.
16891689
border-right: 3px solid var(--target-border-color);
16901690
}
16911691

1692-
@media not (prefers-reduced-motion) {
1693-
:target {
1694-
animation: 0.65s cubic-bezier(0, 0, 0.1, 1.0) 0.1s targetfadein;
1695-
}
1696-
}
1697-
16981692
.code-header a.tooltip {
16991693
color: inherit;
17001694
margin-right: 15px;
@@ -1718,6 +1712,10 @@ a.tooltip:hover::after {
17181712
}
17191713

17201714
@media not (prefers-reduced-motion) {
1715+
:target {
1716+
animation: 0.65s cubic-bezier(0, 0, 0.1, 1.0) 0.1s targetfadein;
1717+
}
1718+
17211719
/* This animation is layered onto the mistake-proofing delay for dismissing
17221720
a hovered tooltip, to ensure it feels responsive even with the delay.
17231721
*/

0 commit comments

Comments
 (0)