Add the squish text mixin for hiding text in inline elements.
This commit is contained in:
parent
d38fee361f
commit
32d8517f32
@ -31,3 +31,12 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hides text in an element by squishing the text into oblivion.
|
||||||
|
// Use this if you need to hide text contained in an inline element
|
||||||
|
// but still have it read by a screen reader.
|
||||||
|
@mixin squish-text {
|
||||||
|
font: 0/0 serif;
|
||||||
|
text-shadow: none;
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user