[Compass Core] More clear comments describing how to use the +replace-text mixin. Closes #16.
This commit is contained in:
parent
bda89ddefd
commit
4533a00085
@ -1,6 +1,13 @@
|
|||||||
// Hides html text and replaces it with an image.
|
//
|
||||||
// If you use this on an inline element, you will
|
Hides html text and replaces it with an image.
|
||||||
// need to change the display to block or inline-block.
|
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% )
|
=replace-text( !img, !x = 50%, !y = 50% )
|
||||||
:text-indent -9999em
|
:text-indent -9999em
|
||||||
:overflow hidden
|
:overflow hidden
|
||||||
|
Loading…
Reference in New Issue
Block a user