Add JetBrains Mono font for code/pre

This commit is contained in:
Daniel J. Summers 2020-06-08 19:25:04 -05:00
parent a99230a4b8
commit 09364ece86
3 changed files with 155 additions and 1224 deletions

View File

@ -3,7 +3,7 @@
"version": "4.1.0", "version": "4.1.0",
"private": true, "private": true,
"hexo": { "hexo": {
"version": "4.2.0" "version": "4.2.1"
}, },
"dependencies": { "dependencies": {
"hexo": "^4.2.0", "hexo": "^4.2.0",

View File

@ -1,4 +1,13 @@
@import url('https://fonts.googleapis.com/css?family=Oswald|Raleway'); @import url('https://fonts.googleapis.com/css?family=Oswald|Raleway');
@font-face {
font-family: 'JetBrains Mono';
src: url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/eot/JetBrainsMono-Regular.eot') format('embedded-opentype'),
url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/woff2/JetBrainsMono-Regular.woff2') format('woff2'),
url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/woff/JetBrainsMono-Regular.woff') format('woff'),
url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/ttf/JetBrainsMono-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
html { html {
background-color: lightgray; background-color: lightgray;
} }
@ -48,7 +57,8 @@ p {
margin: 1rem 0; margin: 1rem 0;
} }
code, pre { code, pre {
font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace; font-family: "JetBrains Mono","SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;
font-size: 1rem;
} }
code { code {
background-color: rgba(0, 0, 0, .1); background-color: rgba(0, 0, 0, .1);
@ -56,8 +66,6 @@ code {
} }
#content { #content {
margin: 0 1rem; margin: 0 1rem;
}
.content {
font-size: 1.1rem; font-size: 1.1rem;
} }
.auto { .auto {

1361
yarn.lock

File diff suppressed because it is too large Load Diff