_modal.scss 657 B

12345678910111213141516171819202122232425262728293031323334
  1. .modal {
  2. position: fixed;
  3. z-index: 1;
  4. left: 0;
  5. top: 0;
  6. display: flex;
  7. align-items: center;
  8. justify-content: center;
  9. height: 100vh;
  10. width: 100vw;
  11. background-color: rgba($color: $black, $alpha: 0.5);
  12. opacity: 0;
  13. transition: opacity 0.3s ease;
  14. pointer-events: none;
  15. padding: 10px;
  16. &.active {
  17. pointer-events: all;
  18. opacity: 1;
  19. .modal__content {
  20. transform: scale(1);
  21. }
  22. }
  23. }
  24. .modal__content {
  25. padding: 20px;
  26. border-radius: 15px;
  27. background-color: $white;
  28. min-width: 300px;
  29. transform: scale(0.5);
  30. transition: transform 0.3s ease;
  31. }