import styled from 'styled-components' ; import SimpleButton from '../../SimpleButton' ; export const FilterPanel = styled . div `
  width: 600px;
  height: 38px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;

  @media (max-width: 1200px) {
    width: 450px;
  }

  @media (max-width: 1000px) {
    width: 320px;
  }

  @media (max-width: 750px) {
    width: 80vw;
  }
` ; export const FilterImage = styled ( SimpleButton ) `
  display: inline-block;
  margin-left: ${ ( props ) => ( props . isClear ? '-40px' : '0' ) };
  margin-right: ${ ( props ) => ( props . isClear ? '0' : '-40px' ) };
  width: 30px;
  z-index: 2;
  display: flex;
  justify-content: center;
  cursor: ${ ( props ) => ( props . isClear ? 'pointer' : 'default !important' ) };

  @media (max-width: 750px) {
    margin-left: ${ ( props ) => ( props . isClear ? '-14%' : '0' ) };
    margin-right: ${ ( props ) => ( props . isClear ? '0' : '-14%' ) };
  }

  img {
    margin-top: 3px;
    width: ${ ( props ) => ( props . isClear ? '12px' : '18px' ) };
    height: ${ ( props ) => ( props . isClear ? '12px' : '18px' ) };

    @media (max-width: 750px) {
      margin-top: 0;
    }
  }
` ; export const FilterInputPanel = styled . input `
  position: relative;
  width: ${ ( props ) => ( props . showReset ? '530px' : '100%' ) };
  height: 100%;
  font-size: 16px;
  padding-left: 26px;
  padding-right: 30px;
  background: rgba(255, 255, 255, 0);
  opacity: 1;
  border: 0px solid white;
  color: #666666;
  border-radius: 4px;
  background-color: #f4f4f4;
  &: focus {
    color: #666666;
    outline: none;
  }
  &::placeholder {
    color: #bababa;
  }

  @media (max-width: 1200px) {
    width: ${ ( props ) => ( props . showReset ? '380px' : '100%' ) };
  }

  @media (max-width: 1000px) {
    width: ${ ( props ) => ( props . showReset ? '250px' : '100%' ) };
  }

  @media (max-width: 750px) {
    width: ${ ( props ) => ( props . showReset ? '82%' : '100%' ) };
    font-size: 12px;
  }
` ; export const ResetButtonPanel = styled . div `
  background: #f4f4f4;
  color: #000000;
  border-radius: 2px;
  font-size: 12px;
  width: 55px;
  height: 38px;
  line-height: 38px;
  cursor: pointer;

  &: hover {
    background: #dddddd;
  }

  @media (max-width: 750px) {
    width: 50px;
  }
` ;