fix(style): global cursor style for scrollbar thumb

This commit is contained in:
one 2025-05-28 23:55:12 +08:00 committed by 亢奋猫
parent 3ae7bbf304
commit cb75d01fd3

View File

@ -24,6 +24,7 @@ body[theme-mode='light'] {
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
cursor: pointer;
border-radius: 10px; border-radius: 10px;
background: var(--color-scrollbar-thumb); background: var(--color-scrollbar-thumb);
&:hover { &:hover {
@ -32,6 +33,7 @@ body[theme-mode='light'] {
} }
pre:not(.shiki)::-webkit-scrollbar-thumb { pre:not(.shiki)::-webkit-scrollbar-thumb {
cursor: pointer;
border-radius: 0; border-radius: 0;
background: rgba(0, 0, 0, 0.08); background: rgba(0, 0, 0, 0.08);
&:hover { &:hover {