File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 32
32
padding : 0 var (--space-2xs );
33
33
color : var (--main-color );
34
34
cursor : pointer;
35
- opacity : 0 ;
36
- transition : var (--transition-medium );
37
35
38
- .crate-row : hover & {
39
- opacity : .8 ;
40
- transition : var (--transition-instant );
41
- }
36
+ /* Hover selector for pointer only */
37
+ /* See: https://github.com/rust-lang/crates.io/issues/10772 */
38
+ @media (pointer : fine) {
39
+ opacity : 0 ;
40
+ transition : var (--transition-medium );
41
+
42
+ .crate-row : hover & {
43
+ opacity : .8 ;
44
+ transition : var (--transition-instant );
45
+ }
42
46
43
- .crate-row : hover & : hover , & : focus {
44
- opacity : 1 ;
45
- transition : var (--transition-instant );
47
+ .crate-row : hover & : hover , & : focus {
48
+ opacity : 1 ;
49
+ transition : var (--transition-instant );
50
+ }
46
51
}
47
52
48
53
svg {
You can’t perform that action at this time.
0 commit comments