@enact/sandstone
Version:
Large-screen/TV support library for Enact, containing a variety of UI components.
39 lines (38 loc) • 767 B
CSS
.hoverToScroll {
position: absolute;
z-index: 10;
pointer-events: none;
}
:global(.spotlight-input-mouse) .hoverToScroll {
pointer-events: auto;
}
:global(.spotlight-input-touch) .hoverToScroll {
pointer-events: var(--scroller-hover-to-scroll-by-touch, none);
}
.hoverToScroll.vertical {
width: 100%;
height: 2.5rem;
}
.hoverToScroll.vertical.after {
bottom: 0;
}
.hoverToScroll.horizontal {
width: 2.5rem;
height: 100%;
}
.hoverToScroll.horizontal.before {
left: 0;
right: auto;
}
:global(.enact-locale-right-to-left) .hoverToScroll.horizontal.before {
left: auto;
right: 0;
}
.hoverToScroll.horizontal.after {
left: auto;
right: 0;
}
:global(.enact-locale-right-to-left) .hoverToScroll.horizontal.after {
left: 0;
right: auto;
}