Feature proposal #7192
closed
Implement functionality to generate new Bootstrap 4 templates
Added by krileon over 6 years ago.
Updated over 6 years ago.
Description
This will need to include CBs SCSS files and be able to compile new ones from a set of variables supplied. This would allow easy generation of new profile templates. The generated templates should be installed as a normal CB template.
May not be completely possible due to lack of PHP or JS side SCSS compiling with autoprefixer support. May need to just accept a CSS file that can be ran through a smaller compiler to add the .cb_template namespace prefix to classes. Then usage of sites like https://bootstrap.build/ can be used to build the custom styling. If this route is taken then it maybe easier to just include in the core template plugin behavior (new param separate from overrides param maybe).
Browser side SCSS compiling can be done with the below.
https://github.com/medialize/sass.js/
There doesn't appear to be a maintained PHP side compiler that'd universally work on users hosting so this would be the only option. It however has no autoprefixer, which means the options made available by the plugins theme generator would be limited to mostly color overrides that'd override Bootstrap 4 instead of replacing it, which would be ok.
PHP side compiler try as follows as this would make most sense to be done PHP side since this isn't a live editor, but just a CB template generator.
https://github.com/leafo/scssphp
- Status changed from Assigned to Resolved
- Target version changed from 3.0.0 to 4.0.0
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF