MusicTopus/sass/toast.scss

42 lines
679 B
SCSS

#toastr {
visibility: hidden;
min-width: 250px;
margin-left: -125px;
background-color: rgb(156, 48, 48);
color: #fff;
text-align: left;
border-radius: 2px;
padding: 16px;
position: fixed;
z-index: 1;
right: 30px;
top: 30px;
font-size: 17px;
&.show {
visibility: visible;
animation: toastrFadein 0.5s, toastrFadeout 0.5s 2.5s;
}
}
@keyframes toastrFadein {
from {
top: 0;
opacity: 0;
}
to {
top: 30px;
opacity: 1;
}
}
@keyframes toastrFadeout {
from {
top: 30px;
opacity: 1;
}
to {
top: 0;
opacity: 0;
}
}