libarea/resources/views/default/css/parts/_notifications.css

62 lines
837 B
CSS

/*
* @Pop-up notifications
*
* Всплывающие уведомеления
*/
.notice {
animation-name: toastEffect;
animation-timing-function: ease-in;
background-color: var(--gray);
border-radius: var(--border-radius);
box-shadow: 0px 5px 15px 0 rgba(221, 221, 221, 1);
color: var(--white);
display: inline-block;
padding: 2px 20px;
position: fixed;
text-align: center;
text-decoration: none;
z-index: 2147483647;
}
.notice-bottom {
bottom: 1rem;
}
.notice-center {
left: 0;
margin-left: auto;
margin-right: auto;
max-width: fit-content;
right: 0;
}
.notice-left {
left: 1rem;
}
.notice-right {
right: 1rem;
}
.notice-top {
top: 1rem;
}
@keyframes toastEffect {
0% {
opacity: 0;
}
100% {
opacity: 0;
}
20% {
opacity: 1;
}
80% {
opacity: 1;
}
}