This is a preprocessor for LESS files.
Built using the lessphp library by Leaf Corcoran.
This module will automatically process any LESS files that are added using drupal_add_css or added through your theme's .info file.
Add your files just like any other css file, just with .less as the extension. They will not be processed otherwise.
Libraries API Support & lessphp v0.3.0+
The current version of lessphp included in this module is v0.2.1, which is quite old.
It is highly recommended that you download the latest version of of lessphp (at time of writing v0.3.0) from the link above and place it in your libraries folder.
Make such that 'lessc.inc.php' is located at 'sites/all/libraries/lessphp/lessc.inc.php' and the module will use it in place of the bundled version.
LESS Development:
Syntax
http://leafo.net/lessphp/docs/
File placement
If your source file was "sites/all/modules/test/test.css.less"
Then your compiled file will be "sites/site.com/files/less/sites/all/modules/test/test.css"
Compatibility:
Fully compatible with "Optimize CSS files" setting on "Admin->Site configuration->Performance" (admin/settings/performance).
RTL support will work as long as your files are named "somename.css.less".
Should work with most themes and caching mechanisms.
Confirmed to work with:
If you liked this module try:
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 2204 sites currently report using this module. View usage statistics.
- Last modified: February 6, 2012
