Permalink
Browse files

Merge pull request #122 from bolasblack/fix-mixin-document

fix part docs of .mixin() in .function() section
  • Loading branch information...
2 parents ff5a450 + f206c99 commit 7b21c70ac7fb999a5510a12434f4981b47dcbfa7 @jonathanong jonathanong committed Dec 4, 2013
Showing with 32 additions and 32 deletions.
  1. +32 −32 Readme.md
View
@@ -392,6 +392,38 @@ h1 {
}
```
+ 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)
Add user-defined CSS functions.
@@ -426,38 +458,6 @@ input {
}
```
- 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()
Add property reference support.

0 comments on commit 7b21c70

Please sign in to comment.