You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.3 KiB
71 lines
1.3 KiB
@keyframes enter-toast {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(100%);
|
|
}
|
|
to {
|
|
opacity: 100;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
@keyframes leave-toast {
|
|
to {
|
|
opacity: 0;
|
|
transform: translateX(100%);
|
|
}
|
|
from {
|
|
opacity: 100;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
#toast-container {
|
|
position: fixed;
|
|
top: 34px;
|
|
right: 15px;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
align-items: flex-end;
|
|
align-content: stretch;
|
|
row-gap: 4px;
|
|
justify-content: flex-end;
|
|
width: auto;
|
|
}
|
|
|
|
.toast {
|
|
border-radius: 5px;
|
|
background-color: #a172a6c2;
|
|
color: white;
|
|
animation: enter-toast .25s ease-out 1;
|
|
animation-fill-mode: both;
|
|
padding: 4px 6px;
|
|
border-color: #a172a6c2;
|
|
border-style: solid;
|
|
border-width: 1px;
|
|
transition: border-color .15s ease-in, background-color .15s ease-in;
|
|
max-width: 350px;
|
|
}
|
|
.toast:hover {
|
|
border-color: white;
|
|
}
|
|
|
|
.toast-entering {
|
|
animation: enter-toast .25s ease-out 1;
|
|
animation-fill-mode: both;
|
|
}
|
|
|
|
.toast-leaving {
|
|
animation: leave-toast .25s ease-out 1;
|
|
animation-fill-mode: both;
|
|
}
|
|
|
|
.toast p {
|
|
font-family: 'Montserrat', sans-serif;
|
|
margin: 8px;
|
|
}
|
|
|
|
.toast h2 {
|
|
font-size: 20px;
|
|
font-family: 'Nunito', sans-serif;
|
|
margin: 6px 0 2px 8px;
|
|
} |