UNPKG

@fluentui/react-northstar

Version:
33 lines (32 loc) 970 B
import { pxToRem } from '../../../../utils'; import { sizeToPxValue } from './avatarSizes'; export var avatarLabelStyles = { root: function root(_ref) { var _ref$props = _ref.props, circular = _ref$props.circular, size = _ref$props.size, square = _ref$props.square, v = _ref.variables; var sizeInRem = pxToRem(sizeToPxValue[size]); return Object.assign({ alignItems: 'center', overflow: 'hidden', color: v.labelColor, backgroundColor: v.labelBackground, borderRadius: '50%', display: 'inline-block', width: sizeInRem, height: sizeInRem, lineHeight: sizeInRem, fontSize: pxToRem(sizeToPxValue[size] / 2.333), verticalAlign: 'top', textAlign: 'center', padding: '0' }, square && { borderRadius: v.squareAvatarBorderRadius }, circular && { borderRadius: v.labelCircularRadius }); } }; //# sourceMappingURL=avatarLabelStyles.js.map