UNPKG

@essential-js/ui

Version:

EssentialJS UI

62 lines (59 loc) 1.22 kB
.essential__toasts { max-height: 100vh; position: fixed; display: grid; gap: 1rem; z-index: 999; } .essential__toasts .toast { border-radius: 10px; max-width: 300px; padding: 0.6rem 1.2rem 0.6rem 0.8rem; display: grid; grid-template-columns: 25px calc(100% - 25px); gap: 0.5rem; transform: translateY(50%); opacity: 1; align-items: center; } .essential__toasts .toast.loading { background-color: var(--info); } .essential__toasts .toast.enter { animation: toast-enter 300ms ease-in-out forwards; } .essential__toasts .toast.exit { animation: toast-exit 100ms ease-in-out forwards; } .essential__toasts .toast .icon { width: 25px; height: 25px; } .essential__toasts .toast.success { background: var(--success); } .essential__toasts .toast.info { background: var(--info); } .essential__toasts .toast.error { background: var(--error); } .essential__toasts .toast.warning { background: var(--warning); } .essential__toasts .toast.default { background: var(--default); } @keyframes toast-enter { to { transform: translateY(0); opacity: 1; } } @keyframes toast-exit { to { transform: translate(80%, 0); opacity: 0; } } /*# sourceMappingURL=toast.css.map*/