Skip to content

Commit a4ea0ef

Browse files
author
ohplz
committed
feature: optmize scrollbar style
1 parent 7923b55 commit a4ea0ef

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

styles/global.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,25 @@ body {
3838
color: var(--fg-color);
3939
caret-color: var(--fg-color);
4040
}
41+
42+
::-webkit-scrollbar
43+
{
44+
width: 5px;
45+
height: 5px;
46+
background-color: #F5F5F5;
47+
background-color: var(--bg-color-1);
48+
}
49+
50+
::-webkit-scrollbar-thumb
51+
{
52+
border-radius: 10px;
53+
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
54+
background-color: #555;
55+
border-radius: 10px;
56+
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
57+
background-color: var(--fg-color-1);
58+
}
59+
60+
::-webkit-scrollbar-track {
61+
background-color: var(--bg-color);
62+
}

0 commit comments

Comments
 (0)