UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Office 365.

83 lines 2.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStyles = function (props) { var theme = props.theme, alignText = props.alignText, vertical = props.vertical, className = props.className; var alignStart = alignText === 'start'; var alignCenter = alignText === 'center'; var alignEnd = alignText === 'end'; return { root: [ theme.fonts.medium, { position: 'relative' }, alignText && { textAlign: alignText }, !alignText && { textAlign: 'center' }, vertical && (alignCenter || !alignText) && { verticalAlign: 'middle' }, vertical && alignStart && { verticalAlign: 'top' }, vertical && alignEnd && { verticalAlign: 'bottom' }, vertical && { padding: '0 5px', height: 'inherit', display: 'table-cell', zIndex: 1, selectors: { ':after': { backgroundColor: theme.palette.neutralLight, width: '1px', content: '""', position: 'absolute', top: '0', bottom: '0', left: '50%', right: '0', zIndex: -1 } } }, !vertical && { padding: '5px 0', selectors: { ':before': { backgroundColor: theme.palette.neutralLight, height: '1px', content: '""', display: 'block', position: 'absolute', top: '50%', bottom: '0', left: '0', right: '0' } } }, className ], text: [ { position: 'relative', display: 'inline-block', padding: '0 20px', color: theme.semanticColors.bodyText, background: theme.semanticColors.bodyBackground }, vertical && { padding: '20px 0' } ] }; }; //# sourceMappingURL=Separator.styles.js.map