mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
866b1cd71a
* docs: body cancel el-scrollbar * docs: dark mode scorll bg-color * style: move scroll css
39 lines
657 B
SCSS
39 lines
657 B
SCSS
@use './vars' as *;
|
|
|
|
// scrollbar
|
|
* {
|
|
scrollbar-color: var(--el-scrollbar-bg-color) var(--el-fill-color-light);
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: $scrollbar-size;
|
|
}
|
|
|
|
::-webkit-scrollbar:horizontal {
|
|
height: $scrollbar-size;
|
|
}
|
|
|
|
::-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);
|
|
}
|
|
}
|
|
|
|
.dark {
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
&:hover {
|
|
background-color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
}
|
|
}
|