mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-07 16:17:50 +00:00
Reduce the font size of inline code.
This commit is contained in:
parent
3a449672cb
commit
e439e65258
@ -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;
|
||||
@ -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 */
|
||||
}
|
||||
@ -107,6 +109,7 @@ code {
|
||||
hyphens: none;
|
||||
|
||||
&.highlighter-rouge {
|
||||
font-size: $code-font-size;
|
||||
padding: 3px 5px;
|
||||
margin: 0 0.15rem;
|
||||
border-radius: 4px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user