From: Lanius Trolling Date: Thu, 21 Jul 2022 15:23:04 +0000 (-0400) Subject: Change header font X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=f4a647ff4a0814c81097c1c4d46dbd28723c9810;p=factbooks Change header font --- diff --git a/src/main/kotlin/info/mechyrdia/lore/view_tpl.kt b/src/main/kotlin/info/mechyrdia/lore/view_tpl.kt index 5c15229..b0dc6b9 100644 --- a/src/main/kotlin/info/mechyrdia/lore/view_tpl.kt +++ b/src/main/kotlin/info/mechyrdia/lore/view_tpl.kt @@ -3,7 +3,7 @@ package info.mechyrdia.lore import io.ktor.application.* import kotlinx.html.* -fun ApplicationCall.page(pageTitle: String? = null, navBar: List? = null, sidebar: Sidebar? = null, content: SECTIONS.() -> Unit): HTML.() -> Unit { +fun ApplicationCall.page(pageTitle: String, navBar: List? = null, sidebar: Sidebar? = null, content: SECTIONS.() -> Unit): HTML.() -> Unit { val theme = request.cookies["factbook-theme"] return { @@ -24,12 +24,12 @@ fun ApplicationCall.page(pageTitle: String? = null, navBar: List? = nul link(rel = "preconnect", href = "https://fonts.googleapis.com") link(rel = "preconnect", href = "https://fonts.gstatic.com") { attributes["crossorigin"] = "anonymous" } - link(rel = "stylesheet", href = "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Jetbrains+Mono:wght@400;600;800&display=swap") + link(rel = "stylesheet", href = "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Oxanium:wght@400;600;700;800&display=swap") link(rel = "stylesheet", href = "/static/style.css") title { - +(pageTitle ?: "Mechyrdiaverse Lorebase") + +pageTitle } } body { diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css index 1986f53..09e1f78 100644 --- a/src/main/resources/static/style.css +++ b/src/main/resources/static/style.css @@ -267,7 +267,7 @@ div#bg { } h1, h2, h3, h4, h5, h6 { - font-family: 'JetBrains Mono', monospace; + font-family: Oxanium, monospace; margin: 0.5em 0; } @@ -540,7 +540,7 @@ th { text-align: center; vertical-align: center; - font-family: 'JetBrains Mono', monospace; + font-family: Oxanium, monospace; font-size: 1.0em; font-variant: small-caps; font-weight: 700;