fix(theme): link style wrong in `VPSidebarLink`

pull/851/head
yizhi996 3 years ago
parent 8b4ce0d88b
commit 308de16ce3

@ -21,13 +21,13 @@ const closeSideBar = inject('close-sidebar') as () => void
<template> <template>
<VPLink <VPLink
:class="{ active: isActive(page.relativePath, item.link) }" :class="{ active: isActive(page.relativePath, item.link), offset: depth > 1 }"
:href="item.link" :href="item.link"
@click="closeSideBar" @click="closeSideBar"
> >
<span <span
class="link-text" class="link-text"
:class="{'link-text-light': depth > 1}"> :class="{ light: depth > 1 }">
{{ item.text }} {{ item.text }}
</span> </span>
@ -50,8 +50,8 @@ const closeSideBar = inject('close-sidebar') as () => void
transition: color 0.5s; transition: color 0.5s;
} }
.link>.link { .link.offset {
padding: 4px 0 4px 20px; padding-left: 16px;
} }
.link:hover { .link:hover {
@ -74,7 +74,7 @@ const closeSideBar = inject('close-sidebar') as () => void
font-weight: 500; font-weight: 500;
} }
.link-text-light { .link-text.light {
font-size: 13px; font-size: 13px;
font-weight: 400; font-weight: 400;
} }

Loading…
Cancel
Save