2020-09-15 15:01:07 +02:00
|
|
|
const styled = require('styled-components').default;
|
|
|
|
const Color = require('color');
|
|
|
|
|
|
|
|
const StyledInput = styled.input`
|
2020-11-12 21:13:28 +02:00
|
|
|
border: 1px solid ${(props: any) => Color(props.theme.color3).alpha(0.6)};
|
2020-09-15 15:01:07 +02:00
|
|
|
border-radius: 3px;
|
2020-11-12 21:13:28 +02:00
|
|
|
font-size: ${(props: any) => props.theme.fontSize}px;
|
|
|
|
color: ${(props: any) => props.theme.color};
|
2020-09-15 15:01:07 +02:00
|
|
|
padding: 0 8px;
|
2020-11-12 21:13:28 +02:00
|
|
|
height: ${(props: any) => `${props.theme.toolbarHeight}px`};
|
|
|
|
max-height: ${(props: any) => `${props.theme.toolbarHeight}px`};
|
2020-09-15 15:01:07 +02:00
|
|
|
box-sizing: border-box;
|
2020-11-12 21:13:28 +02:00
|
|
|
background-color: ${(props: any) => Color(props.theme.backgroundColor4).alpha(0.5)};
|
2020-09-15 15:01:07 +02:00
|
|
|
|
|
|
|
&::placeholder {
|
2020-11-12 21:13:28 +02:00
|
|
|
color: ${(props: any) => props.theme.colorFaded};
|
2020-09-15 15:01:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2020-11-12 21:13:28 +02:00
|
|
|
background-color: ${(props: any) => props.theme.backgroundColor4};
|
|
|
|
border: 1px solid ${(props: any) => props.theme.color3};
|
2020-09-15 15:01:07 +02:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default StyledInput;
|