Why should you install this module?
CSS Injector allows you to create conditional rules to add new or override existing styles on your Backdrop CMS website. It allows someone to install a contributed theme, configure it and then add additional rules to tweak the styles to your requirements.
It is an easier learning curve than creating a subtheme or a new theme entirely and means that the underlying theme can be updated as required.
Another use case is to make quick adjustment to a custom theme, which can then be added into the theme and the rule removed.
Features
- Add rules based on theme, paths, and media type.
- Select whether to pre-process the CSS if the rule applies to the whole site.
- Easily enable or disable rules
- Create CSS in a code editor text area with syntax highlighting, easy indenting and optional autocomplete.
Key contributions
- Joined as co-maintainer
- Fixed bugs
- Improved usability of the rule edit and manage screens
- Moved the rule definition from the database to config
- Added the storage of the CSS code for each rule to config to ensure it can be regenerated if the file is deleted and to support deployment of CSS rules with config deployment.
- Updated the code editor library and enabled new configuration options for it.