Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
58 changes: 29 additions & 29 deletions Readme.md
Expand Up @@ -390,35 +390,6 @@ h1 {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis 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: You may also return array values to expand to several definitions of the property:
Expand Down Expand Up @@ -485,6 +456,35 @@ yields:
input { input {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.7); 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() ### .references()
Expand Down