v1.9.3
This commit is contained in:
parent
e0ae5732b1
commit
aad31fb284
|
|
@ -22,7 +22,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.9.0",
|
||||
"vuepress-theme-vdoing": "^1.9.3",
|
||||
"yamljs": "^0.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -184,4 +184,24 @@ export default {
|
|||
.have-rightmenu
|
||||
.sidebar .sidebar-sub-headers
|
||||
display none
|
||||
// 左侧边栏只有一项且没有右侧边栏时
|
||||
.theme-container.only-sidebarItem:not(.have-rightmenu)
|
||||
.sidebar, .sidebar-button
|
||||
display none
|
||||
@media (min-width ($MQMobile + 1px))
|
||||
.page
|
||||
padding-left 0.8rem !important
|
||||
@media (max-width $MQMobile)
|
||||
.page
|
||||
padding-left 0rem !important
|
||||
.sidebar, .sidebar-button
|
||||
display block
|
||||
// 左侧边栏只有一项且有右侧边栏时
|
||||
.theme-container.only-sidebarItem.have-rightmenu
|
||||
@media (min-width 720px) and (max-width 1279px)
|
||||
.sidebar, .sidebar-button
|
||||
display block
|
||||
@media (min-width 1280px)
|
||||
.sidebar, .sidebar-button
|
||||
display none
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -200,7 +200,8 @@ export default {
|
|||
'sidebar-open': this.isSidebarOpen,
|
||||
'no-sidebar': !this.shouldShowSidebar,
|
||||
'have-rightmenu': this.showRightMenu,
|
||||
'have-body-img': this.$themeConfig.bodyBgImg
|
||||
'have-body-img': this.$themeConfig.bodyBgImg,
|
||||
'only-sidebarItem': this.sidebarItems.length === 1 && this.sidebarItems[0].type === 'page', // 左侧边栏只有一项时
|
||||
},
|
||||
// 'theme-mode-' + this.themeMode,
|
||||
userPageClass
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "vuepress-theme-vdoing",
|
||||
"version": "1.9.0",
|
||||
"version": "1.9.3",
|
||||
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
|
||||
"author": {
|
||||
"name": "gaoyi(Evan) Xu"
|
||||
|
|
|
|||
Loading…
Reference in New Issue