Fix next-section-link hover bug

This commit is contained in:
Maciej Matuszewski 2018-01-15 00:13:22 +01:00
parent 5a65e3c3bc
commit 6ec496bef3
2 changed files with 12 additions and 8 deletions

View File

@ -1,7 +1,8 @@
<a
href="{{ nextSection.link }}"
data-title="{{ nextSection.text }}"
class="next-section-link {{class}}"
>
{{ nextSection.text }}
<div class="next-section-link__wrapper" data-title="{{ nextSection.text }}">
{{ nextSection.text }}
</div>
</a>

View File

@ -1,16 +1,19 @@
.next-section-link {
@include hoverDistortion();
z-index: 1;
display: block;
font-family: $base-font-family;
font-size: 13px;
font-weight: 500;
text-transform: uppercase;
@media #{$screen-md} {
&:hover {
@include hoverDistortionActive();
&__wrapper {
@include hoverDistortion();
z-index: 1;
@media #{$screen-md} {
&:hover {
@include hoverDistortionActive();
}
}
}
}