You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import styled from 'styles'
  2. export const IconButton = styled('button', {
  3. height: '32px',
  4. width: '32px',
  5. backgroundColor: '$panel',
  6. borderRadius: '4px',
  7. padding: '0',
  8. margin: '0',
  9. display: 'flex',
  10. alignItems: 'center',
  11. justifyContent: 'center',
  12. outline: 'none',
  13. border: 'none',
  14. pointerEvents: 'all',
  15. cursor: 'pointer',
  16. '&:hover:not(:disabled)': {
  17. backgroundColor: '$hover',
  18. },
  19. '&:disabled': {
  20. opacity: '0.5',
  21. },
  22. '& > svg': {
  23. height: '16px',
  24. width: '16px',
  25. // strokeWidth: '2px',
  26. // stroke: '$text',
  27. },
  28. variants: {
  29. size: {
  30. medium: {
  31. height: 44,
  32. width: 44,
  33. '& svg': {
  34. height: 16,
  35. width: 16,
  36. strokeWidth: 0,
  37. },
  38. },
  39. large: {
  40. height: 44,
  41. width: 44,
  42. '& svg': {
  43. height: 24,
  44. width: 24,
  45. strokeWidth: 0,
  46. },
  47. },
  48. },
  49. isActive: {
  50. true: {
  51. color: '$selected',
  52. },
  53. },
  54. },
  55. })