Use Scott Kellum's method of text hiding that is more performant and has no issue with em-based margins.
This commit is contained in:
parent
abcd6c897c
commit
046d4688d1
@ -26,7 +26,8 @@
|
|||||||
|
|
||||||
// Hides text in an element so you can see the background.
|
// Hides text in an element so you can see the background.
|
||||||
@mixin hide-text {
|
@mixin hide-text {
|
||||||
font: 0/0 serif;
|
// slightly wider than the box prevents issues with inline-block elements
|
||||||
text-shadow: none;
|
text-indent: 110%;
|
||||||
color: transparent;
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user