Skip to content

Automatically append `content` property for viewport-units-buggyfill

Notifications You must be signed in to change notification settings

springuper/postcss-viewport-units

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postcss-viewport-units

Build Status npm version

Automatically append content property for viewport-units-buggyfill.

Install

$ npm install postcss-viewport-units

Usage

See PostCSS usage section for detail.

Options

onlyCalc([Boolean]): if ture, only process calc values. it's false by default, which means, all values including vw vh vmin vmax are processed.

test([Function]): used to judge whether current value of declaration should be considered including viewport units, the default is value => /\d(vw|vh|vmax|vmin)\b/.test(value).

filterFile([Function]): used to filter out files which need be processed, you can refer to test case to see how it works.

filterRule([Function]): used to filter out rules which need be processed, you can refer to test case to see how it works.

silence([Boolean]): if true, will not print warning even though there is a content property. it's false by default.

License

MIT.

About

Automatically append `content` property for viewport-units-buggyfill

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published