| 1 | /* =========================================================
|
| 2 | DRAG-MOVE & ICON PREVIEW — real-icon lift styles
|
| 3 | ========================================================= */
|
| 4 |
|
| 5 | /* Item being actively dragged: lifted shadow + accent border */
|
| 6 | .file-item.dragging,
|
| 7 | .file-item.dragging:hover,
|
| 8 | .file-item.dragging.selected {
|
| 9 | background: transparent !important;
|
| 10 | border-color: transparent !important;
|
| 11 | box-shadow: none;
|
| 12 | z-index: 9999;
|
| 13 | cursor: grabbing !important;
|
| 14 | }
|
| 15 |
|
| 16 | .file-item.dragging .icon,
|
| 17 | .file-item.dragging .name {
|
| 18 | filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
|
| 19 | }
|
| 20 |
|
| 21 | /* Folder highlighted while a dragged item hovers over it */
|
| 22 | .file-item.drop-target .icon {
|
| 23 | filter: drop-shadow(0 0 6px var(--accent, #5b7fff)) brightness(1.25);
|
| 24 | }
|
| 25 |
|
| 26 | .drag-parent-target {
|
| 27 | position: fixed;
|
| 28 | left: 16px;
|
| 29 | top: 68px;
|
| 30 | z-index: 10002;
|
| 31 | display: inline-flex;
|
| 32 | align-items: center;
|
| 33 | gap: 0.45rem;
|
| 34 | padding: 0.45rem 0.65rem;
|
| 35 | border: 1px solid var(--border, #2e3247);
|
| 36 | border-radius: 8px;
|
| 37 | background: var(--surface, #1a1d27);
|
| 38 | color: var(--text, #e8eaf0);
|
| 39 | pointer-events: auto;
|
| 40 | user-select: none;
|
| 41 | box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
|
| 42 | }
|
| 43 |
|
| 44 | .drag-parent-target .up {
|
| 45 | color: var(--accent, #5b7fff);
|
| 46 | font-weight: 700;
|
| 47 | }
|
| 48 |
|
| 49 | .drag-parent-target .label {
|
| 50 | font-size: 0.82rem;
|
| 51 | }
|
| 52 |
|
| 53 | .drag-parent-target.active {
|
| 54 | border-color: var(--accent, #5b7fff);
|
| 55 | box-shadow: 0 0 0 2px rgba(91, 127, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.5);
|
| 56 | }
|
| 57 |
|
| 58 | .crumb-drop-target.active {
|
| 59 | color: var(--accent, #5b7fff) !important;
|
| 60 | text-decoration: underline;
|
| 61 | text-underline-offset: 0.2rem;
|
| 62 | }
|
| 63 |
|
| 64 | /* ---- drop animation: rises, spins, falls into folder ---- */
|
| 65 | /* --dx / --dy : current viewport X/Y of the item when released */
|
| 66 | /* --fall-x / --fall-y : viewport position of the target folder */
|
| 67 | @keyframes drag-rise-spin-fall {
|
| 68 | 0% {
|
| 69 | transform: translate(var(--dx), var(--dy)) scale(1) rotate(0deg);
|
| 70 | opacity: 1;
|
| 71 | }
|
| 72 |
|
| 73 | 20% {
|
| 74 | transform: translate(var(--dx), calc(var(--dy) - 40px)) scale(1.05) rotate(60deg);
|
| 75 | opacity: 1;
|
| 76 | }
|
| 77 |
|
| 78 | 60% {
|
| 79 | transform: translate(var(--fall-x), calc(var(--fall-y) - 20px)) scale(0.5) rotate(200deg);
|
| 80 | opacity: 0.9;
|
| 81 | }
|
| 82 |
|
| 83 | 100% {
|
| 84 | transform: translate(var(--fall-x), var(--fall-y)) scale(0.05) rotate(360deg);
|
| 85 | opacity: 0;
|
| 86 | }
|
| 87 | }
|
| 88 |
|
| 89 | .file-item.dropping {
|
| 90 | animation: drag-rise-spin-fall 0.45s cubic-bezier(0.4, 0, 0.8, 1) forwards;
|
| 91 | pointer-events: none;
|
| 92 | }
|
| 93 |
|
| 94 | /* ---- bounce animation on the target folder ---- */
|
| 95 | @keyframes folder-bounce {
|
| 96 | 0% {
|
| 97 | transform: translateY(0);
|
| 98 | }
|
| 99 |
|
| 100 | 30% {
|
| 101 | transform: translateY(8px);
|
| 102 | }
|
| 103 |
|
| 104 | 65% {
|
| 105 | transform: translateY(-4px);
|
| 106 | }
|
| 107 |
|
| 108 | 85% {
|
| 109 | transform: translateY(2px);
|
| 110 | }
|
| 111 |
|
| 112 | 100% {
|
| 113 | transform: translateY(0);
|
| 114 | }
|
| 115 | }
|
| 116 |
|
| 117 | .file-item.folder-bounce {
|
| 118 | animation: folder-bounce 0.4s ease-out forwards;
|
| 119 | }
|
| 120 |
|
| 121 | /* =========================================================
|
| 122 | EXPANDED PREVIEW TILE
|
| 123 | The real .file-item element scales up in place to fill the
|
| 124 | viewport — no separate overlay.
|
| 125 | ========================================================= */
|
| 126 |
|
| 127 | /* Dimming backdrop behind the expanded tile */
|
| 128 | .preview-backdrop {
|
| 129 | position: fixed;
|
| 130 | inset: 0;
|
| 131 | z-index: 9999;
|
| 132 | background: rgba(8, 9, 14, 0.82);
|
| 133 | opacity: 0;
|
| 134 | transition: opacity 0.3s ease;
|
| 135 | pointer-events: none;
|
| 136 | }
|
| 137 |
|
| 138 | .preview-backdrop.visible {
|
| 139 | opacity: 1;
|
| 140 | pointer-events: all;
|
| 141 | }
|
| 142 |
|
| 143 | /* .file-item in expanded preview state */
|
| 144 | .file-item.file-item--preview {
|
| 145 | background: var(--surface, #1a1d27) !important;
|
| 146 | border: 2px solid var(--preview-accent, var(--border, #2e3247)) !important;
|
| 147 | border-radius: 12px !important;
|
| 148 | cursor: default !important;
|
| 149 | user-select: text;
|
| 150 | display: flex !important;
|
| 151 | flex-direction: column !important;
|
| 152 | overflow: hidden;
|
| 153 | padding: 0 !important;
|
| 154 | gap: 0 !important;
|
| 155 | z-index: 10000;
|
| 156 | }
|
| 157 |
|
| 158 | .file-item.file-item--preview .icon {
|
| 159 | width: 100% !important;
|
| 160 | height: auto !important;
|
| 161 | position: relative;
|
| 162 | flex: 1;
|
| 163 | min-height: 0;
|
| 164 | display: flex !important;
|
| 165 | align-items: center;
|
| 166 | justify-content: center;
|
| 167 | overflow: auto;
|
| 168 | padding: 1rem 1rem 0.75rem;
|
| 169 | box-sizing: border-box;
|
| 170 | }
|
| 171 |
|
| 172 | .file-item.file-item--preview .icon .preview-expand-outline {
|
| 173 | position: absolute;
|
| 174 | left: 50%;
|
| 175 | top: 50%;
|
| 176 | width: min(72%, 640px);
|
| 177 | height: min(72%, 640px);
|
| 178 | transform: translate(-50%, -50%);
|
| 179 | opacity: 0.18;
|
| 180 | pointer-events: none;
|
| 181 | z-index: 1;
|
| 182 | filter: drop-shadow(0 0 10px var(--preview-accent, transparent));
|
| 183 | }
|
| 184 |
|
| 185 | .file-item.file-item--preview .icon .preview-expand-content {
|
| 186 | position: relative;
|
| 187 | z-index: 2;
|
| 188 | width: 100%;
|
| 189 | height: 100%;
|
| 190 | min-height: 0;
|
| 191 | display: flex;
|
| 192 | align-items: center;
|
| 193 | justify-content: center;
|
| 194 | }
|
| 195 |
|
| 196 | .file-item.file-item--preview .icon .preview-expand-content--video {
|
| 197 | align-self: stretch;
|
| 198 | overflow: hidden;
|
| 199 | }
|
| 200 |
|
| 201 | /* Keep preview media constrained within the expanded icon */
|
| 202 | .file-item.file-item--preview .icon .preview-media {
|
| 203 | max-width: 100%;
|
| 204 | max-height: 100%;
|
| 205 | width: auto;
|
| 206 | height: auto;
|
| 207 | object-fit: contain;
|
| 208 | }
|
| 209 |
|
| 210 | .file-item.file-item--preview .icon .preview-video-js {
|
| 211 | width: 100% !important;
|
| 212 | height: 100% !important;
|
| 213 | max-height: 100%;
|
| 214 | background: transparent;
|
| 215 | }
|
| 216 |
|
| 217 | .file-item.file-item--preview .icon .preview-video-js .vjs-tech {
|
| 218 | object-fit: contain;
|
| 219 | }
|
| 220 |
|
| 221 | .file-item.file-item--preview .icon .preview-frame {
|
| 222 | width: 100%;
|
| 223 | height: 100%;
|
| 224 | border: none;
|
| 225 | border-radius: 8px;
|
| 226 | background: #fff;
|
| 227 | }
|
| 228 |
|
| 229 | .file-item.file-item--preview .icon .preview-text {
|
| 230 | width: 100%;
|
| 231 | min-height: auto;
|
| 232 | flex: 1;
|
| 233 | align-self: stretch;
|
| 234 | }
|
| 235 |
|
| 236 | .file-item.file-item--preview .icon .preview-audio {
|
| 237 | width: min(640px, 95%);
|
| 238 | }
|
| 239 |
|
| 240 | .file-item.file-item--preview .icon .preview-unsupported {
|
| 241 | color: var(--text-muted);
|
| 242 | font-size: 0.95rem;
|
| 243 | max-width: 56ch;
|
| 244 | text-align: center;
|
| 245 | }
|
| 246 |
|
| 247 | /* Filename bar shown at top of expanded preview */
|
| 248 | .preview-expand-title {
|
| 249 | padding: 0.7rem 3.5rem 0.7rem 1rem;
|
| 250 | font-size: 0.95rem;
|
| 251 | color: var(--text);
|
| 252 | border-bottom: 1px solid var(--border);
|
| 253 | white-space: nowrap;
|
| 254 | overflow: hidden;
|
| 255 | text-overflow: ellipsis;
|
| 256 | flex-shrink: 0;
|
| 257 | }
|
| 258 |
|
| 259 | /* Close button (×) — top-right corner */
|
| 260 | .preview-expand-close {
|
| 261 | position: absolute;
|
| 262 | top: 8px;
|
| 263 | right: 8px;
|
| 264 | width: 30px;
|
| 265 | height: 30px;
|
| 266 | background: rgba(20, 25, 40, 0.8);
|
| 267 | color: #d6deef;
|
| 268 | border: 1px solid rgba(255, 255, 255, 0.15);
|
| 269 | border-radius: 50%;
|
| 270 | cursor: pointer;
|
| 271 | font-size: 1.2rem;
|
| 272 | z-index: 10001;
|
| 273 | display: flex;
|
| 274 | align-items: center;
|
| 275 | justify-content: center;
|
| 276 | line-height: 1;
|
| 277 | padding: 0;
|
| 278 | transition: background 0.15s ease;
|
| 279 | flex-shrink: 0;
|
| 280 | }
|
| 281 |
|
| 282 | .preview-expand-close:hover {
|
| 283 | background: rgba(255, 255, 255, 0.14);
|
| 284 | }
|
| 285 |
|
| 286 | /* Action row below the preview content */
|
| 287 | .preview-expand-actions {
|
| 288 | display: flex;
|
| 289 | justify-content: flex-end;
|
| 290 | gap: 0.65rem;
|
| 291 | padding: 0 1rem 1rem;
|
| 292 | border-top: 1px solid rgba(46, 50, 71, 0.9);
|
| 293 | background: linear-gradient(180deg, rgba(26, 29, 39, 0) 0%, rgba(26, 29, 39, 0.92) 42%);
|
| 294 | flex-shrink: 0;
|
| 295 | }
|
| 296 |
|
| 297 | .preview-expand-download,
|
| 298 | .preview-expand-share {
|
| 299 | background: var(--accent, #5b7fff);
|
| 300 | color: #fff;
|
| 301 | border: none;
|
| 302 | border-radius: 6px;
|
| 303 | padding: 7px 18px;
|
| 304 | cursor: pointer;
|
| 305 | font-size: 0.9rem;
|
| 306 | transition: opacity 0.15s ease;
|
| 307 | flex-shrink: 0;
|
| 308 | }
|
| 309 |
|
| 310 | .preview-expand-download:hover {
|
| 311 | opacity: 0.85;
|
| 312 | }
|
| 313 |
|
| 314 | .preview-expand-share {
|
| 315 | background: rgba(20, 25, 40, 0.84);
|
| 316 | color: #fff;
|
| 317 | border: 1px solid rgba(255, 255, 255, 0.18);
|
| 318 | border-radius: 6px;
|
| 319 | padding: 7px 14px;
|
| 320 | }
|
| 321 |
|
| 322 | .preview-expand-share:hover {
|
| 323 | opacity: 0.85;
|
| 324 | }
|
| 325 |
|
| 326 | @media (max-width: 700px) {
|
| 327 | .preview-expand-actions {
|
| 328 | justify-content: stretch;
|
| 329 | padding: 0 0.75rem 0.75rem;
|
| 330 | }
|
| 331 |
|
| 332 | .preview-expand-download,
|
| 333 | .preview-expand-share {
|
| 334 | flex: 1;
|
| 335 | justify-content: center;
|
| 336 | }
|
| 337 | }
|
| 338 |
|
| 339 | /* Spinner shown inside the expanded tile while content is loading */
|
| 340 | .preview-loading-overlay {
|
| 341 | position: absolute;
|
| 342 | inset: 0;
|
| 343 | z-index: 5;
|
| 344 | display: flex;
|
| 345 | align-items: center;
|
| 346 | justify-content: center;
|
| 347 | pointer-events: none;
|
| 348 | }
|
| 349 |
|
| 350 | .preview-loading-indicator {
|
| 351 | position: relative;
|
| 352 | width: 52px;
|
| 353 | height: 52px;
|
| 354 | }
|
| 355 |
|
| 356 | .preview-loading-spinner {
|
| 357 | width: 40px;
|
| 358 | height: 40px;
|
| 359 | border: 3px solid rgba(255, 255, 255, 0.12);
|
| 360 | border-top-color: rgba(255, 255, 255, 0.7);
|
| 361 | border-radius: 50%;
|
| 362 | animation: preview-spin 0.7s linear infinite;
|
| 363 | }
|
| 364 |
|
| 365 | .preview-loading-indicator .preview-loading-spinner {
|
| 366 | width: 100%;
|
| 367 | height: 100%;
|
| 368 | }
|
| 369 |
|
| 370 | .preview-loading-percent {
|
| 371 | position: absolute;
|
| 372 | inset: 0;
|
| 373 | display: flex;
|
| 374 | align-items: center;
|
| 375 | justify-content: center;
|
| 376 | font-size: 0.68rem;
|
| 377 | font-weight: 600;
|
| 378 | letter-spacing: -0.02em;
|
| 379 | color: rgba(255, 255, 255, 0.88);
|
| 380 | text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
|
| 381 | }
|
| 382 |
|
| 383 | @keyframes preview-spin {
|
| 384 | to {
|
| 385 | transform: rotate(360deg);
|
| 386 | }
|
| 387 | }
|
| 388 |
|
| 389 | .move-modal {
|
| 390 | width: min(92vw, 760px);
|
| 391 | max-height: min(86vh, 760px);
|
| 392 | display: flex;
|
| 393 | flex-direction: column;
|
| 394 | gap: 0.6rem;
|
| 395 | }
|
| 396 |
|
| 397 | .move-tree {
|
| 398 | border: 1px solid var(--border, #2e3247);
|
| 399 | border-radius: 10px;
|
| 400 | padding: 0.55rem;
|
| 401 | max-height: min(58vh, 480px);
|
| 402 | overflow: auto;
|
| 403 | background: var(--bg, #0f1117);
|
| 404 | }
|
| 405 |
|
| 406 | .move-node {
|
| 407 | margin-left: 0.25rem;
|
| 408 | }
|
| 409 |
|
| 410 | .move-node-row {
|
| 411 | display: flex;
|
| 412 | align-items: center;
|
| 413 | gap: 0.35rem;
|
| 414 | margin: 0.14rem 0;
|
| 415 | }
|
| 416 |
|
| 417 | .move-toggle {
|
| 418 | width: 26px;
|
| 419 | min-width: 26px;
|
| 420 | height: 26px;
|
| 421 | padding: 0;
|
| 422 | display: inline-flex;
|
| 423 | align-items: center;
|
| 424 | justify-content: center;
|
| 425 | }
|
| 426 |
|
| 427 | .move-node-label {
|
| 428 | display: inline-flex;
|
| 429 | align-items: center;
|
| 430 | justify-content: flex-start;
|
| 431 | min-height: 28px;
|
| 432 | width: auto;
|
| 433 | padding: 0.2rem 0.5rem;
|
| 434 | background: transparent;
|
| 435 | border: 1px solid transparent;
|
| 436 | color: var(--text, #e8eaf0);
|
| 437 | }
|
| 438 |
|
| 439 | .move-node-label:hover {
|
| 440 | border-color: var(--border, #2e3247);
|
| 441 | background: rgba(255, 255, 255, 0.03);
|
| 442 | }
|
| 443 |
|
| 444 | .move-node-label.selected {
|
| 445 | border-color: var(--accent, #5b7fff);
|
| 446 | background: rgba(91, 127, 255, 0.12);
|
| 447 | }
|
| 448 |
|
| 449 | .move-children {
|
| 450 | margin-left: 1.2rem;
|
| 451 | border-left: 1px dashed var(--border, #2e3247);
|
| 452 | padding-left: 0.5rem;
|
| 453 | }
|
| 454 |
|
| 455 | .move-empty {
|
| 456 | color: var(--text-muted, #7880a0);
|
| 457 | font-size: 0.85rem;
|
| 458 | margin: 0.2rem 0 0.4rem 0.2rem;
|
| 459 | } |