UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

54 lines 1.58 kB
import { HighContrastSelector } from '../../Styling'; export var getStyles = function (props) { var className = props.className, theme = props.theme; var palette = theme.palette, semanticColors = theme.semanticColors; var AboveAndBelowStyles = { position: 'absolute', pointerEvents: 'auto', width: '100%', zIndex: 1 }; return ({ root: [ 'ms-ScrollablePane', { overflowY: 'auto', maxHeight: 'inherit', height: 'inherit', WebkitOverflowScrolling: 'touch' }, className ], stickyContainer: [ { overflow: 'hidden', position: 'absolute', pointerEvents: 'none', } ], stickyAbove: [ { top: 0, selectors: (_a = {}, _a[HighContrastSelector] = { borderBottom: '1px solid WindowText' }, _a) }, AboveAndBelowStyles ], stickyBelow: [ { bottom: 0, selectors: (_b = {}, _b[HighContrastSelector] = { borderTop: '1px solid WindowText' }, _b) }, AboveAndBelowStyles ] }); var _a, _b; }; //# sourceMappingURL=ScrollablePane.styles.js.map