Skip to content

Commit

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

You may also return array values to expand to several definitions of the property:

```
function display(type) {
if ('flex' == type) {
return {
display: [
'-webkit-flex',
'-moz-flex',
'-webkit-flexbox',
'flex'
]
}
}
return {
display: type
}
}
```

Would yield:

```css
.myclass {
display: -webkit-flex;
display: -moz-flex;
display: -webkit-flexbox;
display: flex;
}
```

### .function(object)
Expand Down Expand Up @@ -424,38 +456,6 @@ yields:
input {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}
```

You may also return array values to expand to several definitions of the property:

```
function display(type) {
if ('flex' == type) {
return {
display: [
'-webkit-flex',
'-moz-flex',
'-webkit-flexbox',
'flex'
]
}
}
return {
display: type
}
}
```

Would yield:

```css
.myclass {
display: -webkit-flex;
display: -moz-flex;
display: -webkit-flexbox;
display: flex;
}
```

### .references()
Expand Down

0 comments on commit f206c99

Please sign in to comment.