Skip to content

Commit 4643aa0

Browse files
committed
Reduce the font size of inline code.
1 parent 12f8957 commit 4643aa0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

assets/css/_addon/syntax.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ html[mode=dark] {
4343
padding: 0.8rem 1rem;
4444
}
4545

46+
$code-font-size: 0.85rem;
47+
4648
div > pre {
4749
@extend %code-snippet-bg;
4850
@extend %code-snippet-radius;
@@ -82,7 +84,7 @@ div > pre {
8284
}
8385
pre {
8486
margin-bottom: 0;
85-
font-size: 0.85rem;
87+
font-size: $code-font-size;
8688
line-height: 1.4rem;
8789
word-wrap: normal; /* Fixed Safari overflow-x */
8890
}
@@ -107,6 +109,7 @@ code {
107109
hyphens: none;
108110

109111
&.highlighter-rouge {
112+
font-size: $code-font-size;
110113
padding: 3px 5px;
111114
margin: 0 0.15rem;
112115
border-radius: 4px;

0 commit comments

Comments
 (0)