Skip to content

Commit

Permalink
chore(theme): optimize code style in sidebar (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
10Derozan authored Mar 27, 2024
1 parent 5376e70 commit 5b98eaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-onions-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rspress/theme-default': patch
---

chore: optimize code style in sidebar
6 changes: 2 additions & 4 deletions packages/theme-default/src/styles/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@
--rp-code-line-number-color: rgba(60, 60, 60, 0.33);
}

.rspress-doc :not(pre, h1, h2, h3, h4, h5, h6) > code,
.rspress-sidebar code
.rspress-doc :not(pre, h1, h2, h3, h4, h5, h6) > code
{
font-size: var(--rp-code-font-size);
}

.rspress-doc :not(pre, div, a) > code,
.rspress-sidebar code
.rspress-doc :not(pre, div, a) > code
{
border-radius: var(--rp-radius-small);
padding: 4px 8px;
Expand Down

0 comments on commit 5b98eaa

Please sign in to comment.