.ui-toast {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 30px;
  left: 0;
  right: 0;
  min-width: 100px;
  height: 100px;
  overflow: hidden;
  pointer-events: none;
}
.ui-toast__box {
  color: #fff;
  font-size: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba($color: #1a1a1a, $alpha: 0.8);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  border: 1px solid #000000;
  padding: 8px 20px;
  pointer-events: all;

  &.fixed,
  &.success,
  &.error,
  &.warn {
    i {
      display: inline-block;
    }
  }
  &.success {
    .icon {
      background-image: url('#{$img-base-path}icon/toast-success.png');
    }
  }
  &.error {
    .icon {
      background-image: url('#{$img-base-path}icon/toast-error.png');
    }
  }
  &.warn {
    .icon {
      background-image: url('#{$img-base-path}icon/toast-warn.png');
    }
  }
  &::after {
    content: '';
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 1px;
    top: 1px;
    border: 1px solid rgba($color: #fff, $alpha: 0.1);
    border-radius: 4px;
    z-index: 0;
    pointer-events: none;
  }

  // >i{
  //     display: none;
  // }

  .icon {
    margin-right: 10px;
    font-size: 0;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }
  .close {
    cursor: pointer;
    font-size: 14px;
    margin-left: 20px;
  }
}
.ui-toast__msg {
  display: flex;
  align-items: center;
  img {
    width: 24px;
    height: 24px;
  }
}
