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


$rem: 20px;

.toast {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  @include display-flex;
  @include justify-content(center);
  @include align-items(center);
}

.toast-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
}

.toast-view {
  max-width: 88%;
  max-height: 90%;
  margin-top: -50px;
  padding: .45 * $rem 2 * $rem;
  @include border-radius(.1 * $rem);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.toast-message {
  font-size: .7 * $rem;
  word-wrap: break-word;
  overflow: hidden;
}

// animation
// ----------------------------------------------------------
.toast {
  @include transition-property(opacity);
  @include transition-duration(400ms);
  .toast-view {
    @include transform(scale(1));
    @include transition-property(transform);
    @include transition-duration(400ms);
  }
  &.ng-enter, &.ng-leave-active {
    opacity: 0;
    .toast-view {
      @include transform(scale(1.115));
    }
  }
  &.ng-enter-active {
    opacity: 1;
    .toast-view {
      @include transform(scale(1));
    }
  }
}
