Skip to content

Commit 3f8a4db

Browse files
authored
fix scrollbar in dark mode
1 parent 6ce969b commit 3f8a4db

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

assets/scss/common/_dark.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,20 @@ body.dark .copy-status:active::after {
331331
display: block;
332332
color: $link-color-dark;
333333
}
334+
335+
body.dark pre code::-webkit-scrollbar {
336+
height: 5px;
337+
}
338+
339+
body.dark pre code::-webkit-scrollbar-thumb {
340+
background: $gray-400;
341+
}
342+
343+
body.dark pre code:hover {
344+
scrollbar-width: thin;
345+
scrollbar-color: $gray-500 transparent;
346+
}
347+
348+
body.dark pre code::-webkit-scrollbar-thumb:hover {
349+
background: $gray-500;
350+
}

0 commit comments

Comments
 (0)