button.module.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. &.danger {
  27. color: rgba($color: red, $alpha: 0.8);
  28. border-color: rgba($color: red, $alpha: 0.5);
  29. background-color: rgba($color: red, $alpha: 0.05);
  30. &:hover {
  31. border-color: red;
  32. background-color: rgba($color: red, $alpha: 0.1);
  33. }
  34. path {
  35. fill: red !important;
  36. }
  37. }
  38. &:hover,
  39. &:focus {
  40. border-color: var(--primary);
  41. }
  42. }
  43. .shadow {
  44. box-shadow: var(--card-shadow);
  45. }
  46. .border {
  47. border: var(--border-in-light);
  48. }
  49. .icon-button-icon {
  50. width: 16px;
  51. height: 16px;
  52. display: flex;
  53. justify-content: center;
  54. align-items: center;
  55. }
  56. @media only screen and (max-width: 600px) {
  57. .icon-button {
  58. padding: 16px;
  59. }
  60. }
  61. .icon-button-text {
  62. font-size: 12px;
  63. overflow: hidden;
  64. text-overflow: ellipsis;
  65. white-space: nowrap;
  66. &:not(:first-child) {
  67. margin-left: 5px;
  68. }
  69. }