Skip to content

ploveland/postcss-flexibility

 
 

Repository files navigation

PostCSS Flexibility

[![NPM version][npm-img]][npm-url] Build Status Dependency Status [devDependency Status][daviddm-dev-url] [![Code coverage status][coveralls-img]][coveralls-url] [![XO code style][xo-img]][xo-url]

PostCSS plugin for Flexibility.

.foo {
	display: flex;
}

will be processed to:

.foo {
	-js-display: flex;
	display: flex;
}

Installation

$ npm install --save-dev postcss-flexibility

Usage

postcss([ require('postcss-flexibility') ])

See PostCSS docs for examples for your environment.

Excluding rules

You can exclude rule from transformation by adding /* flexibility-disable */ comment.

.foo {
	/* flexibility-disable */
	display: flex;
}

will be processed to:

.foo {
	/* flexibility-disable */
	display: flex;
}

--

License

MIT © Valentin Semirulnik

[daviddm-dev-url]: https://david-dm.org/7rulnik/postcss-flexibility#info=devDependencies) [npm-img]: https://badge.fury.io/js/postcss-flexibility.svg [npm-url]: https://www.npmjs.com/package/postcss-flexibility [xo-img]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg [xo-url]: https://github.com/sindresorhus/xo [coveralls-img]: https://coveralls.io/repos/github/7rulnik/postcss-flexibility/badge.svg?branch=master [coveralls-url]: https://coveralls.io/github/7rulnik/postcss-flexibility?branch=master

About

PostCSS plugin for Flexibility polyfill

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%