Spaces:
Running
Running
File size: 5,803 Bytes
94004a2 | 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 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | /* ββ Floating Status Pill βββββββββββββββββββββββββββββββββββββββββββββββ
Always-on-top pill that tracks long-running operations (ASR model load,
dubbing progress, export).
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.floating-pill {
position: fixed;
top: 48px;
right: 16px;
z-index: var(--z-toast);
display: flex;
align-items: center;
gap: var(--space-4);
padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4);
min-width: 220px;
max-width: 360px;
background: var(--color-bg-elev-1);
backdrop-filter: var(--glass-blur-md);
-webkit-backdrop-filter: var(--glass-blur-md);
border: 1px solid var(--color-border-strong);
border-radius: var(--radius-pill);
box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.15);
font-family: var(--font-ui);
font-size: var(--text-sm);
color: var(--color-fg);
/* Slide-in animation */
animation: pill-enter 0.35s var(--ease-spring) both;
pointer-events: auto;
user-select: none;
cursor: default;
}
.floating-pill--exiting {
animation: pill-exit 0.25s var(--ease-out) both;
}
@keyframes pill-enter {
from {
opacity: 0;
transform: translateX(24px) scale(0.92);
filter: blur(4px);
}
to {
opacity: 1;
transform: translateX(0) scale(1);
filter: blur(0);
}
}
@keyframes pill-exit {
to {
opacity: 0;
transform: translateX(16px) scale(0.95);
filter: blur(2px);
}
}
@media (prefers-reduced-motion: reduce) {
.floating-pill { animation: none; opacity: 1; }
.floating-pill--exiting { animation: none; opacity: 0; }
}
/* ββ Stage indicator dot ββββββββββββββββββββββββββββββββββββββββββββββ */
.floating-pill__dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
animation: pill-dot-pulse 1.5s ease-in-out infinite;
}
.floating-pill__dot--loading-model { background: var(--color-accent); }
.floating-pill__dot--transcribing { background: var(--color-info); }
.floating-pill__dot--translating { background: var(--color-brand); }
.floating-pill__dot--generating { background: var(--color-warn); }
.floating-pill__dot--exporting { background: var(--color-success); }
.floating-pill__dot--refining { background: var(--color-info); }
.floating-pill__dot--recording { background: var(--color-danger); }
.floating-pill__dot--done { background: var(--color-success); animation: none; }
.floating-pill__dot--error { background: var(--color-danger); animation: none; }
@keyframes pill-dot-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.4; transform: scale(0.7); }
}
/* ββ Content area βββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.floating-pill__content {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.floating-pill__label {
font-weight: var(--weight-medium);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.floating-pill__meta {
display: flex;
align-items: center;
gap: var(--space-3);
font-size: var(--text-xs);
color: var(--color-fg-muted);
}
.floating-pill__timer {
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--color-fg-subtle);
letter-spacing: 0.03em;
}
.floating-pill__error {
font-size: var(--text-xs);
color: var(--color-danger);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ββ Mini progress bar ββββββββββββββββββββββββββββββββββββββββββββββββ */
.floating-pill__progress {
width: 100%;
height: 3px;
border-radius: 2px;
background: var(--color-bg-elev-2);
overflow: hidden;
margin-top: 2px;
}
.floating-pill__progress-fill {
height: 100%;
border-radius: 2px;
background: var(--color-brand);
transition: width 0.3s var(--ease-out);
}
.floating-pill__progress-fill--indeterminate {
width: 40% !important;
animation: pill-progress-sweep 1.4s ease-in-out infinite;
}
@keyframes pill-progress-sweep {
0% { transform: translateX(-100%); }
100% { transform: translateX(300%); }
}
/* ββ Dismiss button βββββββββββββββββββββββββββββββββββββββββββββββββββ */
.floating-pill__dismiss {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
border-radius: 50%;
border: none;
background: transparent;
color: var(--color-fg-subtle);
cursor: pointer;
flex-shrink: 0;
transition: background var(--dur-fast) var(--ease-out),
color var(--dur-fast) var(--ease-out);
}
.floating-pill__dismiss:hover {
background: rgba(255,255,255,0.08);
color: var(--color-fg);
}
/* ββ Done stage β green tint ββββββββββββββββββββββββββββββββββββββββββ */
.floating-pill--done {
border-color: rgba(142, 192, 124, 0.25);
}
.floating-pill--done .floating-pill__label {
color: var(--color-success);
}
/* ββ Error stage β red tint βββββββββββββββββββββββββββββββββββββββββββ */
.floating-pill--error {
border-color: rgba(251, 73, 52, 0.25);
}
|