|
|
@@ -35,47 +35,49 @@ const WebScrollbar = () => {
|
|
|
}
|
|
|
|
|
|
styleEl.innerHTML = `
|
|
|
- #root *::-webkit-scrollbar,
|
|
|
- body *::-webkit-scrollbar,
|
|
|
- html *::-webkit-scrollbar {
|
|
|
- height: ${shapeConfigs.scrollBarHeight}px !important;
|
|
|
- width: ${shapeConfigs.scrollBarWidth}px !important;
|
|
|
- }
|
|
|
+ @media (hover: hover) and (pointer: fine) {
|
|
|
+ #root *::-webkit-scrollbar,
|
|
|
+ body *::-webkit-scrollbar,
|
|
|
+ html *::-webkit-scrollbar {
|
|
|
+ height: ${shapeConfigs.scrollBarHeight}px !important;
|
|
|
+ width: ${shapeConfigs.scrollBarWidth}px !important;
|
|
|
+ }
|
|
|
|
|
|
- #root *::-webkit-scrollbar-track,
|
|
|
- body *::-webkit-scrollbar-track,
|
|
|
- html *::-webkit-scrollbar-track {
|
|
|
- border: ${borders.scrollBarTrack}px solid transparent !important;
|
|
|
- border-radius: ${radiuses.scrollBarTrack}px !important;
|
|
|
- background: ${colors.content.container.mid} !important;
|
|
|
- background-clip: padding-box !important;
|
|
|
- }
|
|
|
+ #root *::-webkit-scrollbar-track,
|
|
|
+ body *::-webkit-scrollbar-track,
|
|
|
+ html *::-webkit-scrollbar-track {
|
|
|
+ border: ${borders.scrollBarTrack}px solid transparent !important;
|
|
|
+ border-radius: ${radiuses.scrollBarTrack}px !important;
|
|
|
+ background: ${colors.content.container.mid} !important;
|
|
|
+ background-clip: padding-box !important;
|
|
|
+ }
|
|
|
|
|
|
- #root *::-webkit-scrollbar-thumb,
|
|
|
- body *::-webkit-scrollbar-thumb,
|
|
|
- html *::-webkit-scrollbar-thumb {
|
|
|
- border: ${borders.scrollBarThumb}px solid transparent !important;
|
|
|
- background: ${colors.content.container.primary} !important;
|
|
|
- border-radius: ${radiuses.scrollBarThumb}px !important;
|
|
|
- background-clip: padding-box !important;
|
|
|
- }
|
|
|
+ #root *::-webkit-scrollbar-thumb,
|
|
|
+ body *::-webkit-scrollbar-thumb,
|
|
|
+ html *::-webkit-scrollbar-thumb {
|
|
|
+ border: ${borders.scrollBarThumb}px solid transparent !important;
|
|
|
+ background: ${colors.content.container.primary} !important;
|
|
|
+ border-radius: ${radiuses.scrollBarThumb}px !important;
|
|
|
+ background-clip: padding-box !important;
|
|
|
+ }
|
|
|
|
|
|
- #root *::-webkit-scrollbar-thumb:hover,
|
|
|
- body *::-webkit-scrollbar-thumb:hover,
|
|
|
- html *::-webkit-scrollbar-thumb:hover {
|
|
|
- border: ${borders.scrollBarThumbHover}px solid transparent !important;
|
|
|
- border-radius: ${radiuses.scrollBarThumbHover}px !important;
|
|
|
- background: ${colors.content.container.primary} !important;
|
|
|
- background-clip: padding-box !important;
|
|
|
- }
|
|
|
+ #root *::-webkit-scrollbar-thumb:hover,
|
|
|
+ body *::-webkit-scrollbar-thumb:hover,
|
|
|
+ html *::-webkit-scrollbar-thumb:hover {
|
|
|
+ border: ${borders.scrollBarThumbHover}px solid transparent !important;
|
|
|
+ border-radius: ${radiuses.scrollBarThumbHover}px !important;
|
|
|
+ background: ${colors.content.container.primary} !important;
|
|
|
+ background-clip: padding-box !important;
|
|
|
+ }
|
|
|
|
|
|
- #root *::-webkit-scrollbar-thumb:active,
|
|
|
- body *::-webkit-scrollbar-thumb:active,
|
|
|
- html *::-webkit-scrollbar-thumb:active {
|
|
|
- border: ${borders.scrollBarThumbActive}px solid transparent !important;
|
|
|
- background: ${colors.content.container.emphasized} !important;
|
|
|
- border-radius: ${radiuses.scrollBarThumbActive}px !important;
|
|
|
- background-clip: padding-box !important;
|
|
|
+ #root *::-webkit-scrollbar-thumb:active,
|
|
|
+ body *::-webkit-scrollbar-thumb:active,
|
|
|
+ html *::-webkit-scrollbar-thumb:active {
|
|
|
+ border: ${borders.scrollBarThumbActive}px solid transparent !important;
|
|
|
+ background: ${colors.content.container.emphasized} !important;
|
|
|
+ border-radius: ${radiuses.scrollBarThumbActive}px !important;
|
|
|
+ background-clip: padding-box !important;
|
|
|
+ }
|
|
|
}
|
|
|
`;
|
|
|
|