Sha256: 22ebd8100c6a2fd06bf0a985700709afa7c8327824be0c7a8b94b6f7843bdcce

Contents?: true

Size: 681 Bytes

Versions: 10

Compression:

Stored size: 681 Bytes

Contents

//
  Hides html text and replaces it with an image.
  If you use this on an inline element, you will need to change the display to block or inline-block.
  Also, if the size of the image differs significantly from the font size, you'll need to set the width and/or height.
  @param img
    the relative path from the project image directory to the image.
  @param x
    the x position of the background image.
  @param y
    the y position of the background image.
=replace-text( !img, !x = 50%, !y = 50% )
  +hide-text
  background:
    image= image_url(!img)
    repeat: no-repeat
    position= !x !y

=hide-text
  :text-indent -9999em
  :overflow    hidden
  :text-align  left

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
compass-0.10.0.rc1 frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
compass-0.10.0.pre9 frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
compass-0.10.0.pre8 frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
compass-0.10.0.pre7 frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
compass-0.10.0.pre6 frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/compass-0.10.0.pre5/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/compass-0.10.0.pre4/lib/compass/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
compass-0.10.0.pre5 frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
compass-0.10.0.pre4 lib/compass/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
compass-0.10.0.pre3 lib/compass/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass