Spaces:
Running
Running
3DOnt online site: landing: surface value example, elbow arrows in the architecture figure
c841914 verified Download css/style.css from MatteoCodiglione/3dont-online: direct link, hf CLI and curl.
- Browser
- Download file 17.6 kB
-
https://huggingface.co/spaces/MatteoCodiglione/3dont-online/resolve/main/css/style.css
- Command line
-
hf download hf://spaces/MatteoCodiglione/3dont-online/css/style.css
-
curl -L -o style.css https://huggingface.co/spaces/MatteoCodiglione/3dont-online/resolve/main/css/style.css
17.6 kB
| :root { | |
| --bg: #0d1117; --bg2: #11161d; --panel: #161b22; --panel2: #1f2630; --line: #2a3340; | |
| --text: #e6edf3; --muted: #9aa7b4; --dim: #6b7785; | |
| --accent: #58a6ff; --accent2: #79c0ff; --accent-soft: rgba(88, 166, 255, .14); | |
| --warm: #f0b35a; --ok: #56d364; --bad: #ff7b72; | |
| --paper: #f6f8fa; --paper-text: #1f2328; | |
| --radius: 10px; --shadow: 0 10px 30px rgba(0, 0, 0, .35); | |
| --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; | |
| --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; | |
| --serif: "Fraunces", Georgia, serif; | |
| color-scheme: dark; | |
| } | |
| * { box-sizing: border-box; } | |
| [hidden] { display: none ; } | |
| html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); } | |
| a { color: var(--accent2); text-decoration: none; } | |
| a:hover { text-decoration: underline; } | |
| button, select, input, textarea { font: inherit; color: inherit; } | |
| code, pre, .mono { font-family: var(--mono); font-size: 12.5px; } | |
| /* ---------- top bar ---------- */ | |
| .topbar { height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 16px; | |
| background: rgba(13, 17, 23, .92); border-bottom: 1px solid var(--line); position: relative; z-index: 5; } | |
| .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: .2px; color: var(--text); } | |
| .brand svg { width: 26px; height: 26px; } | |
| .brand small { color: var(--muted); font-weight: 400; } | |
| .topbar nav { margin-left: auto; display: flex; gap: 14px; } | |
| .topbar nav a { color: var(--muted); } | |
| .topbar nav a.on, .topbar nav a:hover { color: var(--text); text-decoration: none; } | |
| /* ---------- app layout ---------- */ | |
| .app { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 52px); } | |
| .side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; } | |
| .stage { position: relative; min-width: 0; background: radial-gradient(1200px 700px at 60% 30%, #172130 0%, #0d1117 70%); } | |
| .stage canvas { width: 100%; height: 100%; display: block; } | |
| .tabs { display: flex; border-bottom: 1px solid var(--line); } | |
| .tabs button { flex: 1; background: none; border: 0; padding: 11px 6px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; } | |
| .tabs button.on { color: var(--text); border-bottom-color: var(--accent); } | |
| .tabpane { overflow: auto; padding: 14px 16px 30px; flex: 1; display: none; } | |
| .tabpane.on { display: block; } | |
| h3.sec { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 18px 0 8px; font-weight: 600; } | |
| h3.sec:first-child { margin-top: 2px; } | |
| .field { margin: 8px 0; } | |
| .field label { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; } | |
| select, input[type=text], textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; } | |
| textarea { min-height: 150px; resize: vertical; font-family: var(--mono); font-size: 12px; line-height: 1.45; } | |
| input[type=range] { width: 100%; accent-color: var(--accent); } | |
| .btn { white-space: nowrap; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; } | |
| .btn:hover { border-color: #3a4656; } | |
| .btn.primary { background: var(--accent); border-color: var(--accent); color: #0b1320; font-weight: 600; } | |
| .btn.primary:hover { background: var(--accent2); } | |
| .btn:disabled { opacity: .45; cursor: not-allowed; } | |
| .row { display: flex; gap: 8px; align-items: center; } | |
| .row > * { flex: 1; } | |
| .seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; } | |
| .seg button { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; text-align: left; font-size: 13px; } | |
| .seg button.on { border-color: var(--accent); background: var(--accent-soft); } | |
| .seg button small { display: block; color: var(--dim); font-size: 11px; } | |
| .muted { color: var(--muted); } | |
| .dim { color: var(--dim); } | |
| .small { font-size: 12px; } | |
| .hint { color: var(--dim); font-size: 12px; margin: 4px 0 0; } | |
| .chips { display: flex; flex-wrap: wrap; gap: 6px; } | |
| .chip { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; } | |
| .chip.on { color: #0b1320; background: var(--accent); border-color: var(--accent); } | |
| .chip.warm { color: #1d1405; background: var(--warm); border-color: var(--warm); } | |
| .card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; } | |
| .card h4 { margin: 0 0 2px; font-size: 15px; } | |
| .card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; } | |
| .showme { list-style: none; padding: 0; margin: 8px 0 0; } | |
| .showme li { margin: 0 0 6px; } | |
| .showme button { width: 100%; text-align: left; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; cursor: pointer; color: var(--text); font-size: 12.5px; display: flex; gap: 8px; } | |
| .showme button:hover { border-color: var(--accent); background: var(--accent-soft); } | |
| .showme button::before { content: "▸"; color: var(--accent); } | |
| .slider-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); } | |
| .slider-label b { color: var(--text); font-weight: 600; } | |
| .tree { font-size: 12.5px; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--bg2); } | |
| .tree ul { list-style: none; padding-left: 14px; margin: 0; } | |
| .tree > ul { padding-left: 0; } | |
| .tree label { display: flex; gap: 6px; align-items: center; cursor: pointer; padding: 1px 0; } | |
| .swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; } | |
| /* overlays on the stage */ | |
| .overlay { position: absolute; background: rgba(22, 27, 34, .88); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(6px); box-shadow: var(--shadow); } | |
| .legend { left: 14px; bottom: 14px; min-width: 190px; max-width: 300px; max-height: 45%; overflow: auto; padding: 10px 12px; font-size: 12px; } | |
| .legend .it { display: flex; align-items: center; gap: 8px; padding: 1px 0; cursor: default; } | |
| .legend .it span.c { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; } | |
| .legend .clear-hl { display: block; width: 100%; margin-top: 8px; padding: 4px 8px; font-size: 12px; cursor: pointer; position: sticky; bottom: 0; z-index: 1; } | |
| .ramp { height: 10px; border-radius: 4px; margin: 6px 0 2px; background: linear-gradient(90deg, #30123b, #4686fb, #1be5b5, #a4fc3c, #fbb938, #e4460a, #7a0403); } | |
| .viewbar { right: 14px; top: 14px; display: flex; gap: 2px; padding: 4px; } | |
| .viewbar button { background: none; border: 0; color: var(--muted); padding: 5px 8px; border-radius: 6px; cursor: pointer; font-size: 12px; } | |
| .viewbar button:hover { background: var(--panel2); color: var(--text); } | |
| .status { right: 14px; bottom: 14px; padding: 7px 11px; font-size: 12px; color: var(--muted); max-width: 46%; } | |
| .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--muted); } | |
| .bar { width: 260px; height: 4px; background: var(--panel2); border-radius: 4px; overflow: hidden; } | |
| .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; } | |
| /* results */ | |
| .result { margin-top: 10px; font-size: 12.5px; } | |
| .result .sum { padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); border: 1px solid rgba(88, 166, 255, .35); } | |
| .result .err { padding: 8px 10px; border-radius: 8px; background: rgba(255, 123, 114, .1); border: 1px solid rgba(255, 123, 114, .4); color: #ffb3ad; } | |
| table.tbl { border-collapse: collapse; width: 100%; font-size: 12px; margin-top: 8px; } | |
| table.tbl th, table.tbl td { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; } | |
| table.tbl th { color: var(--dim); font-weight: 600; } | |
| table.tbl td a { cursor: pointer; } | |
| details summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 8px; } | |
| details pre { white-space: pre-wrap; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; max-height: 240px; overflow: auto; } | |
| .slot { border: 1px dashed #3a4656; border-radius: 8px; padding: 10px; color: var(--dim); font-size: 12.5px; } | |
| .slot ul { list-style: none; margin: 0; padding: 0; } | |
| .slot li button { background: none; border: 0; color: var(--accent2); padding: 3px 0; cursor: pointer; text-align: left; } | |
| .chain { list-style: none; padding: 0; margin: 6px 0; } | |
| .chain li { position: relative; padding: 6px 8px 6px 26px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--bg2); cursor: pointer; } | |
| .chain li:hover, .chain li.on { border-color: var(--accent); } | |
| .chain li::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--line); } | |
| .chain li .k { color: var(--dim); font-size: 11.5px; } | |
| .props { font-size: 12px; width: 100%; border-collapse: collapse; } | |
| .props td { padding: 3px 4px; border-bottom: 1px solid var(--line); vertical-align: top; } | |
| .props td:first-child { color: var(--muted); width: 45%; } | |
| @media (max-width: 860px) { | |
| .app { grid-template-columns: 1fr; grid-template-rows: 55vh auto; height: auto; } | |
| .stage { height: 55vh; order: -1; } | |
| .side { border-right: 0; border-top: 1px solid var(--line); } | |
| .topbar { gap: 10px; padding: 0 10px; } | |
| .topbar nav { gap: 10px; } | |
| .topbar nav a:not(:last-child) { display: none; } | |
| .topbar #project { min-width: 0 ; flex: 1; max-width: 220px; } | |
| .brand small { display: none; } | |
| .legend { max-width: 55%; max-height: 38%; font-size: 11px; left: 8px; bottom: 8px; padding: 6px 8px; min-width: 0; } | |
| .status { display: none; } | |
| .viewbar { right: 8px; top: 8px; } | |
| } | |
| /* ---------- NL-2-SPARQL agent (js/agent.js) ---------- */ | |
| .agent { position: relative; background: radial-gradient(260px 140px at 40% 30%, #1b2a3d 0%, var(--bg2) 75%); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; overflow: hidden; } | |
| .agent-svg { display: block; width: 100%; height: auto; } | |
| .agent-say { position: relative; margin: 2px 0 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; color: var(--text); min-height: 2.6em; } | |
| .agent-say::before { content: ""; position: absolute; top: -7px; left: 108px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--line); } | |
| .agent-say::after { content: ""; position: absolute; top: -5px; left: 109px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--panel2); } | |
| .agent-say.pop { animation: ag-pop .28s ease-out; } | |
| @keyframes ag-pop { from { transform: translateY(3px); opacity: .3; } to { transform: none; opacity: 1; } } | |
| .agent .ag-head, .agent .ag-eyes, .agent .ag-brow-l, .agent .ag-brow-r, .agent .ag-mouth, .agent .ag-arm-l, .agent .ag-arm-r, .agent .ag-char { transition: transform .45s cubic-bezier(.3, .8, .3, 1), d .3s; transform-box: fill-box; } | |
| .agent .ag-head { transform-origin: 50% 90%; } | |
| .agent .ag-breath { animation: ag-breath 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; } | |
| @keyframes ag-breath { 50% { transform: translateY(-1.5px) scaleY(1.01); } } | |
| .agent .ag-eye { animation: ag-blink 4.8s infinite; transform-box: fill-box; transform-origin: center; } | |
| @keyframes ag-blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } } | |
| .agent .ag-waves, .agent .ag-think, .agent .ag-map { opacity: 0; transition: opacity .3s; } | |
| .agent .ag-think circle { fill: #9aa7b4; } | |
| .agent .ag-code { transition: opacity .3s; } | |
| /* arms rest by the body unless typing */ | |
| .agent .ag-arm-l, .agent .ag-arm-r { opacity: 0; transition: opacity .25s; } | |
| .agent .ag-rest { transition: opacity .25s; } | |
| .agent[data-state=work] .ag-rest { opacity: 0; } | |
| .agent[data-state=done] .ag-rest rect:last-of-type { transform: rotate(-150deg); transform-box: fill-box; transform-origin: 50% 8%; } | |
| /* listen */ | |
| .agent[data-state=listen] .ag-head { transform: rotate(-7deg) translate(-2px, 1px); } | |
| .agent[data-state=listen] .ag-waves { opacity: 1; } | |
| .agent[data-state=listen] .ag-waves path { animation: ag-wave 1.1s ease-out infinite; } | |
| .agent[data-state=listen] .ag-waves path:nth-child(2) { animation-delay: .18s; } | |
| .agent[data-state=listen] .ag-waves path:nth-child(3) { animation-delay: .36s; } | |
| @keyframes ag-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } } | |
| .agent[data-state=listen] .ag-ant, .agent[data-state=work] .ag-ant { animation: ag-ant 0.9s ease-in-out infinite; } | |
| .agent .ag-ant-glow { opacity: .25; } | |
| .agent[data-state=listen] .ag-ant-glow, .agent[data-state=work] .ag-ant-glow { opacity: 1; animation: ag-ant .9s ease-in-out infinite; } | |
| @keyframes ag-ant { 50% { opacity: .35; } } | |
| /* work: turned to the laptop, typing */ | |
| .agent[data-state=work] .ag-head { transform: rotate(13deg) translate(8px, 4px); } | |
| .agent[data-state=work] .ag-eyes { transform: translate(5px, 4px); } | |
| .agent[data-state=work] .ag-arm-l, .agent[data-state=work] .ag-arm-r { opacity: 1; } | |
| .agent[data-state=work] .ag-arm-l { animation: ag-type-a .26s ease-in-out infinite alternate; } | |
| .agent[data-state=work] .ag-arm-r { animation: ag-type-b .22s ease-in-out infinite alternate; } | |
| @keyframes ag-type-a { to { transform: translate(1px, -3px); } } | |
| @keyframes ag-type-b { to { transform: translate(-1px, -3.5px); } } | |
| .agent[data-state=work] .ag-code { animation: ag-scroll 2.2s linear infinite; } | |
| @keyframes ag-scroll { from { transform: translateY(0); } to { transform: translateY(-49px); } } | |
| .agent[data-state=work] .ag-think { opacity: 1; } | |
| .agent[data-state=work] .ag-think circle { animation: ag-dots 1.2s ease-in-out infinite; } | |
| .agent[data-state=work] .ag-think circle:nth-child(2) { animation-delay: .2s; } | |
| .agent[data-state=work] .ag-think circle:nth-child(3) { animation-delay: .4s; } | |
| @keyframes ag-dots { 50% { opacity: .2; } } | |
| .agent[data-state=work] .ag-core { animation: ag-ant .6s ease-in-out infinite; } | |
| /* ask: stops typing, looks at the viewer, brows up; the laptop shows the mapping */ | |
| .agent[data-state=ask] .ag-head { transform: rotate(-3deg) translate(0, -2px); } | |
| .agent[data-state=ask] .ag-brow-l { transform: translateY(-3px) rotate(-6deg); } | |
| .agent[data-state=ask] .ag-brow-r { transform: translateY(-3px) rotate(6deg); } | |
| .agent[data-state=ask] .ag-code { opacity: .15; } | |
| .agent[data-state=ask] .ag-map { opacity: 1; } | |
| .agent[data-state=ask] .ag-core { fill: var(--warm); animation: ag-ant 1.6s ease-in-out infinite; } | |
| .agent[data-state=ask] .agent-say { border-color: var(--warm); } | |
| /* done / error */ | |
| .agent[data-state=done] .ag-mouth { d: path("M114 79 Q124 89 134 79"); } | |
| .agent[data-state=done] .ag-head { animation: ag-nod .7s ease-in-out 2; } | |
| @keyframes ag-nod { 50% { transform: translateY(3px); } } | |
| .agent[data-state=done] .ag-core { fill: var(--ok); } | |
| .agent[data-state=error] .ag-brow-l { transform: translateY(1px) rotate(12deg); } | |
| .agent[data-state=error] .ag-brow-r { transform: translateY(1px) rotate(-12deg); } | |
| .agent[data-state=error] .ag-mouth { d: path("M116 84 Q124 79 132 84"); } | |
| .agent[data-state=error] .ag-core { fill: var(--bad); } | |
| .agent[data-state=error] .agent-say { border-color: rgba(255, 123, 114, .6); } | |
| @media (prefers-reduced-motion: reduce) { .agent * { animation: none ; transition: none ; } } | |
| .askbox { display: flex; gap: 6px; margin-top: 8px; } | |
| .askbox textarea { min-height: 54px; font-family: var(--sans); font-size: 13px; flex: 1; } | |
| .askbox .btn { align-self: stretch; } | |
| .agent-steps { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 10px; } | |
| .agent-steps li::before { content: "○ "; } | |
| .agent-steps li.run { color: var(--accent2); } .agent-steps li.run::before { content: "◐ "; } | |
| .agent-steps li.ok { color: var(--ok); } .agent-steps li.ok::before { content: "● "; } | |
| .agent-steps li.bad { color: var(--bad); } .agent-steps li.bad::before { content: "✕ "; } | |
| .mapping { margin-top: 8px; border: 1px solid var(--warm); border-radius: 10px; padding: 8px 10px; background: rgba(240, 179, 90, .06); } | |
| .mapping table { width: 100%; border-collapse: collapse; font-size: 12.5px; } | |
| .mapping td { padding: 3px 4px; vertical-align: middle; } | |
| .mapping td:first-child { width: 38%; font-family: var(--mono); color: var(--text); } | |
| .mapping td.arrow { width: 16px; color: var(--dim); text-align: center; } | |
| .mapping select { padding: 3px 6px; font-size: 12px; } | |
| .mapping select.unmapped { border-color: var(--bad); } | |
| .mapping .std { color: var(--dim); font-size: 11.5px; margin: 4px 0 0; } | |
| .mapping .std button { background: none; border: 0; color: var(--accent2); cursor: pointer; padding: 0; font-size: 11.5px; } | |
| .mapping .row { margin-top: 8px; } | |
| details.expert { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--bg2); } | |
| details.expert summary { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin: 0; } | |
| details.expert textarea { min-height: 90px; font-size: 11.5px; } | |
| .slot ul.examples li { display: flex; gap: 6px; align-items: baseline; padding: 2px 0; border-bottom: 1px dashed #2a3340; } | |
| .slot ul.examples li:last-child { border-bottom: 0; } | |
| .slot ul.examples .chip { flex: none; font-size: 10.5px; padding: 0 6px; color: var(--warm); border-color: rgba(240,179,90,.45); } | |