@use '../../../style/color/index.scss' as *;
@use '../../../style/utils/notification/index.scss' as *;

.ver-notification {
  width: 330px;
  height: auto;
  padding: 14px 26px 14px 13px;
  border-radius: 8px;
  border: 1px solid $ver-zinc-1;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
  background-color: $ver-zinc-1;
  overflow: hidden;
  overflow-wrap: anywhere;
  z-index: 2010;
  .dark & {
    border: 1px solid $ver-zinc-7;
    background-color: $ver-zinc-8;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
  }

  &-top {
    display: inline-flex;
    align-items: center;

    .ver-notification-title {
      font-weight: 700;
      font-size: 16px;
      line-height: 24px;
      margin: 0px 0.25rem;
      border: none;
      padding: 0;

      .dark & {
        color: $ver-zinc-1;
      }
    }
  }

  &-content {
    margin-top: 6px 0 0;
    font-size: 14px;
    line-height: 24px;
    text-align: justify;

    .dark & {
      color: $ver-zinc-1;
    }
  }
  &-closebtn {
    position: absolute;
    top: 18px;
    right: 15px;
    cursor: pointer;
    color: #909399;
    font-size: 16px;
  }
}

// plain
@include notificationPlainType('success', $ver-green-1, $ver-green-5);
@include notificationPlainType('error', $ver-red-1, $ver-red-5);
@include notificationPlainType('info', $ver-zinc-1, $ver-zinc-5);
@include notificationPlainType('warning', $ver-orange-1, $ver-orange-5);

// 动画
.slide-fade-enter-active,
.slide-fade-leave-active {
  transition: all 0.5s;
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translatex(20px);
}
