Spaces:
Running
Running
UI v2: analyze manifest, mode radio, target cards, compat matrix, progress/log/download; backward-compatible API
bc2711b verified Download frontend/src/styles.css from 2Btainment/spaceforge: direct link, hf CLI and curl.
- Browser
- Download file 8.41 kB
-
https://huggingface.co/spaces/2Btainment/spaceforge/resolve/main/frontend/src/styles.css
- Command line
-
hf download hf://spaces/2Btainment/spaceforge/frontend/src/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/2Btainment/spaceforge/resolve/main/frontend/src/styles.css
8.41 kB
| :root { | |
| color-scheme: dark; | |
| --bg: #070b16; | |
| --panel: #10182c; | |
| --panel2: #162038; | |
| --border: #2a3a63; | |
| --text: #e8eefc; | |
| --muted: #9bb0d4; | |
| --accent: #6ea8ff; | |
| --accent2: #8b5cf6; | |
| --ok: #34d399; | |
| --warn: #fbbf24; | |
| --err: #f87171; | |
| --hybrid: #38bdf8; | |
| --local: #a3e635; | |
| --hosted: #c084fc; | |
| font-family: "Segoe UI", system-ui, -apple-system, sans-serif; | |
| } | |
| * { box-sizing: border-box; } | |
| body { | |
| margin: 0; | |
| min-height: 100vh; | |
| background: radial-gradient(1200px 600px at 10% -10%, #1a2748 0%, transparent 55%), | |
| radial-gradient(900px 500px at 100% 0%, #2a1850 0%, transparent 50%), var(--bg); | |
| color: var(--text); | |
| } | |
| a { color: var(--accent); } | |
| .app { max-width: 980px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; } | |
| .hero h1 { | |
| margin: 0 0 .35rem; | |
| font-size: 1.85rem; | |
| letter-spacing: -0.02em; | |
| } | |
| .hero p { margin: 0 0 1.25rem; color: var(--muted); } | |
| .card { | |
| background: linear-gradient(180deg, var(--panel), var(--panel2)); | |
| border: 1px solid var(--border); | |
| border-radius: 16px; | |
| padding: 1.1rem 1.15rem; | |
| margin-bottom: 1rem; | |
| box-shadow: 0 10px 40px rgba(0,0,0,.25); | |
| } | |
| .row { display: flex; gap: .75rem; flex-wrap: wrap; } | |
| input[type="text"], input[type="password"] { | |
| flex: 1; | |
| min-width: 220px; | |
| background: #0a1224; | |
| border: 1px solid var(--border); | |
| color: var(--text); | |
| border-radius: 10px; | |
| padding: .7rem .85rem; | |
| font-size: .95rem; | |
| } | |
| button { | |
| border: 0; | |
| border-radius: 10px; | |
| padding: .7rem 1rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| background: linear-gradient(135deg, var(--accent), var(--accent2)); | |
| color: #061018; | |
| } | |
| button:disabled { opacity: .55; cursor: not-allowed; } | |
| button.secondary { | |
| background: transparent; | |
| color: var(--text); | |
| border: 1px solid var(--border); | |
| } | |
| .hint { font-size: .8rem; color: var(--muted); margin-top: .5rem; } | |
| .error { | |
| background: rgba(248,113,113,.12); | |
| border: 1px solid rgba(248,113,113,.35); | |
| color: #fecaca; | |
| padding: .75rem 1rem; | |
| border-radius: 12px; | |
| margin-bottom: 1rem; | |
| } | |
| .meta { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); | |
| gap: .75rem; | |
| margin-top: .75rem; | |
| } | |
| .meta div { | |
| background: #0a1224; | |
| border-radius: 10px; | |
| padding: .65rem .75rem; | |
| border: 1px solid var(--border); | |
| } | |
| .meta .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } | |
| .meta .v { font-weight: 600; margin-top: .2rem; word-break: break-word; } | |
| .mode-legend { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; } | |
| .pill { | |
| font-size: .72rem; | |
| font-weight: 700; | |
| padding: .2rem .55rem; | |
| border-radius: 999px; | |
| text-transform: uppercase; | |
| letter-spacing: .04em; | |
| } | |
| .pill.local { background: rgba(163,230,53,.15); color: var(--local); } | |
| .pill.hybrid { background: rgba(56,189,248,.15); color: var(--hybrid); } | |
| .pill.hosted_wrapper, .pill.hosted { background: rgba(192,132,252,.15); color: var(--hosted); } | |
| .targets { display: grid; gap: .65rem; } | |
| .target { | |
| display: grid; | |
| grid-template-columns: auto 1fr auto; | |
| gap: .75rem; | |
| align-items: start; | |
| padding: .85rem; | |
| border-radius: 12px; | |
| border: 1px solid var(--border); | |
| background: #0a1224; | |
| } | |
| .target.disabled { opacity: .65; } | |
| .target label { font-weight: 600; } | |
| .target .reason { font-size: .82rem; color: var(--muted); margin-top: .25rem; } | |
| .list { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; } | |
| .artifacts { display: grid; gap: .5rem; } | |
| .artifact { | |
| display: flex; justify-content: space-between; align-items: center; gap: 1rem; | |
| padding: .7rem .85rem; border-radius: 10px; background: #0a1224; border: 1px solid var(--border); | |
| } | |
| pre.logs { | |
| background: #050910; | |
| border: 1px solid var(--border); | |
| border-radius: 10px; | |
| padding: .75rem; | |
| max-height: 240px; | |
| overflow: auto; | |
| font-size: .78rem; | |
| color: #b7c7e8; | |
| } | |
| .footer { margin-top: 1.5rem; color: var(--muted); font-size: .8rem; text-align: center; } | |
| .compat-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; } | |
| .compat { | |
| font-size: .7rem; | |
| font-weight: 600; | |
| padding: .15rem .45rem; | |
| border-radius: 999px; | |
| border: 1px solid var(--border); | |
| } | |
| .compat.ok { color: var(--ok); background: rgba(52,211,153,.12); } | |
| .compat.warn { color: var(--warn); background: rgba(251,191,36,.12); } | |
| .compat.no { color: var(--err); background: rgba(248,113,113,.12); } | |
| /* Plain BMC link — no third-party JS; outside React #root lifecycle */ | |
| .bmc-link { | |
| position: fixed; | |
| right: 1rem; | |
| bottom: 1rem; | |
| z-index: 9999; | |
| display: inline-block; | |
| padding: 0.65rem 1.1rem; | |
| border-radius: 999px; | |
| background: #FFDD00; | |
| color: #000000 ; | |
| font-weight: 700; | |
| font-size: 0.95rem; | |
| text-decoration: none; | |
| box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); | |
| border: 2px solid #000000; | |
| } | |
| .bmc-link:hover { | |
| filter: brightness(1.05); | |
| text-decoration: none; | |
| } | |
| /* Platform hint under new desktop / MCP targets */ | |
| .platform { | |
| font-size: 0.78rem; | |
| color: var(--muted, #8b93a7); | |
| margin-top: 0.15rem; | |
| } | |
| /* ---- SpaceForge v2 layout ---- */ | |
| .top { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.2rem; } | |
| .brand { display:flex; gap:.8rem; align-items:center; } | |
| .brand h1 { margin:0; font-size:1.7rem; letter-spacing:-.02em; } | |
| .brand p { margin:.1rem 0 0; color:var(--muted); } | |
| .logo { font-size:2rem; background:linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip:text; color:transparent; } | |
| .lbl { display:block; font-size:.8rem; color:var(--muted); margin-bottom:.35rem; } | |
| .space-head { display:flex; gap:.7rem; align-items:center; } | |
| .space-head h2 { margin:0; font-size:1.2rem; } | |
| .emoji { font-size:1.8rem; } | |
| .chips { display:flex; flex-wrap:wrap; gap:.4rem; } | |
| .chip { background:#0a1224; border:1px solid var(--border); border-radius:999px; padding:.25rem .65rem; font-size:.8rem; } | |
| .chip.warn { border-color:var(--warn); color:var(--warn); } | |
| .meta { display:grid; gap:.35rem; margin-top:.8rem; font-size:.85rem; } | |
| .meta .k { color:var(--muted); margin-right:.4rem; } | |
| .warnbox { background:rgba(251,191,36,.1); border:1px solid rgba(251,191,36,.4); color:#fde68a; padding:.55rem .75rem; border-radius:10px; } | |
| .warn-t { color:var(--warn); } | |
| .matrix-wrap { overflow-x:auto; } | |
| .matrix { border-collapse:collapse; width:100%; font-size:.85rem; } | |
| .matrix th, .matrix td { border-bottom:1px solid var(--border); padding:.4rem .6rem; text-align:center; } | |
| .matrix td:first-child, .matrix th:first-child { text-align:left; } | |
| .matrix td.y { color:var(--ok); font-weight:700; } .matrix td.s { color:var(--warn); } .matrix td.n { color:#475569; } | |
| .modes { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:.6rem; } | |
| .mode { display:flex; gap:.6rem; align-items:flex-start; border:1px solid var(--border); border-radius:12px; padding:.7rem; cursor:pointer; background:#0a1224; } | |
| .mode.on { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; } | |
| .mode.disabled { opacity:.45; cursor:not-allowed; } | |
| .soon { font-size:.7rem; color:var(--warn); border:1px solid var(--warn); border-radius:6px; padding:0 .35rem; margin-left:.3rem; } | |
| .cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:.6rem; } | |
| .tcard { display:flex; flex-direction:column; align-items:flex-start; gap:.3rem; text-align:left; background:#0a1224; color:var(--text); border:1px solid var(--border); padding:.75rem; border-radius:12px; font-weight:500; } | |
| .tcard.sel { border-color:var(--accent); background:#12203d; box-shadow:0 0 0 1px var(--accent) inset; } | |
| .tcard:disabled { opacity:.4; } | |
| .ticon { font-size:1.4rem; } .tname { font-weight:700; } .tplat { font-size:.72rem; color:var(--muted); } | |
| .bar { height:10px; background:#0a1224; border:1px solid var(--border); border-radius:999px; overflow:hidden; } | |
| .bar > div { height:100%; background:linear-gradient(90deg,var(--accent),var(--accent2)); transition:width .4s; } | |
| .bar > div.err { background:var(--err); } | |
| .download { display:flex; justify-content:space-between; gap:1rem; align-items:center; border:1px solid var(--border); border-radius:12px; padding:.8rem; margin-top:.7rem; background:#0a1224; flex-wrap:wrap; } | |
| .fname { font-weight:700; word-break:break-all; } | |
| .dl { padding:.6rem 1rem; border-radius:10px; text-decoration:none; font-weight:700; color:#061018; background:linear-gradient(135deg,var(--ok),var(--accent)); } | |
| @media (max-width:600px){ .brand h1{font-size:1.35rem} .row button{width:100%} } | |