mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
feat(desktop): use one color for Markdown links
Normal links, session links, and URLs written in backticks now share --markdown-link-color, so link text and its favicon match.
This commit is contained in:
parent
81200db2a3
commit
c90d7ee673
1 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[data-component="markdown"] {
|
||||
--markdown-inline-code-path-color: var(--v2-text-text-code-path);
|
||||
--markdown-inline-code-color: var(--v2-text-text-code-accent);
|
||||
--markdown-link-color: var(--v2-text-text-code-accent);
|
||||
--markdown-inline-code-bg-mix: 8%;
|
||||
--markdown-shell-code-background: var(--v2-background-bg-layer-02);
|
||||
--markdown-shell-code-border: var(--v2-border-border-muted);
|
||||
|
|
@ -99,7 +99,7 @@
|
|||
|
||||
/* Links */
|
||||
a {
|
||||
color: var(--text-interactive-base);
|
||||
color: var(--markdown-link-color);
|
||||
text-decoration: none;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
|
@ -167,7 +167,7 @@
|
|||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: var(--text-interactive-base);
|
||||
color: var(--markdown-link-color);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
@ -386,10 +386,10 @@
|
|||
}
|
||||
|
||||
a.external-link > code[data-inline-code-kind="url"] {
|
||||
color: var(--markdown-inline-code-color);
|
||||
color: var(--markdown-link-color);
|
||||
background: none;
|
||||
text-decoration: underline;
|
||||
text-decoration-color: color-mix(in oklch, var(--markdown-inline-code-color) 25%, transparent);
|
||||
text-decoration-color: color-mix(in oklch, var(--markdown-link-color) 25%, transparent);
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue