Skip to content

Commit 0599ae1

Browse files
committed
[ci skip] Correct docs for asset helpers
1 parent 155f3ff commit 0599ae1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,24 @@ in Sass):
6868
#### `asset-path($relative-asset-path)`
6969
Returns a string to the asset.
7070

71-
* `asset-path("rails.png")` becomes `"/assets/rails.png"`
71+
* `"/assets/rails.png"` becomes `asset-path("rails.png")`
7272

7373
#### `asset-url($relative-asset-path)`
7474
Returns a url reference to the asset.
7575

76-
* `asset-url("rails.png")` becomes `url(/assets/rails.png)`
76+
* `url(/assets/rails.png)` becomes `asset-url("rails.png")`
7777

7878
As a convenience, for each of the following asset classes there are
7979
corresponding `-path` and `-url` helpers:
8080
image, font, video, audio, javascript, stylesheet.
8181

82-
* `image-path("rails.png")` becomes `"/assets/rails.png"`
83-
* `image-url("rails.png")` becomes `url(/assets/rails.png)`
82+
* `"/assets/rails.png"` becomes `image-path("rails.png")`
83+
* `url(/assets/rails.png)` becomes `image-url("rails.png")`
8484

8585
#### `asset-data-url($relative-asset-path)`
8686
Returns a url reference to the Base64-encoded asset at the specified path.
8787

88-
* `asset-data-url("rails.png")` becomes `url(data:image/png;base64,iVBORw0K...)`
88+
* `url(data:image/png;base64,iVBORw0K...)` becomes `asset-data-url("rails.png")`
8989

9090
## Running Tests
9191

0 commit comments

Comments
 (0)