fix(css): use CDN instead of static

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-07-17 20:23:50 +02:00
parent c68cd08576
commit 4fe5d12ecb
Signed by: mfocko
GPG key ID: 7C47D46246790496
4 changed files with 7 additions and 27 deletions

View file

@ -83,7 +83,6 @@ const config = {
theme: {
customCss: [
require.resolve("./src/css/custom.css"),
require.resolve("./src/css/Hack Nerd Font.css"),
],
},
}),
@ -117,6 +116,11 @@ const config = {
"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",
crossorigin: "anonymous",
},
{
href: "https://cdn.jsdelivr.net/npm/hack-font/build/web/hack.min.css",
type: "text/css",
crossorigin: "anonymous",
}
],
themeConfig:

View file

@ -1,6 +1,6 @@
#!/bin/sh
FONT="'Iosevka', 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Hack Nerd Font', monospace"
FONT="'Iosevka', 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Hack', monospace"
for pic in $(find ./static/files -name '*.dot' -print); do
SVG_NAME=".$(echo $pic | cut -d'.' -f2)"

File diff suppressed because one or more lines are too long

View file

@ -27,7 +27,7 @@
}
pre, code, kbd, var, tt {
font-family: 'Iosevka', 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Hack Nerd Font', monospace;
font-family: 'Iosevka', 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Hack', monospace;
}
[data-theme='light'] img[src$='#gh-dark-mode-only'],