Switch to Fira Code
This commit is contained in:
parent
f251df1229
commit
2258565d3f
8 changed files with 14 additions and 7 deletions
|
@ -115,7 +115,7 @@ class ArticleAdmin(admin.ModelAdmin):
|
||||||
class Media:
|
class Media:
|
||||||
css = {
|
css = {
|
||||||
"all": (
|
"all": (
|
||||||
"vendor/fonts/jetbrains-mono.css",
|
"vendor/fonts/fira-code.css",
|
||||||
"admin_articles.css",
|
"admin_articles.css",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#id_content,
|
#id_content,
|
||||||
#id_custom_css {
|
#id_custom_css {
|
||||||
font-family: "JetBrains Mono", monospace;
|
font-family: "Fira Code", monospace;
|
||||||
min-height: 30em;
|
min-height: 30em;
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
}
|
}
|
||||||
|
|
BIN
src/articles/static/vendor/fonts/fira-code-vf.woff2
vendored
Normal file
BIN
src/articles/static/vendor/fonts/fira-code-vf.woff2
vendored
Normal file
Binary file not shown.
7
src/articles/static/vendor/fonts/fira-code.css
vendored
Normal file
7
src/articles/static/vendor/fonts/fira-code.css
vendored
Normal 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;
|
||||||
|
}
|
2
src/articles/static/vendor/fonts/golos.css
vendored
2
src/articles/static/vendor/fonts/golos.css
vendored
|
@ -3,7 +3,7 @@
|
||||||
src: local("Golos Text"),
|
src: local("Golos Text"),
|
||||||
local("Golos Text VF"),
|
local("Golos Text VF"),
|
||||||
local("Golos"),
|
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-weight: 400 900;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'JetBrains Mono';
|
font-family: 'JetBrains Mono';
|
||||||
src: local("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-weight: 100 800;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'JetBrains Mono';
|
font-family: 'JetBrains Mono';
|
||||||
src: local("JetBrains Mono Italic"),
|
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-weight: 100 800;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
|
2
src/articles/static/vendor/newcss.css
vendored
2
src/articles/static/vendor/newcss.css
vendored
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
:root {
|
: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-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 */
|
/* Light theme */
|
||||||
--nc-tx-1: #000000;
|
--nc-tx-1: #000000;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<link rel="stylesheet" href="{% static "vendor/fonts/golos.css" %}" type="text/css">
|
<link rel="stylesheet" href="{% static "vendor/fonts/golos.css" %}" type="text/css">
|
||||||
{% if article and article.has_code %}
|
{% if article and article.has_code %}
|
||||||
<link rel="stylesheet" href="{% static "vendor/codehilite.css" %}" type="text/css">
|
<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 %}
|
{% endif %}
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<link rel="stylesheet" href="{% static "authenticated.css" %}">
|
<link rel="stylesheet" href="{% static "authenticated.css" %}">
|
||||||
|
|
Reference in a new issue