nuxt-link home url exact match, others not

This commit is contained in:
ManjaroOne666 2019-02-02 12:21:52 +00:00
parent 79426f90e9
commit 34f15db58f
1 changed files with 3 additions and 2 deletions

View File

@ -27,6 +27,7 @@
</div>
<nuxt-link class="site-nav__link"
:to="item.to"
:exact="item.to === '/'"
>
{{ item.text }}
</nuxt-link>
@ -344,7 +345,7 @@ $transition-timing: .5s;
opacity: .5;
}
&.nuxt-link-exact-active {
&.nuxt-link-active {
pointer-events: none;
color: $color__neutral-900;
opacity: 1;
@ -374,7 +375,7 @@ $transition-timing: .5s;
opacity: 0;
}
&.nuxt-link-exact-active::before {
&.nuxt-link-active::before {
transition: opacity 1s .5s;
opacity: .8;
}