Skip to content

Commit

Permalink
Reduce the font size of inline code.
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Aug 23, 2020
1 parent 061d6f5 commit 44476f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/css/_addon/syntax.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ html[mode=dark] {
padding: 0.8rem 1rem;
}

$code-font-size: 0.85rem;

div > pre {
@extend %code-snippet-bg;
@extend %code-snippet-radius;
Expand Down Expand Up @@ -82,7 +84,7 @@ div > pre {
}
pre {
margin-bottom: 0;
font-size: 0.85rem;
font-size: $code-font-size;
line-height: 1.4rem;
word-wrap: normal; /* Fixed Safari overflow-x */
}
Expand All @@ -107,6 +109,7 @@ code {
hyphens: none;

&.highlighter-rouge {
font-size: $code-font-size;
padding: 3px 5px;
margin: 0 0.15rem;
border-radius: 4px;
Expand Down

0 comments on commit 44476f2

Please sign in to comment.