https://github.com/suitcss/utils-display
CSS display utilities
https://github.com/suitcss/utils-display
Last synced: about 1 year ago
JSON representation
CSS display utilities
- Host: GitHub
- URL: https://github.com/suitcss/utils-display
- Owner: suitcss
- License: mit
- Created: 2013-03-03T08:58:21.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-10-13T02:14:45.000Z (over 9 years ago)
- Last Synced: 2025-02-10T20:50:25.294Z (over 1 year ago)
- Language: HTML
- Homepage: http://suitcss.github.io/utils-display/test/
- Size: 42 KB
- Stars: 15
- Watchers: 10
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SUIT CSS utilities: display
[](http://travis-ci.org/suitcss/utils-display)
SUIT CSS display utilities.
Read more about [SUIT CSS's design principles](https://github.com/suitcss/suit/).
## Installation
* [npm](http://npmjs.org/): `npm install suitcss-utils-display`
* Download: [zip](https://github.com/suitcss/utils-display/releases/latest)
## Available classes
* `u-block` - Display `block`.
* `u-hidden` - Display `none`.
* `u-hiddenVisually` - Visually hidden but available to screenreaders.
* `u-inline` - Display `inline`.
* `u-inlineBlock` - Display `inline-block`.
* `u-table` - Display `table`.
* `u-tableCell` - Display `table-cell`.
* `u-tableRow` - Display `table-row`.
## Usage
Please refer to the README for [SUIT CSS utils](https://github.com/suitcss/utils/)
## Testing
Install [Node](http://nodejs.org) (comes with npm).
```
npm install
```
To generate a build:
```
npm run build
```
To lint code with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and [stylelint](http://stylelint.io/)
```
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 9+