Toast.scss 905 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @import "../css/variables.module";
  2. .excalidraw {
  3. .Toast {
  4. $closeButtonSize: 1.2rem;
  5. $closeButtonPadding: 0.4rem;
  6. animation: fade-in 0.5s;
  7. background-color: var(--button-gray-1);
  8. border-radius: 4px;
  9. bottom: 10px;
  10. box-sizing: border-box;
  11. cursor: default;
  12. left: 50%;
  13. margin-left: -150px;
  14. padding: 4px 0;
  15. position: absolute;
  16. text-align: center;
  17. width: 300px;
  18. z-index: 999999;
  19. .Toast__message {
  20. padding: 0 $closeButtonSize + ($closeButtonPadding);
  21. color: var(--popup-text-color);
  22. white-space: pre-wrap;
  23. }
  24. .close {
  25. position: absolute;
  26. top: 0;
  27. right: 0;
  28. padding: $closeButtonPadding;
  29. .ToolIcon__icon {
  30. width: $closeButtonSize;
  31. height: $closeButtonSize;
  32. }
  33. }
  34. }
  35. @keyframes fade-in {
  36. from {
  37. opacity: 0;
  38. }
  39. to {
  40. opacity: 1;
  41. }
  42. }
  43. }