_DeleteButton.scss 906 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // sets a fixed width so that the rest of the table
  2. // isn't affected by the animation
  3. .delete-button-container {
  4. width: 24px;
  5. direction: rtl;
  6. display: flex;
  7. align-items: center;
  8. }
  9. //this container is used to make sure confirm-delete isn't
  10. //shown outside of table
  11. .confirm-delete-container {
  12. overflow: hidden;
  13. width: 145px;
  14. position: absolute;
  15. z-index: 1;
  16. }
  17. .delete-button {
  18. position: absolute;
  19. &.show {
  20. opacity: 1;
  21. transition: opacity 0.1s ease;
  22. z-index: 2;
  23. }
  24. &.hide {
  25. opacity: 0;
  26. transition: opacity 0.1s ease;
  27. z-index: 0;
  28. }
  29. }
  30. .confirm-delete {
  31. display: flex;
  32. align-items: flex-start;
  33. &.show {
  34. opacity: 1;
  35. transition: opacity 0.08s ease-out, transform 0.1s ease-out;
  36. transform: translateX(0);
  37. }
  38. &.hide {
  39. opacity: 0;
  40. transition: opacity 0.12s ease-in, transform 0.14s ease-in;
  41. transform: translateX(100px);
  42. }
  43. }