less.png

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

Downloads

Recommended releases

Version Downloads Date Links
7.x-2.4 tar.gz (33.52 KB) | zip (36.54 KB) 2011-Jul-14 Notes
6.x-2.7 tar.gz (33.91 KB) | zip (36.87 KB) 2011-Jul-14 Notes

Development releases

Version Downloads Date Links
7.x-2.x-dev tar.gz (33.52 KB) | zip (36.54 KB) 2011-Jul-13 Notes
6.x-2.x-dev tar.gz (35.3 KB) | zip (38.29 KB) 2012-Jan-30 Notes

Maintainers for LESS CSS Preprocessor

  • corey.aufang - 46 commits
    last: 1 week ago, first: 1 year ago

Issues for LESS CSS Preprocessor

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 26 Mar 10
nobody click here