Don't set display for replaced text -- just use the container's default display. Also, some small refactoring.
This commit is contained in:
parent
2cc690dc6a
commit
156b896d97
@ -1,8 +1,7 @@
|
|||||||
// Hides html text and replaces it with an image.
|
// Hides html text and replaces it with an image.
|
||||||
=replace-text( !img, !x = "50%", !y = "50%" )
|
// If you use this on an inline element, you will
|
||||||
:display block
|
// need to change the display to block or inline-block.
|
||||||
|
=replace-text( !img, !x = 50%, !y = 50% )
|
||||||
:text-indent -9999em
|
:text-indent -9999em
|
||||||
:overflow hidden
|
:overflow hidden
|
||||||
:background-image = url(!img)
|
:background= url(!img) no-repeat scroll !x !y
|
||||||
:background-position = !x !y
|
|
||||||
:background-repeat no-repeat
|
|
||||||
|
Loading…
Reference in New Issue
Block a user