Spaces:
Paused
Paused
File size: 1,692 Bytes
8d1819a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
#toast {
position: relative;
width: 100%;
background-color: #333;
font-family: "Rubik", Arial, Helvetica, sans-serif;
color: #fff;
padding: 0.6rem 0.9rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
display: none;
align-items: center;
z-index: 1000;
transform: translateY(100%);
transition: transform 0.4s cubic-bezier(0.19, 0.86, 0.47, 1), background-color 0.3s ease;
will-change: transform;
}
.toast__content {
display: flex;
flex-direction: column;
flex-grow: 1;
margin-left: var(--spacing-xs);
margin-right: 16px;
}
.toast__title {
font-size: 0.6rem;
color: #fff;
opacity: 0.7;
margin-bottom: 0.3rem;
}
.toast__separator {
height: 1px;
background: rgba(255, 255, 255, 0.15);
margin-bottom: 0.3rem;
}
.toast__message {
margin: 0;
/* max-width: 320px; */
text-overflow: ellipsis !important;
}
#toast.show {
display: flex;
transform: translateY(0);
}
#toast.hide {
transform: translateY(100%);
}
#toast.toast--success {
background-color: #4CAF50;
}
#toast.toast--error {
background-color: #731811;
}
#toast.toast--info {
background-color: #2196F3;
}
.toast__close,
.toast__copy {
background-color: transparent;
border: none;
font-family: "Rubik", Arial, Helvetica, sans-serif;
color: #fff;
cursor: pointer;
font-size: 16px;
margin-left: 8px;
opacity: 0.8;
transition: opacity 0.2s ease;
}
.toast__close:hover,
.toast__copy:hover {
opacity: 1;
}
/* Animations */
@keyframes toastIn {
from {
transform: translateY(100%);
}
to {
transform: translateY(0);
}
}
@keyframes toastOut {
from {
transform: translateY(0);
}
to {
transform: translateY(100%);
}
} |