Permalink
Browse files

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

  • Loading branch information...
1 parent ff5a450 commit f206c9943e96723ad91c03f5c730413ac1707cae @bolasblack bolasblack committed Dec 3, 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 f206c99

Please sign in to comment.