convert css to sass
This commit is contained in:
parent
1693b1d59b
commit
911195d130
2 changed files with 17 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
|||
body {
|
||||
color: #222;
|
||||
font-family: sans-serif;
|
||||
line-height: 1.5;
|
||||
margin: 1rem;
|
||||
|
@ -17,6 +16,20 @@ footer {
|
|||
}
|
||||
|
||||
a {
|
||||
color: #00e;
|
||||
color: #a4c35b;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
body {
|
||||
background: #eee;
|
||||
color: #291712;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background: #291712;
|
||||
color: #eee;
|
||||
}
|
||||
}
|
|
@ -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" }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
{{- else }}
|
||||
|
|
Loading…
Reference in a new issue