toolStyled.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 => (props.selected ? css`
  24. background-color: ${color['light-primary']};
  25. ` : '')}
  26. :hover {
  27. background-color: ${color['light-primary']};
  28. }
  29. `;
  30. export const Circle = styled('div')<{color: string}>`
  31. width: 16px;
  32. height: 16px;
  33. border-radius: 8px;
  34. background-color: ${props => props.color};
  35. `;
  36. export const SliderWrapper = styled.div`
  37. padding: 5px 0;
  38. width: 178px;
  39. border-radius: 4px;
  40. border: solid 1px rgba(0, 0, 0, 0.12);
  41. `;
  42. export const BtnWrapper = styled.div`
  43. padding: 8px;
  44. `;