jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
46 lines (43 loc) • 1.49 kB
JavaScript
import styled from 'styled-components';
import Button from '../../../02-atoms/01-forms/01-button/index.js';
import { Input } from '../../../02-atoms/01-forms/03-input/index.js';
const SearchBox = styled.div `
display: flex;
align-items: center;
justify-content: center;
padding: ${props => props.theme.searchBox.padding};
background-color: ${props => props.theme.searchBox.background};
box-shadow: ${props => props.theme.searchBox.boxShadow};
`;
const Form = styled.form `
position: relative;
width: 100%;
display: flex;
align-items: center;
max-width: ${props => props.theme.searchBox.form.maxWidth};
`;
const SearchButton = styled(Button) `
position: absolute;
right: 0;
top: 0;
margin: 0;
padding: 0;
height: 100%;
cursor: pointer;
background: ${props => props.theme.searchBox.button.background};
border: ${props => props.theme.searchBox.button.border};
color: ${props => props.theme.searchBox.button.color};
width: ${props => props.theme.searchBox.button.width};
`;
const SearchInput = styled(Input) `
height: ${props => props.theme.searchBox.input.height};
width: ${props => props.theme.searchBox.input.widthMobile};
border-color: ${props => props.theme.searchBox.input.borderColor};
${props => props.theme.mediaQueries.small} {
width: calc(
${props => props.theme.searchBox.input.widthDesktop} -
${props => props.theme.searchBox.button.width}
);
}
`;
export { Form, SearchBox, SearchButton, SearchInput };