1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
import { Property } from 'csstype';
import { Theme } from '../../../themes';
export default (theme: Theme) => ({
label: {
'& > div': {
marginTop: 5,
},
},
disabled: {
opacity: theme.inputDisabledOpacity,
},
formModifier: {
background: 'none',
border: 0,
borderLeft: theme.inputBorder,
padding: '4px 20px 0',
outline: 'none',
'&:active': {
opacity: 0.5,
},
'& svg': {
fill: theme.inputModifierColor,
},
},
textarea: {
background: 'none',
border: 0,
fontSize: theme.uiFontSize,
outline: 'none',
padding: 8,
width: '100%',
color: theme.inputColor,
'&::placeholder': {
color: theme.inputPlaceholderColor,
},
},
wrapper: {
background: theme.inputBackground,
border: theme.inputBorder,
borderRadius: theme.borderRadiusSmall,
boxSizing: 'border-box' as Property.BoxSizing,
display: 'flex',
order: 1,
width: '100%',
},
hasError: {
borderColor: theme.brandDanger,
},
});
|