fixed code
This commit is contained in:
@@ -75,3 +75,44 @@
|
||||
border: 2px solid rgba(var(--teal-rgb), .2); border-top-color: var(--teal);
|
||||
border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
|
||||
}
|
||||
|
||||
.f-toast {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 16px;
|
||||
border-radius: 8px;
|
||||
font-size: .9rem;
|
||||
color: #fff;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
|
||||
z-index: 1000;
|
||||
animation: f-toast-in .2s ease-out;
|
||||
}
|
||||
|
||||
.f-toast-error {
|
||||
background: #e5484d;
|
||||
}
|
||||
|
||||
.f-toast-success {
|
||||
background: #2de0c8;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
|
||||
.f-toast-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
font-size: 1.1rem;
|
||||
line-height: 1;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@keyframes f-toast-in {
|
||||
from { opacity: 0; transform: translate(-50%, 8px); }
|
||||
to { opacity: 1; transform: translate(-50%, 0); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user