aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Search/index.styled.ts
blob: 65a5052cec7d1b5ff036903f507b57ce3f8ff06a (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
import styled from "styled-components";

export const Container = styled.div`
  position: relative;
  width: 100%;
  margin-top: 16px;
`;

export const SearchContainer = styled.div`
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  background-color: var(--cl-gray-1);
  border: 1px solid ${({ theme }) => theme.border};
  color: ${({ theme }) => theme.text};
`;

export const SearchPadding = styled.div`
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 12px;
  color: var(--cl-gray-5);
`;

export const Input = styled.input`
  width: 100%;
  height: 100%;
  margin: 0 10px;
  background-color: transparent;
  border: none;
  outline: none !important;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  color: ${({ theme }) => theme.text};

  &::placeholder {
    color: var(--cl-gray-5);
  }
`;

export const ResultsContainer = styled.div`
  position: absolute;
  bottom: 48px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid ${({ theme }) => theme.border};
  border-bottom: none;
`;

export const Result = styled.div`
  padding: 0 12px;
  background-color: var(--cl-gray-1);
  border-bottom: 1px solid ${({ theme }) => theme.border};
  cursor: pointer;

  &:hover {
    background-color: var(--cl-gray-2);
  }
`;

export const ResultText = styled.p`
  margin: 8px 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.82rem;
  color: ${({ theme }) => theme.text};
  user-select: none;
`;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage