记录自定义滚动条样式
.custom-scrollbar {
&::-webkit-scrollbar {
width: 8px;
height: 10px;
&-thumb {
border-radius: 10px;
background-color: #b5b1b1;
box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
}
}
&--show-in {
&::-webkit-scrollbar {
display: none;
}
&:hover {
&::-webkit-scrollbar {
display: block;
}
}
}
}