2023-04-03 16:46:38 +08:00
|
|
|
@mixin chat-scrollbar() {
|
2022-11-02 21:41:30 +08:00
|
|
|
--scrollbarBg: transparent;
|
|
|
|
--scrollbarThumbBg: var(--primary-low);
|
2023-04-03 16:46:38 +08:00
|
|
|
--scrollbarWidth: 10px;
|
2022-11-02 21:41:30 +08:00
|
|
|
|
|
|
|
scrollbar-color: transparent var(--scrollbarBg);
|
|
|
|
transition: scrollbar-color 0.25s ease-in-out;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
2023-04-03 16:46:38 +08:00
|
|
|
background-color: var(--scrollbarThumbBg);
|
2022-11-02 21:41:30 +08:00
|
|
|
border-radius: calc(var(--scrollbarWidth) / 2);
|
2023-04-03 16:46:38 +08:00
|
|
|
border: calc(var(--scrollbarWidth) / 4) solid var(--secondary);
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
2023-04-03 16:46:38 +08:00
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background-color: transparent;
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
2023-04-03 16:46:38 +08:00
|
|
|
|
2022-11-02 21:41:30 +08:00
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: var(--scrollbarWidth);
|
|
|
|
}
|
|
|
|
}
|