Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #125 from bolasblack/update-nested-document

Make nested function document style close to other section.
  • Loading branch information...
commit 14fabf7f1b9e99b4fe952aa293308b54e76fd8ea 2 parents e546f91 + 6c9bf4a
@jonathanong jonathanong authored
Showing with 12 additions and 14 deletions.
  1. +12 −14 Readme.md
View
26 Readme.md
@@ -202,8 +202,8 @@ Please delegate any issues with `.extend()` to that repository instead of rework
### .at2x([vendors])
- Adds `at-2x` keyword to `background` and `background-image`
- declarations to add retina support for images, with optional
+ Adds `at-2x` keyword to `background` and `background-image`
+ declarations to add retina support for images, with optional
`vendor` prefixes, defaulting to `.vendors()`.
```css
@@ -460,23 +460,21 @@ input {
Nested functions works well too:
-```css
-input {
- top: divide(subtract(30, floor(multiply(20, 10))), 2);
-}
-```
-
```javascript
-var functions = {
-}
-
-rework(css)
+var css = 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()
+ ))
+ .toString()
+```
+
+```css
+input {
+ top: divide(subtract(30, floor(multiply(20, 10))), 2);
+}
```
Would yield:
@@ -621,7 +619,7 @@ yields:
### .url(fn)
Map `url()` calls. Replace all `url()`s using a given function.
-
+
```js
var css = rework(read(css))
.use(rework.url(function(url){
Please sign in to comment.
Something went wrong with that request. Please try again.