mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-09 23:09:47 +00:00
Fix auto theme
- Refactor style.sass to re-import css files in each theme block - Unpin autoprefixer Close #275
This commit is contained in:
parent
2932037152
commit
4df7cbf38d
5 changed files with 12870 additions and 23 deletions
2
.github/workflows/test-versions.yml
vendored
2
.github/workflows/test-versions.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
|||
- name: Install tools
|
||||
run: |
|
||||
sudo apt install curl jq
|
||||
npm i -g postcss postcss-cli autoprefixer@9.8.6
|
||||
npm i -g postcss postcss-cli autoprefixer
|
||||
|
||||
- name: Test with Hugo ${{ matrix.hugo }}
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
|
|
|
@ -1,19 +1,29 @@
|
|||
{{ $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 "{{ $themeStyle }}-variables"
|
||||
@import "{{ $themeStyle }}-style"
|
||||
{{ end }}
|
||||
|
||||
@import "fonts"
|
||||
@import "{{ $themeStyle }}-variables"
|
||||
@import "base-variables"
|
||||
@import "bulma-import"
|
||||
@import "fontawesome-import"
|
||||
@import "base"
|
||||
@import "{{ $themeStyle }}-style"
|
||||
{{ end }}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"Target":"css/main.min.941d414b5f8f2724f88888d5432c631eb46bc5e459c7009914db5bc605643532.css","MediaType":"text/css","Data":{"Integrity":"sha256-lB1BS1+PJyT4iIjVQyxjHrRrxeRZxwCZFNtbxgVkNTI="}}
|
||||
{"Target":"css/main.min.b585a8284c1aac790128d8ef2a1621d21bbe8c16ca31119fa61b25a082cfef02.css","MediaType":"text/css","Data":{"Integrity":"sha256-tYWoKEwarHkBKNjvKhYh0hu+jBbKMRGfphsloILP7wI="}}
|
Loading…
Reference in a new issue