styled.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // @ts-ignore
  2. import styled from 'styled-components';
  3. import { color } from '../../constants/style';
  4. export const Container = styled.div`
  5. position: relative;
  6. cursor: pointer;
  7. font-size: 12px;
  8. min-width: 74px;
  9. display: inline-block;
  10. `;
  11. export const Selected = styled.div`
  12. box-sizing: border-box;
  13. display: inline-flex;
  14. align-items: center;
  15. background-color: ${color.gray};
  16. height: 32px;
  17. border-radius: 4px;
  18. padding: 0 6px 0 10px;
  19. transition: background-color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
  20. outline: none;
  21. width: 100%;
  22. `;
  23. export const InputContent = styled.input`
  24. background-color: ${color.gray};
  25. border: none;
  26. outline: none;
  27. width: 50%;
  28. `;
  29. export const Content = styled.div`
  30. background-color: ${color.gray};
  31. border: none;
  32. outline: none;
  33. width: 100%;
  34. display: flex;
  35. align-items: center;
  36. margin-right: 6px;
  37. `;
  38. export const OptionWrapper = styled.div`
  39. position: fixed;
  40. background-color: white;
  41. border-radius: 4px;
  42. top: 0;
  43. left: 0;
  44. padding: 6px 0;
  45. box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.38);
  46. max-height: 420px;
  47. z-index: 100;
  48. box-sizing: border-box;
  49. `;
  50. export const Option = styled.span`
  51. display: flex;
  52. padding: 5px 24px 5px 16px;
  53. :hover {
  54. background-color: ${color['soft-blue']};
  55. }
  56. `;