UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

59 lines 2.05 kB
import { getGlobalClassNames, FontSizes } from '../../Styling'; var GlobalClassNames = { root: 'ms-DetailsList', compact: 'ms-DetailsList--Compact', isFixed: 'is-fixed', isHorizontalConstrained: 'is-horizontalConstrained', listCell: 'ms-List-cell' }; export var getStyles = function (props) { var theme = props.theme, className = props.className, isHorizontalConstrained = props.isHorizontalConstrained, compact = props.compact, isFixed = props.isFixed; var semanticColors = theme.semanticColors; var classNames = getGlobalClassNames(GlobalClassNames, theme); return { root: [ classNames.root, { position: 'relative', fontSize: FontSizes.small, background: semanticColors.listBackground, color: semanticColors.listText, selectors: (_a = {}, _a["& ." + classNames.listCell] = { minHeight: 38, wordBreak: 'break-word' }, _a) }, isFixed && [classNames.isFixed], compact && [ classNames.compact, { selectors: (_b = {}, _b["." + classNames.listCell] = { minHeight: 32 }, _b) } ], isHorizontalConstrained && [ classNames.isHorizontalConstrained, { overflowX: 'auto', overflowY: 'visible', WebkitOverflowScrolling: 'touch' } ], className ], focusZone: [ { display: 'inline-block', minWidth: '100%', minHeight: 1 } ] }; var _a, _b; }; //# sourceMappingURL=DetailsList.styles.js.map