Permalink
Browse files

fix part docs of .function() in .mixin() section

  • Loading branch information...
1 parent 5d7dc5d commit e4bf447ede3b6516bb8383a814de03b1e9c75e44 @bolasblack bolasblack committed Dec 5, 2013
Showing with 29 additions and 29 deletions.
  1. +29 −29 Readme.md
View
58 Readme.md
@@ -392,35 +392,6 @@ h1 {
}
```
- Nested functions works well too:
-
-```css
-input {
- top: divide(subtract(30, floor(multiply(20, 10))), 2);
-}
-```
-
-```javascript
-var functions = {
-}
-
-rework(css)
- .use(rework.function(
- subtract: function(a, b) { return a - b },
- multiply: function(a, b) { return a * b },
- divide: function(a, b) { return a / b },
- floor: Math.floor
- )).toString()
-```
-
- Would yield:
-
-```css
-input {
- top: -85;
-}
-```
-
You may also return array values to expand to several definitions of the property:
```
@@ -487,6 +458,35 @@ input {
}
```
+ Nested functions works well too:
+
+```css
+input {
+ top: divide(subtract(30, floor(multiply(20, 10))), 2);
+}
+```
+
+```javascript
+var functions = {
+}
+
+rework(css)
+ .use(rework.function(
+ subtract: function(a, b) { return a - b },
+ multiply: function(a, b) { return a * b },
+ divide: function(a, b) { return a / b },
+ floor: Math.floor
+ )).toString()
+```
+
+ Would yield:
+
+```css
+input {
+ top: -85;
+}
+```
+
### .references()
Add property reference support.

0 comments on commit e4bf447

Please sign in to comment.