diff options
Diffstat (limited to 'static/deck.css')
| -rw-r--r-- | static/deck.css | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/static/deck.css b/static/deck.css index e60c732..48ec626 100644 --- a/static/deck.css +++ b/static/deck.css @@ -674,7 +674,27 @@ select { .assistant .as-op, .assistant .as-notice, .assistant .as-note { font-size: 0.857rem; color: var(--udt-subtext0); } .assistant .as-notice:empty { display: none; } .assistant .as-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; } -.assistant .as-q { align-self: flex-end; background: var(--udt-surface1); border-radius: 12px; padding: 8px 12px; white-space: pre-wrap; margin-left: 20%; } +.assistant .as-turn { display: flex; flex-direction: column; gap: 10px; } +.assistant .as-row { display: flex; align-items: flex-end; gap: 10px; } +.assistant .as-row.me { justify-content: flex-end; padding-left: 15%; } +.assistant .as-row.bot { padding-right: 10%; } +.assistant .as-av { + flex: none; width: 40px; height: 40px; border-radius: 20px; + background: var(--udt-surface1) center / cover no-repeat; +} +.assistant .as-av.me { background-image: url("/api/avatar"); } +.assistant.has-face .as-av.bot { background-image: url("/api/bg"); background-size: var(--face-size); background-position: var(--face-pos); } +.assistant .as-q, .assistant .as-bubble { padding: 10px 14px; border-radius: 16px; min-width: 0; } +.assistant .as-q { + white-space: pre-wrap; color: var(--udt-crust); + background: color-mix(in srgb, var(--udt-accent) 85%, var(--udt-text)); border-bottom-right-radius: 4px; +} +.assistant .as-bubble { + background: color-mix(in srgb, var(--udt-surface0) 88%, transparent); + border: 1px solid var(--udt-surface1); border-bottom-left-radius: 4px; +} +.assistant .as-bubble .md > :first-child { margin-top: 0; } +.assistant .as-bubble .md > :last-child { margin-bottom: 0; } .assistant .as-tools { font-size: 0.786rem; color: var(--udt-overlay0); } .assistant .md { line-height: 1.45; overflow-wrap: anywhere; } .assistant .md pre { position: relative; background: var(--udt-crust); border-radius: 8px; padding: 10px; overflow-x: auto; } |
