Skip to content

Commit 757e880

Browse files
Sun Haoranulivz
Sun Haoran
authored andcommitted
fix($theme-default): make dropdown-title's UI consistent with nav-link (#1890)
1 parent d34b0ba commit 757e880

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/@vuepress/theme-default/components/DropdownLink.vue

+9
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ export default {
109109
.dropdown-title
110110
display block
111111
font-size 0.9rem
112+
font-family inherit
113+
cursor inherit
114+
padding inherit
115+
line-height 1.4rem
112116
background transparent
113117
border none
114118
font-weight 500
@@ -163,6 +167,11 @@ export default {
163167
.dropdown-wrapper
164168
&.open .dropdown-title
165169
margin-bottom 0.5rem
170+
.dropdown-title
171+
font-weight 600
172+
font-size inherit
173+
&:hover
174+
color $accentColor
166175
.nav-dropdown
167176
transition height .1s ease-out
168177
overflow hidden

0 commit comments

Comments
 (0)