Skip to content

Commit

Permalink
Improve inline code CSS formatting (sergiokopplin#445)
Browse files Browse the repository at this point in the history
I added a grey box and centered (vertical-align: middle) the inline code. This inline formatting is similar to the GitHub line formatting. I left the multiline CSS intact.
  • Loading branch information
Zeyuzhao authored Nov 6, 2021
1 parent b781680 commit eca72f1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion _sass/base/general.sass
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,15 @@ figure.highlight
width: 100%
margin: 0

code,
code
padding: 2px 3px
font-family: $fontMonospace
font-size: 12px
vertical-align: middle
background: #eee
border-radius: 2px

pre > code,
tt
padding: 1px 0
font-family: $fontMonospace
Expand Down

0 comments on commit eca72f1

Please sign in to comment.