Download css/style.css from AK51/Xray: direct link, hf CLI and curl.
- Browser
- Download file 12.8 kB
-
https://huggingface.co/spaces/AK51/Xray/resolve/main/css/style.css
- Command line
-
hf download hf://spaces/AK51/Xray/css/style.css
-
curl -L -o style.css https://huggingface.co/spaces/AK51/Xray/resolve/main/css/style.css
12.8 kB
| :root { --bg:#070a12; --panel:#121827; --line:#243049; --fg:#eef1f8; --dim:#8b95b2; | |
| --accent:#7fd1ff; --ok:#57d98a; --warn:#ffc04d; --bad:#ff5d73; --red:#de2910; --gold:#ffde00; } | |
| * { box-sizing:border-box; } | |
| html,body { margin:0; min-height:100%; background:var(--bg); color:var(--fg); | |
| font:15px/1.45 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",Roboto,sans-serif; } | |
| .wrap { display:flex; gap:20px; padding:20px; justify-content:center; align-items:flex-start; } | |
| .stagecol { flex:1 1 auto; min-width:0; display:flex; justify-content:center; position:sticky; top:20px; } | |
| .stage { position:relative; width:min(100%, calc((100vh - 40px) * var(--ar, 1.7778))); aspect-ratio:var(--ar, 1.7778); | |
| background:radial-gradient(ellipse at 50% 40%, #131a2b, #05070c 75%); border:1px solid var(--line); | |
| border-radius:16px; overflow:hidden; } | |
| .stage canvas, .stage video { position:absolute; inset:0; width:100%; height:100%; display:block; } | |
| #video { opacity:0; pointer-events:none; } | |
| /* small raw camera picture so the user can see whether both hands are in view */ | |
| #campip { display:none; position:absolute; left:12px; bottom:34px; width:22%; max-width:300px; z-index:5; pointer-events:none; | |
| border:1px solid rgba(120,200,255,.7); border-radius:6px; overflow:hidden; box-shadow:0 0 12px rgba(80,170,255,.35); background:#000; } | |
| .stage.cam #campip.on { display:block; } | |
| #campip video { position:static; width:100%; height:auto; display:block; opacity:1; } | |
| #campip { position:absolute; } | |
| #campip canvas { position:absolute; inset:0; width:100%; height:100%; } | |
| .mirror { transform:scaleX(-1); } | |
| #person, #suit, #shade, #xray, #fx { pointer-events:none; } | |
| /* HUD */ | |
| #hud { position:absolute; inset:0; pointer-events:none; font:12px/1.35 ui-monospace,Menlo,Consolas,monospace; } | |
| #hud.off { display:none; } | |
| .hudbox { position:absolute; top:14px; padding:9px 11px; min-width:190px; background:rgba(6,14,28,.55); | |
| border:1px solid rgba(127,209,255,.35); border-radius:10px; backdrop-filter:blur(3px); } | |
| .hudbox.tl { left:14px; } .hudbox.tr { right:14px; } | |
| .hudtitle { color:var(--accent); font-weight:700; letter-spacing:.08em; margin-bottom:5px; font-size:11px; } | |
| .vit { display:flex; align-items:baseline; gap:6px; } | |
| .vit span { color:var(--dim); flex:1; font-size:11px; } | |
| .vit b { font-size:14px; color:#e9f6ff; font-variant-numeric:tabular-nums; } | |
| .vit i { font-style:normal; color:var(--dim); width:38px; font-size:10px; } | |
| #ecg { width:200px; height:34px; display:block; margin:2px 0 4px; position:static; } | |
| .met { color:#e9f6ff; font-size:13px; margin-bottom:4px; font-variant-numeric:tabular-nums; } | |
| .zone { margin-top:6px; padding:3px 6px; border-radius:6px; text-align:center; font-weight:700; letter-spacing:.06em; | |
| background:rgba(87,217,138,.15); color:var(--ok); font-size:11px; } | |
| .zone.saa { background:rgba(255,192,77,.18); color:var(--warn); } | |
| .zone.spe { background:rgba(255,93,115,.25); color:var(--bad); animation:blink 0.8s infinite; } | |
| #banner { position:absolute; left:50%; top:16px; transform:translateX(-50%); padding:8px 16px; border-radius:10px; | |
| background:rgba(120,10,20,.75); border:1px solid var(--bad); color:#fff; font-weight:700; letter-spacing:.05em; | |
| font-family:system-ui,"Microsoft YaHei",sans-serif; font-size:14px; animation:blink 1s infinite; text-align:center; } | |
| #scanstat { position:absolute; left:14px; bottom:12px; color:rgba(190,230,255,.85); font-size:11px; letter-spacing:.05em; } | |
| @keyframes blink { 50% { opacity:.55; } } | |
| /* intro */ | |
| #intro { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; | |
| gap:14px; text-align:center; padding:24px; background:radial-gradient(ellipse at 50% 45%, rgba(10,16,30,.55), rgba(3,5,10,.9)); } | |
| #intro h2 { margin:0; font-size:30px; letter-spacing:.06em; font-weight:800; } | |
| #intro p { margin:0; color:#b8c2dc; max-width:56ch; } | |
| .emblem { width:150px; height:auto; aspect-ratio:690/550; object-fit:cover; border-radius:12px; border:2px solid var(--gold); | |
| box-shadow:0 0 28px rgba(80,150,255,.45); } | |
| .introbtns { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; } | |
| button.big { font:inherit; font-weight:700; font-size:17px; color:#06121c; background:var(--accent); | |
| border:0; border-radius:12px; padding:13px 22px; cursor:pointer; } | |
| button.big.ghost { background:transparent; color:var(--accent); border:1px solid var(--accent); } | |
| button.big:disabled { opacity:.6; cursor:default; } | |
| /* side panel */ | |
| aside { flex:0 0 340px; display:flex; flex-direction:column; gap:12px; } | |
| header h1 { margin:0; font-size:23px; letter-spacing:.03em; } | |
| header .sub { color:var(--dim); font-size:13px; } | |
| .panel { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:13px 15px; } | |
| .panel h3 { margin:0 0 9px; font-size:12px; font-weight:600; color:var(--dim); text-transform:uppercase; letter-spacing:.09em; } | |
| #status { font-weight:600; font-size:14px; } | |
| #status.ok { color:var(--ok); } #status.bad { color:var(--bad); } | |
| .seg { display:flex; gap:6px; flex-wrap:wrap; } | |
| .seg button, .btnrow button { font:inherit; font-size:12.5px; color:var(--fg); background:#0b0f18; border:1px solid var(--line); | |
| border-radius:9px; padding:6px 9px; cursor:pointer; flex:1; white-space:nowrap; } | |
| .seg button:hover, .btnrow button:hover { border-color:var(--accent); } | |
| .seg button.on { background:var(--accent); color:#06121c; border-color:var(--accent); font-weight:700; } | |
| .btnrow { display:flex; gap:7px; margin-top:10px; } | |
| .btnrow .warnbtn { border-color:rgba(255,93,115,.6); color:#ffb0bb; } | |
| .btnrow .warnbtn.on { background:var(--bad); color:#fff; } | |
| .checks { display:grid; grid-template-columns:1fr 1fr; gap:7px 12px; margin-top:11px; } | |
| label.ck { display:flex; align-items:center; gap:8px; font-size:14px; cursor:pointer; margin-top:6px; } | |
| .checks label.ck { margin-top:0; } | |
| label.ck i { width:10px; height:10px; border-radius:50%; flex:none; } | |
| input[type=checkbox] { width:17px; height:17px; margin:0; accent-color:var(--accent); } | |
| .row { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; margin-top:10px; } | |
| .row:first-child { margin-top:0; } | |
| .row input[type=range] { flex:1; max-width:50%; accent-color:var(--accent); } | |
| .row label b { font-weight:500; color:var(--dim); font-size:12px; margin-left:4px; font-variant-numeric:tabular-nums; } | |
| select { font:inherit; font-size:13px; color:var(--fg); background:#0b0f18; border:1px solid var(--line); | |
| border-radius:8px; padding:5px 7px; max-width:62%; } | |
| details summary { cursor:pointer; font-size:13px; color:var(--dim); } | |
| details[open] summary { margin-bottom:10px; } | |
| .small { font-size:12px; color:var(--dim); margin:0; } | |
| .note { padding:0 4px; } | |
| .linkbtn { font:inherit; font-size:12px; color:var(--accent); background:none; border:0; padding:0; cursor:pointer; margin-top:10px; } | |
| [hidden] { display:none ; } | |
| /* health panel */ | |
| .scorebox { display:flex; gap:14px; align-items:center; margin-bottom:8px; } | |
| .scorelabel { font-size:12px; color:var(--dim); text-transform:uppercase; letter-spacing:.08em; } | |
| .scoretext { font-size:20px; font-weight:800; } | |
| #systems { display:grid; grid-template-columns:1fr; gap:5px; } | |
| .sys { display:grid; grid-template-columns:14px 1fr auto; gap:8px; align-items:center; font-size:13px; } | |
| .sys .dot { width:10px; height:10px; border-radius:50%; } | |
| .sys .val { color:var(--dim); font-variant-numeric:tabular-nums; font-size:12px; text-align:right; } | |
| .sys .bar { grid-column:2 / 4; height:4px; border-radius:3px; background:#0b0f18; overflow:hidden; margin-top:-2px; } | |
| .sys .bar div { height:100%; border-radius:3px; } | |
| #log { max-height:170px; overflow:auto; font-size:12px; display:flex; flex-direction:column; gap:5px; } | |
| #log div { border-left:3px solid var(--line); padding-left:7px; color:#c6cee3; } | |
| #log div.warn { border-color:var(--warn); } #log div.bad { border-color:var(--bad); } #log div.ok { border-color:var(--ok); } | |
| #log b { color:var(--accent); font-weight:600; } | |
| @media (max-width:980px) { .wrap { flex-direction:column; align-items:stretch; } .stagecol { position:static; } aside { flex:none; } .stage { width:100%; } } | |
| .langrow { display:flex; align-items:center; gap:8px; margin-top:8px; font-size:13px; color:var(--dim); } | |
| .langrow select { max-width:none; } | |
| #cmcharts { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; } | |
| .cmhead { display:flex; flex-wrap:wrap; gap:4px 12px; align-items:center; font-size:11.5px; color:var(--dim); margin-bottom:8px; } | |
| .cmhead > span:first-child { flex-basis:100%; text-transform:uppercase; letter-spacing:.08em; font-weight:600; } | |
| .lgd { display:inline-flex; align-items:center; gap:5px; } .lgd i { width:16px; display:inline-block; } | |
| .cmgrid { display:grid; grid-template-columns:1fr 1fr; gap:8px; } | |
| .cmgrid canvas { width:100%; height:92px; background:#0b0f18; border:1px solid var(--line); border-radius:8px; display:block; } | |
| .cmnote { margin-top:8px; } | |
| .byline { font-size:12px; color:var(--accent); margin-top:2px; letter-spacing:.02em; } | |
| .refs ol { margin:0; padding-left:18px; font-size:11.5px; color:#b8c2dc; display:flex; flex-direction:column; gap:5px; } | |
| .refs a { color:var(--accent); word-break:break-all; } | |
| .credit { text-align:center; font-size:13px; color:var(--dim); margin:4px 0 8px; } | |
| /* radiation burst sequence */ | |
| #zoomer { position:absolute; inset:0; transform-origin:0 0; will-change:transform; } | |
| #evcard { position:absolute; right:14px; bottom:14px; width:min(330px, 42%); padding:11px 13px 12px; border-radius:12px; z-index:5; | |
| background:rgba(10,8,16,.82); border:1px solid rgba(255,93,115,.65); box-shadow:0 0 24px rgba(255,60,90,.25); | |
| font-size:12.5px; line-height:1.42; color:#e8ecf4; backdrop-filter:blur(4px); } | |
| #evcard .evhead { display:flex; justify-content:space-between; align-items:center; gap:8px; } | |
| #evcard .evname { font-size:15px; color:#ffb0bb; } | |
| #evcard .evskip { font:inherit; font-size:11.5px; color:#cfd6e2; background:transparent; border:1px solid #3a4152; border-radius:7px; padding:2px 8px; cursor:pointer; } | |
| #evcard .evsub { color:#9aa4b8; font-size:11.5px; margin-top:2px; } | |
| #evcard .evbar { height:3px; background:#2a2f3c; border-radius:2px; margin:8px 0 7px; overflow:hidden; } | |
| #evcard .evbar i { display:block; height:100%; width:0; background:#ffd65a; } | |
| #evcard .evorgan { font-weight:700; color:#ffd65a; font-size:14px; } | |
| #evcard .evdose { font-family:ui-monospace,Consolas,monospace; color:#fff; margin:2px 0 5px; } | |
| #evcard .evtext:empty, #evcard .evstat:empty { display:none; } | |
| #evcard .evstat { margin-top:6px; color:#ffcf9a; } | |
| #evcard .evloc { margin-top:6px; color:#8fb8ff; font-size:11.5px; } | |
| /* About window */ | |
| .langrow .aboutbtn { margin-left:auto; font:inherit; font-size:12.5px; color:var(--accent); background:transparent; border:1px solid var(--accent); border-radius:8px; padding:4px 10px; cursor:pointer; } | |
| .langrow .aboutbtn:hover { background:rgba(127,209,255,.12); } | |
| #about { position:fixed; inset:0; z-index:50; background:rgba(3,5,10,.72); display:flex; align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(3px); } | |
| #about[hidden] { display:none; } | |
| #about .abox { width:min(860px, 100%); max-height:calc(100vh - 40px); display:flex; flex-direction:column; background:var(--panel); border:1px solid var(--line); border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.6); } | |
| #about .ahead { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line); font-size:17px; } | |
| #about .aclose { font:inherit; font-size:15px; color:var(--fg); background:transparent; border:1px solid var(--line); border-radius:8px; width:32px; height:30px; cursor:pointer; } | |
| #about .abody { overflow:auto; padding:6px 22px 20px; font-size:14px; line-height:1.6; color:#d9dfeb; } | |
| #about h3 { color:var(--accent); font-size:15px; margin:18px 0 6px; } | |
| #about h4 { margin:12px 0 5px; font-size:13px; color:var(--fg); } | |
| #about ul { margin:4px 0; padding-left:20px; } #about li { margin:4px 0; } | |
| #about b { color:var(--fg); } | |
| #about table.abt { border-collapse:collapse; width:100%; font-size:12.5px; font-variant-numeric:tabular-nums; } | |
| #about table.abt th, #about table.abt td { border:1px solid var(--line); padding:5px 8px; text-align:right; } | |
| #about table.abt th { color:var(--dim); font-weight:600; background:#0e1320; } | |
| #about table.abt tr th:first-child { text-align:left; color:var(--fg); } | |
| #about table.abt td.na { color:var(--dim); text-align:center; } | |
| #about .unit { color:var(--dim); font-size:12px; margin:4px 0 6px; } | |
| .seg.modesw { display:flex; gap:6px; margin-bottom:9px; } | |
| .seg.modesw button { flex:1; padding:8px 6px; font-size:13px; } | |
| .seg.modesw button:disabled { opacity:.55; cursor:default; } | |