element-plus/docs/.vitepress/vitepress/styles/scrollbar.scss

30 lines
494 B
SCSS
Raw Normal View History

2022-04-04 15:29:19 +08:00
@use './vars' as *;
// scrollbar
* {
scrollbar-color: var(--el-scrollbar-bg-color) var(--el-fill-color-light);
}
::-webkit-scrollbar {
2022-04-04 15:29:19 +08:00
width: $scrollbar-size;
}
2022-04-04 15:29:19 +08:00
::-webkit-scrollbar:horizontal {
2022-04-04 15:29:19 +08:00
height: $scrollbar-size;
}
2022-04-04 15:29:19 +08:00
::-webkit-scrollbar-track {
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2);
border-radius: 10px;
transition: all 0.2s ease-in-out;
&:hover {
cursor: pointer;
background-color: rgba(0, 0, 0, 0.3);
}
}