diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 16:25:12 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 16:25:12 +0100 |
| commit | ec140125f208d5f6e507dfe6b8e9abc7236cb21b (patch) | |
| tree | a6ba7593121981b11f0f8167b1059a572731d15e /static/deck.css | |
| parent | ea5a277c6b8bb2ba48b0ca8822797cf6ab0b3405 (diff) | |
| download | deck-it-ec140125f208d5f6e507dfe6b8e9abc7236cb21b.tar.gz deck-it-ec140125f208d5f6e507dfe6b8e9abc7236cb21b.zip | |
feat(assistant): a faint picture behind the Assistant tab
`[assistant] background` names an image (none by default); the server
serves it at /api/bg behind the token, and the tab shows its subject from
the right side, desaturated and faded out on every side so no edge shows:
opacity .24 while the chat is empty, .07 during a conversation. Tuned on
the 1280x800 tablet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
| -rw-r--r-- | static/deck.css | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/static/deck.css b/static/deck.css index d998af4..3c45e98 100644 --- a/static/deck.css +++ b/static/deck.css @@ -686,3 +686,19 @@ select { } #asleep[hidden] { display: none; } .asleep-moon { font-size: 3rem; color: var(--udt-overlay0); } + +/* The Assistant tab's backdrop ([assistant] background, served at /api/bg): + the picture's subject rising from the bottom-right corner, desaturated + and faded out toward the content; stronger while the chat is empty. No + image configured: the URL answers 404 and nothing shows. */ +.assistant { position: relative; } +.assistant::before { + content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; + /* ponytail: sized for the 1280x800 tablet; the subject centre sits ~74% across */ + background: url("/api/bg") no-repeat right -300px top / auto 108%; + filter: saturate(.75) brightness(.9); + opacity: .07; transition: opacity .6s; + mask-image: radial-gradient(ellipse 27% 56% at 74% 40%, #000 30%, transparent 100%); +} +.assistant.idle::before { opacity: .24; } +.assistant > * { position: relative; z-index: 1; } |
