You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.0 KiB
64 lines
1.0 KiB
import styled from 'styled-components/macro'
|
|
|
|
import { сustomScrollbar } from 'features/Common'
|
|
import {
|
|
InputWrapper,
|
|
InputStyled,
|
|
Label,
|
|
} from 'features/Common/Input/styled'
|
|
|
|
export const Wrapper = styled.div`
|
|
position: relative;
|
|
`
|
|
|
|
export const Form = styled.form`
|
|
${InputWrapper} {
|
|
margin: 0;
|
|
padding-bottom: 13px;
|
|
}
|
|
|
|
${InputStyled} {
|
|
width: 100%;
|
|
|
|
::-webkit-search-decoration,
|
|
::-webkit-search-cancel-button,
|
|
::-webkit-search-results-button,
|
|
::-webkit-search-results-decoration {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
${Label} {
|
|
::before {
|
|
content: '';
|
|
display: block;
|
|
width: 25px;
|
|
height: 25px;
|
|
background-image: url(/images/search.svg);
|
|
background-repeat: no-repeat;
|
|
}
|
|
}
|
|
|
|
:focus-within {
|
|
${InputWrapper} {
|
|
padding-left: 0;
|
|
}
|
|
|
|
${Label} {
|
|
::before {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
`
|
|
|
|
export const Results = styled.div`
|
|
position: absolute;
|
|
top: 56px;
|
|
width: 448px;
|
|
max-height: 431px;
|
|
overflow-y: auto;
|
|
|
|
${сustomScrollbar}
|
|
`
|
|
|