@font-face {
  font-family: 'icomoonFont';
  src:  url('./fonts/icomoon.eot?tha90q');
  src:  url('./fonts/icomoon.eot?tha90q#iefix') format('embedded-opentype'),
    url('./fonts/icomoon.ttf?tha90q') format('truetype'),
    url('./fonts/icomoon.woff?tha90q') format('woff'),
    url('./fonts/icomoon.svg?tha90q#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}
.notification-bg {
  position: fixed;
  z-index: 9999;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;

  &.top-left {
    left: 20px;
    top: 20px;
  }

  &.top-center {
    left: 0px;
    top: 20px;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  &.top-right {
    right: 20px;
    top: 20px;
  }

  &.center {
    left: 0;
    top: 0;
    margin-top: calc(50vh - 32px);
    margin-left: 50%;
    transform: translateX(-50%);
  }

  &.bottom-left {
    left: 20px;
    bottom: 20px;
  }

  &.bottom-center {
    left: 0;
    bottom: 0;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  &.bottom-right {
    right: 20px;
    bottom: 20px;
  }

  @keyframes notificationShow {
    0% {
      opacity: 0;
      right: -400px;
    }

    20% {
      opacity: 0;
      right: 0;
    }

    100% {
      opacity: 1;
      right: 0;
    }
  }

  @keyframes notificationHide {
    0% {
      opacity: 1;
    }

    30% {
      opacity: 0;
    }

    100% {
      height: 0;
      opacity: 0;
      padding: 0;
      margin: 0;
    }
  }

  .notification-item {
    min-width: 288px;
    max-width: 400px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 0 21px 0 rgba(0,0,0,.35);
    padding: 18px 24px 18px 74px;
    font-size: 14px;
    line-height: 26px;
    color: #fff;
    animation: notificationShow .3s both ease;
    user-select: none;
    box-sizing: border-box;
    position: relative;
  }

  .notification-item-success {
    background-color: #61b26c;
  }

  .notification-item-warning {
    background-color: #f89e35;
  }

  .notification-item-info {
    background-color: #a085bb;
  }

  .notification-item-error {
    background-color: #f16464;
  }

  .will-close {
    animation: notificationHide .2s both ease-in-out;
  }

  .notification-icon {
    font: normal normal normal 26px icomoonFont;
    position: absolute;
    left: 24px;
    line-height: 1;
    color: #fff;
    text-align: center;
  }

  .icomoon-success::before {
    content: "\e900";
  }

  .icomoon-warning::before {
    content: "\e903";
  }

  .icomoon-info::before {
    content: "\e901";
  }

  .icomoon-error::before {
    content: "\e902";
  }

  .close-button {
    position: absolute;
    right: 2px;
    top: 2px;
    height: 20px;
    width: 20px;
    line-height: 20px;
    text-align: center;
    transform: rotate(45deg);
    font-size: 20px;
  }

}