@charset "UTF-8";
@import "../../theme/variables";
@import "~@jereation/sass-helpers/_mixins";

.vui-popover {
  position: fixed;
  z-index: map-get($popover, z-index);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vui-popover, .vui-popover-backdrop {
  @include transition-duration(400ms);
}

.vui-popover-backdrop, .vui-popover-view {
  @include transition-property(opacity);
}

.vui-popover-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.vui-popover-view {
  position: absolute;
  top: 0;
  max-width: 88%;
  max-height: 90%;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  @include transition-duration(300ms);
}

// animation normal
// -----------------------------------------
.vui-popover{
  @include transition-property(opacity);
  @include transition-duration(400ms);
  .vui-popover-backdrop,.vui-popover-view {
    @include transition-property(opacity);
    @include transition-duration(400ms);
  }
  &.vui-popover-enter, &.vui-popover-leave-active {
    opacity: 0;
    .vui-popover-backdrop, .vui-popover-view {
      opacity: 0;
    }
  }
  &.vui-popover-enter-to {
    opacity: 1;
    .vui-popover-backdrop, .vui-popover-view {
      opacity: 1;
    }
  }
}
