Style markdown links with underline and pointer cursor
Links in both rendered markdown (.paperclip-markdown) and the MDXEditor (.paperclip-mdxeditor-content) now display with underline text-decoration and cursor:pointer by default. Mention chips are excluded from underline styling to preserve their pill appearance. Co-Authored-By: Paperclip <noreply@paperclip.ing> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d917375e35
commit
0f9faa297b
1 changed files with 16 additions and 4 deletions
|
|
@ -343,6 +343,17 @@
|
||||||
margin-top: 1.1em;
|
margin-top: 1.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.paperclip-mdxeditor-content a:not(.paperclip-mention-chip):not(.paperclip-project-mention-chip) {
|
||||||
|
color: color-mix(in oklab, var(--foreground) 76%, #0969da 24%);
|
||||||
|
text-decoration: underline;
|
||||||
|
text-underline-offset: 0.15em;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .paperclip-mdxeditor-content a:not(.paperclip-mention-chip):not(.paperclip-project-mention-chip) {
|
||||||
|
color: color-mix(in oklab, var(--foreground) 80%, #58a6ff 20%);
|
||||||
|
}
|
||||||
|
|
||||||
.paperclip-mdxeditor-content a.paperclip-mention-chip,
|
.paperclip-mdxeditor-content a.paperclip-mention-chip,
|
||||||
.paperclip-mdxeditor-content a.paperclip-project-mention-chip {
|
.paperclip-mdxeditor-content a.paperclip-project-mention-chip {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|
@ -661,12 +672,13 @@ a.paperclip-mention-chip[data-mention-kind="agent"]::before {
|
||||||
|
|
||||||
.paperclip-markdown a {
|
.paperclip-markdown a {
|
||||||
color: color-mix(in oklab, var(--foreground) 76%, #0969da 24%);
|
color: color-mix(in oklab, var(--foreground) 76%, #0969da 24%);
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.paperclip-markdown a:hover {
|
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-underline-offset: 0.15em;
|
text-underline-offset: 0.15em;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paperclip-markdown a.paperclip-mention-chip {
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark .paperclip-markdown a {
|
.dark .paperclip-markdown a {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue