variant: avoid style leak for auto style #473

This commit is contained in:
Sören Weber 2023-02-10 18:38:27 +01:00
parent 23b285e5df
commit 563606425b
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -28,9 +28,9 @@
{{- $themevariantsauto = ($themevariantsauto | first 2) -}}
{{- with index $themevariantsauto 0 -}}
{{- if site.IsServer -}}
@import "{{(printf "css/theme-%s.css" .) | relURL}}" screen;
@import "{{(printf "css/theme-%s.css" .) | relURL}}" screen and (prefers-color-scheme: light);
{{- else -}}
@import "{{(printf "theme-%s.css" .)}}" screen;
@import "{{(printf "theme-%s.css" .)}}" screen and (prefers-color-scheme: light);
{{- end -}}
{{- end -}}
{{- with index $themevariantsauto 1 -}}