main
Last change
on this file since 0df6b9e was 0df6b9e, checked in by Viktor <mlviktor23@…>, 2 years ago |
styled searchbar
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | import styled from "styled-components";
|
---|
2 | import searchicon from "../searchicon.png";
|
---|
3 |
|
---|
4 | export const SearchSmall = styled.input`
|
---|
5 | width: 350px;
|
---|
6 | box-sizing: border-box;
|
---|
7 | border: 2px solid #ccc;
|
---|
8 | font-size: 16px;
|
---|
9 | background-color: #f9f9f9;
|
---|
10 | background-image: url(${searchicon});
|
---|
11 | background-position: 10px 10px;
|
---|
12 | background-repeat: no-repeat;
|
---|
13 | padding: 12px 20px 12px 40px;
|
---|
14 | margin-top: 10px;
|
---|
15 | `;
|
---|
16 |
|
---|
17 | export const SearchDropdownSmall = styled.div`
|
---|
18 | display: ${(props) => props.display};
|
---|
19 | position: absolute;
|
---|
20 | background-color: #f9f9f9;
|
---|
21 | min-width: 160px;
|
---|
22 | box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
---|
23 | padding: 12px 16px;
|
---|
24 | z-index: 1;
|
---|
25 | width: 350px;
|
---|
26 | padding: 0;
|
---|
27 | `;
|
---|
28 |
|
---|
29 | export const SearchDropdownResultSmall = styled.div`
|
---|
30 | &:hover {
|
---|
31 | background-color: papayawhip;
|
---|
32 | border: 1px solid blue;
|
---|
33 | text-decoration: underline 1px blue;
|
---|
34 | }
|
---|
35 | padding: 10px;
|
---|
36 | `;
|
---|
37 |
|
---|
38 | export const SearchDropdownResultLinkSmall = styled.a`
|
---|
39 | text-decoration: none;
|
---|
40 | color: black;
|
---|
41 | `;
|
---|
42 |
|
---|
43 | export const SearchDropdownTextSmall = styled.p`
|
---|
44 | font-weight: ${(props) => props.weight};
|
---|
45 | font-size: ${(props) => props.size};
|
---|
46 | `;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.