修复bug

This commit is contained in:
xugaoyi 2020-03-25 12:26:57 +08:00
parent 651f555dfa
commit b508557307
3 changed files with 25 additions and 15 deletions

View File

@ -25,3 +25,4 @@ $badgeTipColor = #11A8CD
//
$sidebarWidth = 18rem
$contentWidth = 850px
$rightMenuWidth = 280px

View File

@ -59,32 +59,40 @@ export default {
display block
.theme-vdoing-wrapper
// max-width ($contentWidth + 300px)
max-width $contentWidth
margin 0 auto
padding 2rem 2.5rem
position relative
transition all .5s
@media (max-width: $MQNarrow)
padding 2rem
@media (max-width: $MQMobileNarrow)
padding 1.5rem
.theme-default-content
padding 0
padding 0!important
&>.theme-default-content
margin 0
//
@media (min-width: 1680px) //
.theme-vdoing-wrapper,.page-edit,.page-nav,#vuepress-plugin-comment,.article:not(.article-home)
transition: all .2s!important
.have-rightmenu //
.theme-vdoing-wrapper,.page-edit,.page-nav,#vuepress-plugin-comment,.article:not(.article-home)
transform translateX(-($rightMenuWidth / 2.5))
@media (min-width: 1490px) and (max-width: 1680px)
.have-rightmenu.sidebar-open
.theme-vdoing-wrapper,.page-edit,.page-nav,#vuepress-plugin-comment
margin 0 0 0 2rem
.article:not(.article-home)
margin 0 0 0 4rem
@media (max-width: 1489px)
.have-rightmenu
.page
transition: all 0s!important
&.sidebar-open
.theme-vdoing-wrapper,.page-edit,.page-nav,#vuepress-plugin-comment
margin 0 0 0 2rem
.article:not(.article-home)
margin 0 0 0 4rem
@media (max-width: 1489px) // 1490
.right-menu-wrapper
display none
@media (min-width: 1490px)
@media (min-width: 1490px) // 1490
.sidebar .sidebar-sub-headers
display none
</style>

View File

@ -45,12 +45,12 @@ export default {
<style lang='stylus' scoped>
.right-menu-wrapper
width 250px
width $rightMenuWidth
height 0
margin 0 0 0 ($contentWidth + 20px)
position sticky
top 0
font-size 0.93rem
font-size .9rem
.right-menu-padding
padding-top ($navbarHeight + 3rem)
.right-menu-content
@ -77,9 +77,10 @@ export default {
color $textColor
opacity 0.75
display block
overflow hidden
white-space nowrap
text-overflow ellipsis
width ($rightMenuWidth - 30px)
// overflow hidden
// white-space nowrap
// text-overflow ellipsis
&:hover
color $accentColor
</style>