CSS my beloathed. UGHH

This commit is contained in:
Root User 2026-02-12 23:20:45 +01:00
parent 59dac432d9
commit 45bd2e975f
Signed by: root
GPG key ID: 087F0A95E5766D72
4 changed files with 20 additions and 13 deletions

View file

@ -1,2 +1,14 @@
{{/* This will be injected into <head> via $FORGEJO_CUSTOM/templates/custom/header.tmpl */}}
<link rel="stylesheet" href="{{AppSubUrl}}/assets/css/theme-custom.css">
{{/* Custom header content - inject custom fonts that apply to all themes */}}
<style>
@font-face {
font-family: 'Maple Mono NF';
src: url('{{AppSubUrl}}/assets/fonts/MapleMonoNerd.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
:root {
--fonts-monospace: 'Maple Mono NF' !important;
}
</style>

View file

@ -1,5 +1,5 @@
[[:Template:Template "base/head" .]]
<div role="main" aria-label='[[:Template:If .IsSigned]][[:Template:Ctx.Locale.Tr "dashboard"]][[:Template:Else]][[:Template:Ctx.Locale.Tr "home"]][[:Template:End]]' class="page-content home">
{{template "base/head" .}}
<div role="main" aria-label='{{if .IsSigned}}{{.Ctx.Locale.Tr "dashboard"}}{{else}}{{.Ctx.Locale.Tr "home"}}{{end}}' class="page-content home">
<div class="tw-mb-8 tw-px-8">
<div class="center">
<div class="hero">
@ -10,4 +10,4 @@
</div>
</div>
</div>
[[:Template:Template "base/footer" .]]
{{template "base/footer" .}}

View file

@ -1,4 +1,3 @@
@import "./theme-forgejo-auto.css";
@font-face {
font-family: 'Maple Mono NF';