forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.tsx
More file actions
47 lines (42 loc) · 1.36 KB
/
elements.tsx
File metadata and controls
47 lines (42 loc) · 1.36 KB
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
import styled from '../../styled-components'
export const Wrapper = styled.div`
position: relative;
`
export const InputElement = styled.input`
border: 0;
outline: 0;
border-radius: ${({ theme }) => theme.borderRadius.normal};
color: ${({ theme }) => theme.color.black};
background-color: ${({ theme }) => theme.color.white};
padding: ${({ theme }) => theme.padding.smaller};
margin: ${({ theme }) => `0 ${theme.padding.small}`};
`
export const SearchResult = styled.div`
position: absolute;
top: 35px;
right: 0;
width: 300px;
background-color: ${({ theme }) => theme.color.white};
border-radius: ${({ theme }) => theme.borderRadius.normal};
margin: ${({ theme }) => `0 ${theme.padding.small}`};
box-shadow: 0px 10px 11px -6px rgba(0, 0, 0, 0.28);
`
export const SearchResultItem = styled.a`
padding: ${({ theme }) => theme.padding.small};
color: ${({ theme }) => theme.color.black};
display: block;
text-decoration: none;
:hover {
background-color: ${({ theme }) =>
theme.color.fade(theme.color.black, 0.99)};
}
> span {
color: ${({ theme }) => theme.color.primary};
font-size: ${({ theme }) => theme.fontSize.small};
margin-right: ${({ theme }) => theme.padding.smaller};
}
`
export const SearchText = styled.div`
font-size: ${({ theme }) => theme.fontSize.small};
padding: ${({ theme }) => theme.padding.small};
`