@import '../style/var.less';
.fe-popup {
  position: fixed;
  max-height: 100%;
  overflow-y: auto;
  background-color: @popup-background-color;
  -webkit-overflow-scrolling: touch;
  transition: 0.3s ease-out;

  &-icon {
    position: absolute !important;
    z-index: @popup-close-icon-z-index;
    color: @popup-close-icon-color;
    font-size: @popup-close-icon-size;
    cursor: pointer;
    &:active {
      color: @popup-close-icon-active-color;
    }
    &-top-left {
      top: @popup-close-icon-margin;
      left: @popup-close-icon-margin;
    }
    &-top-right {
      top: @popup-close-icon-margin;
      right: @popup-close-icon-margin;
    }

    &-bottom-left {
      bottom: @popup-close-icon-margin;
      left: @popup-close-icon-margin;
    }

    &-bottom-right {
      right: @popup-close-icon-margin;
      bottom: @popup-close-icon-margin;
    }
  }

  &-center {
    top: 50%;
    left: 50%;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
  }

  &-top {
    top: 0;
    left: 0;
    width: 100%;
  }

  &-right {
    top: 50%;
    right: 0;
    transform: translate3d(0, -50%, 0);
  }

  &-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
  }

  &-left {
    top: 50%;
    left: 0;
    transform: translate3d(0, -50%, 0);
  }
  &-round {
    border-radius: @popup-round-border-radius @popup-round-border-radius 0 0;
  }
}
.fe-popup-slide-top-enter,
.fe-popup-slide-top-leave-active {
  transform: translate3d(0, -100%, 0);
}

.fe-popup-slide-right-enter,
.fe-popup-slide-right-leave-active {
  transform: translate3d(100%, -50%, 0);
}
.fe-popup-slide-bottom-enter,
.fe-popup-slide-bottom-leave-active {
  transform: translate3d(0, 100%, 0);
}

.fe-popup-slide-left-enter,
.fe-popup-slide-left-leave-active {
  transform: translate3d(-100%, -50%, 0);
}