button.module.scss 981 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .icon-button {
  2. background-color: var(--white);
  3. border-radius: 10px;
  4. display: flex;
  5. align-items: center;
  6. justify-content: center;
  7. padding: 10px;
  8. cursor: pointer;
  9. transition: all 0.3s ease;
  10. overflow: hidden;
  11. user-select: none;
  12. outline: none;
  13. border: none;
  14. color: var(--black);
  15. &[disabled] {
  16. cursor: not-allowed;
  17. opacity: 0.5;
  18. }
  19. &.primary {
  20. background-color: var(--primary);
  21. color: white;
  22. path {
  23. fill: white !important;
  24. }
  25. }
  26. }
  27. .shadow {
  28. box-shadow: var(--card-shadow);
  29. }
  30. .border {
  31. border: var(--border-in-light);
  32. }
  33. .icon-button:hover {
  34. border-color: var(--primary);
  35. }
  36. .icon-button-icon {
  37. width: 16px;
  38. height: 16px;
  39. display: flex;
  40. justify-content: center;
  41. align-items: center;
  42. }
  43. @media only screen and (max-width: 600px) {
  44. .icon-button {
  45. padding: 16px;
  46. }
  47. }
  48. .icon-button-text {
  49. margin-left: 5px;
  50. font-size: 12px;
  51. overflow: hidden;
  52. text-overflow: ellipsis;
  53. white-space: nowrap;
  54. }