Skip to content

Commit

Permalink
fix(v4): add code-block-font variable in theme.css (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
atsuyaw authored Sep 18, 2023
1 parent 4d4eef3 commit e35ecca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v4/assets/sass/_bilberry-hugo-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

code {
background-color: inherit;
font-family: "Fira Code", monospace;
font-family: $code-block-font;
border: 0;
margin: 0;
padding: 1.0em;
Expand All @@ -63,7 +63,7 @@
position: absolute;
top: 5px;
right: 5px;
background: #f1f1f1;
background: $page-background-color;
padding: 4px;
font-size: 12pt;
line-height: normal;
Expand Down
1 change: 1 addition & 0 deletions v4/assets/sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $site-width: {{ .Param "siteWidth" | default "800px" }};
$headline-font: {{ .Param "headlineFont" | default "'Comfortaa',sans-serif" }};
$content-font: {{ .Param "contentFont" | default "'Open Sans',sans-serif" }};
$article-footer-font: {{ .Param "articleFooterFont" | default "'Fira Code',monospace" }};
$code-block-font: {{ .Param "codeBlockFont" | default "'Fira Code',monospace" }};

$page-background-color: {{ .Param "pageBackgroundColor" | default "#f1f1f1" }};
$base-color: {{ .Param "baseColor" | default "#1d1f38" }};
Expand Down

0 comments on commit e35ecca

Please sign in to comment.