am-utils-text
v0.2.0
Published
Text utilities for SUIT CSS in the AM convention
Downloads
6
Maintainers
Readme
SUIT CSS utilities: text
SUIT CSS text utilities.
Read more about SUIT CSS's design principles.
Installation
Available attribute modules
[am-text=break]
- Break strings when their length exceeds the width of their container.[am-text=center]
- Center-align text.[am-text=left]
- Left-align text.[am-text=right]
- Right-align text.[am-text=inheritColor]
- Inherit the ancestor's text color.[am-text=kern]
- Enable kerning in supporting browsers.[am-text=noWrap]
- Prevent wrapping at whitespace.[am-text=truncate]
- Truncate a single line of text, with ellipsis.
Usage
Please refer to the README for SUIT CSS utils
Browser support
- Google Chrome (latest)
- Opera (latest)
- Firefox 4+
- Safari 5+
- Internet Explorer 8+