Skip to content
Browse files

Merge pull request #124 from bolasblack/fix-nested-function-documents

fix part docs of .function() in .mixin() section
  • Loading branch information...
2 parents ec4e2c5 + e4bf447 commit e546f9167bd1486bdc06d376a9e814e4482f9e8e @jonathanong jonathanong 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 e546f91

Please sign in to comment.
Something went wrong with that request. Please try again.