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