Skip to content

Commit 77b7d48

Browse files
committed
tweak: navbar styles
1 parent 65f16ab commit 77b7d48

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

lib/default-theme/DropdownLink.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export default {
132132
133133
@media (min-width: $MQMobile)
134134
.dropdown-wrapper
135+
height 1.8rem
135136
&:hover .nav-dropdown
136137
display block
137138
.nav-dropdown
@@ -143,7 +144,7 @@ export default {
143144
top 100%
144145
right 0
145146
background-color #fff
146-
padding 10px 0
147+
padding 0.6rem 0
147148
border 1px solid #ddd
148149
border-bottom-color #ccc
149150
text-align left

lib/default-theme/NavLinks.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default {
9090
.nav-links
9191
display inline-block
9292
a
93-
line-height 1.25rem
93+
line-height 1.4rem
9494
color inherit
9595
&:hover, &.router-link-active
9696
color $accentColor
@@ -99,7 +99,6 @@ export default {
9999
position relative
100100
display inline-block
101101
margin-left 1.5rem
102-
font-weight 500
103102
line-height 2rem
104103
.github-link
105104
margin-left 1.5rem
@@ -110,10 +109,11 @@ export default {
110109
margin-left 0
111110
112111
@media (min-width: $MQMobile)
113-
.nav-links
114-
a
115-
&:hover, &.router-link-active
116-
color $textColor
117-
margin-bottom -2px
118-
border-bottom 2px solid lighten($accentColor, 5%)
112+
.nav-links a
113+
&:hover, &.router-link-active
114+
color $textColor
115+
.nav-item > a
116+
&:hover, &.router-link-active
117+
margin-bottom -2px
118+
border-bottom 2px solid #42b983
119119
</style>

0 commit comments

Comments
 (0)