remove hugo code in .css files.

This commit is contained in:
Junyi Hou 2024-03-13 16:38:42 +08:00
parent a29bf0d7b0
commit 8aba514632
4 changed files with 74 additions and 65 deletions

View file

@ -1,34 +1,3 @@
{{ $light := resources.Get "css/light.css" }}
{{ $dark := resources.Get "css/dark.css" }}
{{ $style := "light-without-switcher" }}
{{ if and (isset site.Params "style") (ne site.Params.style "") }}
{{ $style = site.Params.style | lower }}
{{ end }}
{{ if eq $style "dark-without-switcher" }}
:root {
{{ $dark.Content }}
}
{{ else }}
{{ $light.Content }}
{{ if eq $style "auto-without-switcher" }}
@media (prefers-color-scheme: dark) {
:root {
{{ $dark.Content }}
}
}
{{ else if ne $style "light-without-switcher" }}
[data-theme="dark"] {
{{ $dark.Content }}
}
{{ end }}
{{ end }}
/* Basic */
:root {
@ -207,7 +176,7 @@ pre,
kbd {
color: var(--pre-color);
background-color: var(--pre-bg-color);
font-family: monospace;
font-family: 'Courier New', 'Consolas', monospace;
font-size: 0.90em;
line-height: 154%;
border-radius: 6px;