File tree 1 file changed +14
-7
lines changed
src/librustdoc/html/static/css
1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -1687,7 +1687,12 @@ instead, we check that it's not a "finger" cursor.
1687
1687
padding-right : 3px ;
1688
1688
background-color : var (--target-background-color );
1689
1689
border-right : 3px solid var (--target-border-color );
1690
- animation : 0.65s cubic-bezier (0 , 0 , 0.1 , 1.0 ) 0.1s targetfadein;
1690
+ }
1691
+
1692
+ @media not (prefers-reduced-motion) {
1693
+ : target {
1694
+ animation : 0.65s cubic-bezier (0 , 0 , 0.1 , 1.0 ) 0.1s targetfadein;
1695
+ }
1691
1696
}
1692
1697
1693
1698
.code-header a .tooltip {
@@ -1712,12 +1717,14 @@ a.tooltip:hover::after {
1712
1717
content : "\00a0" ;
1713
1718
}
1714
1719
1715
- /* This animation is layered onto the mistake-proofing delay for dismissing
1716
- a hovered tooltip, to ensure it feels responsive even with the delay.
1717
- */
1718
- .fade-out {
1719
- opacity : 0 ;
1720
- transition : opacity 0.45s cubic-bezier (0 , 0 , 0.1 , 1.0 );
1720
+ @media not (prefers-reduced-motion) {
1721
+ /* This animation is layered onto the mistake-proofing delay for dismissing
1722
+ a hovered tooltip, to ensure it feels responsive even with the delay.
1723
+ */
1724
+ .fade-out {
1725
+ opacity : 0 ;
1726
+ transition : opacity 0.45s cubic-bezier (0 , 0 , 0.1 , 1.0 );
1727
+ }
1721
1728
}
1722
1729
1723
1730
.popover .tooltip .content {
You can’t perform that action at this time.
0 commit comments