| 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 | } |
| 19 | |
| 20 | #view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; } |
| 21 | |
| 22 | .title { |
| 23 | color: var(--cyan); |
| 24 | font-size: 11px; |
| 25 | letter-spacing: 0.18em; |
| 26 | text-transform: uppercase; |
| 27 | margin-bottom: 8px; |
| 28 | } |
| 29 | |
| 30 | /* ── stats ─────────────────────────────────────────────── */ |
| 31 | #stats { |
| 32 | position: fixed; top: 12px; left: 16px; |
| 33 | color: rgba(170, 220, 235, 0.6); |
| 34 | font-size: 12px; |
| 35 | pointer-events: none; |
| 36 | text-shadow: 0 0 8px rgba(0, 0, 0, 0.8); |
| 37 | } |
| 38 | |
| 39 | /* ── botones de vista ──────────────────────────────────── */ |
| 40 | #view-buttons { |
| 41 | position: fixed; top: 36px; left: 16px; |
| 42 | display: flex; flex-direction: column; gap: 8px; |
| 43 | } |
| 44 | #view-buttons button { |
| 45 | font: inherit; |
| 46 | color: var(--text); |
| 47 | background: var(--panel-bg); |
| 48 | border: 1px solid var(--panel-border); |
| 49 | border-radius: 4px; |
| 50 | padding: 8px 18px; |
| 51 | cursor: pointer; |
| 52 | text-align: left; |
| 53 | backdrop-filter: blur(4px); |
| 54 | transition: border-color 0.15s, color 0.15s, box-shadow 0.15s; |
| 55 | } |
| 56 | #view-buttons button:hover { |
| 57 | color: #ffffff; |
| 58 | border-color: var(--cyan); |
| 59 | box-shadow: 0 0 14px rgba(46, 230, 255, 0.25), inset 0 0 10px rgba(46, 230, 255, 0.08); |
| 60 | } |
| 61 | #view-buttons button.off { color: rgba(140, 195, 210, 0.4); border-style: dashed; } |
| 62 | #view-buttons button:disabled { color: rgba(140, 195, 210, 0.5); cursor: progress; } |
| 63 | #view-buttons select { |
| 64 | font: inherit; |
| 65 | color: var(--text); |
| 66 | background: var(--panel-bg); |
| 67 | border: 1px solid var(--panel-border); |
| 68 | border-radius: 4px; |
| 69 | padding: 8px 12px; |
| 70 | cursor: pointer; |
| 71 | backdrop-filter: blur(4px); |
| 72 | } |
| 73 | #view-buttons select:hover { border-color: var(--cyan); } |
| 74 | #view-buttons select option { background: #04121a; color: var(--text); } |
| 75 | body.light #view-buttons select option { background: #fcfbf9; } |
| 76 | |
| 77 | /* ── selector de modo de coloreado ─────────────────────── */ |
| 78 | #mode-switch { |
| 79 | position: fixed; top: 12px; left: 50%; |
| 80 | transform: translateX(-50%); |
| 81 | display: flex; |
| 82 | background: var(--panel-bg); |
| 83 | border: 1px solid var(--panel-border); |
| 84 | border-radius: 6px; |
| 85 | overflow: hidden; |
| 86 | backdrop-filter: blur(4px); |
| 87 | } |
| 88 | #mode-switch button { |
| 89 | font: inherit; |
| 90 | color: rgba(170, 220, 235, 0.65); |
| 91 | background: transparent; |
| 92 | border: none; |
| 93 | border-right: 1px solid var(--panel-border); |
| 94 | padding: 8px 20px; |
| 95 | cursor: pointer; |
| 96 | letter-spacing: 0.06em; |
| 97 | } |
| 98 | #mode-switch button:last-child { border-right: none; } |
| 99 | #mode-switch button:focus { outline: none; } |
| 100 | #mode-switch button:hover { color: #ffffff; } |
| 101 | #mode-switch button.active { |
| 102 | color: #03191e; |
| 103 | background: var(--cyan); |
| 104 | text-shadow: none; |
| 105 | } |
| 106 | #mode-switch button:disabled { |
| 107 | color: rgba(120, 150, 165, 0.3); |
| 108 | cursor: not-allowed; |
| 109 | } |
| 110 | |
| 111 | /* ── columna derecha: leyenda de colores apilada sobre la ayuda ── */ |
| 112 | #right-stack { |
| 113 | position: fixed; right: 16px; bottom: 56px; |
| 114 | display: flex; flex-direction: column; gap: 8px; |
| 115 | align-items: stretch; |
| 116 | } |
| 117 | |
| 118 | #color-legend { |
| 119 | display: none; |
| 120 | flex-direction: column; gap: 5px; |
| 121 | background: var(--panel-bg); |
| 122 | border: 1px solid var(--panel-border); |
| 123 | border-radius: 6px; |
| 124 | padding: 10px 14px; |
| 125 | backdrop-filter: blur(4px); |
| 126 | font-size: 11.5px; |
| 127 | max-height: 38vh; overflow-y: auto; |
| 128 | } |
| 129 | #color-legend.show { display: flex; } |
| 130 | #color-legend .entry { display: flex; align-items: center; gap: 8px; } |
| 131 | #color-legend .swatch { |
| 132 | width: 12px; height: 12px; border-radius: 2px; |
| 133 | box-shadow: 0 0 8px currentColor; |
| 134 | } |
| 135 | |
| 136 | /* ── stats git en el árbol ─────────────────────────────── */ |
| 137 | .row .gwrap { display: none; margin-left: auto; align-items: center; gap: 6px; } |
| 138 | body.mode-git .row .gwrap { display: inline-flex; } |
| 139 | body.mode-git .row .meta { display: none; } |
| 140 | .gadd { color: #3fe06b; font-size: 10.5px; } |
| 141 | .gdel { color: #ff5f56; font-size: 10.5px; } |
| 142 | .gicon { |
| 143 | font-size: 10px; font-weight: bold; |
| 144 | width: 14px; height: 14px; line-height: 14px; |
| 145 | text-align: center; border-radius: 3px; |
| 146 | } |
| 147 | .gicon.gM { color: #0c0800; background: #f2a825; } |
| 148 | .gicon.gU, .gicon.gA { color: #03140a; background: #34d058; } |
| 149 | .gicon.gR { color: #020a14; background: #4d8fff; } |
| 150 | .gicon.gD { color: #140202; background: #ff4444; } |
| 151 | |
| 152 | /* ── buscador ──────────────────────────────────────────── */ |
| 153 | #search-panel { |
| 154 | position: fixed; top: 12px; right: 16px; |
| 155 | width: 330px; |
| 156 | background: var(--panel-bg); |
| 157 | border: 1px solid var(--panel-border); |
| 158 | border-radius: 6px; |
| 159 | padding: 12px; |
| 160 | backdrop-filter: blur(4px); |
| 161 | } |
| 162 | #search-input { |
| 163 | width: 100%; |
| 164 | font: inherit; |
| 165 | color: #e6feff; |
| 166 | background: rgba(8, 22, 32, 0.9); |
| 167 | border: 1px solid rgba(46, 230, 255, 0.3); |
| 168 | border-radius: 4px; |
| 169 | padding: 8px 10px; |
| 170 | outline: none; |
| 171 | } |
| 172 | #search-input:focus { border-color: var(--cyan); box-shadow: 0 0 12px rgba(46, 230, 255, 0.25); } |
| 173 | #search-input::placeholder { color: rgba(150, 200, 215, 0.4); } |
| 174 | |
| 175 | #search-results { display: none; max-height: 46vh; overflow-y: auto; margin-top: 8px; } |
| 176 | #search-results.show { display: block; } |
| 177 | .result { |
| 178 | padding: 6px 8px; |
| 179 | border-radius: 3px; |
| 180 | cursor: pointer; |
| 181 | display: flex; flex-direction: column; gap: 1px; |
| 182 | } |
| 183 | .result:hover { background: rgba(46, 230, 255, 0.12); } |
| 184 | .result .rname { color: #d9feff; } |
| 185 | .result .rpath { color: rgba(140, 195, 210, 0.55); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 186 | |
| 187 | /* ── árbol lateral ─────────────────────────────────────── */ |
| 188 | #tree-panel { |
| 189 | position: fixed; left: 16px; bottom: 56px; |
| 190 | width: 320px; max-height: 56vh; |
| 191 | display: flex; flex-direction: column; |
| 192 | background: var(--panel-bg); |
| 193 | border: 1px solid var(--panel-border); |
| 194 | border-radius: 6px; |
| 195 | padding: 12px 0 6px; |
| 196 | backdrop-filter: blur(4px); |
| 197 | } |
| 198 | #tree-panel .title { padding: 0 12px; } |
| 199 | #tree { overflow-y: auto; flex: 1; } |
| 200 | |
| 201 | .row { |
| 202 | display: flex; align-items: center; gap: 6px; |
| 203 | padding: 3px 10px 3px 8px; |
| 204 | cursor: pointer; |
| 205 | white-space: nowrap; |
| 206 | border-left: 2px solid transparent; |
| 207 | } |
| 208 | .row:hover { background: rgba(46, 230, 255, 0.08); } |
| 209 | .row .name { overflow: hidden; text-overflow: ellipsis; } |
| 210 | .row .meta { margin-left: auto; color: rgba(140, 195, 210, 0.45); font-size: 11px; } |
| 211 | .row.dir .name { color: #8fd8e8; } |
| 212 | .row.dir .caret { width: 0; height: 0; border: 4px solid transparent; border-left-color: var(--cyan-dim); transition: transform 0.12s; } |
| 213 | .row.dir.open .caret { transform: rotate(90deg) translateX(-2px); } |
| 214 | .row.file .name { color: rgba(190, 235, 245, 0.8); } |
| 215 | .row.selected { |
| 216 | background: rgba(46, 230, 255, 0.18); |
| 217 | border-left-color: var(--cyan); |
| 218 | } |
| 219 | .row.selected .name { color: #ffffff !important; text-shadow: 0 0 8px var(--cyan); } |
| 220 | .row.basement .name { color: rgba(200, 160, 120, 0.65); font-style: italic; } |
| 221 | |
| 222 | /* cursor de navegación por teclado */ |
| 223 | #tree:focus { outline: none; } |
| 224 | #tree-panel:focus-within { border-color: var(--cyan); } |
| 225 | .row.cursor { |
| 226 | outline: 1px dashed var(--cyan-dim); |
| 227 | outline-offset: -1px; |
| 228 | } |
| 229 | |
| 230 | /* ── ruta inferior ─────────────────────────────────────── */ |
| 231 | #pathbar { |
| 232 | position: fixed; left: 16px; right: 16px; bottom: 12px; |
| 233 | background: var(--panel-bg); |
| 234 | border: 1px solid var(--panel-border); |
| 235 | border-radius: 6px; |
| 236 | padding: 9px 14px; |
| 237 | backdrop-filter: blur(4px); |
| 238 | overflow: hidden; white-space: nowrap; text-overflow: ellipsis; |
| 239 | } |
| 240 | #pathbar .sep { color: rgba(46, 230, 255, 0.4); margin: 0 4px; } |
| 241 | #pathbar .seg { color: #9adfee; } |
| 242 | #pathbar .seg.last { |
| 243 | color: #03191e; |
| 244 | background: var(--cyan); |
| 245 | border-radius: 3px; |
| 246 | padding: 2px 8px; |
| 247 | text-shadow: none; |
| 248 | box-shadow: 0 0 14px rgba(46, 230, 255, 0.6); |
| 249 | } |
| 250 | #pathbar .dim { color: rgba(140, 195, 210, 0.4); } |
| 251 | |
| 252 | /* ── ayuda ─────────────────────────────────────────────── */ |
| 253 | #help { |
| 254 | background: var(--panel-bg); |
| 255 | border: 1px solid var(--panel-border); |
| 256 | border-radius: 6px; |
| 257 | padding: 12px 14px; |
| 258 | backdrop-filter: blur(4px); |
| 259 | font-size: 11.5px; |
| 260 | } |
| 261 | #help td { padding: 1.5px 0; color: rgba(170, 220, 235, 0.75); } |
| 262 | #help td:first-child { color: var(--cyan); padding-right: 14px; } |
| 263 | |
| 264 | /* ── modo vuelo ────────────────────────────────────────── */ |
| 265 | #crosshair { |
| 266 | position: fixed; left: 50%; top: 50%; |
| 267 | transform: translate(-50%, -50%); |
| 268 | color: var(--cyan); |
| 269 | font-size: 22px; |
| 270 | text-shadow: 0 0 10px var(--cyan); |
| 271 | display: none; |
| 272 | pointer-events: none; |
| 273 | } |
| 274 | body.flying #crosshair { display: block; } |
| 275 | body.flying #tree-panel, body.flying #right-stack, body.flying #search-panel { opacity: 0.25; } |
| 276 | |
| 277 | /* scrollbars discretas */ |
| 278 | ::-webkit-scrollbar { width: 8px; } |
| 279 | ::-webkit-scrollbar-track { background: transparent; } |
| 280 | ::-webkit-scrollbar-thumb { background: rgba(46, 230, 255, 0.2); border-radius: 4px; } |
| 281 | |
| 282 | /* ── tema claro (p. ej. Factorial): textos fijos que no usan variables ── */ |
| 283 | body.light { background: #f4f2ee; } |
| 284 | body.light #stats { color: rgba(30, 70, 78, 0.75); text-shadow: none; } |
| 285 | body.light .row.dir .name { color: #00646d; } |
| 286 | body.light .row.file .name { color: rgba(25, 60, 66, 0.85); } |
| 287 | body.light .row .meta, |
| 288 | body.light #help td { color: rgba(40, 90, 98, 0.7); } |
| 289 | body.light #help td:first-child { color: var(--cyan); } |
| 290 | body.light .row:hover { background: rgba(0, 124, 133, 0.10); } |
| 291 | body.light .row.selected { background: rgba(229, 25, 67, 0.14); } |
| 292 | body.light .row.selected .name { color: #7c0c24 !important; text-shadow: none; } |
| 293 | body.light .row.basement .name { color: rgba(150, 100, 40, 0.8); } |
| 294 | body.light #search-input { background: rgba(255, 255, 255, 0.85); color: #143a40; } |
| 295 | body.light #search-input::placeholder { color: rgba(40, 90, 98, 0.45); } |
| 296 | body.light .result .rname { color: #143a40; } |
| 297 | body.light .result .rpath { color: rgba(40, 90, 98, 0.6); } |
| 298 | body.light .result:hover { background: rgba(0, 124, 133, 0.10); } |
| 299 | body.light #pathbar .seg { color: #00646d; } |
| 300 | body.light #pathbar .seg.last { color: #ffffff; } |
| 301 | body.light #pathbar .dim { color: rgba(40, 90, 98, 0.5); } |
| 302 | body.light #mode-switch button { color: rgba(30, 70, 78, 0.7); } |
| 303 | body.light #mode-switch button.active { color: #ffffff; } |
| 304 | body.light #mode-switch button:hover:not(.active):not(:disabled) { color: #00323a; } |
| 305 | body.light #view-buttons button:hover { color: #00323a; } |
| 306 | body.light ::-webkit-scrollbar-thumb { background: rgba(0, 124, 133, 0.3); } |