archivo del paquete→ .shtukbase/packages/chat/lens/chat.css
lens/chat.css
69 líneas, 5.6 KB.
El archivo tal como está en el paquete: el código y sus comentarios no se traducen.
- /* chat.css: the chat lens. Kit variables only; fits any width from 280px to the full main area.
- Drawn as the desktop app's assistant (guide: assistant-chat): a quiet header with the title and icon buttons,
- the person's message a warm grey bubble on the right, the answer plain text, the composer a rounded box with a
- round send button. */
- html, body { height: 100%; }
- body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); }
- .chat { display: flex; flex-direction: column; height: 100%; min-width: 0; }
- .chat-head { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px 0 16px; box-sizing: border-box; flex: none; min-width: 0; }
- .chat-title { font-weight: 400; font-size: 15px; white-space: nowrap; }
- .chat-where { color: var(--lx-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
- .chat-spacer { flex: 1; }
- .chat-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; background: none; color: var(--lx-muted); font-size: 12px; padding: 0; border-radius: var(--lx-radius); cursor: pointer; white-space: nowrap; }
- .chat-icon-btn:hover { background: var(--wash); color: var(--ink); }
- .chat-settings { display: grid; justify-content: stretch; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--bg2); flex: none; }
- .chat-settings[hidden] { display: none; }
- .chat-settings > * { max-width: 520px; }
- .chat-settings label { display: grid; gap: 2px; font-size: 12px; color: var(--lx-muted); }
- .chat-settings input { font: inherit; font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line2); border-radius: var(--lx-radius); padding: 5px 8px; min-width: 0; }
- .chat-note { margin: 0; font-size: 12px; color: var(--lx-muted); }
- .chat-row { display: flex; gap: 8px; }
- .chat-log { flex: 1; overflow-y: auto; overflow-anchor: none; min-height: 0; }
- .chat-list { display: flex; flex-direction: column; gap: 16px; padding: 12px 16px; max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
- .chat-empty { color: var(--faint); font-size: 13px; text-align: center; padding: 24px 8px; }
- .chat-msg { min-width: 0; overflow-wrap: anywhere; }
- .chat-user { display: flex; justify-content: flex-end; }
- .chat-bubble { background: var(--bg3); border-radius: 18px; padding: 10px 16px; max-width: 85%; white-space: pre-wrap; }
- .chat-assistant { display: flex; flex-direction: column; gap: 4px; }
- .chat-text p { margin: 0 0 8px; }
- .chat-text p:last-child { margin-bottom: 0; }
- .chat-text ul, .chat-text ol { margin: 0 0 8px; padding-left: 22px; }
- .chat-text li { margin: 0 0 6px; }
- .chat-text code { font-family: var(--mono); font-size: 12px; background: var(--wash); border-radius: 4px; padding: 0 3px; }
- .chat-text pre { margin: 0 0 8px; padding: 8px 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--lx-radius); overflow-x: auto; }
- .chat-text pre code { background: none; padding: 0; }
- .chat-text a { color: var(--lx-accent); }
- .chat-live:empty::after { content: '…'; color: var(--faint); }
- .chat-error { font-size: 12px; color: var(--cf-red); }
- .chat-tool { font-size: 12px; color: var(--lx-muted); }
- .chat-tool summary { display: flex; gap: 6px; align-items: baseline; cursor: pointer; list-style: none; padding: 2px 6px; border-radius: var(--lx-radius); min-width: 0; }
- .chat-tool summary::-webkit-details-marker { display: none; }
- .chat-tool summary::before { content: '▸'; color: var(--faint); }
- .chat-tool[open] summary::before { content: '▾'; }
- .chat-tool summary:hover { background: var(--wash); }
- .chat-tool-name { font-family: var(--mono); color: var(--ink); flex: none; }
- .chat-tool-args { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
- .chat-tool-size { color: var(--faint); flex: none; }
- .chat-tool-size.is-error { color: var(--cf-red); }
- .chat-tool-body { margin: 4px 0 0 14px; padding: 6px 8px; font-family: var(--mono); font-size: 11px; background: var(--bg2); border-radius: var(--lx-radius); white-space: pre-wrap; max-height: 240px; overflow: auto; }
- .chat-compose { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; justify-content: flex-end; margin: 0 12px 12px; padding: 12px 10px 10px 16px;
- border: 1px solid var(--line); border-radius: 20px; background: var(--lx-card); box-shadow: 0 1px 3px var(--wash); flex: none; }
- .chat-compose:focus-within { border-color: var(--line2); }
- .chat-compose textarea { flex: 1 1 100%; min-width: 0; resize: none; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); background: none; border: 0; padding: 0; min-height: 24px; max-height: 200px; box-sizing: border-box; outline: none; }
- .chat-compose textarea::placeholder { color: var(--faint); }
- .chat-settings input:focus { outline: 2px solid var(--accent-soft); border-color: var(--lx-accent); }
- .chat-send { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
- background: var(--ink); color: var(--bg); cursor: pointer; flex: none; }
- .chat-send:hover { opacity: .85; }
- .chat-send[data-stop] { background: var(--bg3); color: var(--ink); }
- .chat-btn { font-size: 13px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); border-radius: var(--lx-radius); padding: 6px 12px; cursor: pointer; white-space: nowrap; }
- .chat-btn:hover { background: var(--wash); }
- .chat-btn-primary { background: var(--lx-accent); border-color: var(--lx-accent); color: var(--bg); }
- .chat-btn-primary:hover { background: var(--lx-accent); opacity: .9; }
- [hidden] { display: none !important; }