2023-11-09 10:47:33 +00:00
|
|
|
import styled, { css } from "styled-components";
|
2021-02-08 07:27:42 +00:00
|
|
|
|
2023-12-07 09:25:25 +00:00
|
|
|
import { Base } from "../../themes";
|
|
|
|
|
|
|
|
const StyledSearchInput = styled.div<{ isScale?: boolean }>`
|
2021-02-08 07:27:42 +00:00
|
|
|
font-family: Open Sans;
|
|
|
|
font-style: normal;
|
|
|
|
|
2023-11-12 20:54:30 +00:00
|
|
|
${({ isScale }) =>
|
|
|
|
isScale &&
|
2023-11-09 10:47:33 +00:00
|
|
|
css`
|
|
|
|
width: 100%;
|
|
|
|
`}
|
|
|
|
|
2021-02-08 07:27:42 +00:00
|
|
|
.search-input-block {
|
2022-04-08 11:46:42 +00:00
|
|
|
max-height: 32px;
|
|
|
|
|
2021-02-08 07:27:42 +00:00
|
|
|
& > input {
|
2023-11-09 16:43:16 +00:00
|
|
|
font-size: ${(props) =>
|
|
|
|
props.theme.getCorrectFontSize(props.theme.searchInput.fontSize)};
|
2021-02-08 07:27:42 +00:00
|
|
|
font-weight: ${(props) => props.theme.searchInput.fontWeight};
|
|
|
|
}
|
|
|
|
}
|
2021-12-12 13:06:54 +00:00
|
|
|
|
|
|
|
svg {
|
|
|
|
path {
|
|
|
|
fill: ${(props) => props.theme.searchInput.iconColor};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
svg {
|
|
|
|
path {
|
|
|
|
fill: ${(props) => props.theme.searchInput.hoverIconColor};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-08 07:27:42 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
StyledSearchInput.defaultProps = { theme: Base };
|
|
|
|
export default StyledSearchInput;
|