toolStyled.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import styled from 'styled-components';
  2. import { color } from '../constants/style';
  3. export const Wrapper = styled('div')<{width?: string}>`
  4. margin-bottom: 12px;
  5. display: inline-block;
  6. height: 70px;
  7. vertical-align: bottom;
  8. width: ${props => props.width || '100%'};
  9. `;
  10. export const Group = styled.div`
  11. display: flex;
  12. justify-content: space-between;
  13. align-items: center;
  14. margin-bottom: 5px;
  15. `;
  16. export const Item = styled('div')<{size?: string}>`
  17. width: ${props => props.size === 'small' ? '30px' : '40px'};
  18. height: ${props => props.size === 'small' ? '30px' : '40px'};
  19. border-radius: 4px;
  20. display: flex;
  21. justify-content: center;
  22. align-items: center;
  23. cursor: pointer;
  24. :hover {
  25. background-color: ${color['light-primary']};
  26. }
  27. `;
  28. export const Circle = styled('div')<{color: string}>`
  29. width: 16px;
  30. height: 16px;
  31. border-radius: 8px;
  32. background-color: ${props => color[props.color]};
  33. `;
  34. export const SliderWrapper = styled.div`
  35. padding: 5px 0;
  36. width: 178px;
  37. border-radius: 4px;
  38. border: solid 1px rgba(0, 0, 0, 0.12);
  39. `;