Skip to content

Commit

Permalink
fix code text color in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hrfee committed Jan 26, 2022
1 parent 4b02960 commit 4deb45d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions css/base.css
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion views.go
Expand Up @@ -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": `<code class="code">/` + app.config.Section("discord").Key("start_command").MustString("start") + `</code>`,
"command": `<span class="code font-mono">/` + app.config.Section("discord").Key("start_command").MustString("start") + `</span>`,
"server_channel": app.discord.serverChannelName,
}))
data["discordServerName"] = app.discord.serverName
Expand Down

0 comments on commit 4deb45d

Please sign in to comment.