Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@bolasblack

So sorry for my mistake...

@jonathanong

hahahaha!

@jonathanong jonathanong merged commit e546f91 into reworkcss:master
@bolasblack bolasblack deleted the bolasblack:fix-nested-function-documents branch
@bolasblack bolasblack restored the bolasblack:fix-nested-function-documents branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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.
Something went wrong with that request. Please try again.