UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

30 lines (27 loc) 1.31 kB
import styled from 'styled-components'; const Input = styled.input ` box-sizing: border-box; background: ${props => props.theme.input.background}; font-size: ${props => props.theme.input.fontSize}; line-height: ${props => props.theme.input.lineHeight}; 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-top-width: ${props => props.theme.input.borderTopWidth}; border-left-width: ${props => props.theme.input.borderLeftWidth}; border-right-width: ${props => props.theme.input.borderRightWidth}; border-bottom-width: ${props => props.theme.input.borderBottomWidth}; border-style: ${props => props.theme.input.borderStyle}; border-color: ${props => props.error ? props.theme.colors.danger : props.theme.input.borderColor}; max-width: ${props => props.theme.input.width}; opacity: ${props => (props.disabled ? 0.5 : 1)}; &: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}`}; } `; export { Input };