fix(#72): add mention chip styling for @mention rendering in comments
Mention spans injected via {@html} need global CSS since scoped styles
don't reach dynamically inserted content. Uses ink text on accent-bg
background for visible but subtle chip appearance.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -160,7 +160,28 @@
|
|||||||
filter: invert(1);
|
filter: invert(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ─── 7. Base styles ───────────────────────────────────────────────────────── */
|
/* ─── 7. @mention chip ─────────────────────────────────────────────────────── */
|
||||||
|
/*
|
||||||
|
Rendered by renderBody() via {@html ...} in CommentThread.svelte.
|
||||||
|
Must live in global CSS — Svelte scoped styles don't reach injected HTML.
|
||||||
|
*/
|
||||||
|
.mention {
|
||||||
|
display: inline;
|
||||||
|
color: var(--c-ink);
|
||||||
|
background-color: var(--c-accent-bg);
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 0 3px;
|
||||||
|
font-weight: 600;
|
||||||
|
font-style: normal;
|
||||||
|
cursor: default;
|
||||||
|
transition: background-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mention:hover {
|
||||||
|
background-color: color-mix(in srgb, var(--c-accent) 25%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ─── 8. Base styles ───────────────────────────────────────────────────────── */
|
||||||
@layer base {
|
@layer base {
|
||||||
html {
|
html {
|
||||||
overscroll-behavior: none;
|
overscroll-behavior: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user