Spaces:
Sleeping
Sleeping
File size: 3,420 Bytes
fd52f31 |
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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
.workflow-toast {
background: rgba(30, 30, 40, 0.95);
backdrop-filter: blur(8px);
color: white;
padding: 0.75rem 1.25rem;
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
opacity: 0;
transform: translateY(20px);
animation: workflowToastIn 0.3s ease forwards, workflowToastOut 0.3s ease 4.7s forwards;
border: 1px solid rgba(255, 255, 255, 0.1);
min-width: 200px;
max-width: 400px;
margin: 0 auto;
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%) translateY(20px);
z-index: 10000;
}
.workflow-toast.visible {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
.workflow-toast-icon {
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
flex-shrink: 0;
}
.workflow-toast-message {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.workflow-toast.success {
border-left: 4px solid #22c55e;
}
.workflow-toast.success .workflow-toast-icon {
color: #22c55e;
}
.workflow-toast.error {
border-left: 4px solid #ef4444;
}
.workflow-toast.error .workflow-toast-icon {
color: #ef4444;
}
.workflow-toast.info {
border-left: 4px solid #3b82f6;
}
.workflow-toast.info .workflow-toast-icon {
color: #3b82f6;
}
/* Special styling for podcast toasts */
.workflow-toast.podcast-toast {
border-left: 4px solid #6366f1;
background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%), rgba(30, 30, 40, 0.95);
box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.3);
animation: none;
transform: translateX(-50%) translateY(0);
opacity: 1;
animation: workflowToastIn 0.4s ease forwards, workflowPodcastOut 0.5s ease 4.5s forwards;
}
.workflow-toast.podcast-toast .workflow-toast-icon {
color: #6366f1;
font-size: 1.3rem;
transform: scale(1);
animation: pulseIcon 2s infinite;
}
@keyframes pulseIcon {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
@keyframes workflowToastIn {
from {
opacity: 0;
transform: translateX(-50%) translateY(20px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
@keyframes workflowToastOut {
from {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
to {
opacity: 0;
transform: translateX(-50%) translateY(-20px);
}
}
@keyframes workflowPodcastOut {
from {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
to {
opacity: 0;
transform: translateX(-50%) translateY(-20px) rotate(-2deg);
}
}
/* Light theme adjustments */
:root[data-theme="light"] .workflow-toast {
background: rgba(255, 255, 255, 0.95);
color: #333;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(0, 0, 0, 0.05);
}
:root[data-theme="light"] .workflow-toast.podcast-toast {
background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%), rgba(255, 255, 255, 0.95);
box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.2);
} |