Skip to content

Commit c4413c0

Browse files
author
白唯
committed
style(scrollbar): 更改 scrollbar 的样式
1 parent 8f32cdb commit c4413c0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/styles/normalize.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,3 +349,29 @@ template {
349349
[hidden] {
350350
display: none;
351351
}
352+
353+
::-webkit-scrollbar {
354+
width: 6px;
355+
height: 6px;
356+
}
357+
358+
::-webkit-scrollbar-track {
359+
width: 6px;
360+
background: rgba(16, 31, 28, 0.1);
361+
-webkit-border-radius: 2em;
362+
-moz-border-radius: 2em;
363+
border-radius: 2em;
364+
}
365+
366+
::-webkit-scrollbar-thumb {
367+
background-color: rgba(16, 31, 28, 0.5);
368+
background-clip: padding-box;
369+
min-height: 28px;
370+
-webkit-border-radius: 2em;
371+
-moz-border-radius: 2em;
372+
border-radius: 2em;
373+
}
374+
375+
::-webkit-scrollbar-thumb:hover {
376+
background-color: rgba(16, 31, 28, 1);
377+
}

0 commit comments

Comments
 (0)