v0.9.0
🎉🎉🎉
After many months in development, this release finally incorporates the new build process from #195!
**If you have written a lot of custom code that depends on Bootstrap 3, this may be a breaking update. Please review your admin application code before pushing to production.**
**If you are using trestle-auth or trestle-search, please also ensure you also update to trestle-auth >= 0.3.0 and trestle-search >= 0.4.0**
The main features of this update are:
- A Webpack-based build process which produces a static CSS bundle. This means a Sass compilation gem (
sass-rails
orsassc-rails
) is no longer a required dependency unless you are doing custom theme compilation. - Cleaned up the Sass and JS code, and migrated the JS to ES6 syntax.
- Updated to Bootstrap 4 (4.3.1).
- Updated to FontAwesome 5 (5.11.2). The v4 compatibility classes are included.
- Removed Ionicons.
- Theme customization is now done within
app/assets/stylesheets/trestle/_theme.scss
(rather than_variables.scss
). Thetrestle:install
generator has been updated to create this new file. However your current_variables.scss
should continue to work for supported variables. - Sprockets is still a required dependency (for now).
Other updates and fixes include:
- The
col
helper now accepts an integer for the default (mobile breakpoint) columns. Old usage should continue to work:
# New
col(4) { ... }
col(6, lg: 3) { ... }
# Old
col(xs: 4) { ... }
col(xs: 6, lg: 3) { ... }
- Added new
card
helper to replacepanel
helper - Deprecated
panel
andwell
helpers - Added support for custom
check_box
/radio_button
controls (default) as well as switchcheck_boxes
check_box :published, switch: true