44 lines
No EOL
718 B
SCSS
44 lines
No EOL
718 B
SCSS
#toast {
|
|
visibility: hidden;
|
|
max-width: 300px;
|
|
margin-left: -125px;
|
|
background-color: black;
|
|
text-align: center;
|
|
border-radius: 2px;
|
|
padding: 16px; // TODO: 'rem' better?
|
|
position: fixed;
|
|
z-index: 1;
|
|
left: 50%;
|
|
bottom: 30px;
|
|
box-shadow: -1px 1px 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
#toast.show {
|
|
visibility: visible;
|
|
animation: fadein 0.5s, fadeout 0.5s 3.6s;
|
|
animation-iteration-count: 1;
|
|
}
|
|
|
|
@keyframes fadein {
|
|
from {
|
|
bottom: 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
bottom: 30px;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes fadeout {
|
|
from {
|
|
bottom: 30px;
|
|
opacity: 1;
|
|
}
|
|
|
|
to {
|
|
bottom: 0;
|
|
opacity: 0;
|
|
}
|
|
} |