Skip to content

Commit

Permalink
style: πŸ’„ modify nav menu style
Browse files Browse the repository at this point in the history
  • Loading branch information
huyikai committed Dec 8, 2023
1 parent 39ca44b commit eebc36b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions example/.vitepress/theme/components/VPMenuGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ defineProps<{
</p>

<template v-for="item in items">
<div class="VPMenuGroupContainer">
<div
class="VPMenuGroupContainer"
:class="{
hasVPMenuGroupItem: 'link' in item,
hasVPMenuLink: !('link' in item)
}"
>
<VPMenuLink
v-if="'link' in item"
:item="item"
Expand All @@ -44,7 +50,8 @@ defineProps<{
border-left: 1px solid var(--vp-c-divider);
margin-left: 5px;
}
.VPMenuGroupContainer+.VPMenuGroupContainer{
.hasVPMenuGroupItem + .hasVPMenuLink,
.hasVPMenuLink + .hasVPMenuGroupItem {
padding-top: 5px;
}
Expand Down

0 comments on commit eebc36b

Please sign in to comment.