postcss-overflow-shorthand
Use the overflow shorthand in CSS
Last updated 2 months ago by romainmenke .
MIT-0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install postcss-overflow-shorthand 
SYNC missed versions from official npm registry.

PostCSS Overflow Shorthand PostCSS Logo

npm install postcss-overflow-shorthand --save-dev

PostCSS Overflow Shorthand lets you use the overflow shorthand in CSS, following the CSS Overflow specification.

html {
	overflow: hidden auto;
}

/* becomes */

html {
	overflow-x: hidden;
	overflow-y: auto;
	overflow: hidden auto;
}

Usage

Add PostCSS Overflow Shorthand to your project:

npm install postcss postcss-overflow-shorthand --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss');
const postcssOverflowShorthand = require('postcss-overflow-shorthand');

postcss([
	postcssOverflowShorthand(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);

Options

preserve

The preserve option determines whether the original notation is preserved. By default, it is preserved.

postcssOverflowShorthand({ preserve: false })
html {
	overflow: hidden auto;
}

/* becomes */

html {
	overflow-x: hidden;
	overflow-y: auto;
}

Current Tags

  • 7.0.1                                ...           latest (2 months ago)

15 Versions

  • 7.0.1                                ...           2 months ago
  • 7.0.0                                ...           10 months ago
  • 6.0.0                                ...           2 years ago
  • 5.0.1                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.0.4                                ...           4 years ago
  • 3.0.3                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Downloads
Total 36
Today 0
This Week 14
This Month 35
Last Day 0
Last Week 2
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE