mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Remove the color-scheme
<meta> property
- The default time is browser-default colors, not "light". The only "theme" for my site is the dark theme. - The "color-scheme" doesn't have wide support - The "color-scheme" property doesn't really do anything much if you use browser-defaults or a dark theme with @prefers-color-scheme
This commit is contained in:
parent
e713a0e02a
commit
852b3f91a0
1 changed files with 0 additions and 5 deletions
|
@ -28,11 +28,6 @@
|
|||
{{ if not (eq $dark "off") -}}
|
||||
{{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}}
|
||||
{{ end -}}
|
||||
<!-- Tell the browser we support dark mode. If the user doesn't
|
||||
specify a preference, prefer light mode; users who override
|
||||
browser default stylesheets will be able to use their preferred
|
||||
palette that way. -->
|
||||
<meta name="color-scheme" content="light dark">
|
||||
{{ $css := $resources | resources.Concat "css/style.css" | minify | resources.Fingerprint "sha384" -}}
|
||||
{{ printf `<link rel="stylesheet" href="%s" integrity="%s">` $css.RelPermalink $css.Data.Integrity | safeHTML -}}
|
||||
<!-- only load syntax-highlighting CSS if this page needs it -->
|
||||
|
|
Loading…
Reference in a new issue