_ngx-toastr.scss 1.55 KB
Newer Older
DESKTOP-HF0LVOG\myhr committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104

.toast-container{
  width: 100%;

  .toast-close-button {
    font-weight: 300;
    text-shadow: none;
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -14px;
    width: 25px;
    height: 25px;

    &:focus{
      outline: none;
    }

    &:hover{
      opacity: 1;
      color: $white;
    }

    & > span {
      display: none;
    }

    &:before{
      display: block;
      display: inline-block;
      font: normal normal normal 1em/1 'Nucleo';
      font-size: inherit;
      speak: none;
      text-transform: none;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      font-size: 20px;
      content: "\ea48";
      font-weight: 300;
    }
  }

  .alert{
    z-index: 9999;
    width: 33.3333%;
    pointer-events: auto;

    .toast-message {
      max-width: 89%;
    }

    &.alert-with-icon{
      .tim-icons{
        position: absolute;
        left: 24px;
        top: 50%;
        margin-top: -14px;
        font-size: 24px;
      }
    }
  }

  .toast-error{
    background-image: none;
  }

  .toast-success{
    background-image: none;
  }

  .toast-info{
    background-image: none;
  }

  .toast-warning{
    background-image: none;
  }
}
.toast-top-center, .toast-bottom-center{
 .alert{
    margin-left: auto;
    margin-right: auto;
  }
}
.toast-top-right, .toast-bottom-right{
 .alert{
    margin-left: auto;
    margin-right: 0;
  }
}

.toast-top-center{
  top: 12px;
}

.toast-bottom-center{
  bottom: 12px;
}

@media screen and (max-width: 767px) {
  .toast-container .alert{
    width: 91.6666%;
  }
}