mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-12 16:29:44 +00:00
4df7cbf38d
- Refactor style.sass to re-import css files in each theme block - Unpin autoprefixer Close #275
29 lines
No EOL
671 B
Sass
29 lines
No EOL
671 B
Sass
{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
|
|
|
|
{{ if eq $themeStyle "auto" }}
|
|
@import "fonts"
|
|
@import "light-variables"
|
|
@import "base-variables"
|
|
@import "bulma-import"
|
|
@import "fontawesome-import"
|
|
@import "base"
|
|
@import "light-style"
|
|
|
|
@media (prefers-color-scheme: dark)
|
|
@import "fonts"
|
|
@import "dark-variables"
|
|
@import "base-variables"
|
|
@import "bulma-import"
|
|
@import "fontawesome-import"
|
|
@import "base"
|
|
@import "dark-style"
|
|
|
|
{{ else }}
|
|
@import "fonts"
|
|
@import "{{ $themeStyle }}-variables"
|
|
@import "base-variables"
|
|
@import "bulma-import"
|
|
@import "fontawesome-import"
|
|
@import "base"
|
|
@import "{{ $themeStyle }}-style"
|
|
{{ end }} |