1.0.0 • Published 10 years ago
suitcss-utils-text v1.0.0
SUIT CSS utilities: text
SUIT CSS text utilities.
Read more about SUIT CSS's design principles.
Installation
Available classes
u-textBreak- Break strings when their length exceeds the width of their container.u-textCenter- Center-align text.u-textLeft- Left-align text.u-textRight- Right-align text.u-textInheritColor- Inherit the ancestor's text color.u-textKern- Enable kerning in supporting browsers.u-textNoWrap- Prevent wrapping at whitespace.u-textTruncate- Truncate a single line of text, with ellipsis.
Usage
Please refer to the README for SUIT CSS utils
Testing
Install Node (comes with npm).
npm installTo generate a build:
npm run buildTo lint code with postcss-bem-linter and stylelint
npm run lintTo generate the testing build.
npm run build-testTo watch the files for making changes to test:
npm run watchBasic visual tests are in test/index.html.
Browser support
- Google Chrome (latest)
- Opera (latest)
- Firefox (latest)
- Safari 5+
- Internet Explorer 8+