@buffetjs/styles
Version:
Buffetjs Styles - The styling solution of Buffetjs
47 lines (42 loc) • 1.08 kB
JavaScript
/**
*
* Select
*
*/
import styled from 'styled-components';
import colors from '../../assets/styles/colors';
import sizes from '../../assets/styles/sizes';
import img from '../../assets/icons/icon_select.svg';
const Select = styled.select`
width: 100%;
height: ${sizes.input.height};
padding: 0 ${sizes.input.padding};
font-weight: ${sizes.fontWeight.regular};
font-size: ${sizes.input.fontSize};
cursor: pointer;
outline: 0;
border: 1px solid ${colors.lightGrey};
border-radius: ${sizes.borderRadius};
color: ${colors.blueTxt};
background-color: ${colors.white};
padding-right: 30px;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url(${img});
background-repeat: no-repeat;
background-position: right;
&::-webkit-input-placeholder {
color: ${colors.greyPlaceholder};
}
&:focus {
border-color: ${colors.blueBorder};
}
&:disabled {
background-color: ${colors.greyIconBkgd};
cursor: not-allowed;
color: ${colors.brightGrey};
opacity: 1;
}
`;
export default Select;