DocSpace-buildtools/packages/asc-web-components/search-input/styled-search-input.js

33 lines
670 B
JavaScript
Raw Normal View History

import styled from "styled-components";
2021-02-25 21:19:45 +00:00
import Base from "../themes/base";
const StyledSearchInput = styled.div`
font-family: Open Sans;
font-style: normal;
.search-input-block {
max-height: 32px;
& > input {
font-size: ${(props) => 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;