Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 50689ea

Browse files
committedApr 14, 2018
address comments
1 parent dbb7a08 commit 50689ea

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
 

‎docs/default-theme-config/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848
}
4949
```
5050

51-
The item in `themeConfig.nav` could also be a dropdown menu:
51+
Those links can also be dropdown menus, add nested items via `items`:
5252

5353
```js
5454
module.exports = {

‎lib/default-theme/NavLinks.vue

+11-11
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
return (this.$site.themeConfig.nav || []).map(({ text, link, type, items }) => ({
4545
text,
4646
type,
47-
link: link ? ensureExt(link) : void 0,
47+
link: link ? ensureExt(link) : null,
4848
items: (items || []).map(({ text, link }) => ({ text, link: ensureExt(link) }))
4949
}))
5050
},
@@ -98,26 +98,26 @@ export default {
9898
li
9999
color inherit
100100
line-height 1.7rem
101-
padding: 0 1.5rem 0 1.25rem
101+
padding 0 1.5rem 0 1.25rem
102102
a
103103
position relative
104-
border-bottom: none
104+
border-bottom none
105105
font-weight 400
106+
&:hover
107+
margin-bottom 0
108+
color $accentColor
106109
&.router-link-active
107-
color: $accentColor
108-
&:after
109-
content: ""
110-
width: 0
111-
height: 0
110+
color $accentColor
111+
&::after
112+
content ""
113+
width 0
114+
height 0
112115
border-left 5px solid $accentColor
113116
border-top 4px solid transparent
114117
border-bottom 4px solid transparent
115118
position absolute
116119
top calc(50% - 3px)
117120
left -10px
118-
&:hover
119-
margin-bottom 0
120-
color $accentColor
121121
.github-link
122122
margin-left 1.5rem
123123

0 commit comments

Comments
 (0)
Please sign in to comment.