usage info

This commit is contained in:
cloudhead
2010-04-22 19:15:11 -04:00
parent 63923283fc
commit e46e71a4d1

View File

@@ -1,10 +1,6 @@
less.js
=======
> Leaner CSS, in your browser.
**less.js is currently under development, and not to be relied upon!**
about
-----
@@ -12,24 +8,22 @@ less.js is the next evolution of [LESS](http://lesscss.org), eventually, it will
less.js is a complete rewrite of LESS in JavaScript, and will be able to run directly in the browser,
as well as on the server, with node.js.
More info coming soon.
synopsis
--------
development status
------------------
### in node.js
A stable release is due sometime end of March.
var less = require('less');
### Implemented features:
less.render(".class { width: 10px * 2 }", function (e, css) {
sys.puts(css); // .class { width: 20px }
});
- Variables
- Nested rules
- & selector
- Numerical operations
- Color operations
- Namespaces
- Functions
- Static mixins
- Comment output
- Dynamic mixins
- Importing
### via the command-line (requires node)
bin/lessc style.less
### in the browser
<link rel="less" href="/stylesheets/main.less" type="text/css">