office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
32 lines • 1.13 kB
JavaScript
import { getGlobalClassNames, HighContrastSelector } from '../../../Styling';
var GlobalClassNames = {
root: 'ms-ShimmerGap-root'
};
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 : {};
return {
root: [
globalClassNames.root,
{
backgroundColor: palette.white,
height: height + "px",
boxSizing: 'content-box',
borderTopStyle: 'solid',
borderBottomStyle: 'solid',
borderColor: palette.white,
selectors: (_a = {},
_a[HighContrastSelector] = {
backgroundColor: 'Window',
borderColor: 'Window'
},
_a)
},
borderStyles
]
};
var _a;
}
//# sourceMappingURL=ShimmerGap.styles.js.map