Spaces:
Paused
Paused
Download static/style.css from RAILassistant/RAIL_Assistant: direct link, hf CLI and curl.
- Browser
- Download file 4.07 kB
-
https://huggingface.co/spaces/RAILassistant/RAIL_Assistant/resolve/main/static/style.css
- Command line
-
hf download hf://spaces/RAILassistant/RAIL_Assistant/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/RAILassistant/RAIL_Assistant/resolve/main/static/style.css
4.07 kB
| /* Tema scuro ispirato a ChatGPT */ | |
| :root{ | |
| --bg:#343541; /* sfondo app */ | |
| --panel:#202123; /* pannelli/tools/header/footer */ | |
| --assist:#444654; /* bubble assistant */ | |
| --user:#10a37f; /* bubble utente (verde OpenAI) */ | |
| --muted:#aeb3c1; /* testo attenuato */ | |
| --border:#2a2b32; /* bordi */ | |
| --accent:#9bbcf2; /* link/dettagli */ | |
| } | |
| *{box-sizing:border-box} | |
| html,body{height:100%;margin:0;font-family:Inter,system-ui,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:#ececf1} | |
| .app{height:100%;display:flex;flex-direction:column} | |
| /* Header */ | |
| header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--panel);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10} | |
| header .brand{display:flex;align-items:center;gap:10px} | |
| header .brand img{height:28px;width:auto;filter:grayscale(100%) brightness(1.2)} | |
| header .title{font-weight:600} | |
| header .hint{display:flex;align-items:center;gap:8px;color:var(--muted)} | |
| header .hint input{background:#0f1015;color:#cbd5e1;border:1px solid var(--border);padding:6px 8px;border-radius:8px} | |
| /* Main split */ | |
| .main-area{flex:1;display:grid;grid-template-columns:2fr 1fr;gap:0;overflow:hidden} | |
| main#chat{overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;border-right:1px solid var(--border);background:var(--bg)} | |
| aside.tools{overflow-y:auto;padding:12px;background:var(--panel);display:flex;flex-direction:column;gap:12px} | |
| /* Messages */ | |
| .msg{display:flex} | |
| .msg.user{justify-content:flex-end} | |
| .msg.assistant{justify-content:flex-start} | |
| .bubble{ | |
| max-width:80%; | |
| padding:10px 12px; | |
| border-radius:14px; | |
| line-height:1.55; | |
| border:1px solid var(--border); | |
| white-space:pre-wrap; | |
| } | |
| .user .bubble{background:var(--user);color:#fff;border-color:transparent} | |
| .assistant .bubble{background:var(--assist)} | |
| .bubble.error{background:#7a2e2e;border-color:#a23b3b} | |
| .bubble.typing{display:inline-flex;gap:4px;align-items:center} | |
| .bubble.typing span{ | |
| width:6px;height:6px;background:#c5c8d4;display:inline-block;border-radius:50%; | |
| animation:blink 1.2s infinite ease-in-out | |
| } | |
| .bubble.typing span:nth-child(2){animation-delay:.2s} | |
| .bubble.typing span:nth-child(3){animation-delay:.4s} | |
| @keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}} | |
| /* Tools/cards */ | |
| .card{background:#1f2028;border:1px solid var(--border);border-radius:12px;padding:12px} | |
| .card h3{margin:0 0 8px} | |
| .row{margin-top:8px} | |
| .card button,#send,#reloadBtn{ | |
| background:var(--user);color:#fff;border:none;padding:8px 12px;border-radius:10px;cursor:pointer;font-weight:600 | |
| } | |
| .card button:hover,#send:hover,#reloadBtn:hover{filter:brightness(1.08)} | |
| .card input[type=file], .card select{margin-right:6px} | |
| .card small{color:var(--muted)} | |
| /* Catalog table */ | |
| #catalog table{width:100%;border-collapse:collapse;font-size:14px} | |
| #catalog th,#catalog td{border-bottom:1px solid var(--border);padding:6px 4px;vertical-align:top} | |
| #catalog a{color:#b4c6ff;text-decoration:none} | |
| #catalog a:hover{text-decoration:underline} | |
| /* Footer composer */ | |
| footer{border-top:1px solid var(--border);background:var(--panel);padding:10px 12px;position:sticky;bottom:0} | |
| #form{display:flex;gap:8px} | |
| #input{ | |
| flex:1;resize:none;background:#0f1015;color:#cbd5e1;border:1px solid var(--border); | |
| border-radius:10px;padding:10px 12px | |
| } | |
| #send{padding:10px 16px} | |
| .disclaimer{margin-top:6px;color:var(--muted);font-size:12px} | |
| .cites{margin-top:8px} | |
| .cites summary{cursor:pointer;color:var(--accent)} | |
| .cites ul{margin:8px 0 0;padding-left:16px;color:#d6d7df} | |
| code{background:#0f1015;padding:2px 4px;border-radius:6px;border:1px solid var(--border)} | |
| /* Gallery */ | |
| .gallery{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap} | |
| .gallery img{max-height:100px;border:1px solid var(--border);border-radius:8px} | |
| /* Responsive */ | |
| @media (max-width: 980px){ | |
| .main-area{grid-template-columns:1fr} | |
| aside.tools{order:-1;border-bottom:1px solid var(--border)} | |
| } | |