.mdl-notify {
  position: fixed;
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  z-index: 9999999;

  &__list {
    position: absolute;
    width: 270px;
    top: 20px;
    right: 20px;
  }

  &__container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
  }

  &__item {
    display: flex;
    flex-direction: column;
    width: 270px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: all 0.25s;

    &.info-type {
      background-color: #fff;
    }

    &:last-child {
      margin-bottom: 0;
    }

    &:hover {
      .progress-bar span {
        animation-play-state: paused;
      }
    }

    .progress-bar {
      position: absolute;
      display: flex;
      align-items: center;
      width: 100%;
      height: 2px;
      flex-shrink: 0;
      left: 0;
      bottom: 0;
      span {
        display: inline-block;
        height: 100%;
        width: 100%;
        animation: progress linear;
      }
    }

    .avatar {
      flex-shrink: 0;
      height: 100%;
      width: 64px;
      > span {
        display: block;
        width: 100%;
        height: 100%;
        background: none transparent no-repeat center center;
        background-size: cover;
      }
    }

    .body {
      display: flex;
      flex-direction: column;
      width: 100%;
      padding: 8px;
      font-size: 12px;

      .title {
        flex-shrink: 0;
        width: 100%;
        font-weight: 700;
        margin-bottom: 8px;
      }

      .content {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
        overflow: hidden;
      }
    }

    &.with-avatar,
    &.with-buttons {
      .body {
        width: calc(100% - 64px);
      }
    }

    &.with-avatar.with-buttons .body {
      width: calc(100% - 128px);
    }
  }

  &__buttons {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 64px;
    height: 100%;
    border-left: 1px solid #dfdfdf;

    .btn-item {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      flex-grow: 1;
      border-top: 1px solid #dfdfdf;
      cursor: pointer;
      user-select: none;

      &:first-child {
        border-top: none;
      }
    }
  }

  .notify-list-enter,
  .notify-list-leave-to {
    opacity: 0;
    transform: translateX(100px);
  }
  .notify-list-leave-active {
    position: absolute;
  }
}

@keyframes progress {
  0% {
    width: 0;
  }
  25% {
    width: 25%;
  }
  50% {
    width: 50%;
  }
  100% {
    width: 100%;
  }
}
