Do another workaround for css styling...

This commit is contained in:
Root User 2026-02-13 18:13:41 +01:00
parent 02ae029209
commit bdf317ba18
Signed by: root
GPG key ID: 087F0A95E5766D72
2 changed files with 19 additions and 1 deletions

View file

@ -8,8 +8,19 @@
font-display: swap;
}
@font-face {
font-family: 'Jost Book';
src: url('/assets/fonts/Jost-400-Book.otf') format('opentype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
:root {
/* prefer the Maple Mono Nerd Font for monospace usage */
--fonts-monospace: 'Maple Mono NF' !important;
--fonts-proportional: 'Jost Book' !important;
}
code, pre, kbd, tt, samp, .ui code, .ui pre, .monospace {

View file

@ -22,4 +22,11 @@
/* prefer the Maple Mono Nerd Font for monospace usage */
--fonts-monospace: 'Maple Mono NF' !important;
--fonts-proportional: 'Jost Book' !important;
}
}
/* If some odd reason the themes are not appluing even after rebuild, try the following
sudo systemd-tmpfiles --create --remove --exclude-prefix=/dev
sudo systemctl restart forgejo
TODO: Investigate the inconsistencies, see header.tmpl as a workaround.
*/