Files
geekai/web/src/assets/css/custom-scroll.scss
2025-08-01 17:32:06 +08:00

37 lines
861 B
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.custom-scroll {
/* 修改滚动条的颜色 */
::-webkit-scrollbar {
width: 8px; /* 滚动条宽度 */
}
/* 修改滚动条轨道的背景颜色 */
::-webkit-scrollbar-track {
background-color: #282c34;
}
/* 修改滚动条的滑块颜色 */
::-webkit-scrollbar-thumb {
background-color: #444444;
border-radius: 8px;
}
/* 修改滚动条的滑块的悬停颜色 */
::-webkit-scrollbar-thumb:hover {
background-color: #666666;
}
overflow: auto; /* 保持滚动功能 */
scrollbar-width: none; /* 隐藏滚动条Firefox */
-ms-overflow-style: none; /* 隐藏滚动条IE、Edge */
::-webkit-scrollbar {
display: none; /* 隐藏滚动条Webkit 浏览器) */
}
&.showScrollbar {
::-webkit-scrollbar {
display: none; /* 隐藏滚动条Webkit 浏览器) */
}
}
}