Skip to content

Commit

Permalink
Only put a border on code inside paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Sep 22, 2021
1 parent 6fe884c commit 2450fed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/furo/assets/styles/content/_code.sass
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// Inline code
code.literal
background: var(--color-inline-code-background)
border: 1px solid var(--color-background-border)
border-radius: 0.2em
// Make the font smaller, and use padding to recover.
font-size: var(--font-size--small--2)
padding: 0.1em 0.2em

p &
border: 1px solid var(--color-background-border)

// Code and Literal Blocks
$code-spacing-vertical: 0.625rem
$code-spacing-horizontal: 0.875rem
Expand Down

0 comments on commit 2450fed

Please sign in to comment.