toolStyled.ts 1.5 KB

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