Skip to content

Commit

Permalink
Improve in-line code blocks style
Browse files Browse the repository at this point in the history
and avoid interfering with multiline ones
  • Loading branch information
moisseev committed Mar 30, 2024
1 parent 3f2a1ab commit 1055a08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ pre {
background-color: #ffffff;
color: #000000;
}
code {
/* Markdown single backticks (` `) in-line code blocks */
:not(pre) > code {
padding: 2px 4px;
background-color: rgba(0 0 0 / 0.04) !important;
background-color: rgba(0 0 0 / 0.08);
border-radius: 4px;
color: inherit;
}
pre code {
Expand Down

0 comments on commit 1055a08

Please sign in to comment.