Problem/Motivation
In theme-options.yml file we only have access to built-in SASS functions. Currently, we are not able to load and use custom functions in theme yaml files.
Proposed resolution
If the theme is defining sass/_functions.scss file load it automatically on the start of the gulp sass and sass:dev tasks so it is available everywhere, including theme-options.yml.
Remaining tasks
- Update documentation with this new feature.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | interdiff-3093783-12-13.txt | 2.36 KB | pivica |
| #13 | yaml-support-sass-functions-3093783-13.patch | 17.17 KB | pivica |
Comments
Comment #2
pivica commentedComment #3
pivica commentedThe first patch, adds two new packages through2 for injecting functions into the gulp stream and gulp-debug for some debug info.
More testing is needed.
Comment #4
pivica commentedComment #5
pivica commentedForgot to add some stuff to the previous patch.
Comment #6
pivica commentedUpdated bs_bootstrap, some small fixes in a generator.
Comment #7
pivica commentedAnd here is a composer friendly patch against alpha7 release.
Comment #8
pivica commentedComment #9
pivica commentedWe should also check the current theme for sass/_functions.scss.
Comment #10
pivica commentedAn updated patch against latest dev version.
Comment #11
pivica commentedMessed up the previous patch a bit, here is a version that should work.
Comment #12
pivica commentedActually i forgot to push one commit to 8.x-1.x branch when tagging alpha8...
Hopefully, now the patch is correct.
Comment #13
pivica commentedCleaned the main gulp-tasks.js a bit.
Comment #15
pivica commentedCommitted.