This commit is contained in:
xugaoyi 2022-01-04 18:22:00 +08:00
parent e0ae5732b1
commit aad31fb284
4 changed files with 24 additions and 3 deletions

View File

@ -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": {

View File

@ -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>

View File

@ -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

View File

@ -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"