[Compass Core] Split out hide-text as its own mixin.

This commit is contained in:
Andrew Vit 2009-12-18 09:28:16 -08:00 committed by Chris Eppstein
parent 8006c7854c
commit f6b319268e
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,2 @@
@import text/nowrap.sass @import text/nowrap.sass
@import text/replacement.sass @import text/replacement.sass
@import text/fonts.sass

View File

@ -9,9 +9,12 @@
@param y @param y
the y position of the background image. the y position of the background image.
=replace-text( !img, !x = 50%, !y = 50% ) =replace-text( !img, !x = 50%, !y = 50% )
text-indent: -9999em +hide-text
overflow: hidden
background: background:
image= image_url(!img) image= image_url(!img)
repeat: no-repeat repeat: no-repeat
position= !x !y position= !x !y
=hide-text
:text-indent -9999em
:overflow hidden