mirror of
https://github.com/status-im/artproject.git
synced 2025-02-23 05:08:24 +00:00
Allow hover only on larger devices
This commit is contained in:
parent
615ee3d864
commit
7c7ce3bdab
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user