UNPKG

@fluentui/react-northstar

Version:
33 lines (32 loc) 863 B
export var inputLabelStyles = { root: function root(_ref) { var p = _ref.props, v = _ref.variables; return Object.assign({ display: 'block', transition: 'all .2s', lineHeight: v.lineHeight, marginBottom: v.marginBottom }, p.labelPosition === 'inside' && Object.assign({ bottom: v.insideLabelBottom, top: 0, left: 0, margin: 0, position: 'absolute', display: 'flex', alignItems: 'center', zIndex: 100, paddingLeft: v.insideLabelPaddingLeft }, p.hasValue && { transform: 'translateY(-16px)', fontSize: v.insideLabelActiveFontSize }), p.labelPosition === 'inline' && { paddingRight: v.inlineLabelPaddingRight }, p.required && { '::after': { content: '"*"' } }); } }; //# sourceMappingURL=inputLabelStyles.js.map