diff options
| author | Adam <[email protected]> | 2025-11-25 13:11:21 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-11-25 13:11:21 -0600 |
| commit | 8bf552ae25e7d16eca408ff8542b0f7d89ff6f3c (patch) | |
| tree | 1db805444433e35e3cb65a0555f686dc8a409e6b /packages/ui/src/components/markdown.css | |
| parent | ccd0c2382f8ba8de21b47a9948d26ad35d11eb08 (diff) | |
| download | opencode-8bf552ae25e7d16eca408ff8542b0f7d89ff6f3c.tar.gz opencode-8bf552ae25e7d16eca408ff8542b0f7d89ff6f3c.zip | |
fix: markdown inline code style
Diffstat (limited to 'packages/ui/src/components/markdown.css')
| -rw-r--r-- | packages/ui/src/components/markdown.css | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/ui/src/components/markdown.css b/packages/ui/src/components/markdown.css index 19ff8e993..f9cf3d7c0 100644 --- a/packages/ui/src/components/markdown.css +++ b/packages/ui/src/components/markdown.css @@ -47,4 +47,24 @@ display: none; } } + + :not(pre) > code { + font-family: var(--font-family-mono); + font-feature-settings: var(--font-family-mono--font-feature-settings); + font-size: 0.9em; + /* background-color: var(--surface-base-strong); */ + /* padding: 0.15em 0.35em; */ + /* border-radius: var(--radius-sm); */ + + padding: 2px 2px; + margin: 0 1.5px; + border-radius: 2px; + background: var(--surface-base); + box-shadow: 0 0 0 0.5px var(--border-weak-base); + + /* &::before, */ + /* &::after { */ + /* content: "\`"; */ + /* } */ + } } |
