Switch to Fira Code

This commit is contained in:
Gabriel Augendre 2022-11-14 19:41:02 +01:00
parent f251df1229
commit 2258565d3f
8 changed files with 14 additions and 7 deletions

View file

@ -115,7 +115,7 @@ class ArticleAdmin(admin.ModelAdmin):
class Media:
css = {
"all": (
"vendor/fonts/jetbrains-mono.css",
"vendor/fonts/fira-code.css",
"admin_articles.css",
)
}

View file

@ -1,6 +1,6 @@
#id_content,
#id_custom_css {
font-family: "JetBrains Mono", monospace;
font-family: "Fira Code", monospace;
min-height: 30em;
resize: vertical;
}

Binary file not shown.

View file

@ -0,0 +1,7 @@
@font-face {
font-family: 'Fira Code';
src: local("Fira Code"),
url('fira-code-vf.woff2') format("woff2-variations");
font-weight: 300 700;
font-display: swap;
}

View file

@ -3,7 +3,7 @@
src: local("Golos Text"),
local("Golos Text VF"),
local("Golos"),
url('/static/vendor/fonts/golos-text-vf.woff2') format("woff2-variations");
url('golos-text-vf.woff2') format("woff2-variations");
font-weight: 400 900;
font-display: swap;
}

View file

@ -1,7 +1,7 @@
@font-face {
font-family: 'JetBrains Mono';
src: local("JetBrains Mono"),
url('/static/vendor/fonts/jetbrainsmono-variablefont-wght.woff2') format("woff2-variations");
url('jetbrainsmono-variablefont-wght.woff2') format("woff2-variations");
font-weight: 100 800;
font-display: swap;
}
@ -9,7 +9,7 @@
@font-face {
font-family: 'JetBrains Mono';
src: local("JetBrains Mono Italic"),
url('/static/vendor/fonts/jetbrainsmono-italic-variablefont-wght.woff2') format("woff2-variations");
url('jetbrainsmono-italic-variablefont-wght.woff2') format("woff2-variations");
font-weight: 100 800;
font-style: italic;
font-display: swap;

View file

@ -5,7 +5,7 @@
*/
:root {
--nc-font-sans: 'Golos', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--nc-font-mono: 'JetBrains Mono', Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;
--nc-font-mono: 'Fira Code', Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;
/* Light theme */
--nc-tx-1: #000000;

View file

@ -22,7 +22,7 @@
<link rel="stylesheet" href="{% static "vendor/fonts/golos.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" %}">
<link rel="stylesheet" href="{% static "vendor/fonts/fira-code.css" %}">
{% endif %}
{% if user.is_authenticated %}
<link rel="stylesheet" href="{% static "authenticated.css" %}">