/* Same look as the global ::-webkit-scrollbar (global.css). */ .track, .horizontalTrack { position: absolute; z-index: 1; } .track { top: 0; right: 0; width: 10px; } .horizontalTrack { bottom: 0; height: 10px; opacity: 0; pointer-events: none; transition: opacity 125ms ease-out; } .horizontalTrack[data-active] { opacity: 1; pointer-events: auto; transition: none; } @media (prefers-reduced-motion: reduce) { .horizontalTrack { transition: none; } } .thumb, .horizontalThumb { position: absolute; left: 0; top: 0; border: 2px solid transparent; border-radius: 6px; background-clip: content-box; background-color: var(--scrollbar-thumb); will-change: transform; } .thumb { right: 0; } .horizontalThumb { bottom: 0; } .thumb:hover, .thumb[data-dragging], .horizontalThumb:hover, .horizontalThumb[data-dragging] { background-color: var(--scrollbar-thumb-hover); } /* For the scroller whose vertical scrollbar `Scrollbar` draws. */ .hideNative::-webkit-scrollbar:vertical { width: 0; } .hideNativeHorizontal::-webkit-scrollbar:horizontal { height: 0; }