[Docs] Documentation on the image dimension helpers.

This commit is contained in:
Chris Eppstein 2010-05-04 17:48:22 -07:00
parent ed4a7c3fe3
commit 684f127bc5
2 changed files with 32 additions and 0 deletions

View File

@ -22,3 +22,5 @@ layout: core
* [elements-of-type()](/docs/reference/compass/helpers/display/) * [elements-of-type()](/docs/reference/compass/helpers/display/)
* [enumerate()](/docs/reference/compass/helpers/enumerate/) * [enumerate()](/docs/reference/compass/helpers/enumerate/)
* [font-files()](/docs/reference/compass/helpers/font-files/) * [font-files()](/docs/reference/compass/helpers/font-files/)
* [image-width()](/docs/reference/compass/helpers/image-dimensions/#image-width)
* [image-height()](/docs/reference/compass/helpers/image-dimensions/#image-height)

View File

@ -0,0 +1,30 @@
---
title: Compass Image Dimension Helpers
crumb: Image Dimensions
framework: compass
meta_description: Helper functions for working with image dimensions.
layout: core
classnames:
- reference
- core
- helpers
---
%h1 Compass Image Dimension Helpers
#image-width.helper
%h3
%a(href="#image-width")
image-width(<span class="arg">$image</span>)
.details
%p
Returns the width of the image found at the path supplied by <code>$image</code>
relative to your project's images directory.
#image-height.helper
%h3
%a(href="#image-height")
image-height(<span class="arg">$image</span>)
.details
%p
Returns the height of the image found at the path supplied by <code>$image</code>
relative to your project's images directory.