remove hugo code in .css files.
This commit is contained in:
parent
a29bf0d7b0
commit
8aba514632
4 changed files with 74 additions and 65 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue