File tree Expand file tree Collapse file tree 1 file changed +14
-20
lines changed Expand file tree Collapse file tree 1 file changed +14
-20
lines changed Original file line number Diff line number Diff line change 1
1
less.js
2
2
=======
3
3
4
- > Leaner CSS, in your browser.
5
-
6
- ** less.js is currently under development, and not to be relied upon!**
7
-
8
4
about
9
5
-----
10
6
11
7
less.js is the next evolution of [ LESS] ( http://lesscss.org ) , eventually, it will become LESS 2.0.
12
8
less.js is a complete rewrite of LESS in JavaScript, and will be able to run directly in the browser,
13
9
as well as on the server, with node.js.
14
10
15
- More info coming soon.
11
+ synopsis
12
+ --------
13
+
14
+ ### in node.js
15
+
16
+ var less = require('less');
17
+
18
+ less.render(".class { width: 10px * 2 }", function (e, css) {
19
+ sys.puts(css); // .class { width: 20px }
20
+ });
16
21
17
- development status
18
- ------------------
22
+ ### via the command-line (requires node)
19
23
20
- A stable release is due sometime end of March.
24
+ bin/lessc style.less
21
25
22
- ### Implemented features:
26
+ ### in the browser
23
27
24
- - Variables
25
- - Nested rules
26
- - & selector
27
- - Numerical operations
28
- - Color operations
29
- - Namespaces
30
- - Functions
31
- - Static mixins
32
- - Comment output
33
- - Dynamic mixins
34
- - Importing
28
+ <link rel="less" href="/stylesheets/main.less" type="text/css">
35
29
You can’t perform that action at this time.
0 commit comments