From 4deb45df3c6368d4d9e16b68d876c9d07e2a4099 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 26 Jan 2022 22:25:33 +0000 Subject: [PATCH] fix code text color in dark mode --- css/base.css | 4 ++++ views.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/css/base.css b/css/base.css index fcaa3c0..5f5182c 100644 --- a/css/base.css +++ b/css/base.css @@ -31,6 +31,10 @@ background: #202020; } +.dark .code { + color: var(--color-content-high); +} + html:not(.dark) .card.\@low:not(.\~neutral):not(.\~positive):not(.\~urge):not(.\~warning):not(.\~info):not(.\~critical) { --color-fill: va(--color-fill); --color-content: var(--color-content); diff --git a/views.go b/views.go index 3df9277..113f098 100644 --- a/views.go +++ b/views.go @@ -504,7 +504,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) { data["discordUsername"] = app.discord.username data["discordRequired"] = app.config.Section("discord").Key("required").MustBool(false) data["discordSendPINMessage"] = template.HTML(app.storage.lang.Form[lang].Strings.template("sendPINDiscord", tmpl{ - "command": `/` + app.config.Section("discord").Key("start_command").MustString("start") + ``, + "command": `/` + app.config.Section("discord").Key("start_command").MustString("start") + ``, "server_channel": app.discord.serverChannelName, })) data["discordServerName"] = app.discord.serverName