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