geometria3d-lab / source /src /style.css
Segizu's picture
Geometría 3D Lab v1: MoGe-2 ViT-S en el navegador (medidas 3D métricas)
ab0a0fc verified
Raw History Blame Contribute Delete
2.44 kB
:root { color-scheme: light dark; --bg:#f6f7f9; --card:#fff; --fg:#1b1f24; --mut:#5b6470; --acc:#1565c0; }
@media (prefers-color-scheme: dark) { :root { --bg:#0f1115; --card:#171a21; --fg:#e7e9ee; --mut:#9aa3af; --acc:#64b5f6; } }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background:var(--bg); color:var(--fg); line-height:1.45; }
header, main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header h1 { margin: 18px 0 4px; }
.sub { margin: 4px 0; } .note { font-size: .92em; color: var(--mut); }
.card { background: var(--card); border-radius: 12px; padding: 14px 16px; margin: 14px 0; box-shadow: 0 1px 3px #0002; }
.card h2 { margin: 0 0 8px; font-size: 1.15em; } h3 { font-size: 1em; margin: 14px 0 6px; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
button { background: var(--acc); color:#fff; border:0; border-radius:8px; padding:8px 12px; cursor:pointer; font: inherit; }
button:disabled { opacity:.45; cursor: not-allowed; }
progress { width:100%; height: 10px; margin-top: 8px; }
#examples { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.example { display:flex; flex-direction:column; padding:6px; background: transparent; color: var(--fg); border:2px solid var(--acc); }
.example img { width:100%; aspect-ratio: 4/3; object-fit: cover; border-radius:6px; }
.example span { padding: 4px 2px 0; font-size:.92em; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 8px; }
.view-tab { background: transparent; color: var(--fg); border: 1px solid var(--acc); }
.view-tab.active { background: var(--acc); color: #fff; }
#img-canvas { width:100%; height:auto; cursor: crosshair; border-radius: 8px; display:block; }
#viewer3d { width:100%; min-height: 260px; border-radius: 8px; overflow:hidden; }
.legend { display:flex; align-items:center; gap:8px; font-size:.85em; margin: 6px 0; }
.legend .bar { flex: 0 0 200px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgb(255,245,160), rgb(253,174,97), rgb(215,48,39), rgb(116,41,138), rgb(49,54,149), rgb(15,20,60)); }
.small { font-size: .9em; color: var(--mut); }
.ok { color: #2e7d32; } .err { color: #c62828; } .warn { color: #ef6c00; }
@media (prefers-color-scheme: dark) { .ok { color:#81c784; } .err { color:#ef9a9a; } }
.len { font-weight: 700; color: var(--acc); }
code { font-size: .9em; }