-
Book Overview & Buying
-
Table Of Contents
Less Web Development Essentials (Second Edition)
By :
With the growing popularity of Less, the Less compiler has also been ported to other languages. These ports can be used to compile Less with native language calls. Keep in mind that these ports will usually lag behind the official JavaScript implementation, so you may find that they don't have the recent Less features. You may also realize that these compilers are not able to compile the native JavaScript expressions within backticks, as mentioned in Chapter 3, Nested Rules, Operations, and Built-in Functions.
This PHP port of the official Less processor can be downloaded from http://lessphp.gpeasy.com/. You have already seen an example of its usage: the WP Less to the CSS plugin has been built with it. Less.php also implements caching for faster compilation.
Although Less.php offers the possibility of creating CSS dynamically, you should still precompile the CSS for production in most cases. WordPress is also written...
Change the font size
Change margin width
Change background colour