style: add styles to scroll bar (halo-dev/console#364)

pull/3445/head
LiuJiJiang 2021-10-23 23:15:32 +08:00 committed by GitHub
parent 4682d88c83
commit 81d0ccd668
1 changed files with 25 additions and 0 deletions

View File

@ -951,3 +951,28 @@ body {
transform: rotate(360deg);
}
}
/* scroll bar style */
*::-webkit-scrollbar-track-piece{
background-color: #f8f8f8;
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius: 2em;
}
*::-webkit-scrollbar{
width: 8px;
height: 8px;
}
*::-webkit-scrollbar-thumb{
background-color: #ddd;
background-clip: padding-box;
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius: 2em;
}
*::-webkit-scrollbar-thumb:hover{
background-color: #bbb;
}