mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-15 01:42:10 +00:00
f04f293bdc
- Make default stylesheet use browser preferred colors - Stop using css vars for better compatibility with old browsers
28 lines
405 B
CSS
28 lines
405 B
CSS
{{ if not (eq .Site.Params.dark "on") -}}
|
|
@media (prefers-color-scheme: dark) {
|
|
{{ end -}}
|
|
|
|
html{
|
|
color: white;
|
|
background: black;
|
|
}
|
|
|
|
header#banner a {
|
|
color: white;
|
|
}
|
|
|
|
main#content a, footer a {
|
|
color: #00b1ed;
|
|
}
|
|
|
|
main#content hr {
|
|
border-color: #5c5c5c;
|
|
}
|
|
main#content pre,
|
|
main#content code {
|
|
border: 1px solid #222;
|
|
}
|
|
|
|
{{- if not (eq .Site.Params.dark "on") -}}
|
|
}
|
|
{{- end -}}
|