convert css to sass

This commit is contained in:
Daniel Alejandro Gallegos 2024-04-16 23:19:17 -04:00
parent 1693b1d59b
commit 911195d130
Signed by: taco
SSH key fingerprint: SHA256:YgoAbZ3x1d1kTGKEmT8elbjEvK/mn0hc4ATFgWhykR0
2 changed files with 17 additions and 3 deletions

View file

@ -1,5 +1,4 @@
body { body {
color: #222;
font-family: sans-serif; font-family: sans-serif;
line-height: 1.5; line-height: 1.5;
margin: 1rem; margin: 1rem;
@ -17,6 +16,20 @@ footer {
} }
a { a {
color: #00e; color: #a4c35b;
text-decoration: none; text-decoration: none;
} }
@media (prefers-color-scheme: light) {
body {
background: #eee;
color: #291712;
}
}
@media (prefers-color-scheme: dark) {
body {
background: #291712;
color: #eee;
}
}

View file

@ -1,4 +1,5 @@
{{- with resources.Get "css/main.css" }} {{ $opts := dict "transpiler" "libsass" "targetPath" "css/style.css" }}
{{- with resources.Get "css/main.scss" | toCSS $opts }}
{{- if eq hugo.Environment "development" }} {{- if eq hugo.Environment "development" }}
<link rel="stylesheet" href="{{ .RelPermalink }}"> <link rel="stylesheet" href="{{ .RelPermalink }}">
{{- else }} {{- else }}