Setting toastr opacity?

RobVious picture RobVious · Jul 14, 2013 · Viewed 19.8k times · Source

Is there any way to change it? I tried defining the toastClass as a class with opacity set to 1, but saw no changes:

.toast-style{
   opacity: 1;
}

toastr.options.toastClass = 'toast-style';

Answer

John Papa picture John Papa · Jul 14, 2013

No JavaScript required for this. You should be able to change this in CSS using either

#toast-container > div {
    opacity:1;
}

or

.toast {
    opacity: 1 !important;
}