Skip to content

Commit

Permalink
feat: 滚动条样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Apr 27, 2023
1 parent 7e47fff commit ff323c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,32 +80,32 @@ a {
}

::-webkit-scrollbar {
width: 6px;
width: 8px;
}

::-webkit-scrollbar:horizontal {
height: 6px;
height: 8px;
}

::-webkit-scrollbar-track {
border-radius: 10px;
}

::-webkit-scrollbar-thumb {
background-color: #0003;
background-color: rgb(213, 215, 218);
border-radius: 10px;
transition: all 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
cursor: pointer;
background-color: #0000004d;
background-color: rgb(193, 195, 199);
}

.dark ::-webkit-scrollbar-thumb {
background-color: #fff3;
background-color: rgb(56, 56, 59);
}

.dark ::-webkit-scrollbar-thumb:hover {
background-color: #fff6;
background-color: rgb(86, 88, 91);
}

0 comments on commit ff323c6

Please sign in to comment.