Skip to content

Commit

Permalink
optim VPSidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Dec 3, 2024
1 parent e117f57 commit 5762062
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/.vitepress/theme/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,28 @@
.DocSearch-Container {
backdrop-filter: blur(10px);
}

.VPContent.has-sidebar .edit-info:not(:has(>.last-updated)) {
justify-content: flex-end;
text-align: right;
}

.VPSidebar::-webkit-scrollbar,
.VPSidebar::-webkit-scrollbar-track {
background-color: initial
}

.VPSidebar::-webkit-scrollbar-thumb:active,
.VPSidebar::-webkit-scrollbar-thumb:hover {
background-color: var(--vp-c-text-1) !important
}

.VPSidebar:active::-webkit-scrollbar-thumb,
.VPSidebar:focus-within::-webkit-scrollbar-thumb,
.VPSidebar:focus::-webkit-scrollbar-thumb,
.VPSidebar:hover::-webkit-scrollbar-thumb {
background-clip: content-box;
background-color: var(--vp-c-text-3);
border: 4px solid #0000;
border-radius: 10px
}

0 comments on commit 5762062

Please sign in to comment.