UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

76 lines 2.4 kB
import { getGlobalClassNames, HighContrastSelector } from '../../../Styling'; var GlobalClassNames = { root: 'ms-ShimmerLine-root', topLeftCorner: 'ms-ShimmerLine-topLeftCorner', topRightCorner: 'ms-ShimmerLine-topRightCorner', bottomLeftCorner: 'ms-ShimmerLine-bottomLeftCorner', bottomRightCorner: 'ms-ShimmerLine-bottomRightCorner' }; export function getStyles(props) { var height = props.height, borderStyle = props.borderStyle, theme = props.theme; var palette = theme.palette; var globalClassNames = getGlobalClassNames(GlobalClassNames, theme); var borderStyles = !!borderStyle ? borderStyle : {}; var sharedCornerStyles = { position: 'absolute', fill: palette.white }; return { root: [ globalClassNames.root, { height: height + "px", boxSizing: 'content-box', position: 'relative', borderTopStyle: 'solid', borderBottomStyle: 'solid', borderColor: palette.white, selectors: (_a = {}, _a[HighContrastSelector] = { borderColor: 'Window', selectors: { '> *': { fill: 'Window' } } }, _a) }, borderStyles ], topLeftCorner: [ globalClassNames.topLeftCorner, { top: '0', left: '0' }, sharedCornerStyles ], topRightCorner: [ globalClassNames.topRightCorner, { top: '0', right: '0' }, sharedCornerStyles ], bottomRightCorner: [ globalClassNames.bottomRightCorner, { bottom: '0', right: '0' }, sharedCornerStyles ], bottomLeftCorner: [ globalClassNames.bottomLeftCorner, { bottom: '0', left: '0' }, sharedCornerStyles ] }; var _a; } //# sourceMappingURL=ShimmerLine.styles.js.map