Skip to content

Commit

Permalink
fix part docs of .function() in .mixin() section
Browse files Browse the repository at this point in the history
  • Loading branch information
bolasblack committed Dec 5, 2013
1 parent 5d7dc5d commit e4bf447
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,35 +390,6 @@ h1 {
overflow: hidden;
text-overflow: ellipsis
}
```

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:
Expand Down Expand Up @@ -485,6 +456,35 @@ yields:
input {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}
```

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()
Expand Down

0 comments on commit e4bf447

Please sign in to comment.