From ad97c0827c17c234cf3ff9cdd5e0a9471628ac3e Mon Sep 17 00:00:00 2001 From: Karina Bataeva Date: Tue, 7 Jul 2026 13:27:45 +0530 Subject: [PATCH] fix: Restore toast notification styles. --- css/index.css | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/css/index.css b/css/index.css index 1db3b97a..ee1ffd7d 100644 --- a/css/index.css +++ b/css/index.css @@ -5196,3 +5196,82 @@ body { .subject-sidebar-item:hover .delete-subject-btn { opacity: 1; } +.toast-container { + position: fixed; + top: 24px; + right: 24px; + z-index: 10000; + display: flex; + flex-direction: column; + gap: 12px; + pointer-events: none; +} + +.toast-notification { + pointer-events: auto; + display: flex; + align-items: center; + gap: 12px; + background: var(--color-background-primary); + color: var(--color-text-primary); + padding: 12px 16px; + border-radius: 12px; + box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); + border: 1px solid var(--color-border-secondary); + font-family: 'Inter', sans-serif; + font-size: 14px; + font-weight: 500; + animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; + max-width: 350px; + transform-origin: top right; +} + +.toast-notification.toast-hiding { + animation: toastSlideOut 0.2s ease-in forwards; +} + +.toast-icon { + font-size: 18px; + flex-shrink: 0; +} + +.toast-message { + flex-grow: 1; + line-height: 1.4; +} + +.toast-close { + background: none; + border: none; + color: var(--color-text-tertiary); + font-size: 18px; + cursor: pointer; + padding: 0; + margin-left: 8px; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + transition: color 0.2s; +} + +.toast-close:hover { + color: var(--color-text-primary); +} + +/* Toast Themes */ +.toast-success { border-left: 4px solid var(--color-text-success); } +.toast-error { border-left: 4px solid var(--color-text-danger); } +.toast-warning { border-left: 4px solid var(--color-text-warning); } +.toast-info { border-left: 4px solid var(--color-text-info); } + +@keyframes toastSlideIn { + from { opacity: 0; transform: translateY(-20px) scale(0.95); } + to { opacity: 1; transform: translateY(0) scale(1); } +} + +@keyframes toastSlideOut { + from { opacity: 1; transform: scale(1); } + to { opacity: 0; transform: scale(0.9); } +} +