mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-21 19:42:52 +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
|
- name: Install tools
|
||||||
run: |
|
run: |
|
||||||
sudo apt install curl jq
|
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 }}
|
- name: Test with Hugo ${{ matrix.hugo }}
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
|
|
|
@ -1,19 +1,29 @@
|
||||||
{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
|
{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
|
||||||
|
|
||||||
{{ if eq $themeStyle "auto" }}
|
{{ if eq $themeStyle "auto" }}
|
||||||
|
@import "fonts"
|
||||||
@import "light-variables"
|
@import "light-variables"
|
||||||
|
@import "base-variables"
|
||||||
|
@import "bulma-import"
|
||||||
|
@import "fontawesome-import"
|
||||||
|
@import "base"
|
||||||
@import "light-style"
|
@import "light-style"
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark)
|
@media (prefers-color-scheme: dark)
|
||||||
|
@import "fonts"
|
||||||
@import "dark-variables"
|
@import "dark-variables"
|
||||||
|
@import "base-variables"
|
||||||
|
@import "bulma-import"
|
||||||
|
@import "fontawesome-import"
|
||||||
|
@import "base"
|
||||||
@import "dark-style"
|
@import "dark-style"
|
||||||
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
@import "{{ $themeStyle }}-variables"
|
|
||||||
@import "{{ $themeStyle }}-style"
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
@import "fonts"
|
@import "fonts"
|
||||||
|
@import "{{ $themeStyle }}-variables"
|
||||||
@import "base-variables"
|
@import "base-variables"
|
||||||
@import "bulma-import"
|
@import "bulma-import"
|
||||||
|
@import "fontawesome-import"
|
||||||
@import "base"
|
@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