2022-04-04 15:29:19 +08:00
|
|
|
@use './vars' as *;
|
|
|
|
|
2021-12-13 00:07:28 +08:00
|
|
|
// scrollbar
|
|
|
|
* {
|
2022-03-13 20:10:07 +08:00
|
|
|
scrollbar-color: var(--el-scrollbar-bg-color) var(--el-fill-color-light);
|
2021-12-13 00:07:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
2022-04-04 15:29:19 +08:00
|
|
|
width: $scrollbar-size;
|
2021-12-13 00:07:28 +08:00
|
|
|
}
|
2022-04-04 15:29:19 +08:00
|
|
|
|
2021-12-13 00:07:28 +08:00
|
|
|
::-webkit-scrollbar:horizontal {
|
2022-04-04 15:29:19 +08:00
|
|
|
height: $scrollbar-size;
|
2021-12-13 00:07:28 +08:00
|
|
|
}
|
2022-04-04 15:29:19 +08:00
|
|
|
|
2021-12-13 00:07:28 +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);
|
|
|
|
}
|
|
|
|
}
|
2022-07-27 14:20:02 +08:00
|
|
|
|
|
|
|
.dark {
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(255, 255, 255, 0.4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|