blob: 89af883fdefc4bf00c7e9c58aed0935c98cbfe57 (
plain) (
blame)
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
83
84
85
86
87
88
89
|
import styled from "styled-components";
export const Container = styled.div`
position: relative;
width: 100%;
margin-top: 5%;
`;
export const SearchContainer = styled.div`
display: flex;
align-items: center;
width: 100%;
height: 50px;
border-color: ${({ theme }) => theme.border};
border-width: 1px;
border-radius: 5px;
border-style: solid;
color: ${({ theme }) => theme.text};
`;
export const SearchPadding = styled.div`
display: flex;
align-items: center;
width: 100%;
padding: 0 15px;
`;
export const Input = styled.input`
width: 100%;
height: 100%;
margin: 0 10px;
background-color: transparent;
border: none;
outline: none !important;
color: ${({ theme }) => theme.text};
font-size: 1rem;
`;
export const ResultsContainer = styled.div`
position: absolute;
bottom: 50px;
z-index: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
width: 100%;
max-height: 500%;
overflow-y: auto;
`;
export const Result = styled.div`
padding: 1px 15px;
background-color: ${({ theme }) => theme.background100};
border-color: ${({ theme }) => theme.border};
border-width: 1px;
border-radius: 5px;
border-style: solid;
color: ${({ theme }) => theme.text};
cursor: pointer;
`;
export const ResultText = styled.p`
width: 100%;
color: ${({ theme }) => theme.text};
font-size: 0.9rem;
user-select: none;
&:hover {
opacity: 0.8;
}
`;
|