pull/4278/head
Divyansh Singh 1 month ago
parent ef703cf9c7
commit b96712c074

@ -14,12 +14,19 @@ const { page } = useData()
<template>
<div class="VPMenuLink">
<VPLink
:class="{ active: isActive(page.relativePath, item.activeMatch || item.link, !!item.activeMatch) }"
:class="{
active: isActive(
page.relativePath,
item.activeMatch || item.link,
!!item.activeMatch
)
}"
:href="item.link"
:target="item.target"
:rel="item.rel"
:no-icon="item.noIcon"
>
{{ item.text }}
<span v-html="item.text"></span>
</VPLink>
</div>
</template>
@ -40,7 +47,9 @@ const { page } = useData()
font-weight: 500;
color: var(--vp-c-text-1);
white-space: nowrap;
transition: background-color 0.25s, color 0.25s;
transition:
background-color 0.25s,
color 0.25s;
}
.link:hover {

@ -22,9 +22,9 @@ const { page } = useData()
)
}"
:href="item.link"
:noIcon="item.noIcon"
:target="item.target"
:rel="item.rel"
:no-icon="item.noIcon"
tabindex="0"
>
<span v-html="item.text"></span>

@ -16,9 +16,10 @@ const closeScreen = inject('close-screen') as () => void
:href="item.link"
:target="item.target"
:rel="item.rel"
:no-icon="item.noIcon"
@click="closeScreen"
>
{{ item.text }}
<span v-html="item.text"></span>
</VPLink>
</template>

@ -16,9 +16,11 @@ const closeScreen = inject('close-screen') as () => void
:href="item.link"
:target="item.target"
:rel="item.rel"
:no-icon="item.noIcon"
@click="closeScreen"
v-html="item.text"
/>
>
<span v-html="item.text"></span>
</VPLink>
</template>
<style scoped>
@ -30,7 +32,9 @@ const closeScreen = inject('close-screen') as () => void
font-size: 14px;
font-weight: 500;
color: var(--vp-c-text-1);
transition: border-color 0.25s, color 0.25s;
transition:
border-color 0.25s,
color 0.25s;
}
.VPNavScreenMenuLink:hover {

Loading…
Cancel
Save