Provide jetbrains mono font
This commit is contained in:
parent
b70a9105e8
commit
047b303202
6 changed files with 21 additions and 0 deletions
BIN
src/articles/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf
vendored
Normal file
BIN
src/articles/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf
vendored
Normal file
Binary file not shown.
BIN
src/articles/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.woff2
vendored
Normal file
BIN
src/articles/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.woff2
vendored
Normal file
Binary file not shown.
BIN
src/articles/static/vendor/fonts/JetBrainsMono-VariableFont_wght.ttf
vendored
Normal file
BIN
src/articles/static/vendor/fonts/JetBrainsMono-VariableFont_wght.ttf
vendored
Normal file
Binary file not shown.
BIN
src/articles/static/vendor/fonts/JetBrainsMono-VariableFont_wght.woff2
vendored
Normal file
BIN
src/articles/static/vendor/fonts/JetBrainsMono-VariableFont_wght.woff2
vendored
Normal file
Binary file not shown.
20
src/articles/static/vendor/fonts/jetbrains-mono.css
vendored
Normal file
20
src/articles/static/vendor/fonts/jetbrains-mono.css
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
@font-face {
|
||||
font-family: 'JetBrains Mono';
|
||||
src: local("JetBrains Mono"),
|
||||
url('/static/vendor/fonts/JetBrainsMono-VariableFont_wght.woff2') format("woff2-variations"),
|
||||
url('/static/vendor/fonts/JetBrainsMono-VariableFont_wght.woff2') format("woff2 supports variations"),
|
||||
url('/static/vendor/fonts/JetBrainsMono-VariableFont_wght.ttf') format("truetype-variations"),
|
||||
url('/static/vendor/fonts/JetBrainsMono-VariableFont_wght.ttf') format("truetype supports variations");
|
||||
font-weight: 100 800;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'JetBrains Mono';
|
||||
src: local("JetBrains Mono Italic"),
|
||||
url('/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.woff2') format("woff2-variations"),
|
||||
url('/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.woff2') format("woff2 supports variations"),
|
||||
url('/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf') format("truetype-variations"),
|
||||
url('/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf') format("truetype supports variations");
|
||||
font-weight: 100 800;
|
||||
font-style: italic;
|
||||
}
|
|
@ -21,6 +21,7 @@
|
|||
<link rel="stylesheet" href="{% static "admonitions.css" %}" type="text/css">
|
||||
{% if article and article.has_code %}
|
||||
<link rel="stylesheet" href="{% static "vendor/codehilite.css" %}" type="text/css">
|
||||
<link rel="stylesheet" href="{% static "vendor/fonts/jetbrains-mono.css" %}">
|
||||
{% endif %}
|
||||
{% if user.is_authenticated %}
|
||||
<link rel="stylesheet" href="{% static "authenticated.css" %}">
|
||||
|
|
Reference in a new issue