Skip to content

Commit 8430f63

Browse files
committed
Adjust the font of code
1 parent 2850d15 commit 8430f63

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{% endif %}
1616

1717
<!-- Google Fonts -->
18-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open%20Sans|Roboto|Roboto%20Slab|Roboto%20Mono|Dancing%20Script|Noto%20Sans%20SC|Noto%20Sans%20TC|Noto%20Serif%20SC|Noto%20Serif%20TC|Ma%20Shan%20Zheng">
18+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open%20Sans|Roboto|Roboto%20Slab|Inconsolata|Dancing%20Script|Noto%20Sans%20SC|Noto%20Sans%20TC|Noto%20Serif%20SC|Noto%20Serif%20TC|Ma%20Shan%20Zheng">
1919

2020
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
2121
<link rel="stylesheet" href="{{ '/assets/css/skin.css' | relative_url }}">

_sass/hamilton/base.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ blockquote {
119119
pre,
120120
code {
121121
font-family: $code-font-family;
122-
letter-spacing: -1px;
123122
border-radius: 0.3em;
124123
}
125124

@@ -132,7 +131,6 @@ pre {
132131
overflow-x: auto;
133132

134133
> code {
135-
line-height: $base-line-height * $base-font-size * 0.7;
136134
border: 0;
137135
padding-right: 0;
138136
padding-left: 0;

_sass/hamilton/variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$base-font-family: "Open Sans" !default;
33
$reading-font-family: "Roboto Slab", "Noto Serif SC", "Noto Serif TC" !default;
44
$headline-font-family: Roboto, "Noto Sans SC", "Noto Sans TC" !default;
5-
$code-font-family: "Roboto Mono" !default;
5+
$code-font-family: Inconsolata !default;
66
$handwriting-font-family: "Dancing Script", "Ma Shan Zheng" !default;
77
$base-font-size: 16px !default;
88
$base-line-height: 1.5 !default;

0 commit comments

Comments
 (0)