Skip to content

Commit

Permalink
优化导航栏菜单高度
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoxuu committed Jul 22, 2020
1 parent f9674dc commit c849356
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ search:
############################### Theme Information ###############################
info:
name: Volantis # This is theme's name.
version: '3.0-beta1' # This is theme's version.
version: '3.0-beta2' # This is theme's version.
docs: https://volantis.js.org/ # This is theme's URL.
repo: https://github.com/volantis-x/hexo-theme-volantis
cdn:
Expand Down
8 changes: 5 additions & 3 deletions source/css/_layout/navbar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ ul.list-v
font-size: $fontsize-meta
font-weight: bold
line-height: 36px
@media screen and (max-width: $device-laptop)
line-height: 40px
@media screen and (max-width: $device-tablet)
line-height: 44px
padding: 0 $gap + $border-line + 2px 0 $gap
text-overflow: ellipsis
margin: 0 4px
Expand All @@ -259,8 +263,6 @@ ul.list-v
border-bottom-color: alpha($color-theme, 80%)
&:hover
color: mix($color-theme, $color-text, 70)
border-left-color: $color-theme
border-bottom-color: $color-theme
background: bgcolor($color-theme)

&:active,&.active
Expand All @@ -276,7 +278,7 @@ ul.list-v
>i
margin-right: 4px

.l_header ul>li>a
.l_header ul.nav-list-h>li>a
color: mix($color-text, $color-card, 80)
&.current
border-left-color: alpha($color-theme, 80%)
Expand Down

0 comments on commit c849356

Please sign in to comment.