@import '@comfyorg/design-system/css/style.css';

/* Use 0.001ms instead of 0s so transitionend/animationend events still fire
   and JS listeners aren't broken. */
.disable-animations *,
.disable-animations *::before,
.disable-animations *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}

@media (prefers-reduced-motion: no-preference) {
  /* List transition animations */
  .list-scale-move,
  .list-scale-enter-active,
  .list-scale-leave-active {
    transition:
      opacity 150ms ease,
      transform 150ms ease;
  }

  .list-scale-enter-from,
  .list-scale-leave-to {
    opacity: 0;
    transform: scale(70%);
  }

  .list-scale-leave-active {
    position: absolute;
    width: 100%;
  }
}
