| 1 | /* VibeCodeViewer · fable_version — HUD estilo holograma noventero */ |
| 2 | :root { |
| 3 | --cyan: #2ee6ff; |
| 4 | --cyan-dim: rgba(46, 230, 255, 0.55); |
| 5 | --panel-bg: rgba(3, 10, 16, 0.82); |
| 6 | --panel-border: rgba(46, 230, 255, 0.22); |
| 7 | --text: #bfeef6; |
| 8 | } |
| 9 | |
| 10 | * { margin: 0; padding: 0; box-sizing: border-box; } |
| 11 | |
| 12 | html, body { width: 100%; height: 100%; overflow: hidden; background: #020309; } |
| 13 | |
| 14 | body { |
| 15 | font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", monospace; |
| 16 | color: var(--text); |
| 17 | font-size: 13px; |
| 18 | text-rendering: geometricPrecision; |
| 19 | } |
| 20 | |
| 21 | #view { |
| 22 | position: fixed; inset: 0; width: 100%; height: 100%; display: block; |
| 23 | background: #020309; |
| 24 | } |
| 25 | |
| 26 | .title { |
| 27 | color: var(--cyan); |
| 28 | font-size: 11px; |
| 29 | letter-spacing: 0; |
| 30 | text-transform: uppercase; |
| 31 | margin-bottom: 8px; |
| 32 | } |
| 33 | |
| 34 | /* ── stats ─────────────────────────────────────────────── */ |
| 35 | #stats { |
| 36 | position: fixed; top: 12px; left: 16px; |
| 37 | color: rgba(170, 220, 235, 0.6); |
| 38 | font-size: 12px; |
| 39 | pointer-events: none; |
| 40 | text-shadow: 0 0 8px rgba(0, 0, 0, 0.8); |
| 41 | } |
| 42 | |
| 43 | /* ── botones de vista ──────────────────────────────────── */ |
| 44 | #view-buttons { |
| 45 | position: fixed; top: 36px; left: 16px; |
| 46 | display: flex; flex-direction: column; gap: 8px; |
| 47 | } |
| 48 | #view-buttons button { |
| 49 | font: inherit; |
| 50 | color: var(--text); |
| 51 | background: var(--panel-bg); |
| 52 | border: 1px solid var(--panel-border); |
| 53 | border-radius: 4px; |
| 54 | padding: 8px 18px; |
| 55 | cursor: pointer; |
| 56 | text-align: left; |
| 57 | backdrop-filter: blur(10px) saturate(1.25); |
| 58 | transition: border-color 0.15s, color 0.15s, box-shadow 0.15s; |
| 59 | } |
| 60 | #view-buttons button:hover { |
| 61 | color: #ffffff; |
| 62 | border-color: var(--cyan); |
| 63 | box-shadow: 0 0 14px rgba(46, 230, 255, 0.25), inset 0 0 10px rgba(46, 230, 255, 0.08); |
| 64 | } |
| 65 | #view-buttons button.off { color: rgba(140, 195, 210, 0.4); border-style: dashed; } |
| 66 | #view-buttons button:disabled { color: rgba(140, 195, 210, 0.5); cursor: progress; } |
| 67 | #view-buttons #btn-settings { border-color: rgba(46, 230, 255, 0.35); } |
| 68 | #view-buttons select { |
| 69 | font: inherit; |
| 70 | color: var(--text); |
| 71 | background: var(--panel-bg); |
| 72 | border: 1px solid var(--panel-border); |
| 73 | border-radius: 4px; |
| 74 | padding: 8px 12px; |
| 75 | cursor: pointer; |
| 76 | backdrop-filter: blur(10px) saturate(1.25); |
| 77 | } |
| 78 | #view-buttons select:hover { border-color: var(--cyan); } |
| 79 | #view-buttons select option { background: #04121a; color: var(--text); } |
| 80 | body.light #view-buttons select option { background: #fcfbf9; } |
| 81 | |
| 82 | /* ── selector de modo de coloreado ─────────────────────── */ |
| 83 | #mode-switch { |
| 84 | position: fixed; top: 12px; left: 50%; |
| 85 | transform: translateX(-50%); |
| 86 | display: flex; |
| 87 | background: var(--panel-bg); |
| 88 | border: 1px solid var(--panel-border); |
| 89 | border-radius: 6px; |
| 90 | overflow: hidden; |
| 91 | backdrop-filter: blur(10px) saturate(1.25); |
| 92 | box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); |
| 93 | } |
| 94 | #mode-switch button { |
| 95 | font: inherit; |
| 96 | color: rgba(170, 220, 235, 0.65); |
| 97 | background: transparent; |
| 98 | border: none; |
| 99 | border-right: 1px solid var(--panel-border); |
| 100 | padding: 8px 20px; |
| 101 | cursor: pointer; |
| 102 | letter-spacing: 0; |
| 103 | } |
| 104 | #mode-switch button:last-child { border-right: none; } |
| 105 | #mode-switch button:focus { outline: none; } |
| 106 | #mode-switch button:hover { color: #ffffff; } |
| 107 | #mode-switch button.active { |
| 108 | color: #03191e; |
| 109 | background: var(--cyan); |
| 110 | text-shadow: none; |
| 111 | } |
| 112 | #mode-switch button:disabled { |
| 113 | color: rgba(120, 150, 165, 0.3); |
| 114 | cursor: not-allowed; |
| 115 | } |
| 116 | |
| 117 | /* ── columna derecha: leyenda de colores apilada sobre la ayuda ── */ |
| 118 | #right-stack { |
| 119 | position: fixed; right: 16px; bottom: 56px; |
| 120 | display: flex; flex-direction: column; gap: 8px; |
| 121 | align-items: stretch; |
| 122 | } |
| 123 | |
| 124 | #color-legend { |
| 125 | display: none; |
| 126 | flex-direction: column; gap: 5px; |
| 127 | background: var(--panel-bg); |
| 128 | border: 1px solid var(--panel-border); |
| 129 | border-radius: 6px; |
| 130 | padding: 10px 14px; |
| 131 | backdrop-filter: blur(10px) saturate(1.25); |
| 132 | font-size: 11.5px; |
| 133 | max-height: 38vh; overflow-y: auto; |
| 134 | } |
| 135 | #color-legend.show { display: flex; } |
| 136 | #color-legend .entry { display: flex; align-items: center; gap: 8px; } |
| 137 | #color-legend .swatch { |
| 138 | width: 12px; height: 12px; border-radius: 2px; |
| 139 | box-shadow: 0 0 8px currentColor; |
| 140 | } |
| 141 | |
| 142 | /* ── stats git en el árbol ─────────────────────────────── */ |
| 143 | .row .gwrap { display: none; margin-left: auto; align-items: center; gap: 6px; } |
| 144 | body.mode-git .row .gwrap { display: inline-flex; } |
| 145 | body.mode-git .row .meta { display: none; } |
| 146 | .gadd { color: #3fe06b; font-size: 10.5px; } |
| 147 | .gdel { color: #ff5f56; font-size: 10.5px; } |
| 148 | .gicon { |
| 149 | font-size: 10px; font-weight: bold; |
| 150 | width: 14px; height: 14px; line-height: 14px; |
| 151 | text-align: center; border-radius: 3px; |
| 152 | } |
| 153 | .gicon.gM { color: #0c0800; background: #f2a825; } |
| 154 | .gicon.gU, .gicon.gA { color: #03140a; background: #34d058; } |
| 155 | .gicon.gR { color: #020a14; background: #4d8fff; } |
| 156 | .gicon.gD { color: #140202; background: #ff4444; } |
| 157 | |
| 158 | /* ── buscador ──────────────────────────────────────────── */ |
| 159 | #search-panel { |
| 160 | position: fixed; top: 12px; right: 16px; |
| 161 | width: 330px; |
| 162 | background: var(--panel-bg); |
| 163 | border: 1px solid var(--panel-border); |
| 164 | border-radius: 6px; |
| 165 | padding: 12px; |
| 166 | backdrop-filter: blur(10px) saturate(1.25); |
| 167 | box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); |
| 168 | } |
| 169 | #search-input { |
| 170 | width: 100%; |
| 171 | font: inherit; |
| 172 | color: #e6feff; |
| 173 | background: rgba(8, 22, 32, 0.9); |
| 174 | border: 1px solid rgba(46, 230, 255, 0.3); |
| 175 | border-radius: 4px; |
| 176 | padding: 8px 10px; |
| 177 | outline: none; |
| 178 | } |
| 179 | #search-input:focus { border-color: var(--cyan); box-shadow: 0 0 12px rgba(46, 230, 255, 0.25); } |
| 180 | #search-input::placeholder { color: rgba(150, 200, 215, 0.4); } |
| 181 | |
| 182 | #search-results { display: none; max-height: 46vh; overflow-y: auto; margin-top: 8px; } |
| 183 | #search-results.show { display: block; } |
| 184 | .result { |
| 185 | padding: 6px 8px; |
| 186 | border-radius: 3px; |
| 187 | cursor: pointer; |
| 188 | display: flex; flex-direction: column; gap: 1px; |
| 189 | } |
| 190 | .result:hover { background: rgba(46, 230, 255, 0.12); } |
| 191 | .result .rname { color: #d9feff; } |
| 192 | .result .rpath { color: rgba(140, 195, 210, 0.55); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 193 | |
| 194 | /* ── árbol lateral ─────────────────────────────────────── */ |
| 195 | #tree-panel { |
| 196 | position: fixed; left: 16px; bottom: 56px; |
| 197 | width: 320px; max-height: 56vh; |
| 198 | display: flex; flex-direction: column; |
| 199 | background: var(--panel-bg); |
| 200 | border: 1px solid var(--panel-border); |
| 201 | border-radius: 6px; |
| 202 | padding: 12px 0 6px; |
| 203 | backdrop-filter: blur(10px) saturate(1.25); |
| 204 | box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); |
| 205 | } |
| 206 | #tree-panel .title { padding: 0 12px; } |
| 207 | #tree { overflow-y: auto; flex: 1; } |
| 208 | |
| 209 | .row { |
| 210 | display: flex; align-items: center; gap: 6px; |
| 211 | padding: 3px 10px 3px 8px; |
| 212 | cursor: pointer; |
| 213 | white-space: nowrap; |
| 214 | border-left: 2px solid transparent; |
| 215 | } |
| 216 | .row:hover { background: rgba(46, 230, 255, 0.08); } |
| 217 | .row .name { overflow: hidden; text-overflow: ellipsis; } |
| 218 | .row .meta { margin-left: auto; color: rgba(140, 195, 210, 0.45); font-size: 11px; } |
| 219 | .row.dir .name { color: #8fd8e8; } |
| 220 | .row.dir .caret { width: 0; height: 0; border: 4px solid transparent; border-left-color: var(--cyan-dim); transition: transform 0.12s; } |
| 221 | .row.dir.open .caret { transform: rotate(90deg) translateX(-2px); } |
| 222 | .row.file .name { color: rgba(190, 235, 245, 0.8); } |
| 223 | .row.selected { |
| 224 | background: rgba(46, 230, 255, 0.18); |
| 225 | border-left-color: var(--cyan); |
| 226 | } |
| 227 | .row.selected .name { color: #ffffff !important; text-shadow: 0 0 8px var(--cyan); } |
| 228 | .row.basement .name { color: rgba(200, 160, 120, 0.65); font-style: italic; } |
| 229 | |
| 230 | /* cursor de navegación por teclado */ |
| 231 | #tree:focus { outline: none; } |
| 232 | #tree-panel:focus-within { border-color: var(--cyan); } |
| 233 | .row.cursor { |
| 234 | outline: 1px dashed var(--cyan-dim); |
| 235 | outline-offset: -1px; |
| 236 | } |
| 237 | |
| 238 | /* ── ruta inferior ─────────────────────────────────────── */ |
| 239 | #pathbar { |
| 240 | position: fixed; left: 16px; right: 16px; bottom: 12px; |
| 241 | background: var(--panel-bg); |
| 242 | border: 1px solid var(--panel-border); |
| 243 | border-radius: 6px; |
| 244 | padding: 9px 14px; |
| 245 | backdrop-filter: blur(10px) saturate(1.25); |
| 246 | overflow: hidden; white-space: nowrap; text-overflow: ellipsis; |
| 247 | } |
| 248 | #pathbar .sep { color: rgba(46, 230, 255, 0.4); margin: 0 4px; } |
| 249 | #pathbar .seg { color: #9adfee; } |
| 250 | #pathbar .seg.last { |
| 251 | color: #03191e; |
| 252 | background: var(--cyan); |
| 253 | border-radius: 3px; |
| 254 | padding: 2px 8px; |
| 255 | text-shadow: none; |
| 256 | box-shadow: 0 0 14px rgba(46, 230, 255, 0.6); |
| 257 | } |
| 258 | #pathbar .dim { color: rgba(140, 195, 210, 0.4); } |
| 259 | |
| 260 | /* ── ayuda ─────────────────────────────────────────────── */ |
| 261 | #help { |
| 262 | background: var(--panel-bg); |
| 263 | border: 1px solid var(--panel-border); |
| 264 | border-radius: 6px; |
| 265 | padding: 12px 14px; |
| 266 | backdrop-filter: blur(10px) saturate(1.25); |
| 267 | font-size: 11.5px; |
| 268 | } |
| 269 | #help td { padding: 1.5px 0; color: rgba(170, 220, 235, 0.75); } |
| 270 | #help td:first-child { color: var(--cyan); padding-right: 14px; } |
| 271 | |
| 272 | /* ── settings ─────────────────────────────────────────── */ |
| 273 | #settings-modal { |
| 274 | position: fixed; inset: 0; |
| 275 | display: none; |
| 276 | align-items: center; justify-content: center; |
| 277 | background: rgba(0, 0, 0, 0.28); |
| 278 | z-index: 20; |
| 279 | } |
| 280 | #settings-modal.show { display: flex; } |
| 281 | #settings-panel { |
| 282 | width: min(560px, calc(100vw - 32px)); |
| 283 | max-height: min(760px, calc(100vh - 32px)); |
| 284 | overflow: auto; |
| 285 | background: var(--panel-bg); |
| 286 | border: 1px solid var(--panel-border); |
| 287 | border-radius: 6px; |
| 288 | padding: 16px; |
| 289 | backdrop-filter: blur(14px) saturate(1.35); |
| 290 | box-shadow: 0 20px 80px rgba(0, 0, 0, 0.42); |
| 291 | } |
| 292 | .settings-head { |
| 293 | display: flex; align-items: center; justify-content: space-between; |
| 294 | margin-bottom: 10px; |
| 295 | } |
| 296 | #settings-close { |
| 297 | width: 28px; height: 28px; |
| 298 | border: 1px solid var(--panel-border); |
| 299 | border-radius: 4px; |
| 300 | color: var(--text); |
| 301 | background: transparent; |
| 302 | font: inherit; |
| 303 | cursor: pointer; |
| 304 | } |
| 305 | #settings-presets { |
| 306 | display: grid; |
| 307 | grid-template-columns: repeat(4, minmax(0, 1fr)); |
| 308 | gap: 8px; |
| 309 | margin-bottom: 12px; |
| 310 | } |
| 311 | #settings-presets button, |
| 312 | #settings-reset { |
| 313 | font: inherit; |
| 314 | color: var(--text); |
| 315 | background: rgba(8, 22, 32, 0.62); |
| 316 | border: 1px solid var(--panel-border); |
| 317 | border-radius: 4px; |
| 318 | padding: 8px 10px; |
| 319 | cursor: pointer; |
| 320 | } |
| 321 | #settings-controls { |
| 322 | display: grid; |
| 323 | grid-template-columns: 1fr 1fr; |
| 324 | gap: 10px 16px; |
| 325 | } |
| 326 | .setting-row { |
| 327 | display: grid; |
| 328 | grid-template-columns: 92px 1fr 42px; |
| 329 | align-items: center; |
| 330 | gap: 8px; |
| 331 | color: var(--text); |
| 332 | } |
| 333 | .setting-row input[type="range"] { |
| 334 | width: 100%; |
| 335 | accent-color: var(--cyan); |
| 336 | } |
| 337 | .setting-row output { |
| 338 | color: rgba(170, 220, 235, 0.72); |
| 339 | text-align: right; |
| 340 | font-size: 11px; |
| 341 | } |
| 342 | .settings-foot { |
| 343 | display: flex; align-items: center; justify-content: space-between; |
| 344 | gap: 12px; |
| 345 | margin-top: 14px; |
| 346 | padding-top: 12px; |
| 347 | border-top: 1px solid var(--panel-border); |
| 348 | } |
| 349 | .check-row { |
| 350 | display: inline-flex; align-items: center; gap: 8px; |
| 351 | color: var(--text); |
| 352 | } |
| 353 | .check-row input { accent-color: var(--cyan); } |
| 354 | body.light #settings-presets button, |
| 355 | body.light #settings-reset { |
| 356 | background: rgba(255, 255, 255, 0.72); |
| 357 | color: #143a40; |
| 358 | } |
| 359 | |
| 360 | @media (max-width: 720px) { |
| 361 | #settings-controls { grid-template-columns: 1fr; } |
| 362 | #settings-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| 363 | } |
| 364 | |
| 365 | /* ── modo vuelo ────────────────────────────────────────── */ |
| 366 | #crosshair { |
| 367 | position: fixed; left: 50%; top: 50%; |
| 368 | transform: translate(-50%, -50%); |
| 369 | color: var(--cyan); |
| 370 | font-size: 22px; |
| 371 | text-shadow: 0 0 10px var(--cyan); |
| 372 | display: none; |
| 373 | pointer-events: none; |
| 374 | } |
| 375 | body.flying #crosshair { display: block; } |
| 376 | body.flying #tree-panel, body.flying #right-stack, body.flying #search-panel { opacity: 0.25; } |
| 377 | |
| 378 | /* scrollbars discretas */ |
| 379 | ::-webkit-scrollbar { width: 8px; } |
| 380 | ::-webkit-scrollbar-track { background: transparent; } |
| 381 | ::-webkit-scrollbar-thumb { background: rgba(46, 230, 255, 0.2); border-radius: 4px; } |
| 382 | |
| 383 | /* ── tema claro (p. ej. Factorial): textos fijos que no usan variables ── */ |
| 384 | body.light { background: #f4f2ee; } |
| 385 | body.light #stats { color: rgba(30, 70, 78, 0.75); text-shadow: none; } |
| 386 | body.light .row.dir .name { color: #00646d; } |
| 387 | body.light .row.file .name { color: rgba(25, 60, 66, 0.85); } |
| 388 | body.light .row .meta, |
| 389 | body.light #help td { color: rgba(40, 90, 98, 0.7); } |
| 390 | body.light #help td:first-child { color: var(--cyan); } |
| 391 | body.light .row:hover { background: rgba(0, 124, 133, 0.10); } |
| 392 | body.light .row.selected { background: rgba(229, 25, 67, 0.14); } |
| 393 | body.light .row.selected .name { color: #7c0c24 !important; text-shadow: none; } |
| 394 | body.light .row.basement .name { color: rgba(150, 100, 40, 0.8); } |
| 395 | body.light #search-input { background: rgba(255, 255, 255, 0.85); color: #143a40; } |
| 396 | body.light #search-input::placeholder { color: rgba(40, 90, 98, 0.45); } |
| 397 | body.light .result .rname { color: #143a40; } |
| 398 | body.light .result .rpath { color: rgba(40, 90, 98, 0.6); } |
| 399 | body.light .result:hover { background: rgba(0, 124, 133, 0.10); } |
| 400 | body.light #pathbar .seg { color: #00646d; } |
| 401 | body.light #pathbar .seg.last { color: #ffffff; } |
| 402 | body.light #pathbar .dim { color: rgba(40, 90, 98, 0.5); } |
| 403 | body.light #mode-switch button { color: rgba(30, 70, 78, 0.7); } |
| 404 | body.light #mode-switch button.active { color: #ffffff; } |
| 405 | body.light #mode-switch button:hover:not(.active):not(:disabled) { color: #00323a; } |
| 406 | body.light #view-buttons button:hover { color: #00323a; } |
| 407 | body.light ::-webkit-scrollbar-thumb { background: rgba(0, 124, 133, 0.3); } |