Ignore:
Timestamp:
08/01/22 19:18:54 (2 years ago)
Author:
Viktor <mlviktor23@…>
Branches:
main
Children:
d654c74
Parents:
080a3f3
Message:

styled searchbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • reactapp/src/Components/Search.style.js

    r080a3f3 r0df6b9e  
    11import styled from "styled-components";
     2import searchicon from "../searchicon.png";
     3
     4export 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`;
    216
    317export const SearchDropdownSmall = styled.div`
    4   display: block;
     18  display: ${(props) => props.display};
     19  position: absolute;
    520  background-color: #f9f9f9;
    621  min-width: 160px;
     
    823  padding: 12px 16px;
    924  z-index: 1;
     25  width: 350px;
     26  padding: 0;
    1027`;
    1128
    12 export const SearchDropdownContentSmall = styled.p`
     29export 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
     38export const SearchDropdownResultLinkSmall = styled.a`
     39  text-decoration: none;
     40  color: black;
     41`;
     42
     43export const SearchDropdownTextSmall = styled.p`
    1344  font-weight: ${(props) => props.weight};
    1445  font-size: ${(props) => props.size};
Note: See TracChangeset for help on using the changeset viewer.