Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xugaoyi committed Jun 26, 2020
1 parent 0a21ed8 commit 1452e38
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"vuepress-plugin-one-click-copy": "^1.0.2",
"vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7",
"vuepress-theme-vdoing": "^1.3.1",
"vuepress-theme-vdoing": "^1.3.2",
"yamljs": "^0.3.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion theme-vdoing/components/ArchivesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default {
@extend $vdoing-wrapper
position relative
@media (min-width $contentWidth + 80)
margin-top 2rem!important
margin-top 1.5rem!important
ul,li
margin 0
padding 0
Expand Down
2 changes: 1 addition & 1 deletion theme-vdoing/components/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</template>
<style lang="stylus">
.main-wrapper
margin 2rem auto 0 auto
margin 1.5rem auto 0 auto
max-width $homePageWidth
padding 0 .9rem
box-sizing border-box
Expand Down
15 changes: 8 additions & 7 deletions theme-vdoing/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ export default {
.page
padding-bottom 2rem
display block
padding-top ($navbarHeight)
@media (min-width $contentWidth + 80)
padding-top ($navbarHeight + 2rem)
@media (max-width $MQMobile)
padding-top ($navbarHeight)
@media (min-width $MQMobile)
padding-top ($navbarHeight + 1.5rem)
>*
@extend $vdoing-wrapper
Expand All @@ -102,15 +103,15 @@ export default {
/**
* 右侧菜单的自适应
*/
@media (min-width: 720px) and (max-width: 1519px)
@media (min-width: 720px) and (max-width: 1279px)
.have-rightmenu
.page
padding-right 0!important
padding-right .8rem!important
@media (max-width: 1519px)
@media (max-width: 1279px)
.right-menu-wrapper
display none
@media (min-width: 1520px)
@media (min-width: 1280px)
.sidebar .sidebar-sub-headers
display none
Expand Down
2 changes: 1 addition & 1 deletion theme-vdoing/components/SidebarButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
display inline-block
position fixed
left 0
top $navbarHeight
top ($navbarHeight + 1rem)
text-align center
line-height 44px
margin 5px 8px
Expand Down
2 changes: 1 addition & 1 deletion theme-vdoing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuepress-theme-vdoing",
"version": "1.3.1",
"version": "1.3.2",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": {
"name": "gaoyi(Evan) Xu"
Expand Down
2 changes: 1 addition & 1 deletion theme-vdoing/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ body .search-box

.page
transition padding .2s ease
padding-left 0
padding-left .8rem

.navbar
position fixed
Expand Down
7 changes: 4 additions & 3 deletions theme-vdoing/styles/mobile.styl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $mobileSidebarWidth = $sidebarWidth * 0.9
.theme-container
&.sidebar-open
.page
padding-left $mobileSidebarWidth!important
padding-left ($mobileSidebarWidth + .8rem)!important

// wide mobile
@media (max-width: $MQMobile)
Expand Down Expand Up @@ -59,10 +59,11 @@ $mobileSidebarWidth = $sidebarWidth * 0.9
.sidebar-button
left $sidebarWidth
.page
padding-left $sidebarWidth
padding-left ($sidebarWidth + .8rem)
padding-right .8rem
&.have-rightmenu
.page
padding-right $rightMenuWidth
padding-right ($rightMenuWidth + .8rem)
&.no-sidebar
.page
padding-left 0!important
Expand Down

0 comments on commit 1452e38

Please sign in to comment.