From 684f127bc53ae1f19429d683627aa9efc9d67a5e Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Tue, 4 May 2010 17:48:22 -0700 Subject: [PATCH] [Docs] Documentation on the image dimension helpers. --- .../content/reference/compass/helpers.haml | 2 ++ .../compass/helpers/image-dimensions.haml | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 doc-src/content/reference/compass/helpers/image-dimensions.haml diff --git a/doc-src/content/reference/compass/helpers.haml b/doc-src/content/reference/compass/helpers.haml index 607c128a..5939fd24 100644 --- a/doc-src/content/reference/compass/helpers.haml +++ b/doc-src/content/reference/compass/helpers.haml @@ -22,3 +22,5 @@ layout: core * [elements-of-type()](/docs/reference/compass/helpers/display/) * [enumerate()](/docs/reference/compass/helpers/enumerate/) * [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) diff --git a/doc-src/content/reference/compass/helpers/image-dimensions.haml b/doc-src/content/reference/compass/helpers/image-dimensions.haml new file mode 100644 index 00000000..13533d9f --- /dev/null +++ b/doc-src/content/reference/compass/helpers/image-dimensions.haml @@ -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($image) + .details + %p + Returns the width of the image found at the path supplied by $image + relative to your project's images directory. + +#image-height.helper + %h3 + %a(href="#image-height") + image-height($image) + .details + %p + Returns the height of the image found at the path supplied by $image + relative to your project's images directory. \ No newline at end of file