jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
31 lines (25 loc) • 1.2 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var styled = require('styled-components');
var styled__default = _interopDefault(styled);
const Textarea = styled__default.textarea `
box-sizing: border-box;
font-size: ${props => props.theme.input.fontSize};
margin: ${props => props.theme.input.margin};
padding: ${props => props.theme.input.padding};
border-radius: ${props => props.theme.input.borderRadius};
border-width: ${props => props.theme.input.borderWidth};
border-style: ${props => props.theme.input.borderStyle};
border-color: ${props => props.error ? props.theme.colors.danger : props.theme.input.borderColor};
background: ${props => props.theme.input.background};
width: ${props => props.theme.input.width};
&:focus,
&:active {
outline: 0;
border-color: ${props => props.theme.colors.focusRingColor};
box-shadow: ${props => props.theme.input.focus.boxShadowType},
${props => `${props.theme.input.focus.boxShadowVals} ${props.theme.colors.focusRingColor}`};
}
`;
exports.Textarea = Textarea;