toast.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @use 'variables';
  2. @import 'functions';
  3. .toastify.toast {
  4. min-width: 200px;
  5. background: none;
  6. background-color: var(--color-main-background);
  7. color: var(--color-main-text);
  8. box-shadow: 0 0 6px 0 var(--color-box-shadow);
  9. padding: 12px;
  10. padding-right: 34px;
  11. margin-top: 45px;
  12. position: fixed;
  13. z-index: 9000;
  14. border-radius: var(--border-radius);
  15. .toast-close {
  16. position: absolute;
  17. top: 0;
  18. right: 0;
  19. width: 38px;
  20. opacity: 0.4;
  21. padding: 12px;
  22. @include icon-color('close', 'actions', variables.$color-black, 2, true);
  23. background-position: center;
  24. background-repeat: no-repeat;
  25. text-indent: 200%;
  26. white-space: nowrap;
  27. overflow: hidden;
  28. &:hover, &:focus, &:active {
  29. cursor: pointer;
  30. opacity: 1;
  31. }
  32. }
  33. }
  34. .toastify.toastify-top {
  35. right: 10px;
  36. }
  37. .toast-error {
  38. border-left: 3px solid var(--color-error);
  39. }
  40. .toast-info {
  41. border-left: 3px solid var(--color-primary);
  42. }
  43. .toast-warning {
  44. border-left: 3px solid var(--color-warning);
  45. }
  46. .toast-success {
  47. border-left: 3px solid var(--color-success);
  48. }