toolStyled.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import styled, { css } from 'styled-components';
  2. import { color } from '../constants/style';
  3. export const Wrapper = styled('div')<{ width?: string }>`
  4. margin-bottom: 10px;
  5. display: inline-block;
  6. height: auto;
  7. vertical-align: bottom;
  8. width: ${props => props.width || '100%'};
  9. `;
  10. export const Group = styled.div`
  11. display: flex;
  12. justify-content: space-around;
  13. align-items: center;
  14. `;
  15. export const Item = styled('div')<{ size?: string; selected?: boolean }>`
  16. width: ${props => (props.size === 'small' ? '30px' : '40px')};
  17. height: ${props => (props.size === 'small' ? '30px' : '40px')};
  18. border-radius: 4px;
  19. display: flex;
  20. justify-content: center;
  21. align-items: center;
  22. cursor: pointer;
  23. ${props =>
  24. props.selected
  25. ? css`
  26. background-color: ${color['light-primary']};
  27. `
  28. : ''}
  29. :hover {
  30. background-color: ${color['light-primary']};
  31. }
  32. `;
  33. export const Circle = styled('div')<{ color: string }>`
  34. width: 16px;
  35. height: 16px;
  36. border-radius: 8px;
  37. background-color: ${props => props.color};
  38. `;
  39. export const SliderWrapper = styled.div`
  40. padding: 5px 0;
  41. width: 178px;
  42. border-radius: 4px;
  43. border: solid 1px rgba(0, 0, 0, 0.12);
  44. `;
  45. export const BtnWrapper = styled.div`
  46. padding: 8px;
  47. `;
  48. export const PickerContainer = styled.div`
  49. position: fixed;
  50. z-index: 20;
  51. top: 0;
  52. left: 0;
  53. right: 0;
  54. bottom: 0;
  55. display: flex;
  56. justify-content: center;
  57. align-items: center;
  58. `;
  59. export const Blanket = styled.div`
  60. position: absolute;
  61. top: 0;
  62. left: 0;
  63. right: 0;
  64. bottom: 0;
  65. `;