DocSpace-client/packages/shared/components/search-input/SearchInput.styled.ts

41 lines
817 B
TypeScript
Raw Normal View History

2023-11-09 10:47:33 +00:00
import styled, { css } from "styled-components";
import { Base } from "../../themes";
const StyledSearchInput = styled.div<{ isScale?: boolean }>`
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%;
`}
.search-input-block {
max-height: 32px;
& > input {
font-size: ${(props) =>
props.theme.getCorrectFontSize(props.theme.searchInput.fontSize)};
font-weight: ${(props) => props.theme.searchInput.fontWeight};
}
}
svg {
path {
fill: ${(props) => props.theme.searchInput.iconColor};
}
}
&:hover {
svg {
path {
fill: ${(props) => props.theme.searchInput.hoverIconColor};
}
}
}
`;
StyledSearchInput.defaultProps = { theme: Base };
export default StyledSearchInput;