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 3232 padding : 0 var (--space-2xs );
3333 color : var (--main-color );
3434 cursor : pointer;
35- opacity : 0 ;
36- transition : var (--transition-medium );
3735
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+ }
4246
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+ }
4651 }
4752
4853 svg {
You can’t perform that action at this time.
0 commit comments