Skip to content

suitcss/utils-align

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SUIT CSS utilities: align

Build Status

SUIT CSS utility classes for vertically aligning elements.

Read more about SUIT CSS's design principles.

Installation

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

Available classes

  • u-alignBaseline -Vertically align to baseline.
  • u-alignBottom - Vertically align to bottom.
  • u-alignMiddle - Vertically align to middle.
  • u-alignTop - Vertically align to top.

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 4+
  • Safari 5+
  • Internet Explorer 8+