mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
7caa13e80c
* feat(style): add scrollbar for docs * fix(style): adjust scrollbar color
26 lines
439 B
SCSS
26 lines
439 B
SCSS
// scrollbar
|
|
* {
|
|
scrollbar-color: var(--el-scrollbar-bg-color) var(--el-bg-color);
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
::-webkit-scrollbar:horizontal {
|
|
height: 6px;
|
|
}
|
|
::-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);
|
|
}
|
|
}
|