Allow hover only on larger devices

This commit is contained in:
Maciej Matuszewski 2018-01-13 23:53:09 +01:00
parent 615ee3d864
commit 7c7ce3bdab

View File

@ -79,14 +79,12 @@
color: $color-blue;
}
&__link:hover::before,
&__link.active::before {
$transform-val: calc(-50% - #{$anim-size});
transform: translate($transform-val, $transform-val);
}
&__link:hover::after,
&__link.active::after {
$transform-val: calc(-50% + #{$anim-size});
@ -136,5 +134,17 @@
position: static;
flex-direction: row;
}
&__link:hover::before {
$transform-val: calc(-50% - #{$anim-size});
transform: translate($transform-val, $transform-val);
}
&__link:hover::after {
$transform-val: calc(-50% + #{$anim-size});
transform: translate($transform-val, $transform-val);
}
}
}