document the hide-text mixin
This commit is contained in:
parent
909fb92ad3
commit
225e625f1c
@ -7,7 +7,6 @@
|
|||||||
// the x position of the background image.
|
// the x position of the background image.
|
||||||
// @param y
|
// @param y
|
||||||
// the y position of the background image.
|
// the y position of the background image.
|
||||||
|
|
||||||
@mixin replace-text($img, $x: 50%, $y: 50%) {
|
@mixin replace-text($img, $x: 50%, $y: 50%) {
|
||||||
@include hide-text;
|
@include hide-text;
|
||||||
background: {
|
background: {
|
||||||
@ -15,6 +14,7 @@
|
|||||||
repeat: no-repeat;
|
repeat: no-repeat;
|
||||||
position: $x $y; }; }
|
position: $x $y; }; }
|
||||||
|
|
||||||
|
// Hides text in an element so you can see the background.
|
||||||
@mixin hide-text {
|
@mixin hide-text {
|
||||||
text-indent: -9999em;
|
text-indent: -9999em;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
Loading…
Reference in New Issue
Block a user