// @ts-ignore
import styled, { css } from 'styled-components';
import { color } from '../../constants/style';

export const Wrapper = styled('div')<{width: string}>`
  position: relative;
  cursor: pointer;
  font-size: 12px;
  min-width: 74px;
  width: ${props => props.width};
  display: inline-block;
`;

export const Selected = styled.div`
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  background-color: ${color['gray']};
  height: 32px;
  border-radius: 4px;
  padding: 0 6px 0 14px;
  transition: background-color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
  outline: none;
`;

export const InputContent = styled.input`
  background-color: ${color['gray']};
  border: none;
  outline: none;
  width: 100%;
`;

export const Content = styled.div`
  background-color: ${color['gray']};
  border: none;
  outline: none;
  width: 100%;
  display: flex;
  align-items: center;
  margin-right: 6px;
`;

export const OptionWrapper = styled.div`
  position: fixed;
  background-color: white;
  border-radius: 4px;
  top: 0;
  left: 0;
  padding: 6px 0;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.38);
  max-height: 420px;
  z-index: 200;
  box-sizing: border-box;
`;

export const Option = styled.span`
  display: flex;
  padding: 5px 24px 5px 16px;

  :hover {
    background-color: ${color['soft-blue']};
  }
`;
