Introduced replace-text mixin for showing images in place of HTML text.
This commit is contained in:
parent
278cda2ed6
commit
94083e82e1
1
Manifest
1
Manifest
@ -80,6 +80,7 @@ frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
|
||||
frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass
|
||||
frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass
|
||||
frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass
|
||||
frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
|
||||
frameworks/compass/templates/project/grid.png
|
||||
frameworks/compass/templates/project/ie.sass
|
||||
frameworks/compass/templates/project/print.sass
|
||||
|
@ -1 +1,2 @@
|
||||
@import text/nowrap.sass
|
||||
@import text/replacement.sass
|
||||
|
@ -0,0 +1,8 @@
|
||||
// Hides html text and replaces it with an image.
|
||||
=replace-text( !img, !x = "50%", !y = "50%" )
|
||||
:display block
|
||||
:text-indent -9999em
|
||||
:overflow hidden
|
||||
:background-image = url(!img)
|
||||
:background-position = !x !y
|
||||
:background-repeat no-repeat
|
Loading…
Reference in New Issue
Block a user