am-utils-text

0.2.0 • Public • Published

SUIT CSS utilities: text

Build Status

SUIT CSS text utilities.

Read more about SUIT CSS's design principles.

Installation

  • npm: npm install am-utils-text
  • Bower: bower install am-utils-text

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+

Package Sidebar

Install

npm i am-utils-text

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • vinspee