-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathStyledComponents.js
83 lines (68 loc) · 1.53 KB
/
StyledComponents.js
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import styled from 'styled-components';
import IconButton from 'components/IconButton';
import { Clearfix, Button } from 'react-bootstrap';
export const StyledHeader = styled(Clearfix)`
h2 {
font-size: 15px;
margin: 4px 0;
overflow: hidden;
max-width: 75%;
text-overflow: ellipsis;
white-space: nowrap;
}
`;
export const UnstyledButton = styled(Button)`
padding: 0;
`;
export const TrashButton = styled(IconButton)`
height: 40px;
`;
export const FormDataFields = styled.div`
margin-top: 15px;
`;
export const SuggestWrapper = styled.div`
.react-autosuggest__container {
position: relative;
}
.react-autosuggest__input--focused {
outline: none;
}
.react-autosuggest__input--open {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.react-autosuggest__suggestions-container {
display: none;
}
.react-autosuggest__suggestions-container--open {
display: block;
position: absolute;
top: 33px;
width: 100%;
border: 1px solid #aaa;
background-color: #fff;
font-size: 12px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
z-index: 2;
}
.react-autosuggest__suggestions-list {
margin: 0;
padding: 0;
list-style-type: none;
}
.react-autosuggest__suggestion {
cursor: pointer;
padding: 10px;
color: initial;
}
.react-autosuggest__suggestion--highlighted {
background-color: #ddd;
}
`;
export const Suggestion = styled.div`
p {
margin: 0;
font-family: monospace;
}
`;