Skip to content

Commit

Permalink
chore: 优化pc端的样式展示
Browse files Browse the repository at this point in the history
  • Loading branch information
simply-none committed Mar 27, 2024
1 parent 86789a9 commit 9b3c048
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,37 @@ html:not(.dark) .vp-doc [class*='language-'] > button.copy.copied, .vp-doc [clas

html:not(.dark) .vp-doc [class*='language-'] > span.lang {
color: rgb(166 166 189 / 56%);
}
}

/* 修改页面宽度 */
@media (min-width: 960px) {
.VPSidebar {
padding-left: 32px !important;
width: var(--vp-sidebar-width) !important;
}
.VPSidebar::-webkit-scrollbar{
width: 0;
}
.VPSidebar:hover::-webkit-scrollbar{
width: 6px;
}
.VPSidebar::-webkit-scrollbar-thumb {
background-color: #eee;
}

.VPContent.has-sidebar {
padding-right: 0 !important;
padding-left: var(--vp-sidebar-width) !important;
}
.VPDoc.has-aside .content-container {
max-width: unset !important;
}
.VPNavBar.has-sidebar .content {
padding-right: 32px !important;
padding-left: var(--vp-sidebar-width) !important;
}
.VPNavBar.has-sidebar div.title {
padding-left: 32px !important;
width: var(--vp-sidebar-width) !important;
}
}

0 comments on commit 9b3c048

Please sign in to comment.