Skip to content

Commit 2e03186

Browse files
committed
style(docs): Upgrade prompt blocks to chat-bubble aesthetic
Restyle .prompt admonitions with speech bubble icon, italic text, translucent purple border, and 6px radius. The 💬 icon at 45% opacity quietly says "type this into your LLM" without shouting.
1 parent 5f13d4b commit 2e03186

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

docs/_static/css/custom.css

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,29 @@ article {
193193
}
194194

195195
/* ── Prompt blocks (user → LLM) ───────────────────────────
196-
* Styled admonition for copy-paste prompts. Purple-tinted
197-
* left bar ties to the interactive/link color. Visually says
198-
* "type this into your LLM client."
196+
* Styled admonition for copy-paste prompts. Chat-bubble
197+
* aesthetic with speech icon. Says "type this into your LLM."
199198
* ────────────────────────────────────────────────────────── */
200199
div.admonition.prompt {
201-
border: none;
200+
border: 1px solid color-mix(in srgb, var(--color-link) 25%, transparent);
202201
border-left: 3px solid var(--color-link);
203-
background: color-mix(in srgb, var(--color-link) 6%, var(--color-background-primary));
204-
padding: 0.6rem 1rem;
205-
margin: 1rem 0;
202+
background: color-mix(in srgb, var(--color-link) 4%, var(--color-background-primary));
203+
border-radius: 6px;
204+
padding: 0.75rem 1rem 0.75rem 2.2rem;
205+
margin: 1.25rem 0;
206206
box-shadow: none;
207+
position: relative;
208+
}
209+
210+
/* Speech bubble icon */
211+
div.admonition.prompt::before {
212+
content: "\1F4AC";
213+
position: absolute;
214+
left: 0.65rem;
215+
top: 0.7rem;
216+
font-size: 0.85rem;
217+
line-height: 1;
218+
opacity: 0.45;
207219
}
208220

209221
div.admonition.prompt > .admonition-title {
@@ -212,6 +224,8 @@ div.admonition.prompt > .admonition-title {
212224

213225
div.admonition.prompt > p {
214226
font-size: 0.95rem;
227+
font-style: italic;
228+
color: var(--color-foreground-primary);
215229
}
216230

217231
div.admonition.prompt > p:last-child {

0 commit comments

Comments
 (0)