Use fira code for code blocks

This commit is contained in:
Jake Howard 2022-07-04 20:27:08 +01:00
parent 39f10c1c7c
commit 9694ae71bc
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 22 additions and 0 deletions

11
package-lock.json generated
View file

@ -12,6 +12,7 @@
"bulma": "^0.9.4",
"darkreader": "^4.9.51",
"elevator.js": "^1.0.1",
"firacode": "^6.2.0",
"lite-youtube-embed": "^0.2.0",
"shareon": "^2.0.0"
},
@ -658,6 +659,11 @@
"node": ">=8"
}
},
"node_modules/firacode": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/firacode/-/firacode-6.2.0.tgz",
"integrity": "sha512-t5R3aO2BmhRXnYtKXbImLVNsILuCIbJ/XlDzBufjpi3il8P/CVdpWco83Ud3r2Tl0gitAmyP4o1fbJ52ozV1jw=="
},
"node_modules/fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
@ -1997,6 +2003,11 @@
"to-regex-range": "^5.0.1"
}
},
"firacode": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/firacode/-/firacode-6.2.0.tgz",
"integrity": "sha512-t5R3aO2BmhRXnYtKXbImLVNsILuCIbJ/XlDzBufjpi3il8P/CVdpWco83Ud3r2Tl0gitAmyP4o1fbJ52ozV1jw=="
},
"fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",

View file

@ -24,6 +24,7 @@
"bulma": "^0.9.4",
"darkreader": "^4.9.51",
"elevator.js": "^1.0.1",
"firacode": "^6.2.0",
"lite-youtube-embed": "^0.2.0",
"shareon": "^2.0.0"
}

View file

@ -18,3 +18,4 @@ mkcontrib() {
mkcontrib fontawesome node_modules/@fortawesome/fontawesome-free/{css,webfonts}
mkcontrib elevator-js node_modules/elevator.js/demo/music/*
mkcontrib shareon node_modules/shareon/dist/{shareon.iife.*,shareon.min.css*}
mkcontrib fira-code node_modules/firacode/distr/{fira_code.css,woff2,woff}

View file

@ -34,3 +34,11 @@ div.block-embed {
@include center-block(50%);
}
}
div.block-code {
code,
pre {
font-family: "Fira Code", monospace;
font-variant-ligatures: none;
}
}

View file

@ -17,6 +17,7 @@
{% block extra_css %}
<link rel="stylesheet" type="text/css" href="{% static 'css/lite-youtube-embed.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'contrib/shareon/shareon.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'contrib/fira-code/fira_code.css' %}">
<link rel="stylesheet" type="text/css" href="{% url 'static-pygments:styles' 'default' %}">
{% endblock %}