fix(theme): improve code block scrollbar, close #427 (#435)

This commit is contained in:
pengzhanbo 2025-01-21 11:58:25 +08:00 committed by GitHub
parent 000299666d
commit 0ce2754a34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,8 @@ function onTabNavClick(index: number): void {
border-radius: 6px 6px 0 0;
box-shadow: inset 0 -1px var(--vp-code-tab-divider);
transition: background-color var(--vp-t-color), box-shadow var(--vp-t-color);
scrollbar-width: thin;
}
@media print {

View File

@ -13,6 +13,8 @@ html:not([data-theme="dark"]) .vp-code span {
overflow-x: auto;
background-color: var(--vp-code-block-bg);
transition: background-color var(--vp-t-color);
scrollbar-width: thin;
}
@media (min-width: 640px) {