パッケージの詳細

suitcss-utils-text

suitcss5.2k1.0.0

Text utilities for SUIT CSS

browser, css-utilities, text, suitcss

readme

SUIT CSS utilities: text

Build Status

SUIT CSS text utilities.

Read more about SUIT CSS's design principles.

Installation

  • npm: npm install suitcss-utils-text
  • Download: zip

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 install

To generate a build:

npm run build

To lint code with postcss-bem-linter and stylelint

npm run lint

To generate the testing build.

npm run build-test

To watch the files for making changes to test:

npm run watch

Basic visual tests are in test/index.html.

Browser support

  • Google Chrome (latest)
  • Opera (latest)
  • Firefox (latest)
  • Safari 5+
  • Internet Explorer 8+

更新履歴

HEAD

1.0.0 (February 08, 2016)

  • Update preprocessor to 1.0.0
  • Add stylelint config

0.4.3 (September 22, 2015)

  • Fix import path in test.css.

0.4.2 (October 28, 2014)

  • Add support for JS bundling.

0.4.1 (June 24, 2014)

  • Add .css extension to imports for interoperability.

0.4.0 (June 21, 2014)

  • npm-based workflow.
  • Add new preprocessor build tools.
  • Add u-textKern utility.

0.3.0 (March 25, 2014)

  • Add npm support.
  • Add u-textNoWrap utility.
  • Remove u-textInheritAllColor utility. a2693a5d
  • Stop using CSSLint.

0.2.3 (October 15, 2013)

  • Fix u-textBreak utility.

0.2.2 (October 9, 2013)

  • Add !important to color inheritance utilities.

0.2.1 (September 1, 2013)

  • Fix Bower ignores.

0.2.0 (August 28, 2013)

  • Add CSS linting.
  • Remove word-break: break-word.
  • Add color inheritance utilities.
  • Add !important to declarations.
  • Add Component(1) support.

0.1.1 (May 26, 2013)

  • Add Bower ignores.
  • Add a test file.
  • Rename component.json to bower.json.

0.1.0 (March 3, 2013)

  • Public release.