fix(card): hover effect on non-touch only
This commit is contained in:
@@ -29,12 +29,15 @@ const Content = styled.div`
|
|||||||
const Container = styled.div`
|
const Container = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
&:hover ${Content} {
|
|
||||||
background-color: rgba(0, 0, 0, 0.65);
|
@media (hover: hover) and (pointer: fine) {
|
||||||
transform: translate3d(0, 0, 0);
|
&:hover ${Content} {
|
||||||
}
|
background-color: rgba(0, 0, 0, 0.65);
|
||||||
&:hover ${Media} {
|
transform: translate3d(0, 0, 0);
|
||||||
transform: scale(1.05);
|
}
|
||||||
|
&:hover ${Media} {
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user