Implements LessCSS in order to provide lots of interesting features for the theme development.
Includes various ways to define variables and functions to use in the LESS files.
How to use ?
Just include the LESS files (with .less extension) as it is usually done for the CSS ones, and the corresponding CSS files will automatically be generated and added to the page (apart from the file extension, each new CSS file will be named like the corresponding LESS file, overwriting existing ones when needed).
From the admin, assign global and per-file variables to each LESS file, and tell if they should always be re-generated (can be useful when testing, else it's automatically done when modified).
Based on lessphp
by Leaf Corcoran (version 0.3.4-2).
No core rewrite
. As far as we currently know, it's fully compatible with CSS merging from Magento core or other modules such as GTSpeed.
Two events are currently dispatched :
: retrieve additional variables to use with the given file
: retrieve additional functions to use with the given file
For those two events, here are the enclosed variables :
: name of the Less file that is currently parsed
: instance of Varien_Object that wrap a "less_variables" or "less_functions" array, that will contain additional values.
This is the first release, we're opened to all new ideas or feature requests !
Here are some examples of what could be included
next (as well as lessphp version updates) :
- Pre-defined built-in variables
- Pre-defined built-in functions
- More different cache options
If you wish to uninstall the extension, it's completely safe to do it. The only thing you would have to do is to convert back your stylesheets from LESS to CSS.